Blog

Local WordPress development with a better wp-config.php

by

Responsible developers don’t work live. Working on a local copy of a site and only pushing it live when it’s ready is one of those sensible development practices that everyone should follow, but it can introduce some hitches when working with WordPress. Luckily, wp-config.php is the one core file that’s never overwritten by a WordPress update, so it’s safe to rewrite it to be a bit more useful. The wp-config.php file is generated from wp-config-sample.php by the WordPress install script and anyone who’s worked with WordPress will be familiar with the contents so I won’t list them in full, but you can view the default contents of wp-config-sample.php in the WordPress SVN repository.

Continue reading →

Posted in WordPress | Leave a comment

Load JQuery from Google’s CDN with local fallback in WordPress

by

The advantages of loading scripts from Google’s CDN are fairly obvious – for a common script such as jQuery, we’re on to a better-than-even chance that the user will already have the script in their browser’s cache from other sites, reducing the total download weight of your site. Even if they don’t, the file will be downloaded from their nearest Google CDN server, which will still be faster than downloading it from your site because it will be downloading in parallel from a different host.

Continue reading →

Posted in WordPress | Tagged , , , | Leave a comment

Setting up the Perfect Web Development Environment, Part 2

by

In Part 1 of this guide, we covered how to set up a portable development environment with the basic set of software tools (a web stack, an IDE and a good text editor). Continuing on, we’ll create a project and make it portable. The instructions given are specific to Netbeans because that’s what we set up in Part 1, but can be easily adapted to your IDE of choice. Once again, you’ll need to follow the first part of this guide on both desktop and laptop.

Continue reading →

Posted in Code | Tagged , , , , | 2 Comments

Setting up the Perfect Web Development Environment, Part 1

by

Inspired by Elliot Jay Stocks’ recent posts on his iMac plus Air setup, I thought I’d document how to set up a seamless development environment between desktop and laptop. If you intend to set up a similar environment, you’ll need to perform these steps identically on both machines. Part 2 of this series will deal with the basics of setting up a portable project, and Part 3 will cover setting up advanced tools and source control.

Continue reading →

Posted in Code | Tagged , , , , , | Leave a comment

Adaptive Content (with a dash of jQuery)

by

Aral Balkan posted the following snippet on Twitter just now:

<span>u</span><span class="hideIf320">ser e</span><span class="capIf320">x</span><span class="hideIf320">perience</span> HTML

followed by the explanation:

Continue reading →

Posted in Code | Tagged , , | 4 Comments

April Fool’s Day, 2011: best of the web

by

A collection of some of the best April Fool’s Day pranks I’ve seen this year.

Posted in Uncategorized | Tagged | Leave a comment

On Responsive Design, Grids and the Golden Canon of Web Page Construction

by

Before I start, let’s get some stuff out of the way: I’m no Khoi Vinh. Neither am I an Ethan Marcotte or a Jeremy Keith. I’m not a published writer on the subject of grid theory, or a speaker on the conference circuit. However, this is the Internet, where everybody has an opinion – and this is mine. This post was inspired by Mark Boulton’s post on designing from the content out, which I subsequently failed to discuss with him in 140 characters.

Continue reading →

Posted in Design | Tagged , , , , | Leave a comment