…with each other is pretty simple.Keep in mind that in the article I will assume that you already have a Node.js app written and running.Step 1: Redis SetupFirst, you have to prepare your Redis database. I like to use Redis To Go, because the setup is really quick, and if…
…With TablesorterNow, we'll show you how to implement paging with Tablesorter. You can see the demo here and get the code here. It should look something like this:This time, we'll initialize Tablesorter in the <head> tag. We'll also add the Tablesorter plugin script: <script type="text/javascript" src="./js/jquery.tablesorter.pager.js"></script> <script type="text/javascript"> $(function() { $("table")…
…with the development process, make sure that you have installed Node.js 0.11.9 or higher.In this part, we will be creating a dictionary API using Koa.js, and you'll learn about routing, compressing, logging, rate-limiting, and error handling in Koa.js. We will also use Mongo as our datastore and learn briefly about…
…with the Twitter API may seem a bit complicated, but it’s actually quite straightforward. There are a number of libraries for common languages that make the process quite easy. Twitter’s API documentation has also improved greatly over time.In March 2013, Twitter began requiring OAuth for all API sessions, and that’s…
…with featured images and product galleries. In the section of products, there were options for product tags, categories, and attributes. This is what I will be discussing today. Product Categories Generally, categories serve as filters to group all the related posts in one place. This is also the function of…
…With Twitter via OAuthBirdcage uses a Yii extension called Yii Twitter by Will Wharton, which makes use of the open-source PHP OAuth Twitter library by Abraham Williams.I place the extension in the Yii tree under /app/protected/extensions/yiitwitteroauth. In Yii, you configure extension properties in the main.php configuration file like so: // application components 'components'=>array( 'twitter' => array(…
…With Translatable Data in WordPress One of the coolest features of WordPress is having every bit of text ready to be translated. If your website's language is English, however, you don't need this feature - or do you? The gettext filter might work for you in a different way. Let's see an…
…without changing the behavior of the code from the end-users standpoint.This can be achieved a number of different ways each of which are unique to the given project. In our case, we're going to look at refactoring our constructors, some of our save methods, some of our helper methods, and…
…with each. Let's begin! Filtering the Default Gallery Style WordPress styles the [gallery] shortcode with some pre-defined CSS. You can change this behavior with the use_default_gallery_style filter. Example: Disable the Default CSS If you already have styled your galleries in your theme's style.css file and don't need the default CSS…
…without the delay of polling the REST API. Use of the Streaming API is also not subject to Twitter's API rate limits.Here's a visualization of how it works:There are three variations of the Twitter Streaming API:The Public Stream. This allows your application to monitor public data on Twitter, such as public tweets, hashtag…