Better HN
topnewbestaskshowjobs
Log inSign up

js2

31,860 karma · joined Mar 3, 2010 (16y ago) · 8,122 submissions

js2@eml.cc
Submissions

comment 3d ago · link · parent

Usually people discover the bandwidth delay product on long fat pipes. Neat to read someone discover it on a very fast very short link.

https://en.wikipedia.org/wiki/Bandwidth-delay_product

comment 5d ago · link · parent

> Europeans constantly underestimate the size of Texas.

To be fair, so do Americans. Years ago I drove from Florida to California by way of I-10 and it felt like I'd never get across Texas.

comment 5d ago · link · parent

ratgdo is great, but a few years ago I needed something easiy for a pair of doors and ended up with a Meross MSG200, controls up to three doors. Works great with HK or HA, local control, can block it at your router but i'll get annoyed that it can reach a time server if you do. One of these days I should probably switch to the ratgdo. It's what actually started me down the path of home automation because we kept leaving our doors open overnight.

(My openers themselves are 20+ year old Wayne Daltons, and I've revived one of them from a lightning strike and the other from a broken gear, but they've otherwise been trouble free.)

comment 5d ago · link · parent

Yeah, the spaces in the U.S. are vast, and in Texas they are really vast. Four time zones east to west, not counting Hawaii or Alaska. I'll be driving up to my aunt and uncle's for Thanksgiving. That's just 660 miles north and four state lines. Obligatory https://thetruesize.com/

comment 1w ago · link · parent

The dozen or so distilleries I visited in Scotland last year, big and small (including allegedly the smallest[^1]), all used Glencairns in their tasting rooms. I brought back a couple of tiny ones I got at Lagavulin since they're neat keepsakes. At home, I prefer a Canadian Glencairn:

https://www.glencairnwhiskyglass.com/glencairn-packages/glen...

[^1]: https://stirlingdistillery.com/

comment 1w ago · link · parent

That's how every fridge/freezer combo I'm aware of works. A fan circulates air over the evaporator coil in the freezer compartment both within freezer and up into the fridge compartment. It's not uncommon for the fan to break. There's also a small door in the fridge compartment (called a damper) that controls the amount of air allowed in to the fridge compartment. The motor that controls that can also sometimes get stuck. I've been in my home since 2004 and we're on our second fridge/freezer. The compressor failed on the first one after about 12 years, but not before I had replaced the evaporator fan motor.

Still on the original dish washer and double-oven. Had to replace the top-loading washer about 10 years ago, decided to replace the dryer then too in order to switch from gas to electric. Second microwave. Got tired of replacing the damn door micro switches on the first one.

Home appliances are pretty basic to work on. As long as you can find the parts. The hardest part of working on the double-oven (needed new elements) was building an exact height dolly so I could slide it out of the cabinet on my own:

https://ibb.co/v3RzLND

https://ibb.co/5Lxqc3N

comment 1w ago · link · parent

I can maybe do you one better. I think my first investment was 140 shares of LNUX at F&F IPO pricing of $30/share, purchased Dec, 1999. It opened at $299/share the day of the IPO. Should've sold that day. Eventually sold it all in 2004 for $2.80/share.

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

comment 1w ago · link · parent

"If you know all commands that you want to execute up-front, then the solution gets far simpler":

https://emmer.dev/blog/concurrent-shell-command-queues/#why-...

comment 1w ago · link · parent

> How to run shell commands in parallel while limiting their concurrency.

Depending upon the task, generate a Makefile and run it with:

  make -j <concurrency>
> My original use case had to do with making a large number of web requests

This is in fact the use case that caused me to think about using a Makefile for concurrency probably 20 years ago. A rule for downloading each URL to a file. Then a simple `make -j <jobs>` with whatever concurrency I desired and bonus: automatically skipping already downloaded files. e.g.:

  BASE  := https://example.com/files
  FILES := a.txt b.txt c.txt d.txt e.txt

  .DELETE_ON_ERROR:

  all: $(FILES)

  $(FILES):
        curl -sS --fail --max-time 30 -o $@ $(BASE)/$@
Or, to emulate one of the examples in the blog post:

  SHELL := bash
  .SHELLFLAGS := -o pipefail -c

  N    := 1 2 3 4 5
  REQS := $(N:%=req-%)

  .PHONY: all $(REQS)
  all: $(REQS)

  $(REQS): req-%:
        @curl -sS --fail-with-body --max-time 10 -X POST -H 'Content-Type: application/json' \
        -d '{"request": $*}' https://postman-echo.com/post | jq -c .json

Run with:

  $ make -O -j 3
> You do not need to know all the commands that you want executed up-front, you can submit commands to it over time.

Ah, yeah, that does put Make in the same bucket as `xargs -P` / GNU `parallel` and requires something more clever.

comment 1w ago · link · parent

Well that's embarrassing. I learned Java in 1996 in college. I was introduced to Python (1.5.2) at a startup in 2000. The startup was probably equally split between Java and Python code. I've essentially used Python almost exclusively since then. It's served me well in my career. I never have cared for Java.

Thank you for explaining the joke that's now old enough to drink, but somehow has eluded me all this time. :-)

comment 1w ago · link · parent

https://youtu.be/uQl5aYhkF3E

("You're not wrong Walter, ...")

comment 1w ago · link · parent

More succinctly, you can run this as a module:

  $ python -m this  # -mthis works too

13.

Protecting SSH Keys with macOS Secure Enclave(gatezh.com ↗)

403 points · by js2 · 1w ago · 141 comments

14.

Max Hardberger: Repo man of the seas (2010)(theguardian.com ↗)

2 points · by js2 · 2w ago · discuss

comment 2w ago · link · parent

Read also Max Hardberger makes his living by stealing back stolen cargo ships, beating pirates at their own game from Haiti to Russia. John Crace talks to the ultimate repo man:

https://www.theguardian.com/world/2010/nov/14/max-hardberger...

And let me recommend his semi-autobiographical Freighter Captain:

https://www.amazon.com/Freighter-Captain-Max-Hardberger/dp/0...

comment 2w ago · link · parent

Yup. https://www.youtube.com/watch?v=gF2Jo6z5RFc

comment 2w ago · link · parent

https://www.nytimes.com/2026/11/07/science/space/holley-bock...

comment 2w ago · link · parent

I think your best option then is CoreELEC running Kodi. Look for a deal on Fire Cube 2nd gen on eBay, root it and install CE. Not as compact as a Firestick and a bit more expensive.

https://discourse.coreelec.org/t/best-device-for-coreelec-in...

comment 2w ago · link · parent

Why not run the Jellyfin client (or Kodi?) on a Firestick?

comment 2w ago · link · parent

A Compilation of Space Shuttle Sonic Boom Measurements:

https://ntrs.nasa.gov/api/citations/20110011322/downloads/20...

21.

Space shuttles sonic booms compilation [video](youtube.com ↗)

3 points · by js2 · 2w ago · 3 comments

comment 2w ago · link · parent

An DOT Inspector General progress report from 2024:

https://www.oig.dot.gov/sites/default/files/library-items/FA...

comment 2w ago · link · parent

Neither of these work. iCloud Recovery lets you restore deleted notes (if you're lucky), but not get back a note where you've accidentally deleted the text. Getting back a deleted note is easy; you can already do that from "Recently Deleted" for up to 30 days. But undoing a stray edit, you'd better do it right away.

e.g. you're trying to copy text out of a note so you select a portion of it. One stray tap and the highlighted text is gone. Shake to undo immediately or the text is long gone and then it syncs everywhere. The maneuver is so risky I've taught myself a work-around when I'm on my iPhone when I only need a portion of a note. I use the share icon to copy the entire note, paste that into a new temporary note, edit the new note down to the portion I want to share, then copy that text and finally delete the temporary note.

Locking a note doesn't do what you think it does. It doesn't prevent edits. It just means you need to provide a password to view the note. Once you've unlocked the note, it's just as susceptible to a stray edit.

On macOS you can really lock files, preventing them from being edited:

https://support.apple.com/guide/mac-help/lock-a-document-on-...

It was silly of Apple to use the term "lock" to mean different things. They should've called the thing in the Notes app "private" or "hide" or something. Also, locked notes don't have the same functionality as non-locked notes; e.g. you can't add attachments to a locked note:

https://support.apple.com/guide/notes/lock-your-notes-not28c...

Anyway, the best you can do if you accidentally edited a note and didn't undo it in time is to extract the note from a backup of the Notes sqlite DB, should you have one from your Mac (say).

comment 2w ago · link · parent

I just really wish it had even the most basic revision control. It's really easy to accidentally wipe out an entire note on your iPhone and then iCloud helpfully syncs it everywhere. Or even the ability to simply make a note read-only would be nice.
12345
271