Keep a journal. Write in it to vent about the good, bad and ugly, but don't wait till before you go to bed to do this, do it when you wake up in the morning, or when you get home from work.
No matter what the situation is, take a deep breath and close your eyes before getting upset, and think about the blessings and good things that you have in your life. Think of it this way, you have family, and friends, you have a roof over your head, food to eat and a job. Maybe you don't have some of these things, but these are examples. Think of the good things in your life. The things in your life that mean the most to you and that you cherish.
Remember, this is just a stepping stone. Tell yourself that it will be okay, because it will, things always get better and problems always have a way of working themselves out. Don't let your problems take over your life, this is how you become unhappy. You are only giving into unhappiness by letting your problems consume you.
Have faith. Ask God for help, talk to God. I find that talking to God helps me get a lot of worry off my chest. If you trust in the lord, than you know that he will protect you and that he has good things planned for you, not plans to hurt you. Also, remember, this is just a test from God. God, uses bad situations a lot of times to bring us closer to him, this is why talking to him helps so much. Maybe even talk to someone you feel comfortable with at your church.
Talk to a loved one or best friend about what you are thinking and feeling. Don't be afraid to ask for help and advice. They are there for you when you need them, just like you are there for them when you need them.
Get active. Get your mind off of whats bothering you in life and giving you trouble. Go to the beach and enjoy the sunshine. I think that sunshine really helps. Go for a walk and breath in the fresh air and be thankful that you have that fresh air to breath. Admire the beauty of nature. The birds, the trees, the sun, the air. There is beauty in it all if you just look.