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 We've Been Treating Concussions All Wrong
> Alcohol impairment goes away after a few hours.

I think this is a gross oversimplification.

If memory serves, the rate of ethanol metabolism is something around 0.015 (units?) per hour.

In my ED, an average BAL for a patient that we realize is intoxicated (and choose to get a level) is probably 0.3 or so. 0.4 - 0.5 is common, and we see nearly 0.8 (in ambulatory patients!) from time to time.

So for 0.3, if you are maximally generous and consider "sober" 0.08 (the level for an automatic DUI in my state), you're looking at 15 hours of observation. Not exactly "a few."

Further, your own anecdote highlights exactly my point. How you you *know* you had a TBI? Because it felt like one? Because a doctor told you it was one? Because a physician's (subjective) assessment of your exam suggested it was one? Because your insurance would cover an inpatient stay for one if they listed that as the diagnosis?

Don't misunderstand, I do a relatively thorough neurological exam compared to my colleagues, but I have no pretenses as to the level of subjectivity in my assessment, or to the external biases that could potentially sway my judgment. A more objective measure would be greatly appreciated, both to help ensure that I was acting in patients' best interest, and frankly to help me compel others to act in appropriate cases.

n8henrie··on We've Been Treating Concussions All Wrong
I wish we had better diagnostic tools for concussion. In our ER, the majority of patients with potentially significant head injuries are moderately to highly intoxicated, provide minimal history, and even though we generally CT all impaired patients with head trauma and hold them until they are no longer intoxicated, in many cases it can be difficult to differentiate a significant hangover from a concussion.
n8henrie··on macOS Sonoma 14.4: Reasons Not to Update
I've never noticed this Terminal.app behavior (copy without C-c) outside of tmux. Interesting.
n8henrie··on Command And Conquer: Red Alert 2 remaster on the horizon
Have had a blast playing OpenRA Combined Arms over LAN with my son lately, brings back lots of memories!
n8henrie··on Show HN: PyKidos, Teach Your Kid Python in the Browser
This is great, thank you! I've been considering writing something similar for a year or so and never got around to it, this will save me a lot of time and effort. Thank you for open sourcing it (MIT)!
n8henrie··on Apple cider vinegar for weight management
Longitudinal design would usually refer to an observational study, but lest other readers be confused by your comment, this is -- from the title -- a "a randomised, double-blind, placebo-controlled study."

In my opinion, compared to numerous studies in the same category, the placebo seems very reasonable, and the dose-dependent effect size seems highly suggestive of a real effect.

I hope additional / larger studies confirm the effect, and if so that a metabolic ward study can help us determine where the effect is taking place! (Food diaries are better than nothing, but notoriously inaccurate.)

n8henrie··on LineageOS 21 review: Smartphone sustainability starts with software [video]
My kingdom for a root / exploit for >=2020 kindle fires that would allow me to put lineageos on my kids' devices!
n8henrie··on Ask HN: Best thing you've made in CLI
https://github.com/n8henrie/hc-runner

Another wrapper for piping things to healthchecks.io, my first exercise to wrangling CLI and layered config in rust (and frankly -- in spite of my love for rust -- made me miss some of the better established / batteries-included options in python / go).

In large part inspired by the privacy / sandboxing in modern MacOS, for which you can "allowlist" a binary (meaning you'd have to e.g. allow the whole python interpreter as allowing a .py script doesn't work), so I can allowlist the hc-runner binary and anything it runs will not further prompt me for permissions.

(Which has obvious security implications.)

n8henrie··on The One Billion Row Challenge in Go: from 1m45s to 4s in nine solutions
There are a few rust solutions in the "Show and Tell" linked above, for example this fairly readable one at 15.5s: https://github.com/gunnarmorling/1brc/discussions/57 A comment above referencing Python "polars" actually has rust polars, std, and SIMD solutions as well (SIMD was fasted, but less readable for a hobbyist like me).

EDIT: https://github.com/Butch78/1BillionRowChallenge/tree/main

n8henrie··on A Look at Nix and Guix
It seems that Guix has some technical benefits as compared to nix, but I wasted a week just trying to get Guix System installed on an old x86 laptop and never got past the login screen without a hang or crash. Nix on the other hand booted first try, installed like a breeze, still running on that machine to this day, so for me, for now, NixOS it is.
n8henrie··on I Use Nix on macOS
> What you may miss from Homebrew > > The only thing that comes to mind is Homebrew Cask

https://daiderd.com/nix-darwin/manual/index.html#opt-homebre...

n8henrie··on I Use Nix on macOS
Nothing nix specific but you may be interested in https://github.com/containers/bubblewrap
n8henrie··on I Use Nix on macOS
I'm a recent convert and set up nix-darwin and home-manager on a flake-based system, have not had any issues like this.
n8henrie··on Atuin – Magical shell history
Interesting -- I have histappend (? I think) enabled and no problems with 20+ simultaneous tmux panes + tabs.

Just checked yesterday* and have well over 100k lines in bash history and it loads / searches instantly in skim.

* Was trying to check out mcfly vs atuin for the third time and again didn't understand why the extra complexity was worthwhile.

n8henrie··on Why diets backfire: A year after weight loss, the desire to eat grows (2018)
Well if you have any favorites, I'd love to see them. I'm very interested in the research in this topic, and you're making bold claims that I haven't seen well supported in literature, but I've been less on top of the field over the last decade or so.
n8henrie··on Why diets backfire: A year after weight loss, the desire to eat grows (2018)
Almost certainly not. Vitamin supplementation would almost certainly be unnecessary if those 400 calories were reasonable, and even then a multivitamin is calorie free.
n8henrie··on Why diets backfire: A year after weight loss, the desire to eat grows (2018)
To my knowledge this mirrors the largest meta-analysis I'm aware of (JAMA? Probably way back in 2008 or so though, man I'm getting old) which showed that virtually all diets have a return to baseline weight by 2 years. Will see if I can find the citation. Do you have a recommended counter-example?
n8henrie··on Why diets backfire: A year after weight loss, the desire to eat grows (2018)
A lot of interesting claims here. Any references?
n8henrie··on Considerations for a long-running Raspberry Pi
I hear the nay-sayers regarding the time cost and complexity of embedded programming, but as a hobbyist I think this is a great recommendation to at least consider.

The projects that I've been able to accomplish on a microcontroller have been more reliable (over decades) than my Pi-based projects, and I don't have to worry as much about them being part of some botnet because I forgot to change the default ssh configuration (wasn't it `pi:raspberry`?).

Beyond micropython, the no_std rust support for ESP32C3 is getting better every month. For people doing little home automation projects because they are fun, the additional constraints can make things a lot of fun and very rewarding.

But yes, for those that are already handy with Linux, a Pi is generally going to be much easier, though IME will be at least 10x as expensive, and the additional setup to get it in the same ballpark for reliability (SSD booting vs network booting vs ro-rootfs, watchdog setup, etc) and the increased power usage (esp for a Pi5) should at least be small part of the decision making.

n8henrie··on Neovide – A simple, no-nonsense, cross-platform GUI for Neovim
Wow, that's been there a while: https://github.com/helix-editor/helix/commit/35c974c9c49f912...

Wonder how I missed that. I'm getting a re-education in helix today -- thank you! I'll go through `hx --tutor` again before I insert any more feet in my mouth.

n8henrie··on Neovide – A simple, no-nonsense, cross-platform GUI for Neovim
I use visual mode a fair amount for block-wise changes (something that helix does very well).

Unfortunately I reliably labor to get might visual selection correct in helix and then mistype a key and it's gone. Glad to hear it's coming!

`g;` takes the cursor to the location of the most recent change you made (and then the one before that, etc.). <C-o> in helix doesn't ever seem to get it right (unless I remember to <C-s>, which I never do).

Also glad to hear about macro support.

I should take another look at if they are interested in contributors. One of my main interests in helix is that I enjoy rust and don't know C/C++, so I feel like I could maybe "give back." That said, my first issue I raised was not taken very seriously (and is a show-stopper for helix on windows in my case).

n8henrie··on Neovide – A simple, no-nonsense, cross-platform GUI for Neovim
I'm intentionally trying to move from nvim to helix, but I still sorely miss macros, `gv`, `g;`, piping rg to the quickfix list, and a few others. Slowly getting used to it though, the ultra-fast startup time and no-hassle LSP integration is nice.
n8henrie··on Scientists found a major clue why 4 of 5 autoimmune patients are women
Perhaps you meant "'XX is female' is a convenient rubric"?
n8henrie··on Expert sounds alarm on new wave of US opioids crisis
I'd say it's fairly accurate. It's difficult to confidently establish "stable" in a patient with possibly feigned or exaggerated symptoms based on history and exam alone. It is generally agreed that pain management is part of managing an emergency, and so if an emergency has not been confidently excluded, it is usually part of care until a workup is concluded. If one could know from the initial evaluation that an emergency could not possibly be present, one could certainly discharge without additional care, but that can be impossible to know immediately (even with highly trained and calibrated eyeballs).
n8henrie··on Fixing a broken smart cat feeder with ESP32
Came to say the same. Big difference in programming language support -- in addition to arduino (or C I presume?) the esp32c3 can be programmed in no_std rust, either 8266 or 32 can be programmed with micropython. Or apparently you can just use ESPHome, which sounds like the easiest approach if all if it suits your use case!
n8henrie··on Why I Like Obsidian
My setup is a little complex, but I'm very happy syncing plain-text notes between my Mac, several Linux machines, and my iPhone.

I'm still using (and loving) Notational Velocity on my Mac. Thankfully it's open source, so I was able to hack together arm64 support even though I don't know C/ObjC/C++ [0].

On my iPhone, I've been very happy with 1Writer, which has a similar interface, and is scriptable with JavaScript for power users.

I have NV configured to store plain-text notes that are stored in 1Writer's iCloud folder, so syncing happens seamlessly between them.

Finally, I sync that same directory with Syncthing to my Linux machines, where I mostly use neovim for editing.

The only feature that I'm often wishing I had is shared editing with my wife. At some point I whipped up some launchd scripts to automatically move notes tagged with `#shared` to a shared subfolder, but it never worked very well. Thankfully my wife is not really all that interested in sharing notes, so we just use Apple Notes when needed.

Tried Obsidian but was miffed at the inability to recognize / store as .txt files instead of .md (or perhaps it was vice versa) without a community plugin, and I prefer FOSS, so uninstalled after a couple days.

Have LogSeq installed but can't convince myself to use it, what I have fits my needs well enough. I'm also concerned about their funding model and the longevity of the project, the other side of the coin of FOSS I suppose.

[0]: https://github.com/n8henrie/nv [1]: https://apps.apple.com/app/id680469088

n8henrie··on Going declarative on macOS with Nix and Nix-Darwin
I often end up scripting something with the dependency tree as opposed to recursively trying to uninstall dependencies that I don't recognize until I get to something top-level that I recognize.
n8henrie··on Going declarative on macOS with Nix and Nix-Darwin
Or frequently just `nix shell nixpkgs#foo` or even `nix run nixpkgs#bar -- --baz` (as opposed to `brew install foo; foo; brew uninstall (or it is it remove?) foo`

I still have both installed as the union of their packages is better than either in isolation, but I really like having a good idea of what I have permanently installed (and why) in my nix config files, as opposed to re-spending 5 minutes in the brew docs to remember the brew incantation that will give me a reverse dependency tree and try to sort out whether I can uninstall something without breaking something else.

n8henrie··on Show HN: Marimo – an open-source reactive notebook for Python
I follow a similar approach -- top-level dependencies in pyproject.toml and then a pip freeze to get a reproducible set for applications. I know there are edge cases but this has worked really well for me for a decade without much churn in my process (other than migrating from setup.py to setup.cfg to pyproject.toml).

After trying to migrate everything to pipenv and then getting burned, I went back to this and can't imagine I'll use another third-party packaging project (other than nix) for the foreseeable future.

n8henrie··on Linux devices are under attack by a never-before-seen worm
> Akamai has been monitoring NoaBot for the past 12 months in a honeypot that mimics real Linux devices to track various attacks circulating in the wild. To date, attacks have originated from 849 distinct IP addresses

This doesn't sound particularly new or concerning. Right?

← PreviousPage 8 of 20Next →