Recipe Rescaler

June 28th, 2026
food, recipes, tech
I keep my recipies on my website, and like most of my website it grew over time instead of being designed. A couple years ago I added some progressive enhancement that puts checkboxes on the ingredients, and today I added a rescaler:

Here's tripling it:

This is another project, like adding transposition to my solstice songbook, where I wouldn't have put in the time if I couldn't delegate to an LLM. It went very quickly, and the code seems reasonable.

Implementation notes:

  • As you go up and down it converts teaspoons to tablespoons to cups. Yes, I still cook volumetrically.

  • It handles numeric ranges, like "3-4 cups".

  • It handles fractions: half of 1 1/4 C is 5/8 C.

It doesn't handle everything. I wanted something simple and reviewable that handles most cases, instead of trying to make something exaustive (that would then have weird bugs). This means with complex items like "2 eggs (or 2T flax and 5T water)" only the "2 eggs" is scaled. To make these failures graceful, all scaled values are bolded, so unscaled values stick out visually.

Comment via: facebook, lesswrong, mastodon, bluesky

Recent posts on blogs I like:

Variable fonts aren't universally supported

I make a lot of webpages. I also use Lockdown Mode on iOS and MacOS for a bit of extra security. Sometimes I realize that I forgot to test on Safari and it looks like crap, or I test and don’t notice that there’s been a problem for months (as was the case…

via Home June 27, 2026

Ozy in Asterisk on coping with AI doom

I wrote an article for Asterisk Magazine about people who believe in AI superintelligence soon, and who are chill about it.

via Thing of Things June 24, 2026

Fiddle Practice

For a while I wasn't learning how to play violin very well because whenever it was time to practice I didn't want to. I didn't really like practicing, because (1) it's boring, (2) I have better things to do, and (3) actually I guess there …

via Anna Wise's Blog Posts May 3, 2026

more     (via openring)