News for hackers. Stuff that matters.
Re:Waking up at 5am to code by tomkarlo on Monday January 23, 2012 @08:58AM (#3500330)
The caffeine is a vicious cycle (I've been there.) When you're short on sleep, you need it to get through the day, but the side effect is you end up staying up later than you need to. Also, if you want to get to sleep, avoid screens (TV, computer) for the last hour or two before bedtime and you'll find it's a lot easier (E-ink readers like the Kindle are great for this.) It's hard to switch gears from the stimulation of TV or a game and go to sleep unless you're already overtired.

A lot of this also depends on age, I suspect... I used to be a 1AM-type person in my 20s but as I've grown older, I find I naturally wake up at 7 AM or so anyway. By 11pm or so, I'm geting pretty useless. My sense is this happens to lots of folks as they get into their mid-30s, even if they don't have kids.

Re:Waking up at 5am to code by jonstjohn on Monday January 23, 2012 @02:44PM (#3501783)
I was a serious coffee drinker that switched to black tea and finally down to green tea. I've found (and read) that small doses of caffeine are much better for concentration and productivity. I generally have 2-3 cups of green tea a day, get a slight boost in mental alertness, but never get the 'crater' effect of over-consumption. Bonus: I never wake up craving caffeine or needing that first of the morning jolt to become coherent.
Re:Waking up at 5am to code by BCM43 on Monday January 23, 2012 @10:29AM (#3500632)
Also, if you want to get to sleep, avoid screens (TV, computer) for the last hour or two before bedtime and you'll find it's a lot easier

Is there evidence for this? I've heard it's true, and it seems to be from my personal experience, but I've never seen any kind of a study of it.

Re:Waking up at 5am to code by chrisdroukas on Monday January 23, 2012 @11:14AM (#3500838)
I'm not sure about the two hour timespan, but brightness appears to have an effect on sleep latency and the time it takes to fall asleep.

Studies [edit: PDFs]: [1] http://www.journalsleep.org/Articles/250312.pdf

[2] http://www.sciencesleep.org/ziliao/Effects%20of%20playing%20...

[3] http://onlinelibrary.wiley.com/doi/10.1111/j.1365-2869.2005....

Re:Waking up at 5am to code by polyfractal on Monday January 23, 2012 @11:49AM (#3501026)
Definitely install F.lux: http://stereopsis.com/flux/

It adjusts the color temperature of your monitor as the sun goes down. As the sun sets, your monitor becomes more red/pink. It takes a little while to get used to it, but I absolutely cannot stand normal monitors at night time now. When I occasionally disable F.lux to watch a movie at night, I'm blinded by the bright blue glow.

Re:Waking up at 5am to code by derekp7 on Monday January 23, 2012 @01:45PM (#3501529)
I've recently done this, and it helps when I'm on-call and get woke up in the night. I can now fall back asleep faster. Another item that helped, I've put oil lanterns up on the walls in my home office. I just got to remember to light them instead of flipping on a light switch, and all is good.
Re:Waking up at 5am to code by bitops on Monday January 23, 2012 @11:11PM (#3503419)
That's a nice touch I hadn't thought of. Any ones you like in particular?
Re:Waking up at 5am to code by derekp7 on Wednesday January 25, 2012 @09:11AM (#3509734)
I picked up a couple of generic ones, I think they are made by Lamplight Farms. They include a bracket that hangs on the wall with a reflector plate. Other than the wall mount, most of the oil lamps are about the same (that is, the ones in the $5 - $20 range). Of course, I picked up these ones about 10 years ago, and I can't find this particular model any more. I can only find the table top ones (could probably put it on a shelf, with a mirror behind it for better effect).

You can use either lamp oil or kerosene in most of them, the lamp oil doesn't stink as bad (and if you get the "ultra pure" oil, there is hardly any smell at all). Also, last time I had a power outage I was able to keep the flame lit (on a pilot light height) through the night with hardly any oil used (and it made a nice night light -- don't know how safe it is though).

Re:Waking up at 5am to code by Create on Tuesday January 24, 2012 @06:09AM (#3504254)
for linux: redshift is packaged for most distros.

https://launchpad.net/redshift

Re:Waking up at 5am to code by jamie_ca on Monday January 23, 2012 @12:48PM (#3501295)
There are some citations on the f.lux website: http://stereopsis.com/flux/research.html

Anecdotally, when I initially switched to using f.lux on my desktop (reduces blue light levels at night) it's become a lot easier to drift off despite sitting in front of the screen until ~15 mins before bed.