HNHacker News
TopNewBestAskShowJobs

koenigdavidmj

4,718 karma · joined January 31, 2010

submissionscomments
koenigdavidmj··on Taiwan Submarine Cable Map Showing Current Outage
The alerts icon (triangle with a ! in it) shows a text list of the outages. There are many active; only one happened recently. They seem spaced out from each other, not indicative of a burst of Chinese naval activity.
koenigdavidmj··on Who is Marcellus Williams: Execution in Missouri despite evidence of innocence
We don’t use the word reasonable anymore the way it was written originally, and the actual meaning is what you’re asking for, except for every conviction, not just capital ones. It doesn’t mean “a small but tolerable level of doubt”. It means doubt backed by reason. “Aliens made me do it” is doubt that is not backed by reason. “There is another plausible way that conforms to the evidence given that he came to possess that laptop” is reasonable doubt.
koenigdavidmj··on Real-time map of every Starlink satellite in orbit
The San Juans?
koenigdavidmj··on Why are Apple Silicon VMs so different?
Docker runs an ARM kernel and uses qemu in user mode on the individual binary level. Anything CPU-bound is emulated, but as soon as you do a system call, you’re back in native land, so I/O bound stuff should run decently.
koenigdavidmj··on Watsonx: IBM's code assistant for turning COBOL into Java
That seems to be the spot humans are weakest at—reviewing something where we think the computer did a good job 90% of the time, but quickly noticing when something goes wrong. Similar to level 3 self-driving—requiring full attention, able to instantly snap into full unassisted driving.
koenigdavidmj··on Off-duty pilot allegedly tried to shut off engines on Alaska Airlines flight
Then you have to trust a bunch of people on the ground to be sane, in addition to whoever is in the cockpit.
koenigdavidmj··on Apparatus for facilitating the birth of a child by centrifugal force (1963)
My wife has had kids in all these settings, except the home birth was through the same provider as the birthing center. All of them were covered by insurance, except the birthing center is out of network. There’s an in-network one the next city over.

(This is a perfectly ordinary HDHP/HSA plan through a large company that you’ve heard of.)

koenigdavidmj··on Why are maps so hard to make?
Furkot.com should get you a lot of what you want here, except obviously not offline.
koenigdavidmj··on Understanding the bin, sbin, usr/bin, usr/sbin split (2010)
I’m assuming you are proposing to stat each candidate before trying to execve it. I’m also assuming that a stat system call is roughly as expensive as an execve of a nonexistent or non-executable path.

For every failed candidate, you are doing one system call, so roughly the same cost each way.

Now if you just do an execve, you’re just paying that cost. If you stat first, you pay the cost of another system call that doesn’t change the flow of your program at all (a nice way of saying you’re wasting time).

Unless stat is dramatically faster than exec on a nonexistent or non-executable path, there’s never a case where this is better.

koenigdavidmj··on Singapore Government Tech Stack
The US is large enough to have had its government break promises like this time and again. That’s why you’ll see a lot of people on here that will object to a design requiring you to trust the owners of your infrastructure.

Signal is the chief example of this kind of design. All they can provide a government is the creation date of someone’s account, and the last time they tried to check for messages. Neither message content nor metadata (who sent messages to whom) is accessible, assuming the app follows the design and the design doesn’t have defects.

koenigdavidmj··on ᐊᐣᑕᔚᐣᐦᐃ ᐁᐏᒋᑭᐍ ᐅᑕᐱᓇᒪᐣ ᓂᒪᒪ ᐅᑎᔑᑭᔑᐍᐏᐣ ᒷᔦ ᐃᐡᑿᓭᐠ
There was actually a pre processor that used the characters ᐸ and ᐳ as part of faked generics.
koenigdavidmj··on Ask HN: Why should I trust password managers?
Your decision here is based on balancing security and convenience. It's a tradeoff that you have to decide on based on your situation.

Most average users are willing to trade the upside of the SaaS apps (sync is easy and pretty secure) for the downside (have to trust a third party like 1Password, that they won't send you a malicious client that slurps your master password).

We're technical, so we can use Password Store[0] and avoid the downside of the SaaS programs (have to trust a third party) while still having sync. If you're pissing off entities who might conceivably blackmail or hack 1Password, Password Store is the bare minimum.

[0] I'm not addressing that Password Store doesn't encrypt the sites it has logins for, just the fact that it doesn't require entering your master password in a web page.

koenigdavidmj··on Ask HN: What features are you looking for in a note-taking app?
Something like the Canon Cat. One big file with quasimodal search. Embedded images and probably arbitrary files. Maybe spreadsheet-ish features (ability to dynamically fill out data generated from code).
koenigdavidmj··on Ask HN: Who's getting pulled back into the office?
I highly doubt it will ever be required at my company. Too many people made permanent moves away from the office, some nearby (2-3 hours away, but doable occasionally) and some far away (cross country). They know they'd lose a lot of people if they called everyone back.
koenigdavidmj··on Removing trucks could be almost 'impossible,' say heavy towing experts
Anyone still there has already counted the cost and decided that jail and fines are insufficient to dissuade them. Just like every other protest movement that you like. Now what?

Also, you’re Canada, not China, so you’re hamstrung by those pesky human rights. Jail and fines is all you can do; you can’t just shoot ‘em all

koenigdavidmj··on Department Press Briefing – February 3, 2022
Video version: https://m.youtube.com/watch?v=_DTSSvtg19I

The journalist is from the AP, for additional context.

koenigdavidmj··on GoFundMe pauses donations to Canada truckers
If there are five trucks there, most of this is moot. If there are a couple thousand, this gets interesting.

- How many bulldozers do you have nearby?

- How many bulldozers do you have nearby that are on the government's side here?

- Where's your nearest hole or parking lot big enough to put a couple thousand trucks in, indefinitely?

- Who's going to pay for that? Your truckers are in jail, so you threaten to...jail them if they don't pay?

It's Canada, not Xinjiang. The worst they can do is jail you in a cushy prison for longer, with people who already counted the cost.

koenigdavidmj··on GoFundMe pauses donations to Canada truckers
So you arrest them all.

Now they can’t drive away the <N> trucks in downtown Ottawa. You just exhausted all your leverage with them when you decided to throw the book at them.

You call a tow truck driver. They say “I don’t have a class 3 tow truck, there’s no way I can move a semi.”

You call a class 3 tow truck driver. They know they’re risking their reputation with the trucking industry, so they refuse. If they’re the trolling sort, they say they have COVID.

Now what? There’s a lot of mess to clean up, and you don’t have the equipment you need to do it.

koenigdavidmj··on Ask HN: Did I make a mistake jumping on the homestead bandwagon?
All this assumes that you’re in roughly my spot—software engineer who lives on more land than you know what to do with. (We’re on 100 acres, but most of ours, we just rent out to some guys for pasture and hay.)

I wonder if you’re seeing it as a rulebook. YouTube shows you 45 different projects, and so your mind says that you have to do all of them, now.

If food security is your concern, start with something manageable and move on once you’re done. If you want chickens, don’t think at all about goats or cattle. Just build the best darn chicken enclosure you can, raise some hens, and enjoy the eggs. Only once you’re satisfied you can keep that routine do you think about taking the next animal on.

Exhibit B: our temptation was to build a gigantic garden, because we could. That flopped because it’s really hard to weed that when you’ve got a toddler and a baby and a day job. This year? Small garden that we can keep up with.

What’s our agenda this year?

- Cover our cave so we can use it

- Find a place to store firewood to dry it

- Cut a bunch of it

Everything else is a nice to have. I highly doubt you’re depending on this, so don’t make yourself feel guilty just because someone on YouTube is in a season of life where they can do more.

koenigdavidmj··on I write about America’s health care system, and I got caught up in it
My insurance did this for my kid’s eczema. Except the $5 one was an immune suppressant. For my toddler. For eczema. During a pandemic.

The only sane response to that is “okay, I won’t give my kid either of those; we’ll just stick with OTC lotions”. Which is exactly what they intended.

koenigdavidmj··on Apple removes Python 2.7 in macOS 12.3 beta
Up until 12.3, it did.

Now, it's included in the CLI tools. You know how when you run 'clang' or any of those, it's a wrapper that offers to download the real tool for you? That's how the 'python3' binary works now.

koenigdavidmj··on Ask HN: What are you going to use instead of Docker Desktop for macOS?
Podman with https://github.com/jan-g/podman_wrapper to set up sshfs to work around its lack of bind mounting.
koenigdavidmj··on Log4j RCE Found
It was a few months ago, but if I recall correctly, there were two overrides for info (and the other equivalent methods). info(String, String...) would do {} expansion like you mentioned, but info(String) would log the string directly, not doing format expansion on it.

I'm not sure how this interacts with the RCE issue reported here.

EDIT: That's because I was thinking of Slf4j, which has additional smarts here.

koenigdavidmj··on What’s wrong with Git? A conceptual design analysis (2016)
I wonder if it’s a workplace I worked at. We ended up having a bunch of generic branch names (one org had colors, another had star-related things), and when a project was done, they just used that branch for something else.
koenigdavidmj··on Who Owns England’s Woods? (2020)
Torrens title? Or are you talking about a different system?

https://en.wikipedia.org/wiki/Torrens_title

koenigdavidmj··on Git's list of banned C functions
gcc has a -include option, so this can be done once in the Makefile and get the benefit everywhere (unless you’re being clever).
koenigdavidmj··on Go is not an easy language
Most languages codify common idioms from earlier ones; I don’t see how most of the patterns are any different.

I’m sure there were a lot of assembly programs that used the “call stack pattern”. I’m sure there are a lot of C programs that abuse struct packing to do inheritance (the “class pattern”, sometimes with crappy vtables) or the preprocessor to do “templates”. And even in Python, you’ve got to use the visitor pattern due to single dispatch.

koenigdavidmj··on Software That Sucks Less
dwm: Don’t care what the D stands for, but there are a bunch of X11 window managers ending in ‘wm’ so that’s probably what this is too.

dmenu: Since it’s coming from the same place as dwm, it’s probably a menu app that goes well with it.

st isn’t obvious, I agree, but it makes sense to give a short name to the program you use most frequently.

koenigdavidmj··on Slack is down
Other data points:

* iMessage was taking its sweet time sending a few texts this morning.

* I had momentary trouble trying to call a business from my Verizon phone, and someone I know had trouble calling from AT&T.

Could just be a coincidence, but I wonder if something larger-scale is happening.

koenigdavidmj··on Rust 1.49.0
Tier2 compiler can be built with a cross-compiler, perhaps, but you don’t have consistent access to hardware to run the tests on. Just a guess
Page 1 of 34Next →