HNHacker News
TopNewBestAskShowJobs

n8henrie

795 karma · joined May 5, 2014

https://n8henrie.com

F21A6194C9DB9899CD09E24E434B2C14B8C33422

[ my public key: https://keybase.io/n8henrie; my proof: https://keybase.io/n8henrie/sigs/WoQvsZKguJVoMfO7Fxk2mnWhN1Xh0cLZuDGQnxpwhWY ]

submissionscomments
n8henrie··on Torpedo juice: Legendary, illegal WWII liquor drunk in Alaska and the world
You can be hospitalized for drinking too much ethanol, or too much water. Are those not drinkable?

I'm an ER physician. I have worked in a poison control center. I take care of the people that drink IPA. I work on the Navajo Native American reservation, where this isn't terribly uncommon.

n8henrie··on Torpedo juice: Legendary, illegal WWII liquor drunk in Alaska and the world
Isopropyl is drinkable (and highly intoxicating). Just very unpleasant to drink and highly irritating to the mucosa.
n8henrie··on School smartphone ban results in better sleep and improved mood: study
Typo: 21
n8henrie··on School smartphone ban results in better sleep and improved mood: study
Not at all. Type II error is routinely the result of methodological flaws like insufficient sample size.

It would be asinine to study the effects of parachutes on survivability of jumping from airplanes, hypothesizing that they would help, but conclude that the "conjecture must be wrong" because the sample size was 2 and it failed to reach statistical significance, or because the airplane was on the ground.

Would you feel differently if the study period was only 1 day instead of 25?

Or maybe 1 hour?

Would it then be reasonable for them to speculate that the methodology might contribute to the failure to reject the null hypothesis?

n8henrie··on School smartphone ban results in better sleep and improved mood: study
"Might mean" is a far cry from "our hypothesis is probably still right." This type of speculation is commonplace -- even expected -- in the discussion section of an article. Not much different than the lame duck "further research is needed to..."
n8henrie··on FireDucks: Pandas but Faster
Totally fair. And thank you for the rewording (sincerely). I haven't used polars for anything business or finance related, so this is likely one of many blind spots for me.

Reviewing my work, only needed an hourly aggregation, which was similarly easy in polars and pandas (I misspoke about being easier) -- what I found easier was grouping by time data that wasn't amenable to `resample`.

In polars I had no problems using a regular group_by with a pl.col.dt object, whereas in pandas I remember struggling to do so, even though it seemed straightforward.

Sorry, I wish I could remember more details; this was probably 5 years ago that I was writing the pandas code and just converted it to polars about a year ago, so it's possible that I just got better at python in the meantime (though I was writing much more python back then). And of course a rewrite is likely to feel easier the second time.

The other confounding issue is that the eager pandas code crashed with OOM regularly and took several minutes to run, whereas polars handles it very well (which I'm sure to some degree is it optimizing things that I could have done manually), but this made iterating on this codebase feel much less onerous.

n8henrie··on FireDucks: Pandas but Faster
I don't know what exponential weighted covariance is, but I've had pretty good luck converting time series-based analyses from pandas to polars (for patient presentations to my emergency department -- patients per hour, per day, per shift, etc.). Resample has a direct (and easier IMO) replacement in polars, and there is group_by_dynamic.

I've had trouble determining whether one timestamp falls between two others across tens of thousands of rows (with the polars team suggesting I use a massive cross product and filter -- which worked but excludes the memory requirement), whereas in pandas I was able to sort the timestamps and thereby only need to compare against the preceding / following few based on the index of the last match.

The other issue I've had with resampling is with polars automatically dropping time periods with zero events, giving me a null instead of zero for the count of events in certain time periods (which then gets dropped from aggregations). This has caught me a few times.

But other than that I've had good luck.

n8henrie··on Hyperfine: A command-line benchmarking tool
Same here -- I like `fd` for quick stuff, but routinely have to fall back to `find`.
n8henrie··on Installed an open source garage door opener, and I'm loving it
I have CarPlay and my RAV4 Prime's built-in garage door opener button works, but I've never seen anything on my CarPlay about the garage. How does this work?
n8henrie··on Pex: A tool for generating .pex (Python EXecutable) files, lock files and venvs
Can you provide any more specifics? I've done the same and had good luck with rust across most Linux, but found Go easier musl, armv7, and for freebsd.
n8henrie··on I shut down my startup. Here's the honest truth
The author appears phenotypically female (https://medium.com/@abi_75893/about) and writes early on that a motivating factor was her severe menstrual pain. I'm very confused how you decided to use male pronouns here.
n8henrie··on MdBook – a command line tool to create books with Markdown
If you have the mdbook-epub plugin, it's nice to be able to turn the myriad documentation "books" into actual ebooks that I can read on my kindle.
n8henrie··on Apple indeed added a feature called "inactivity reboot" in iOS 18.1
https://archive.is/lpoLQ
n8henrie··on Multiple new macOS sandbox escape vulnerabilities
O/t but if any sandbox experts know of strategies to get around the maximum "pattern serialization length" limitation, this issue has been driving me nuts for quite a while: https://github.com/NixOS/nix/issues/4119

Unfortunately sandbox-exec isn't really documented (and supposedly deprecated?) so trying to sort this out is a bit of a headache.

n8henrie··on Cable companies ask 5th Circuit to block FTC's click-to-cancel rule
Not knowing much about this and just going from your link (honestly I don't even know which side the 5th and 9th are on)... 5/10 and 8/10 are not all that close. 5/10 seems to give the 9th one of the lower rates of reversal, given that so many of them are 1/1.
n8henrie··on I got dysentery so you don’t have to
I love and work in emergency medicine in the US. We still see Shigella on the Navajo Nation, where many of our patients do not have electricity or running water at their home.
n8henrie··on Study offers clues into when and why mosquitoes bite
Wife is O- and is a mosquito magnet that gets huge welts that take ages to go away. I'm A+ and get bites, but they usually don't last long.
n8henrie··on Medical student's apparent celiac disease responded to giardiasis treatment
This is about the most charitable thing I've ever read on this site about physicians.

As a physician with a degree in nutrition, I find most HN threads about medicine, nutrition, or the health system very frustrating, and in spite of it being the only area in which I'm formally qualified to opine, it's also where I've earned most of my downvotes (which prior to 500 internet points kind of mattered). I eventually learned to just bite my tongue here.

Curiously, I think my "hacker spirit" is what drove me to medicine. In undergrad, I was spending 5+ hours per day reading medical literature (mostly nutrition, endocrinology, exercise science) and had decided that doctors were mostly idiots, and eventually decided to change majors from ME to pre-med.

In medical school, I was a real handful to many of the lecturers, which I kind of regret now. Ends up it is really easy to publicly humiliate someone when they mis-state or misunderstand a minor detail that you've studied in depth, even if they have far greater expertise in the field.

In medical school, residency, and practice (EM), I've learned a lot about why things are the way they are. In my field, many patients are entirely obsessed about some problem and completely lose track of reality when discussing it. It becomes part of their identity. They don't know how to read or evaluate medical literature, and they lack the background knowledge to the extent that even beginning a discussion is onerous.

It's like your uncle who is far to one side or the other of the political spectrum and is well read but only in support of his biases -- yes, you might learn something this time, but do you really want to get into long discussion to find out? He already "knows" all the answers to many unstudied questions, and knows why the studies are wrong for the others. There are so many of these patient encounters that it is entirely infeasible to engage with even a small proportion of them and still get your job done, so you learn to nod, smile, and move on to determining whether or not a life-threatening emergency exists or not. You definitely don't have time -- at least in my field -- to really listen and consider all of these. Unfortunately it's not always easy to differentiate symptoms that are possibly psychological, exaggerated, self-limiting, or impractical / impossible to diagnose in my clinical context, from those that present opportunities for me to make a difference even if not a true emergency.

I still think that many doctors are idiots that lack critical thinking skills and self-reflection, and unfortunately almost nobody outside of academics reads primarily literature that isn't forced on them (MOC). I've tried to show many friends and colleagues how to set up RSS feeds for pubmed queries for their topics of interest -- zero people have seemed impressed. In contrast, I think much of HN leans heavily on representativeness heuristic and doesn't consider likelihood ratios when evaluating their test results.

Anyway, thanks for the considerate comment.

n8henrie··on A review after using Rust on embedded in production for over a year
ESP32. ESP-IDF, not no_std.
n8henrie··on Rust needs a web framework
Yes and no -- obviously I can build for no_std targets like esp32 and atmega128p in rust but not go (haven't tried tinygo), but the proportion of targets that successfully built and ran IRL has been higher for me with go. On rust, the dynamic linking of libc (by default) and failure to include a linker with the toolchain have repeatedly been stumbling blocks, go "just works."
n8henrie··on Rust needs a web framework
I much prefer rust to go for many reasons, but IME go gets this part much better. Darwin / Linux cross compilation, armv7, FreeBSD, oh sorry you don't have a linker for that toolchain, wait where are those OpenSSL headers... lots of cross-compilation targets I've done in minutes with go that scp and run right away that end up being days / weeks of adventures to cross compile in rust, in spite of me knowing rust much better than go at this point.
n8henrie··on Llama 3.2: Revolutionizing edge AI and vision with open, customizable models
I've only used ollama over cli. As per the parent poster -- do you know if there are advantages over ollama for CLI use? Have you used both?
n8henrie··on New defib placement more than doubles odds of surviving cardiac arrest
> If they have a suspected neck injury there can be significant risks.

Not entirely unreasonable to consider, but if they need defibrillation and are unconscious / unable to roll themselves over, they might have bigger problems. Just the movement of properly executed CPR is going to be considerable.

n8henrie··on Fairphone 5: a biased long-term review
> 2024-07-28: 202 days, still going strong

If anyone else is curious about the "long-term" part

n8henrie··on Show HN: Chili. Rust port of Spice, a low-overhead parallelization library
Not related to the content, but as a port of "spice" -- being from New Mexico, we would usually refer to a spicy pepper as (eg green) "chile," or a chunky dish with beans and meat as (eg Texas) "chili." Looks like the AP Stylebook agrees, though Webster's makes it seem less clear, so you can probably get away with it either way.
n8henrie··on The Pentium as a Navajo Weaving
Just moved back to ABQ from Shiprock last month, after 8 years. Not every day you see Shiprock featured in an HN post!
n8henrie··on Home Assistant Presence Simulation
I've been running hass for quite some time, for years directly in a python venv on a Pi2, then Pi3, and now happily on a Pi4 4GB for several years. Runs so well I decided not to upgrade to a 5. Use both zigbee and zwave.

Currently running in docker, which was a godsend when I migrated from Raspbian to NixOS about 18 months or so ago with no issues.

Have used an SSD wherever possible, perhaps that's why it's been so stable.

I use the GPIO, which is one reason I've stuck with the Pi!

n8henrie··on Bypass Paywalls Add-On Takedown Notice
I was just wondering if radicle would be a good answer to this problem. I haven't tried it yet, but read about it with great interest and couple months ago.
n8henrie··on Flaw has Microsoft Authenticator overwriting MFA accounts, locking users out
As does Bitwarden (just "edit" and it is revealed)
n8henrie··on PyScript: An open source platform for Python in the browser
I tried to write a POC Firefox extension in pyscript but ended up having to fall back to pyodide. Was a fun experiment anyway.

https://n8henrie.com/2023/06/write-a-firefox-extension-in-py...

← PreviousPage 5 of 20Next →