verse 19: Therefore, lift up your heads, and rejoice, and put your trust in God...
This is a great verse to remember when you're having a rough time.
Lift up your head - To me that means don't wallow in your troubles. Don't spend your time dwelling on what has gone wrong or how you wish things could be.
Rejoice - Think of all the wonderful things you have in your life. Focus on your blessings and things that are good. Be grateful for the presence of God and the gospel in your life.
Put your trust in God - Turn your troubles over to God and trust that He will help you find the way through. Pray and have faith. Do all that you can do. And then trust God to make things come out for the best... even if it's not what you would have chosen.