Problems are solved by sleeping
news.bbc.co.uk
news.bbc.co.uk
However, I once solved a difficult code generation problem on a compiler project I was working on while sleeping. This is seriously not recommended.
you know I think it is weird cause sometimes I wake up and I am clueless as to whether something happened in a dream or real life.
I gota say I love dreams, I mean you can get shot in them, feel what it is like and all, and still be alive when you wake up!
But having an answer from a dream seems super cool. What's more cool is that you remembered what the solution was when you woke up!
As far as I know I did not solve any programming problem with this dream though.
It was not exactly restful sleep. Not sure it was really sleep, I would say.
Richards has stated that the "Satisfaction" riff came to him in his sleep; he woke up just long enough to record it on a cassette player by his bed.
Source: http://en.wikipedia.org/wiki/Keith_Richards#cite_ref-booth-k...