Technical information on this site may be out of date : no updates since 2015

Why you should Hack Drupal Core

December 1, 2008 , posted under drupal

OK - so I’m a heretic.

This is absolutely against the accepted Drupal Dogma.

What’s great about Drupal is that you can achieve most things without hacking the core codebase; this means that every Drupal installation has the same base and any good developer who knows Drupal can take over the site.

Read More…

Kdesvn and Kompare

December 1, 2008 , posted under linux svn kde

Kdesvn and Kompare are two very nice tools providing rich GUI’s for svn and file comparison respectively.

In order to show the difference between two revisions using Kompare, change the default external diff settings to:

Read More…

Handy one-liners

November 22, 2008 , posted under linux programming perl

While creating websites I often find the need to manipulate files in all sorts of ad-hoc ways.

Things that are hard to do by hand, but you don’t want to write a whole program for - you’ll just use it once and throw it away.

Read More…

Drupal file_copy won't work outside of the Drupal install

November 11, 2008 , posted under php drupal

The selected file could not be uploaded, because the destination is not properly configured

This “feature” has bitten me before. It’s one of those annoying Drupal things which would be fine if the error message wasn’t so misleading.

What’s happening is that file_copy() calls file_create_path()

Read More…

IE6 on VirtualBox - installing the network driver

November 2, 2008 , posted under testing linux ubuntu web development virtualbox

One of the trial of web development is ensuring that your site works across a range of browsers.

Standards compliance is an important part of this - but testing cannot be avoided.

I work on Ubuntu, and use VirtualBox together with a licensed copy of Windows XP to test in a Windows environment, which also allows me to at least test the Windows version of Safari.

Read More…

svnversion

October 16, 2008 , posted under programming svn

I just discovered a nifty little utility

Often working copies are only partially updated, this command gives a very quick command-line summary of the state of the working copy.

It’s not as rich an output as kdesvn which will colour code all the updateable files, but its a standard part of svn so should always be available.

Read More…