underwater iPod

March 24th, 2008

Looking for a way of going swimming/kayaking/windsurfing with your iPod? I can thoroughly recommend the H3 headphones and iPod Shuffle case, both made by H20 Audio.
Read the rest of this entry »

installing mysql5 with php5 on Ubuntu for Wordpress

December 20th, 2007

You need to install php5-mysql.

And then don’t forget to restart Apache. Just reloading won’t work.

2 essential rescue CDs…

December 17th, 2007

For when you need to resize the partition you usually work in

GParted LiveCD

And for when you’ve muffed up your grub installation, and can’t work out how to use grub-install

Super Grub Disk

“AttributeError: ‘module’ object has no attribute ‘blah’”

December 12th, 2007
  • The obvious cause of this is that the settings.py doesn’t have the directory containing blah listed in INSTALLED_APPS.
  • A less obvious cause: you’ll also get this error if the directory doesn’t contain a file __init__.py.

Where to put Audacity plug-ins?

December 3rd, 2007

The Audacity documentation isn’t exactly clear on this… Trial and error led me to the right answer - copy the plug-ins directory from the installation .dmg to Applications/Audacity.app/Contents/MacOS i.e. the same directory as the executable.

Minimal Ubuntu install

December 3rd, 2007

From http ://ubuntuforums.org/showthread.php?t=207847,

$ sudo aptitude install x-window-system-core gnome-core gdm firefox synaptic xubuntu-system-tools gnome-app-install

OSX compilation problem

November 16th, 2007

/usr/bin/ld: /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit load command 20 unknown cmd field

You get this if you’ve upgraded the version of OSX without upgrading the Developer Tools (the Xcode tools).

Bash: test for undefined variable

August 1st, 2007

echo -n “myvar=${myvar:-notset}”

If myvar is null or unset then it will be set to “notset”.


resizing a grid after change

July 3rd, 2007

you’ve got to resize the parent e.g.

grid->GetParent()->Layout();
and then to be sure, run Layout on the top window

Fdisk /MBR in Windows XP

June 17th, 2007

Windows XP doesn’t provide Fdisk, but I’ve done an equivalent operation to FDISK /MBR like this:

Configured the Recovery console for automatic administrator login - this was important because there seems to be a bug which requires an admin password to be entered, even when the system doesn’t have one.

http://support.microsoft.com/kb/312149/Then boot up from the Windows XP setup CD, and I chose the ‘R’ Recovery option.

Once in, I ran FIXMBR.

And the PC boots again…