Jonathan Marshall
banner
jmarshallnz.bsky.social
Jonathan Marshall
@jmarshallnz.bsky.social
Statistician in Papaioea, Aotearoa. #rstats, #datascience.
That one’s the nicest of the three, probably as the top panel there is only 80mm deep (scriber). The real tricky ones were the 600mm long cuts that the microwave panel fits in. Checked and rechecked the track saw on those cuts I don’t know how many times prior to cutting it 😂
December 14, 2025 at 4:37 AM
And thanks to our new Swedish overlords we have some tap to open magic for the bin. Uses the UTRUSTA electric opener from IKEA. Manufactured by Blum and seems identical to the Servo Drive Uno for 1/3 the price.
December 14, 2025 at 4:11 AM
There are 10 in my input that have p > n which lm will get the wrong solution as it'll use the first n parameters which may not be optimal. Suspect iterating on sets of n from p will work there.
December 11, 2025 at 3:23 AM
Suspect lm() is enough for most of them, but yeah I used lpSolve.
December 11, 2025 at 3:00 AM
I note that I thought of the above _after_ I'd already done the "run a (manual) binary search on part 1" idea 😂
December 8, 2025 at 11:35 PM
I figured recursion+memoisation would be really good here, and was planning on going that way when I realised I could just switch the "is there a beam here" row to a "how many timelines do I have here" row so that otherwise it was identical:

github.com/jmarshallnz/...
December 8, 2025 at 1:25 AM
I was wondering where the vague reference was going to come in. Ofc it'd be the title! :)

Thanks for writing this - I've been meaning to look into separating work and home lives from their current mess and this looks exactly the trick needed to make it work.
December 7, 2025 at 10:30 PM
Fairly sure that one is yeah. The main building code and a few others associated. Not sure if there was a plan to release more in time or not.
December 6, 2025 at 7:16 PM
The previous govt released a few (building) but yeah should all be freely available. Suspect they make bugger all money from them as it is.
December 6, 2025 at 7:10 PM
Oohhh, the apply over applyInd() is a neat idea - gonna steal it :)
December 5, 2025 at 7:17 PM
My final solution to this one is taking the “start with way too many candidates and filter them” from the other end which makes it way easier (and fast as not many candidates): github.com/jmarshallnz/...
advent_of_code/2025/day02/day02.R at cb106e214bb54a209d346a955ace7b67c2fccfb5 · jmarshallnz/advent_of_code
Advent of code with R/tidyverse. Contribute to jmarshallnz/advent_of_code development by creating an account on GitHub.
github.com
December 5, 2025 at 7:13 PM
Nice recursive solution!
December 5, 2025 at 7:08 PM
The passed zero clause needed a bit of thought due to the landing on zero vs leaving zero thing.
December 5, 2025 at 7:06 PM