I have found the Pomodoro Technique ( http://en.wikipedia.org/wiki/Pomodoro_Technique ) to be helpful. I can't do it for a whole day, but a short sprint to grind through something is a near, achievable goal. For extended, head-banging frustrations, it's helpful to step away, think about it without the distraction of the screen, and coming back at it with fresh eyes. The time AFK is not to be underestimated: http://ww…
Sit to do computer work. Sit using a height-adjustable,
downward titling keyboard tray for the best work posture,
then every 20 minutes stand for 2 minutes AND MOVE. The absolute
time isn’t critical but about every 20-30 minutes take a posture
break and move for a couple of minutes. Simply standing is
insufficient. Movement is important to get blood circulation
through the muscles. And movement is FREE! Research shows that
you don’t need to do vigorous exercise (e.g. jumping jacks)
to get the benefits, just walking around is sufficient.
[1] http://ergo.human.cornell.edu/CUESitStand.html