Staying in front of the computer (for IRC, Unreal och PerlMonks etc.) doesn't work for me when I'm stuck. And I'm usually too obsessed to tear myself away from my workplace. So for me that means that I solve most problems on my way home from work or possibly while taking a shower in the morning (a lot of great solutions have seen the light of day in that shower).
Also, I try to cut down on the coffee. It makes you feel focused, yes, but it also makes you narrow.
Cheers,
-- moodster