background preloader

Pears

Pears

WordPress Transients API – Practical examples What is the transients API, and why it’s useful Most developers who worked with WordPress in the past probably ever heard of the Options API, which allow you to save, update and delete custom values. The Transients API is pretty similar to the Options API, but with the feature of an expiration time, which simplifies the process of using the wp_options database table to store cached information. After you read the practical example I’ve listed on this post, I suggest you to read the Transients API page on WordPress Codex. List sites from your network Let’s start with an interesting snippet for those who run networks of many blogs. To use this snippet, first you have to paste the function into your functions.php file. Once done, the following code will display all sites from your network. → Source: Twitter followers count using WordPress transients Many blogs, including this one, are displaying how many people are following them on Twitter.

git - the simple guide - no deep shit! git - the simple guide just a simple guide for getting started with git. no deep shit ;) by Roger Dudler credits to @tfnico, @fhd and Namics this guide in deutsch, español, français, indonesian, italiano, nederlands, polski, português, русский, türkçe, မြန်မာ, 日本語, 中文, 한국어 Vietnamese please report issues on github Infuse analytics everywhere with the AI-powered embedded analytics platform. setup Download git for OSX Download git for Windows Download git for Linux create a new repository create a new directory, open it and perform a git init to create a new git repository. checkout a repository create a working copy of a local repository by running the command git clone /path/to/repository when using a remote server, your command will be git clone username@host:/path/to/repository workflow add & commit You can propose changes (add it to the Index) using git add <filename> git add * This is the first step in the basic git workflow. pushing changes branching update & merge tagging log useful hints guides

Event Theme Duis ac nisl. Nullam pulvinar. Curabitur quam sapien, lobortis eu, luctus vitae, volutpat ac, metus. Nam elementum. more info How to add TinyMCE to textarea meta boxes in WordPress | WordPress Maybe one of the key factors in WordPress wild adoption, was the fact of the inclusion of TinyMCE, the rich text editor, for less tech-savvy users. Even ExpressionEngine, a paid CMS, doesn’t include a rich text editor out-of-the-box. Moreover, you can add TinyMCE for your textareas in plugins or theme settings pages! In this tutorial you will learn how to add TinyMCE to textareas in your settings pages for your plugins or themes. You will also get a plugin ready for WordPress 3.2 that demonstrates this. Overview Your users or clients will find much easier to edit text using TinyMCE, particularly for cases like an introduction text block or an aside included in a product page with additional information about it, just to name a couple of examples. WordPress introduced a function in version 2.7 to output the TinyMCE editor wherever you want. In addition, you will add a couple of buttons to switch to raw HTML mode, but these are independent and have nothing to do with the rich text editor.

A Git Primer git is a wicked-powerful distributed revision control system. It is confusing to many, so there are myriad tutorials and explanations online to help people understand it. This one will focus on the fundamental concepts and tasks rather than trying to compete with the documentation. “I’m an egotistical bastard, and I name all my projects after myself. Definitions Working Directory - the working directory is the directory where you have content that you want to manage with git. Commit - a commit is a full snapshot of the contents of your working directory (everything being tracked by git, anyway), and it’s kept track of using a unique 40 character SHA1 hash. Index - the index can be considered a staging area. Branch - a branch is similar in concept to other versioning systems, but in git it’s simply a pointer to a particular commit. Understanding how these components work together is the key to understanding git. git‘s Index $ git status On branch master Branches $ git checkout Remote Repositories

Starkers: The completely naked theme for WordPress Say hello to our newest publication: a seasonal Digest of culture that surrounds the world of the creative professional. Say hello to our newest publication: a seasonal Digest of culture that surrounds the world of the creative professional.Digest is a brand new, A3-sized magazine: a seasonal digest of culture that surrounds the world of the creative professional; a lifestyle publication that provides inspiration for the discerning traveller; a reminder that the world away from our computers is ripe for exploration. Filled with beautiful photography, illustration, and original writing from authors working within the web, design, and creative industries, it’s packed with recommendations on great coffee places that are a joy to work from; boutique restaurants that are perfect for treating our favourite clients; tucked-away corners of the world’s cities that are worth a visit on that spare day or two after a conference. Visit the Digest Web Site

WordPress completely dominates top 100 blogs WordPress is no doubt a very popular web publishing platform for blogs and other types of websites. But just how popular is it? We just completed a study and found that WordPress is in use by 48% of the top 100 blogs in the world. This is an increase from the 32% we recorded three years ago. Other developments since then include that custom blog publishing platforms are more common now, TypePad has all but disappeared from the top 100, Tumblr has made an entrance, and some companies really don’t want to spill the beans about what solutions they use. Update: Following a comment (see below) we have adjusted the article a bit. WordPress is big, period Just over three years ago we looked at what blog platforms and content management systems (CMS) were used by the sites listed in Technorati’s top 100 blogs. Doing the same survey now in 2012, we find that quite a bit has happened in three years. Here’s what we found in our survey: Comparing 2009 to 2012 WordPress Matt expects even more

Libraries API - Google Code The Google Hosted Libraries is a stable, reliable, high-speed, globally available content distribution network for the most popular, open-source JavaScript libraries. Google works directly with the key stakeholders for each library effort and accepts the latest versions as they are released. Libraries To load a hosted library, copy and paste the HTML snippet for that library (shown below) in your web page. We recommend that you load libraries from the CDN via HTTPS, even if your own website only uses HTTP. AngularJS snippet: site: angularjs.org stable versions: unstable versions: Angular Material material.angularjs.org early beta versions: Dojo dojotoolkit.org versions: Ext Core sencha.com/products/extcore jQuery 1.x snippet: 2.x snippet: jquery.com note: 2.1.2, 1.2.5 and 1.2.4 are not hosted due to their short and unstable lives in the wild. jQuery Mobile jquerymobile.com This library depends on jQuery. jQuery UI jqueryui.com This library depends on jQuery. MooTools mootools.net Prototype prototypejs.org SWFObject

Unleashing .htaccess for WordPress After my stint with WordPress branding and WordPress security, it was time to take the plunge into the so-called complex world of .htaccess. Once you are done playing with the WordPress dashboard, plugins and themes then you must take the next big step. Well, let me explain what level of editing I am planning to introduce you to in this article: Whenever you try to access a category page in your WordPress blog then the URL will look something like: Personally, I hate the word “category” but this is how WordPress will render a URL, right? Let us get our basics cleared up before we start playing with our .htaccess file. Image credit: ptz0n What is .htaccess? .htaccess is actually the shortened form of Hypertext Access. NOTE: .htaccess in Windows based hosting is a different story altogether. .htaccess and Apache I created the below figure to give you an idea of the relationship that .htaccess shares with Apache. Why not Edit httpd.conf Directly? Ah! Read this before you edit .htaccess! to:

Free Hadoop Development Environment: Karmasphere Studio Last week we told you about this tutorial to get started with Hadoop. If you want to go further with Hadoop, you might want a dedicated development environment. Karmasphere offers both a free "community edition" and a paid professional version of its Hadoop development environment for prototyping, development and debugging of Hadoop jobs. Has anyone used it? What did you think? Some basic technical information from Karmasphere's web site: Runs on Linux, Apple Mac OS and Windows Works with all major distributions and versions of Hadoop including Apache, Yahoo! Of particular note are the various charts and visualization tools that help you track your resource usage and efficiency: These screenshots were captured from this demo video.

Related: