|
I noticed similar stuff (me 42yro). If I go to sleep earlier (say 21 or 22), I tend to wake up at 3-4am and cant sleep more.
They say:
1 hour of sleep before 00 is 2 hours of rest,
1h of sleep at 00 is 1h of rest,
1 hour of sleep after 00 is 0.5h of rest
|
|
|
|
|
Melatonin is only good if you have problems falling asleep.
If you don't have problems falling asleep, but can't maintain sleep (like me, I'm 60) you should try 5-HTP and/or Magnesium Glycinate.
But in any case you need first to manage stress, which can raise your cortisol levels (the so-called stress hormone), waking you up in the middle of the night.
|
|
|
|
|
No, I've always been a morning person. I can't code anything difficult after 9 PM. I go to sleep at 11:30+/-. I sleep soundly until 4AM, when an alarm wakes me so I can turn my disabled wife over . It takes awhile to get back to sleep, maybe 30 minutes, but then I'm asleep until the morning alarm at 8:40. Sometimes I will wake up as early as 8 on my own.
When I was working, I went to sleep at 11 and up at 6:30, and by Friday I was a zombie from the missing hour of sleep, so clearly what I needed hasn't changed, just now I'm actually getting it.
|
|
|
|
|
I'm 74 now and still at it, I work because that is what drives me. When I was young I'd stay up until 2 AM and then get up at 6 AM for my job. Now that I am 74 I say up until 8 or 9 PM and sleep until 2 or 3 AM and then I am up and working on some problem I have been churning over in my sleep.
|
|
|
|
|
Same here. What worked for me was:
Working out after work but before dinner.
Having dinner ealier.
Eating less at dinner and smaller dessert if any, and fewer carbs late in the day.
No caffeine after 1pm.
|
|
|
|
|
I made surprising progress today, so I thought I'd grab a couple of beers. I'm building a custom JavaScript code editor, and I'm now exhausted. If I hold a beer in my hand, it forces me to focus on it. If I'm focused on something, I'm less likely to nod off. Who wants to wake up in shock from spilling a cold beer on yourself? Right?
There is a caveat to this wakefulness technique. If you're holding a glass of beer in your hand, you'll drink it. I haven't found a fix for this, but I will.
|
|
|
|
|
I'm not sure if you have serious issues with life or humor.
It's 3am on the east coast of the US. I cannot sleep. I am wide awake, my brain is zooming, and I don't do crack. See next post. I have to go to a code merge of a few hundred files..
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
charlieg wrote: I'm not sure if you have serious issues with life or humor.
I'm happy to find out I'm not the only one who had..."difficulty"?...understanding that.
Maybe I'm the one who needs a beer.
|
|
|
|
|
charlieg wrote: I'm not sure if you have serious issues with life or humor.
I could answer that question, but I'll be honest with you, I am a liar.
If a person is an idiot, does that mean that they have serious issues in life? Are they incapable of having a sense of humor?
|
|
|
|
|
no worries. Late night chit chat in the lounge.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
ps - hand me your beer. problem solved
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Funny story, speaking of sleeping problems.
Several years back my ex-brother-in-law gave me a sleeping pill and said it would give me a great nights sleep.
I took it and next morning I woke up after one of the best nights sleep I had had in a long time.
Only one problem, I was laying on half a taco. He didn't tell me that one of the side effects was sleep walking.
Never took it again.
As the aircraft designer said, "Simplicate and add lightness".
PartsBin an Electronics Part Organizer - Release Version 1.3.0 JaxCoder.com
Latest Article: SimpleWizardUpdate
|
|
|
|
|
Steve Raw wrote: If you're holding a glass of beer in your hand, you'll drink it. This is a demonstration of what is known as "The Beer Equivalent", which states that"Consumed Beer == Available Beer".
|
|
|
|
|
Who's torturing you with JavaScript ?. Will it get you a golden egg ? If you need help call AAA or the police ? Just say the word !
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
Steve Raw wrote: I haven't found a fix for this, but I will.
Pick a beverage you don't like.
Perhaps tomato juice with ice. Or clamato.
Myself I like the first one so no help there.
|
|
|
|
|
I've been trying to fix this problem over and over again since I can remember.
Last night, I held a glass of beer in my hand. I stayed awake by focusing on not spilling any beer.
Then I drank it all.
Then, after that, I went to bed and fell asleep.
If you don't succeed, try again.
|
|
|
|
|
More discipline?
Get another one right away and see if it works better with the second. Repeat as necessary.
|
|
|
|
|
A wise man once told me, "When you've had too much wine, women and song, give up song." Wise friends are priceless...
Will Rogers never met me.
|
|
|
|
|
Awkward's Humour and Sillies - Beer Troubleshooting Guide
Symptom: Feet cold and wet.
Fault: Glass being held at incorrect angle.
Action: Rotate glass so that open end points toward ceiling.
Symptom: Feet warm and wet.
Fault: Improper bladder control.
Action: Stand next to nearest dog, complain about house training.
Symptom: Beer unusually pale and tasteless.
Fault: Glass empty.
Action: Get someone to buy you another beer.
Symptom: Opposite wall covered with fluorescent lights.
Fault: You have fallen over backward.
Action: Have yourself tied to bar.
Symptom: Mouth contains cigarette butts.
Fault: You have fallen forward.
Action: See Above.
Symptom: Beer tasteless, front of your shirt is wet.
Fault: Mouth not open, or glass applied to wrong part of face.
Action: Retire to restroom, practice in mirror.
Symptom: Floor blurred.
Fault: You are looking through bottom of empty glass.
Action: Get someone to buy you another beer.
Symptom: Floor moving.
Fault: You are being carried out.
Action: Find out if you are being taken to another bar.
Symptom: Room seems unusually dark.
Fault: Bar has closed.
Action: Confirm home address with bartender.
Symptom: Taxi suddenly takes on colorful aspect and textures.
Fault: Beer consumption has exceeded personal limitations.
Action: Cover mouth.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Many of these sound half familiar from my younger years back when I knew everything.
|
|
|
|
|
Spillage is carnage, point!
|
|
|
|
|
This is going to sound funny, but I'm trying to update some old code to use my new regex DFA format and corresponding lexing code, so I have reasons.
My new code uses C# iterators rather than manually implementing IEnumerator
The problem is my lexer generator generates code in a language independent manner the same way ASP.NET does when it compiles pages - it uses the CodeDOM. The CodeDOM does not support iterators, so I have to implement the IEnumerator interface w/ corresponding state machine myself. I can do it, but I was hoping for something where I didn't have to.
Now, it's possible that I could run code compiled with iterators in it through a decompiler tool like Reflector, but the result is nasty and really hard to follow.
And this is kind of hard to google.
I was just curious if anyone had ever seen such a tool, or otherwise has any ideas.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Have you tried asking ChatGPT to do the work for you?
I know many may scoff at my question however I find that it is good at some things and can get close with others. It is worth a try...
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
|
|
|
|
|
Maybe I'm old but I'm sort of put off by ChatGPT. I don't trust it. But I guess it would work for this because I can immediately verify what it tells me. Thanks.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
To this day, AI has been going where I have already "gone before" in my current interests. Depending on the subject matter (i.e. obscure), it's pretty easy to exhaust what's online. You waste time looking at what you've seen before; except now the AI has gotten "creative" with it.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|