My notes and stuff

These are useful bits and pieces I've found over the internet. Few of them are mine - I've just whacked them here so I can find them easily, and maybe others will find them useful...

Setting up a development environment on OSX

Setting up a development environment on OSX, with PHP, MySQL, Apache, Subversion and Eclipse.

OSX Command line

A collection of useful commands.

Midnight Commander

Tip and tricks for using midnight commander in OS X

Setting up virtual hosts on OSX

How to set up a virtual host on OSX running apache.

Drupal clean URLs on OS X

How to get Drupal's clean URLs working on OS X

Node form redirect in Drupal 6

The usual way to redirect a form in Drupal is to set:
$form['#redirect'] = url
However now Drupal 6 uses the form API for node delete, using this code on a node form will prevent you from deleting nodes: the form will redirect before you reach the delete confirmation page. An easy work around is to define a hidden field in the form called destination, with the redirect URL as the value.
$form['destination'] = array(
'#type' => 'hidden',
'#value' => url,
);