Sometimes I try to get my mind off things by watching anime. Other times by playing a video game. I always try to find something to watch on TV so I can focus on that.
Sometimes if you watch sports (currently I've been watching World Cup Soccer and College World Series) you get into it and can't stop watching it, therefore pushing all other thoughts away.
If my computer is being stupid... mostly I just try to relax and calmly find other things to do like the stuff I mentioned above. Watching movies can sometimes help as well.