Academia and professional work has exposed me to a few different programming paradigms: functional, logical, procedural and object-orientated. I usually get along fine with a new paradigm, starting off with […]
All-in-one cookie function
Users stumbling across jQuery may notice the API’s designed so a method’s behaviour varies depending on the number and type of arguments passed in a call (have a look at […]
The MacBook Pro’s not so bad…
Two years after moaning about my MacBook Pro I figure it’s time for an update: It’s not so bad… Thanks to various blog comments I managed to solve most of […]
Concatenating arrays in PHP
Just a quick post so I know where to look the next time I forget how to concatenate arrays in PHP. Use array_merge to concatenate two numerically-indexed arrays; not array_push […]
Refactoring vs Rewriting (preamble)
The say the path to recovery starts with admitting you have a problem. I wish our problem was code-rot, or a simple case of a good design gone horribly wrong […]
Google: Where art thou time conversion?
I love the fact you can use Google to perform basic calculations and conversions. Once you know your currency codes, currency conversion couldn’t be simpler: 100 USD in GBP And […]
Bloody hosting providers
Choosing a hosting provider can be a difficult process, especially when you’re on a budget. I’m heavily involved with ewelike, a product information and price-comparison site that we’re slowly improving […]
Getting git to work on OS X Tiger
If you haven’t heard of git yet, it’s quickly becoming the preferred version-control system for tons of open-source projects, including the twin suns of ruby on rails and prototype. In […]
PHP Session Management (grievance 2)
Sometimes PHP surprises you with an easy-to-use feature, like sessions. Sessions are quite easy to use in PHP. One call to @session_start(), and you have a magic global called $_SESSION […]
SVN log message encoding problem
It’s good practice to put useful commentary in the log message whenever you commit code to a repository. Today, I wrote a log message about centigrade and farenheit conversions, using […]