Go 語言定時任務 time-Sleep 和 time-Tick 的優劣對比分析
golang 寫循環執行的定時任務,常見的有以下三種實現方式 1、time.Sleep 方法:for { time.Sleep(time.Second) fmt.Println(“我在定時執行任務”)}2、time.Tick 函數:t1:=time.Tick(3time.Second)for { select { case <-t1: fmt.Println(“t1定時 ⌘ Read more
Before going to sleep, a quick walk around the block. 🌔 ⌘ Read more
On my blog: Sleep, Addendum https://john.colagioia.net/blog/2024/07/14/sleep-2.html #sleep #advice #rant
Early bird bike tour
I couldn’t sleep anymore, so I decided to do a little bike tour. It’s so quiet in the morning and I saw some new places in this town and its surrounding. Tomorrow I plan to do a longer trip again. ⌘ Read more
Haven’t been sleeping well lately. Going to bed late. Lots to do.
‘Careful who you get into bed with’: Sleeping Duck case rocks start-up sector
The mattress maker’s court trial, which resembled a real-life episode of Shark Tank, offered a rare glimpse into how the start-up sausage is made. ⌘ Read more
About death
I’m on a train again. This time I’m going home from Hudiksvall after a
grueling weekend.
I went from Malmö on Thursday morning and worked the entire day on
trains. I arrived in Ljusdal after close to nine hours. I checked in
at the only hotel in town again and, after a quick meal and glass of
wine, went over to a very sad dad with a bottle of Macallan. We didn’t
empty it but we sure tried. I got back to the hotel pretty late.
Wasn’t able to sleep much.
The day after it was my dad’s wife’s funeral. Met up at dad’s … ⌘ Read more
I’m in need of some nineties rage against the machine right now - sleep now in the fire
New rough sleeping powers will continue to criminalise homeless, ministers told
New powers aimed at cracking down on rough sleeping are a “Vagrancy Act with bells on”, ministers have been warned. Conservative MP Nickie Aiken (Cities of London and Westminster) was among the MPs warning the Government against introducing new powers for the police and local authorities to deal with so-called “nuisance” rough sleeping. Home O … ⌘ Read more
Barnaby Joyce diagnosed with ‘sleep disorder’
Sky News host Sharri Markson says Barnaby Joyce has revealed he has a “sleeping issue”.
Ms Markson said the Nationals Leader David Littleproud says Barnaby Joyce “needs the time off”.
“Because he has this sleep disorder.
“According to Barnaby, it’s not a drinking problem, it’s sleep apnea.
“A lot of people suffer from sleep apnea.” ⌘ Read more
@johanbove@johanbove.info dear lord! Can you still sleep at night?!
@lyse@lyse.isobeef.org yeah, with proper clothing its pretty nice. After I came home it turned into snow, and it snows really hard, so tomorrow I have the fun task of clearing as much as I can :)
Its about 2 at night now, just walked the dog after fireworks has calmed down. He was super excited to see all the snow.. but now its time for some sleep :)
Apple Watch Black Friday Deals: Apple Watch SE 2 for $179, Series 9 for $329
Amazon is hosting some incredible deals on Apple Watch for Black Friday, taking $70 off the retail price of the Apple Watch SE 2 bringing it down to just $179, and Apple Watch Series 9 down to just $329. Apple Watch SE 2 features a 40mm screen, fitness tracking functionality, sleep tracking, crash detection, a … [Read More](https://osxdaily.com/2023/11/21/apple-watch-black-friday-deals … ⌘ Read more
@movq@www.uninformativ.de I lasted for a long time.. Not sure where or when it was “got”. We had been having a cold go around with the kiddos for about a week when the wife started getting sicker than normal. Did a test and she was positive. We tested the rest of the fam and got nothing. Till about 2 days later and myself and the others were positive. It largely hasn’t been too bad a little feaver and stuffy noses.
But whatever it was that hit a few days ago was horrible. Like whatever switch in my head that goes to sleep mode was shut off. I would lay down and even though I felt sleepy, I couldn’t actually go to sleep. The anxiety hit soon after and I was just awake with no relief. And it persisted that way for three nights. I got some meds from the clinic that seemed to finally get me to sleep.
Now the morning after I realized for all that time a part of me was missing. I would close my eyes and it would just go dark. No imagination, no pictures, nothing. Normally I can visualize things as I read or think about stuff.. But for the last few days it was just nothing. The waking up to it was quite shocking.
Though its just the first night.. I guess I’ll have to see if it persists. 🤞
@movq@www.uninformativ.de I lasted for a long time.. Not sure where or when it was “got”. We had been having a cold go around with the kiddos for about a week when the wife started getting sicker than normal. Did a test and she was positive. We tested the rest of the fam and got nothing. Till about 2 days later and myself and the others were positive. It largely hasn’t been too bad a little feaver and stuffy noses.
But whatever it was that hit a few days ago was horrible. Like whatever switch in my head that goes to sleep mode was shut off. I would lay down and even though I felt sleepy, I couldn’t actually go to sleep. The anxiety hit soon after and I was just awake with no relief. And it persisted that way for three nights. I got some meds from the clinic that seemed to finally get me to sleep.
Now the morning after I realized for all that time a part of me was missing. I would close my eyes and it would just go dark. No imagination, no pictures, nothing. Normally I can visualize things as I read or think about stuff.. But for the last few days it was just nothing. The waking up to it was quite shocking.
Though its just the first night.. I guess I’ll have to see if it persists. 🤞
So.. Of y’all that had covid. Did you have at the end a night where for no reason your brain amped up to 11 and can’t sleep at all? It happened to me last night and my FIL the night before.
I went to bed at 8 and woke up full on anxiety attack at 12 and could not calm my head until around 7 am. Today has sucked a lot.
So.. Of y’all that had covid. Did you have at the end a night where for no reason your brain amped up to 11 and can’t sleep at all? It happened to me last night and my FIL the night before.
I went to bed at 8 and woke up full on anxiety attack at 12 and could not calm my head until around 7 am. Today has sucked a lot.
How Does Sleep Affect Our Mental Health? #neildegrassetyson #startalk href=”https://txt.sour.is/search?q=%23mentalhealth”>#mentalhealth** ⌘ Read more
All day today I’ve been feeling like I could fall a sleep any minute.. Gonna be nice to get the kids to bed, then put on netflix and fall a sleep on the couch tonight.
@movq@www.uninformativ.de @lyse@lyse.isobeef.org Nice! Always nice to do a walk, and fun to test stuff like GPS and such :) I’ve been walking a bit as well today, but also had some nice time at home, I work a bit this weekend, so I’ve spent some time on that. But also we went to the mall and such. Now we’re baking pizza. And will watch a movie or something when the kids has gone to sleep tonight. :)
The Paradox of Sleep with Matthew Walker ⌘ Read more
Sleep deprived projects are the best projects https://ec.je/b/38w
@movq@www.uninformativ.de Nice! I just came home from a long walk myself. Walked through the forest, and then by the roads. Now the dog is sleeping. I like to wear him out a bit in the weekends so that we get some proper ‘time off’ in the evening etc :)
I tracked my sleep before & after having a baby ⌘ Read more
Good evening everyone! Damn nice with vacation, nice to sleep in every day :) Weather has not been good, really cold, feels like autumn to be honest, and lots of wind. Not summer weather at all these days.
Kids has gone to bed, watching some youtube before they fall a sleep, Marlyn is playing PUBG, husky is sleeping on the couch after a long late evening walk, and I’m sitting on the couch listening to podcasts and just chilling. Nice way to end this Monday.
@wincent@twtxt.net No, they are not noisy. I have one of these my self as well, and it does not make much noise (can sleep in the same room). They are not like rack servers with turbo fans, hehe.
We had a really nice day today, dog woke up early (as he always does during the weekend), and I went for a walk in the forest while the rest of the house got to sleep some extra. When I got back we went to a fleamarket, and then we went to a farmersmarket in town, was really nice, and tons of things to see :) And a bit later today we’ll have nachos, and I spend some time on my computer. Currently coding a bit.
On a positive note, Samy always gets upset he has to come in overnight while I sleep. He’s currently outside living his life long dream
I’m glad to report that I’ve entered the « tired but can’t sleep » stage of overwhelming sense of doom
I wish I could turn into a bear so I could go to my cave and sleep for three months
@funbreaker@twtxt.net good night! Sleep well!
Time to get some sleep! Good night to you all!
Good morning to you all! Started my day by walking about 5km around a lake that’s next to the ocean, a really nice place to walk. It rains today, so not many people out (which I like). So now the dog is sleeping on the sofa. My daughter went to a friend for a visit today, and my son is just chilling and watching youtube. So it’s a nice chill start to this Saturday :) Hope you all have a great day!
Im going to fall a sleep standing up tonight it feels like. Holy shit I’m tired today. Just one more day then it’s much needed vacation time.
The sun is out, no clouds, negative degrees, but beautiful day. Since we switched to summertime the dog sleeps an hour longer, which was great, finally got to sleep in.
Dog has been walked, kids are playing roblox together, later tonight we will have pizza and watch movie etc :) have a nice Saturday!
the last days has been super busy, work, family, dog takes up most of my time (not that I complain). But I need to find some time for coding, so hopefully I can resume tonight for a couple of hours when kids has gone to sleep.
Oof. I would usually go straight to sleep after putting the little one to sleep but here I am, awake and twting. Time to do one of the many things on my list to make me feel like I’m accomplishing something with my spare time
@prologic@twtxt.net good night! sleep well!
got up at 7 this morning, 14 hours later I finally get to sit down. time to chill before sleep :)
also, our dog does not sleep long on weekends, but today I refused to get up early once he started to get riled up I walked over to his crate, told him to sleep, sniffed my hand and he then stopped and got back to sleep, did that two times, and got up at 10 instead of 8. felt great!
went to the dogpark today, was awesome. 6 other dogs there and he ran for 2 hours without a break. now he’s sleeping :) so now I can relax for a bit and enjoy the rest of this Saturday.
spent the day with my family as usual. went for a long hike with the dog so that they could sleep in this morning. we also made some food in our firepit this afternoon, which was really nice since its still cold outside. now the kids are sleeping, dog is sleeping, and me and my other half can chill with the tv on for a while. been a good sunday.
@prologic@twtxt.net thank you, it was really nice. The dog wanted to get up at 8 this morning, so I put him in the car and went for a long walk so that the rest of the house could sleep in. I came back last night after 4 day work trip, so it was nice to get up today and just head out for a walk.
First work day in my new job
My first day at my new job is over, and it went quite well despite the lack of sleep. Super nice colleagues and I am already full in the training. ⌘ Read more
Why can’t I sleep when I’m excited? And why am I not excited during the day, but then my thoughts are circling at night? Well at least I slept well yesterday. Maybe that helps to get through the day somehow after only 3 or 4 hours of sleep. ⌘ Read more
Finally weekend again :) what are you all planning? I’ll do the usual stuff - family time, walk the dog, code, sleep :)
Kids are in bed, dog is sleeping, Marlyn is watching Tv, and I’m on the computer trying to figure out what to do for the rest of the night. Last week of vacation now, so I get more and more interrested in doing things on the computer. Played around a bit with my Risc-v SBC today (Mangopi), it runs debian, got everything updated and all that, thinking about setting up a webserver on it. It has 512mb ram, so it should be fine to host some static website on it.
help I’m trying to get to sleep and I have hiccups
Time to go to sleep, hoping I do get any given how how it is here right now…
You may not be able to sleep after this one… ⌘ Read more
you can only call someone a pickup artist if they don’t sleep with the people they seduce, otherwise they’re just sparkly fuckboys/gals.
The first two nights with my new weighted blanket were good! The blanket is very cozy but not sweaty. The weight is not oppressive, but just right, and also makes me feel somehow more tired than usual before I sleep, and then let me fall asleep almost immediately, as if flipping a switch. And somehow I seem to dream much less, which can be a positive sign for more deep sleep. ⌘ Read more
Yesterday I ordered a blanket for an incredible amount of money, more precisely a weighted blanket. Now I hope that it will be delivered quickly and that it really has the positive effects that are being advertised. Although I can usually fall asleep quickly in the evening with a sleeping mask and earplugs, I never manage to sleep through the night, I am never woken up by the alarm clock because I wake up earlier. In the morning I feel tired almost every day, sometimes even the whole day, which then also limits my c … ⌘ Read more
“We are trying to accomplish an extremely difficult thing that requires everything to run as smoothly and efficiently as possible, but luckily our status incentives are so optimal that the high status men getting to sleep with a lot women is just the best!”
Ever since Kaja is gone, I’m struggling to sleep without the lights on
noticing that i should go to sleep because the guitar opening on Robot Rock seems awfully fast
Finally sleeping better 😴
I have a very light sleep. The first brightness in the morning makes me wake up, noise from the neighbors in the evening does not let me fall asleep. No matter how late or early I go to bed, no matter how little I slept in total. ⌘ Read more
Ugh. Trying to turn my sleeping cycle back to normal. I feel jet lagged af.
Went to sleep at 01:00, woke up at 06:30, having a really hard time keeping my eyes open, and there is still one more hour till calling it quits. Does being this sleepy counts as being sick?
@movq@www.uninformativ.de
I find sleeping while storming the best sleep, and we have hurricanes passing by, or near by, almost every year.
On the blog: …Perchance to Dream https://john.colagioia.net/blog/2021/01/10/sleep.html #sleep #advice #rand
Western culture has a very unhealthy attitude towards sleep in general. There is only one socially accepted sleep pattern: Eight hours a night, in one block, starting at between 10pm and 11pm and ending between 6am and 7am. This “early-bird” rhythm is celebrated in to the point of fetishisation and held up as the goal to which all productive adults must aspire. To behave otherwise is to be lazy, slothful, and not putting forward your all It’s Time to Stop Nap-Shaming | Hacker News
all i did today was eat and sleep. best sunday
I have a really long todo list but I am so tired I will just go to sleep and think about it tomorrow
7 helpful tips on how to be miserable: 1. Stay still. 2. Screw with your sleep. 3. Maximize your screentime. 4. Use your screen to stoke your negative emotions. 5. Set vapid goals. 6. Pursue happiness directly. 7. Follow your instincts. this isn’t happiness™ (7 helpful tips on how to be miserable, Brandon…), Peteski
@frogorbits.com@www.frogorbits.com Well I needed it immediately so it’s too late, but sleeping is not allowed in every situation ^^ But thanks ! I’ll try to remember it next time :)
@von@tilde.town sleeping works. how long do you need?
Day 1 of not installing the latest iOS release. Pulse still normal. Heart rate normal. Sleep moderately disturbed.
In other news, https://generative.fm/ now has a sleep timer
Band name of the day: temple of sleep
@kas@enotty.dk I’m not discouraged at all. I now know to choose sleep at 8 PM instead of coffee. Maybe one day I’ll get lucky and just sleep the whole night through.
Band name of the day: the ends of sleep
Vintage Tech: Learn While You Sleep (Hypnopaedia) - Believer Magazine https://believermag.com/logger/vintage-tech-3/
Band name of the day: perfect balance perfect sleep
Soft Machine-Why Are We Sleeping? - YouTube https://www.youtube.com/watch?v=jwc_gosvQ_A
Band name of the day: moth drinking tears of a sleeping bird
Band name of the day: hot sleep
mods are a sleep and you know what that means: exactly one (1) sleep
alias grpe=‘sleep 5m’
Band name of the day: the tomb of sleep
A Vor Never Sleeps https://longreads.com/2018/06/04/a-vor-never-sleeps/
Band name of the day: the committee of sleep
Band name of the day: the ends of sleep
Band name of the day: bundle of sleep
Band name of the day: the brotherhood of sleep
Band name of the day: a sleeping suit for air-raid nights
Band name of the day: the ends of sleep
Band name of the day: the war on sleep
Night flight with two children who won’t sleep is a nightmare!!!
Night flight with two children who won’t sleep is a nightmare!!!
band name of the day: sleep spindles
This Algorithm Can Tell What You‘ve Learned Before Going to Sleep - Motherboard https://motherboard.vice.com/en_us/article/ywbka5/algorithm-sleep-eeg-learning-memories
Why Do We Sleep Under Blankets, Even on the Hottest Nights? - Atlas Obscura https://www.atlasobscura.com/articles/blankets-summer-hot
How Getting Enough Sleep Can Make You Less Afraid - The Atlantic https://www.theatlantic.com/health/archive/2017/10/rem-and-trauma/543573/
Sleeping in Go – How to Pause Execution ⌘ Read more…
World sleep day is my favorite holy day. I start by heavily celebrating it.