Found a great program the other day, named Caffeine, that will prevent your Mac from going to sleep, or dimming the screen. With a single click of the mouse, it will toggle sleeping on and off, without having to go through the whole System Preference pane! Sweet!

Caffeine logo