From Henri Nouwen's The Genesee Diary:

Moods are worth attention. I am discovering during these first weeks in Genesee that I am subject to very different moods, often changing very quickly. Feelings of a depressive fatigue, of low self-esteem, of boredom, feelings also of anger, irritation, and direct hostility, and feelings of gratitude, joy, and excitement—they all can be there, sometimes even during one day. 

I have the feeling that these quickly changing moods show how attached I really am to the many things given to me: a friendly gesture, pleasant work, a word of praise, a good book, etc. Little things can quickly change sadness into joy, disgust into contentment, and anger into understanding or compassion.

Somewhere during these weeks I read that sadness is the result of attachment. Detached people are not the easy victims of good or bad events in their surroundings and can experience a certain sense of equilibrium. I have the feeling that this is an important realization for me. When my manual work does not interest me, I become bored, then quickly irritated and sometimes even angry, telling myself that I am wasting my time. When I read a book that fascinates me, I become so involved that the time runs fast, people seem friendly, my stay here worthwhile, and everything one big happy event.

Nouwen often puts into words the inarticulate and confused murmurings of my heart. This is so helpful for me right now.

So what is the good way? To cultivate an attachment to what is real, substantive, transcendent, holy.