Are you an optimist or a pessimist? Do you walk around in a constant state of discontent? Here’s the secret to fixing that.