3 years ago I could no longer fall asleep before 5am and it was severely affecting my ability to concentrate, which as a software engineer is a death knell. Like most, I internalize my problems, exacerbating my frustration, worsening sleep, and creating a negative feedback loop.<p>Today, I sleep like a baby, and it's INCREDIBLY EASY to fix. Follow these steps, and you'll never have difficulty falling asleep again:<p>1. Melatonin [1]<p>Melatonin is how your body knows when it's time to go to sleep. It's produced naturally, but with DSPD (Delayed Sleep Phase Disorder), by definition it occurs later than it should. Taking melatonin an hour before you go to sleep is like a hard reset. I can't overstate this enough. It doesn't matter how much blue light or caffeine you've taken (for the most part) during the day, or how stressed you are, if you take 9mg of melatonin, you'll fall asleep in an hour. Period. Eventually, with some of the below, you can achieve the same affect with 1mg, and once you establish a regular schedule you'll no longer require it at all.<p>2. Wake Light [2]<p>A natural sun alarm clock. If you get enough sleep (easy once the melatonin ensures you fall asleep on time), waking up to one of these is a breeze (and a joy).<p>3. Avoid Blue Light<p>Same thing as the article states, avoid it. Computers, iPhone, etc...<p>4. Cold shower [3]<p>It drops your body temperature and moves your blood away from your prefrontal cortex to your core alleviating your mind from racing.<p>5. Earplugs [4,5]<p>My dogs feat clitter clatter across our hard wood floors. My wife wakes up before me. Our house creeks. etc.... Occasionally I also use an eye cover, but it's less impactful.<p>6. Socks & t-shirt [6]<p>They help regulate body temperature.<p>7. Obey Your Sleep Cycles [7]<p>Our bodies have natural sleep cycles (90m for the first, ~110m for the 2-3rd). When my alarm clock goes off, and I still feel sleepy, I roll over with my eyes facing my wake light and effectively snooze until I feel awake. Eventually the combination of white light and the conclusion of my sleep cycle, leave me feeling awake and alert.<p>8. Sleep alarm<p>In my experience, it's been more important for me to set an alarm at night (9:45) to start getting ready for bed, than to set one in the morning. Having a regular sleep schedule allows you to work <i>with</i> your body instead of against it. If you're having trouble sleeping, or you anticipate having trouble, take melatonin until your body starts to adapt to your new schedule and it's no longer necessary.<p>9. Relax<p>1 hour before your sleep alarm you should be doing something relaxing. It won't matter if when your sleep alarm goes off, you're running around busily doing things. I make sure I'm doing something relaxing like watching TV or reading a book in bed for at least an hour before my sleep alarm goes off.<p>10. iPhone Wakeup<p>One thing that helps wake me up on those difficult mornings is to crank the brightness on my iPhone and sit and read a few articles. The white light naturally tells my body it's time to start the day, and eventually I don't mind waking up.<p>Life is so much better now that I can count on fantastic sleep every night!<p>[1] <a href="http://www.webmd.com/sleep-disorders/tc/melatonin-overview" rel="nofollow">http://www.webmd.com/sleep-disorders/tc/melatonin-overview</a><p>[2] <a href="http://www.amazon.com/Philips-Hf3470-Wake-up-Light-White/dp/B003XN4RIC/" rel="nofollow">http://www.amazon.com/Philips-Hf3470-Wake-up-Light-White/dp/...</a><p>[3] <a href="https://www.google.com/search?q=cold+shower+before+sleeping" rel="nofollow">https://www.google.com/search?q=cold+shower+before+sleeping</a><p>[4] <a href="http://www.amazon.com/gp/product/B0068HC0X4/ref=oh_details_o03_s00_i00" rel="nofollow">http://www.amazon.com/gp/product/B0068HC0X4/ref=oh_details_o...</a><p>[5] <a href="http://www.amazon.com/gp/product/B000H7MMP2/ref=oh_details_o04_s00_i00" rel="nofollow">http://www.amazon.com/gp/product/B000H7MMP2/ref=oh_details_o...</a><p>[6] <a href="http://lifehacker.com/wear-socks-to-fall-asleep-easily-476550620" rel="nofollow">http://lifehacker.com/wear-socks-to-fall-asleep-easily-47655...</a><p>[7] <a href="http://en.wikipedia.org/wiki/Sleep#cite_ref-17" rel="nofollow">http://en.wikipedia.org/wiki/Sleep#cite_ref-17</a>