Try chewing some gum. Popping is caused by the pressure difference inside your ear and outside of the ear, and if you chew gum you are constantly depressurizing your ears to the ambient pressure and your ears won't pop.
You could easily prevent the pooping of the ears and the pressure caused by air when you are flying or are travelling up on the mountain with the help of putting cotton soaked with a drop of mustard oil into your both the ears.