I can remember as far back as Junior high, comforting myself in the face of bad situations with, "At least I'll get a song out of it." Over the years I've run into a few circumstances in life where that approach wasn't even close to being a consoling trade-off. But there's almost always a way to take a calamity and use it for some positive purpose. One method I've found helpful is Tonglen. It's a meditative practice that helps you rise above your personal struggle, see it in the context of the suffering of countless other people, and turn your mind and heart to love and compassion.