Author here. Thanks for posting!
Short summary: When I feel stifled at the computer, I step away and write down my thoughts in sentence form on paper, without filtering or editing. I find that this practice helps me in two ways. First, it forces me away from my computer so I can give all my attention to a particular problem. Second, I become more resilient to distractions by having a concrete paper trail to re-read.