Virtualenv On Windows

What is virtualenv? It is a tool to create isolated Python environments. It creates an environment that has its own installation directories, that doesn’t share libraries with other virtualenv environments (and optionally doesn’t access the globally installed libraries either). This tool can be installed on Microsoft Windows operating system.

Get the First Paragraph as an Excerpt for WordPress

WordPress by default will generate the auto excerpt from the content with 55 words and if the amount is greater than that, then the string ‘[…]’ will be appended to the excerpt. If the string is less than 55 words, then the content will be returned as is. In other case, if manual excerpt was added to the post, it will be used as is instead of creating the 55 words.

How to Set and Get or Delete Cookies with WordPress

This is an article about WordPress. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. The cookies are used to store data for logged in users and for commenter after you create a comment for a post or page. WordPress provides built-in functions to store authentication data such as wp_set_auth_cookie() and wp_clear_auth_cookie() or auth_redirect().

Creating Geochart Visualization For Your Registered Users In WordPress

Well, for you as a website owners who have lots of registered users in your WordPress site, perhaps you want to display them based on their selected country by using the geographical chart. Since Google Chart Tools provide their the Geochart Visualization, it makes the process more simple. The user’s country name should be based on ISO-3166-1 and can be selected in their profile page. This tutorial will guide you in a few steps as detailed below.

Creating Pie Chart Visualization For WordPress Categories

Hello, after reading and pay attention to the visualization of the Google Chart Tools with its pie chart, I then had an idea to use categories in WordPress installation. WordPress has provided some PHP functions that we can use with ease. Basically the process of making this chart is not so complicated, just needs a little PHP and WordPress built-in function, and a bit of copy-paste. Consider the following steps to visualize the categories in WordPress with Google Pie Chart.

Creating Pagination With CakePHP and Twitter Bootstrap

PaginatorHelper is a CakePHP powerfull helper feature for pagination. It is very easy to use and have good documentation found here. It has functions like prev, numbers and next to generate pagination number with link to the paged. We will discuss how to create Bootstrap pagination for CakePHP.

Get and Sort WordPress Posts by Post IDs Order

To obtain multiple posts in accordance with the criteria that we give becomes easier with WP Query class. WP Query can be used to get the latest posts, based on post meta value, number of comments, post types, and so on.There is also a function to get posts by using get_posts() that have same parameters of WP_Query because it uses a new instance of it.

SimplePie Enclosure Get Media Content Link

SimplePie is a very fast and easy-to-use class, written in PHP, that puts the ‘simple’ back into ‘really simple syndication’. Flexible enough to suit beginners and veterans alike, SimplePie is focused on speed, ease of use, compatibility and standards compliance. When the feed is using the media content url or link, we can not use the get_link() function directly to get a media content url. See example below: