Sometimes when this happens, I try to think of the worst -
What would happen if I lost my job?
What would happen if I were to die tonight?
Sometimes it helps to realize that nothing much really, I mean really, matters - ideology, opinion, software, even my own life.
Sometimes, 'Pearls before Swine' helps to put things in perspective! [1]