A collection of articles and snippets I've collected over the years.

Test SMTP with a dummy server in Python

October 13, 2011

Here's how to test SMTP with a dummy server in python

Viewing the PHP APC cache in Ubuntu 10.10

October 11, 2011

APC is a great tool for caching in PHP and once installed it is very easy to use. However, what do you do about viewing the PHP APC cache in Ubuntu? Well, there is a fantastic PHP page provided by...

What I want from an IM Client

October 5, 2011

Here's the list of features I need from an IM Client.

Debugging your vimrc

August 12, 2011

I made some changes to my ~/.vimrc file that didn't seem to work and so I needed to see what was happening when vim loaded my ~/.vimrc file.

Do PHP objects use getters and setters internally?

July 26, 2011

I just came across something that made me wonder wether a PHP object uses the magic __get() and __set() methods inside the object itself.  I wrote the following code to test:...

10 Skills A Web Developer Needs To Have

June 14, 2011

Knowing a programming language just isn't enough these days to be a full time Web Developer. Here are ten other skills required to 'do the job'.

Howto: Disable php processing in wordpress upload folder.

May 18, 2011

If you host a WordPress site and have enabled writeable permissions on any of the folders it is recommended that you Disable php processing in wordpress upload folders. If you are running Apache you...

Howto: Get the IP address of a domain in a one liner

May 12, 2011

I have a need in a bash shell to get the public ipaddress of a domain name.  Here's how to achieve it: Cool huh?

Important cron gotcha: Cron not being updated.

May 12, 2011

I was recently caught out by a crontab running even after I had edited the crontab and commented out the line. I used VIM and edited the file followed by a <code>:w</code> command but the cron was...

Subversion TortoiseSVN menu in Ubuntu Nautilus

May 12, 2011

Windows developers using Subversion generally use TortoiseSVN to administer their repositories and when moving to Ubuntu Linux they find using the CLI (Command Line, Terminal, black box -...

Netbeans 7.0 Released

April 26, 2011

After what feels like a year Netbeans 7.0 is finally released. NetBeans IDE 7.0 introduces language support for development to the proposed Java SE 7 specification with the JDK 7 developer preview....

Hack to play minesweeper on Amazon Kindle

January 5, 2011

Did you know that you can use your Amazon Kindle to play a minesweeper game?

Amazon Kindle white screen of death issue (and how to fix it)

December 31, 2010

Whilst the Kindle is an excellent device, I have experienced a blank 'white screen of death'. Here's how to solve it.

Tutorial: Setting up Varnish with Apache.

December 24, 2010

Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. In contrast to other HTTP accelerators, such as Squid, which began life as a client-side cache, or Apache, which is...

Portsmouth Tilt Shifted

September 20, 2010

Here's a picture of the dockyard at Portsmouth I took from the top of Spinnaker Tower.  I've experimented with tilt shifting and think the result is pretty good.

Constraining resizable textareas

July 16, 2010

The new crop of web browsers such as Safari, Chrome(ium) and Firefox 4 allow the user to resize textareas by using a handle at the bottom right.   It is possible to restrict the size that the user...