Life is uncertain. Though you may strive for the best conditions to live in, certain things can throw you off route and put you in undesirable situations unexpectedly. What would you do if you become trapped in a situation that you do not want to be in? What if you lost someone you did things with everyday, lost your job, get putted down by an illness or end up in prison. You may not like the new circumstances but you have to survive in it. Here is my advice for coping and being happy in any situation that comes your way.
One of the very first things you should do when your life changes unexpectedly is humble yourself. You have to accept the fact that you're not in total control of life. You're a subject of existence that have very limited power for influencing the turning out of events. Human life is characterized by imperfections. Mishaps and misfortunes are bound to happen. Keeping this in mind will give you the strength you need to accept an unexpected change in your life and continue living to the best of your ability.
Secondly if there is any possibility of working to bring things back the way they were then commit yourself to making that happen everyday that you wake up. This may involve finding a replacement for whatever you've lost. In such case the key is to be resilient and pick yourself back up as soon as possible.
In the event that you cannot immediately rebound you should adopt to your new circumstances by finding any possible activities to do that'll keep you occupied. The key in a situation like this is to create routines and find things to engage with that'll keep you both mentally and physically active. This will allow you to gradually get thoughts of your previous life out of your mind and blend in with the new possibilities. Even though some of the things you're able to do may appear boring, weak or degrading you'll soon start finding them interesting and fun after repetitively performing them overtime.
What you need to avoid is refusing to take immediate action to rebound or adopt whenever an undesirable situation come your way. It'll be foolish to only seat around and accept grief. You should also maintain an optimistic outlook and keep your faith at all times. Remember this is life and falling is a part of living.