Duncan Booth
kupuguy.bsky.social
Duncan Booth
@kupuguy.bsky.social
Programmer, loves Food, Electric Vehicles and taking photos.
It's a commercial port of Rogue so not quite the original BSD4.2 version that wikipedia says was from 1980 (I remember playing it in 1982).
September 15, 2025 at 7:39 PM
Wild quail actually rather than salmon, but pretty much.
April 27, 2025 at 5:01 PM
Actually on further inspection I see there are three places for packages but a lot of packages simply ignore those so for example I have git installed directly in Program Files rather than under AppData or Program Files/WinGet/Packages.
January 26, 2025 at 2:43 PM
I think so. It has a folder for packages and (if it can create links) a single folder containing symlinks to the executables.
January 26, 2025 at 12:47 PM
Or install it with winget: `winget install --exact astral-sh.uv`
winget comes with Windows 11 so you don't need to install any third party package manager.
January 26, 2025 at 11:22 AM
Thank you, having an excellent first Saturday even if it is a little nippy.
January 4, 2025 at 2:35 PM
The sliding window generator is straight out of the Python docs!
December 23, 2024 at 4:40 PM
Brute-force was pretty much the only way to do Monkey Market. With your code you try and access every key that was in any buyer dict across all of them so lots of adding 0. I used a Counter and updated it with each buyer so only ever accessed existing keys.
For comparison: pastebin.com/U6Cf3cB3
Advent of Code 2024 Day 22 - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
December 23, 2024 at 3:44 PM
It has to create it: if you had `d=defaultdict(list)` then `d[key].append(value)` only works because the object is created in the dictionary whenever first accessed.
December 22, 2024 at 3:26 PM