How do you fight procrastination?
leif: This is sort of a technical solution, but as long as I'm working on something that doesn't need a browser for reference (so, C programming, where I can look up manpages), I just kill X and do my work on ttys.  It helps you focus on only one thing at a time.