See what is worth learning, and what is worth doing. Thus, you gain an understanding of what is vital, and what is not vital. You need to learn what is important and what is not important. You need to understand what will move you upwards and onwards, and what will hinder you from traveling the higher path.
Happiness is understanding that friendship is more precious than mere things, more precious than getting your own way, more precious than being in situations where true principles are not at stake.