Readit News logoReadit News
mfgs commented on Writing a C compiler in 500 lines of Python   vgel.me/posts/c500/... · Posted by u/vgel
ricardo81 · 2 years ago
I learnt C about a decade ago (after using scriping languages 10 years prior) and just stuck with using the uint values, no second thoughts about how big a uint32_t is.
mfgs · 2 years ago
Explicit variable size is useful for limited memory space envs like microcontrollers.
mfgs commented on Ask HN: What is your policy regarding smartphones for your children?    · Posted by u/eimrine
mfgs · 2 years ago
The kids in my family attend a school where the parents have all verbally agreed to not get their kids a smart phone until 16. This removes the peer pressure element of owning a phone/instagram/etc. When that’s removed there is little downside and huge upsides to the kids not having phones.
mfgs commented on Flipping the model presents a new way to treat sleep apnoea   news.flinders.edu.au/blog... · Posted by u/belter
reilly3000 · 2 years ago
For me, I have an unrelated sleep disorder that makes sleep extremely important, and sensory issues that made sleeping with CPAP difficult to impossible. I tried lots of kinds of masks at my expense, but got no material support from the providers involved. After many months of trying I found that I have far better sleep without it, and got sick less frequently as well. I cleaned it fastidious and fiddled with it regularly but couldn’t find a sustainable way forward with it.

The mechanical sound of breathing, the mask getting stuck in my long hair, the intentions posture and breathing form… and dear mercy the pooling moisture on my face.

I shaved a sick beard for it. I stopped sleeping with my partner. It was a saga that I had tried a decade earlier with the same outcome.

Ultimately it turned out that simply staying hydrated and adding a little incline to my mattress is all it took. My O2 concentration has held steady and the snoring has stopped. I’ve taken my alcohol consumption down to near zero, and I have to imagine that helped as well. My weight and body fat have been pretty stable throughout.

I’ve kept my gear in case I have an occasion to try it again. Also they wouldn’t take it back and have got legislation passed to ban CPAP resale. Maybe one day I’ll get around to hacking on an IoT smell-o-vision project and have a decent use for the thing.

mfgs · 2 years ago
How are you measuring O2 levels?

I’ve also been experimenting with a slightly elevated mattress recently, it seems to help quite a lot for my OSA.

mfgs commented on The hidden cost of air quality monitoring   airgradient.com/blog/hidd... · Posted by u/ahaucnx
aidenn0 · 2 years ago
Don't use leaf blowers; those are a huge source of outdoor particulates.
mfgs · 2 years ago
Do you mean a petrol leaf blower? Because of the motor emissions or the blowing?
mfgs commented on In-Flight Entertainment Challenge   blog.mand3l.com/post/7121... · Posted by u/jonaraphael
hypertexthero · 2 years ago
Here’s another challenge:

Create fun games to play in these flights.

The games available are usually poor and slow.

Is it a technical limitation such as too many screens and not enough processing power to go around?

Or maybe no good HID (Human Interface Device) controllers? Touch-screens should be okay, especially for turn-based games, but maybe continuously pushing your finger against the screen would make the person seated in front angry after some time?

Perhaps Management doesn’t realize that video games are a popular thing?

Or is this just too much of a first-world problem and not worth the effort from the airline companies?

I’d love to see games like Rogue, X-Com, Sopwith, Jagged Alliance, Space Invaders, Asteroids, Myst, Vampire Survivors, and so on, available to play at 30,000 feet.

Maybe the airline could have these games hosted on their wifi network for downloading and playing in the browser of your personal pocket computer instead?

mfgs · 2 years ago
Myst would be a perfect game to play on a long flight. Sorting the right controller setup might be tricky though.
mfgs commented on Finding a former Australian prime minister’s passport number on Instagram (2020)   mango.pdf.zone/finding-fo... · Posted by u/masterjack
skissane · 3 years ago
> For security reasons, we try to change our Prime Minister every six months, and to never use the same Prime Minister on multiple websites.

Made me laugh.

mfgs · 3 years ago
This joke’s also a reference to the fast turnover Australia had around that time of prime ministers, due to them getting replaced by their own party.
mfgs commented on Poor sleep drove me insane, and my long path to recovery   writing.samsonhu.com/how-... · Posted by u/Wagthesam
mfgs · 3 years ago
For anyone using or considering a CPAP device, you should also do some research into mandibular advancement devices (MADs). They’re basically a mouth guard that opens your airway by moving your lower jaw forward.

They are lesser known than CPAPs but are much simpler and way less invasive. They’re often well suited for people who are thinner and/or have milder OSA symptoms.

I couldn’t use a CPAP but using a MAD has helped significantly (although perhaps not completely).

mfgs commented on Type hinting sucks   old.reddit.com/r/Python/c... · Posted by u/aiNohY6g
flohofwoe · 3 years ago
I don't think people select Python for it's performance ;)

But the type-checking could be a command line parameter, used only during development.

mfgs · 3 years ago
It already can be used for development, IDEs such as PyCharm perform quite effective live type checking based on type hints.
mfgs commented on Best and worst decisions I’ve made   stonemaiergames.com/the-1... · Posted by u/Tomte
efnx · 3 years ago
Why is that?
mfgs · 3 years ago
Acidic foods and drinks will temporarily soften the enamel in your teeth. Brushing right afterwards can remove the softened enamel.

Brushing right after drinking acidic soft drinks or soda is meant to be much worse for your teeth than not brushing.

u/mfgs

KarmaCake day256December 14, 2015View Original