In the hint about moving the dock to the top of the screen, the method of killing and restarting the dock was unnecessarily complicated.
Since 10.2 there's a much simpler way:
% killall DockOf course this works for all processes, not just the dock.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20021021060332939