Comment Two things that help me (Score 1) 601
Remove the browser icon from your desktop - make sure you can't just do a quick twitch to your favorite distraction.
Play loud, repetitive music through wired headphones. This cuts distractions, gives you something to do during compiles, and tethers you to your desk all at once. I'm partial to Philip Glass and VNV Nation.