A balanced mind

Undisturbed calmness and clarity is attained by cultivating openness, compassion, delight and equanimity in all circumstances.
The yoga sutras of Patanjali, 1-33

Those familiar with Buddhism will no doubt have recognised in this sutra the Brahma-viharas, the sublime attitudes (also known as the four immeasurables) and Patanjali, like Master Gautama, clearly states that these qualities have to be cultivated through practice.
The first attitude to cultivate is an open heart that welcomes all that life brings its way with kindness (Maitri, or Metta in Pali). This can be cultivated through the well known Buddhist practice of Metta Bhavana.
When that open heart meets suffering (which it inevitably will, that the first of the four noble truth), it doesn't shrink or try to push it away, but remains open and hold the pain with kindness. This is compassion (karuna).
When that open heart meets beauty and joy, it delights in it without trying to cling to it. This is Mudita.
Ultimately, these practices culminate in the development of a balanced mind that can be touched by the worse suffering as well as the most sublime joy without being moved by either. This is equanimity (upeksa), which in Buddhism is both the last of the ten paramis (perfections) and the last of the seven factors of awakening.
But this will be the subject of an other post...