Exporting your path in Mac OS X

On regular Unix systems, you’d do

export PATH=$(PATH):/usr/local/mysql/bin

when adding the mysql programs to your path (exporting the environment variable PATH).

On Mac OS X (Leopard), you have to add /usr/local/mysql/bin to the file /etc/paths (edit it as root). Restarting Terminal is enough, no reboot needed.

DJ For Life

Zaterdagnamiddag ben ik voor het goede doel een uurtje muziekjes achter mekaar gaan spelen in het Gentse. Dat was op een boot. Boven de kantoren van een nieuwsdienst. Voor het goede doel. Voor deze actie.

Sir Lobster draaide voor mij een superjazzy setje, echt wel hip! Rond 16h was het mijn toer om een uurtje lawijt door te boxen te jagen, and boy did I do that (na eerst een track van Grace Jones gespeeld te hebben, disco als overgang werkt altijd)! Onderwijl kwam OrT van de Freejays zijn oor eens te luisteren leggen, w00t! Anyway, people started to dance on this song, and they kept on doing that for at the least the remaining part of my set!

Daarna kwam Latomski, en amai, die kerel zijn DJ-kunsten zijn straf! Check him out!

Sir Lobster aan het werk.

Sir Lobster aan het werk.

Mijn set-up.

Mijn set-up, people in the back doing a circle dance.

The Gimp on Mac OS X: need for double click

So I didn’t want to spend any cash on PhotoShop and installed The Gimp on my MacBook. Unfortunately, The Gimp runs in X11 and that gives one little but very annoying problem: everytime I change window (e.g.: from Tools to the picture window itself), I have to click twice to do the action I want: first to get focus on the window, and then to do the action I want to do.

This is the solution:

defaults write org.x.X11 wm_click_through -bool true

Enter it in a terminal, and restart X11.

How to type special characters on a MacBook

So I recently bought me an aluminium MacBook with an azerty keyboard. As I’ll be trying to program some stuff on it too, it might be handy to know how to type the pipe, backslash and squared brackets. Here’s how:

  • Shift + alt + L gives the pipe |
  • Shift + alt + / gives the backslash \
  • Shift + alt + ( gives the left bracket [
  • Shift + alt + ) gives the right bracket ].

With big thanks to InfoPython!

Update 12 Nov: Alt + n gives the tilde ~.