Articles

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


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?

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 -...

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...

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...

PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0 Fix

July 2, 2010

When I upgraded my desktop to Ubuntu 10.04 (Lucid Lynx) I also upgraded my PHP version to 5.3. Apart from a few warnings with some deprecated functions (the main cuplrit being the ereg functions) all...

IDE Tip: Mouse-wheel on Netbeans tabbed pane

March 3, 2010

If you have a lot of files open and they don't all fit in the Netbeans tabbed pane you can scroll them left/right when using your mouse wheel when you move the mouse over the tabs.