To remain optimistic, you must control and discipline your thinking, when things go wrong refuse to feel sorry for yourself. Remember you are not a “victim”. You are an adult and in charge of your own life.
Be careful of your thoughts, for your thoughts becomes your words. The thoughts and actions we do habitually through time determines our destiny. If you think negative thoughts, you will be filled with judgments towards yourself and other people. However if you think positive thoughts and take positive actions toward your goals, your destiny can be joyful and uplifting with moments of gleefulness. People will want to be around you because of your positive thinking. You are doing what you have freely chosen to.