31,860 karma · joined Mar 3, 2010 (16y ago) · 8,122 submissions
comment 5d ago · link · parent
(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
comment 1w ago · link · parent
https://www.glencairnwhiskyglass.com/glencairn-packages/glen...
comment 1w ago · link · parent
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:
comment 1w ago · link · parent
https://emmer.dev/blog/concurrent-shell-command-queues/#why-...
comment 1w ago · link · parent
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 requestsThis 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
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
("You're not wrong Walter, ...")
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
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
https://discourse.coreelec.org/t/best-device-for-coreelec-in...
comment 2w ago · link · parent
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
https://www.oig.dot.gov/sites/default/files/library-items/FA...
comment 2w ago · link · parent
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).