Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
cursee20147169dEating properly and tiring your body physically help with sleeping for me.
helloworld9354169dIt’s about conditioning your body in to a routine and sticking to it. If you have to go in to the office at set time. work out your day and set times for bed in the schedule giving you a good 8hrs. STICK TO IT. You will be cured.
Quirinus591169d^What they said. Schedule pre-sleep and sleep time and stick with it. Tiring the body helps as well, but isn't necessay.
Reducing lights like an hour before sleep time helps a lot. Get a small lamp and turn off the main light, hide the lamp behind something so you don't get direct light. Do not watch TV. Avoid using the computer, but if you really have to use it, get f.lux.
Don't do really engaging stuff before sleep, like playing games. Read a book in your bed, it's fun, slow and relaxing. You won't manage to read many pages before falling asleep. Reading it also keeps you from thinking before sleeping, which can be a problem for some people, and keep them awake.
Eating something before sleep helps to fall asleep, but isn't too healthy. Of course, avoid sugary substances, as they wake you up.
Worked like a charm for me.
bittersweet34940169dI have tried all of the above for the last 3 decades, has never worked for me. From fitness to warm milk, from super strict rhythms and diet to sleeping pills, from meditation to melatonin.
I just fall asleep at 3am on some days, 10pm on others, and Scrum has been my savior.
Tasks which require me to do something in the next 30m are quite rare (only critical bugs), because sprints are 14 days.
Even when I'm required to be in the office for a meeting at 1pm, I don't have to be super sharp — I can take a nap afterwards, and work from 4pm to 11pm, or whatever feels right and makes me successfully complete the two-week sprint.
heyheni17768169dSo you work 2 x 8.5 hours a day? 😳
AmyShackles1938169dWatch Bob Ross before bed. At least that’s how I reliably tuckered out at an appropriate time when I was having a bad bout of insomnia.
hash-table4422169dI have tried everything as well. The insomnia isn't something new, I had it since I was a child. Even before I can remember my mom has always said I kept odd hours (and kept her up most of night as well).
So unfortunately, I don't think there is an easy cure.
I mean I was really embarrassed the time it took to write this script. Mainly the issue was the sku's on the site are different than the sku's on the csv, but do contain alphanumeric of each (substr) but i cannot just use strpos() because smaller sku's match multiple times, thus I get incorrect matches.
So I had to come up with an algorithm to match perfectly while taking some alphanum out of one sku and some out of other, but not all the time. anyways, after sleep it was really easy, after being up +16 hours not so much.
hash-table4422168dUgh.. just caught up on my sleep this weekend. Woke up about 11am yesterday. Decided i was going to ensure i stayed up no naps so i could sleep tonight, 1:30am and wide awake still. Going to be a long day.
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job