Linux Tips

Below are tips that I’ve used throughout the years to get shit done on the command line. Every geek (apart from the fake ones who deploy on Windows) uses the shell every day; some of these tips I use every day, some only occasionally… anyway it’s my list of “things to remember”. Swan Dive.

Some of the commands below may require additional software that doesn’t come with your default server installation.

Disclaimer: if you’re stupid enough to do any of the below, don’t blame me.

(more…)

Introducing Traffic

Traffic is a routing library for PHP 5.3 and above.

I created traffic to take the pain out of mapping incoming requests to your site to code that does whatever you need it to do. Most existing solutions, like the atrocious Zend_Controller_Router_Rewrite whatever assume that you want to map requests to method on a class, with enough magic mixed in to be a pain in the arse.

With Traffic, I’ve taken the approach that you should be in charge of how you organise your code. All Traffic does is the matching, and leaves the rest up to you. if you’re a framework monkey with an incessant need for hand holding, then move on, coz I’m not gonna tell you how to structure your app or anything like that.

Traffic is inspired by Sinatra & Sammy JS without pretending that it’s not PHP.

(more…)

Unblock The Tubes

Most websites built today use JavaScript. It is an essential building block of the web along with HTML & CSS. However, when it comes to performance JavaScript has one problem… it Blocks The Tubes™!

When CSS and images are included in your HTML, they are loaded asynchronously. This is not the case with JavaScript. When a JavaScript file is loaded, no other resources will be downloaded.

(more…)

Time to make a change

Two weeks ago I met with my boss at A7 Creative to let him know that I was planning to leave as of 18th December. Although I’ve enjoyed myself at A7, with the diversity of work and the flexibility that they’ve offered me, there are a few reasons that I have now chosen to freelance.

Firstly, there’s the new addition to the family that is coming along right around the corner. To make it work, I’m just gonna have to have complete control over how & when I work, more than I would be willing to ask of any employer.

(more…)