Posted on Leave a comment

I stole my wife’s dream

I woke up having my wife’s dream waking up having my wife’s dream waking up having my wife’s dream. She did this the other night and it is both disturbing and cool. After coding during the wee hours I took a nap and dreamed that I woke up and went back to coding and after a little work I really woke up to realize I had been dreaming about work then I closed my eyes drifting back to sleep to have the same dream. I repeated this cycle about 4 times.

I feel very sleep deprived.

Posted on Leave a comment

I dream solutions to my problems

At 3am, I was pounding my head on my keyboard with this bizarre problem. The PHP code I had written was reading the XML data from the XML file but for some inexplicable reason was breaking one of the nodes in half. If it was supposed to read "the quick brown fox jumped over the lazy dog" it would instead create two nodes such as "the quick brown" and "fox jumped over the lazy dog". Maddening! So I slept. And in 5 minutes this morning, I solved the problem. I still wish I could take a pill instead of sleeping.

Update: The correction to the problem was to read the whole file instead of reading it in 4096 chunks.