|
Exercise that makes you sweat at least a bit helps you sleep longer and better.
Or Netflix.
Or 10-hour long YouTube "videos" of falling rain might help. (Just audio with a black screen.) Make it quieter than you think. In the dead of night, everything seems louder. Works.
|
|
|
|
|
Been there done that - and it does not end well. In my case 10 years of 4 hour sleeps ended in hospital.
4 hours is _not_ normal. I'm not saying it's bad, just not normal. All the current research does indicate that it is also bad.
If you are sleeping 4 hours and always tired, you have a problem that needs addressing. Coding can be an obsession (burnt out or not) - solving the puzzle consumes the mind. Obsession is a form of angst that can cause the brain to wake up before it is fully rested.
In my case, I (mostly) solved the problem using the following;
1) Use the end of the day to 'unwind' - slow the brain down and quiet the conscious, forgo all drugs for this (particularly alcohol and tea/coffee).
2) Just prior to ending your work day consider one problem for the sub-conscious to work on. Then forget about it and go to step 1 (it is for sub conscious, not conscious mind).
3) Use all means possible to eliminate blue light during 'wind-down'. Close your dev system and physically relocate away from your work space (and leave your phone).
4) Using this regimen, after 12-14 hours work and 2-4 hrs wind-down, you should start to feel really tired. It may take a week or two to get in the zone.
Using this regimen I can assure 6-8 hours good sleep. Any time I let coding angst intrude it drops to 4-5. It has completely inverted my work schedule - now I get ~4 good hours work in before breakfast, ~4 good hours after breakfast and another ~4 generally solid but sometimes interrupted by life after lunch. By then I'm getting organized for the end of day 'un-wind'. No calls or work after dinner and if anyone asks me about work during that time, I'm unavailable and can't remember anyway.
Usually puts me in bed fast asleep ~9pm through 3-5am. If I wake up too early, I feel groggy and can't focus (burnt out). Basics, but often overlooked - make sure you are not too hot while asleep (most people are) and have a comfortable mattress.
Outside stimulants like caffeine or alcohol can screw this up for a week or more before I can get back in the zone.
Oh, and that sub-conscious problem; usually solved by the morning or at least moved along.
modified 2-Dec-21 10:01am.
|
|
|
|
|
Some latitude is to be expected when judging height (8)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Altitude ? don't know why
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
You are up tomorrow!
Does it help if I point out that ALTITUDE is an anagram of LATITUDE? The rest of it is just an anagram indicator.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I knew it was an anagram but thought it was too obvious for one of yours
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
It's a Monday, so I thought I'd start simple ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I was thinking of posting headroom as the answer
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Max? (8)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Stupid boy Pike
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
"Don't tell him Pike"
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
When I wrote my GFX library for IoT, I intended it to be cross platform, but due to the specs of most IoT devices being abysmal I haven't had a chance to use anything non-ESP32 since they just don't have RAM, program space or CPU to do anything significant.
However, I've been looking at shifting my focus away from the ESP32 to the ARM line of offerings for a number of reasons.
I want to take GFX with me, but I wasn't sure it would run on an ARM.
I finally fired up GFX on an ARM for the first time today. The only hitch in my getalong was that the STM32 folks did not implement the Arduino framework properly so I had to put a conditional compile into GFX so it will work with the broken ARM arduino layer.
That's small potatoes in the big scheme of things. In the end it works. It actually fired up and compiled, and ran which is huge considering the complexity of this codebase, and that this is the first time it has ever been tried on something other than a PC or ESP32.
I feel good about today. I'm on fire.
Real programmers use butterflies
|
|
|
|
|
There is no stopping you now! 🚒
|
|
|
|
|
*flexes my ARM*
One GFX library to rule them all.
Real programmers use butterflies
|
|
|
|
|
Your bachelor's degree is in Computer Science or Electronics? How come you are so good at the embedded systems' work?
|
|
|
|
|
I have no degree. I think I got good at doing it because I learned to code back in the 1980s when most PCs were spec'd like the little MCUs I work on today.
Real programmers use butterflies
|
|
|
|
|
Wow, you're autodidact. I was surprised you knew how to use a logic analyzer. You're really a smart guy!
|
|
|
|
|
Thanks. I learn what I need to know. I have a knack for tinkering.
Real programmers use butterflies
|
|
|
|
|
You'd be surprised as how many regulars of the Lounge are brilliant people, and autodidacts. That's why I have been visiting this site for 20 years, the concentration of knowledge is amazing (plus I could make illusion so far even if I cannot distinguish an Arduino from a washing machine, so they did not kick me out).
|
|
|
|
|
honey the codewitch wrote: I learned to code back in the 1980s when most PCs were spec'd like the little MCUs I work on today
This is so true. I am glad I had the chance to live this as well.
|
|
|
|
|
Same. I think because of it, the challenge of working in a constrained environment is neither overwhelming or off-putting. In fact, I find it enjoyable, maybe because I grew up with it. Something about it is almost comforting.
Give me an ESP32's 300kB of usable RAM any day and I'll feel spoiled. . I remember when I had to work with 64kB so no big.
Real programmers use butterflies
|
|
|
|
|
|
That's impressive. Too bad I don't have a 1080 lcd display for an IoT MCU, or one that could push that many pixels.
I doubt that thing *runs* in 4kB though. I'm sure it uses runtime decompression to get those textures, or to generate the computation tables needed to render those textures, and it would have to cache some of that to get any kind of frame rate.
But yeah, impressive.
Real programmers use butterflies
|
|
|
|
|
Of course, it definitively uses decompression, but still impressive. Plus the music is also rendered. There are is so much maths and cleverness in this...
|
|
|
|
|
The top 5 books I've read and enjoyed the most are:
1. Making Money - Terry Pratchett
2. Pattern Recognition - william Gibson
3. I Robot - Isaac Asimov (The Original, not the one frorm the stupid movie.)
4. Monster - A. Lee Martinez
5. Friday - Robert Heinlein
Honarable Mention: Any Terry Pratchett "Disc World" book, Ringworld - Larry Niven
What are your favorite books?
ed
|
|
|
|