Concentrate on work when you have personal problems..
adaptives: I will share something which worked for me...Take life one hour at a time... or one short goal at a time. So before leaving from home for work, I would have one goal - "I need to get to work in 45 mins", that's it, no more thought about anything else.Once at work, I would have this short goal "I need to check my mail in the next 30 mins", then "I need to work on this bug or feature for the next hour"... and so on.This kept me on track without letting my mind get caught up in the problems, and become numb.I also took 1 hour vacations... where I would go on an hour long drive to some nice place away from the city, and listen to music. It helped me refresh my spirits.HTH.