Tootfinder

Opt-in global Mastodon full text search. Join the index!

No exact results. Similar results found.
@jamesthebard@social.linux.pizza
2025-12-04 18:45:52
Content warning: Advent of Code Solution - Day 4 (Nim)

Changed the code structure slightly from the Python solve, added the `itertools` package because I wanted `product`. Works perfectly and I'd argue slightly more readable than the Python version. Overall pretty satisfied with the solution.
Solution: git.jamesthebard…

@jamesthebard@social.linux.pizza
2025-12-04 16:56:30
Content warning: Advent of Code Solution - Day 4 (Python)

I was worried that this would be pathfinding. Thankfully it was not pathfinding. Was definitely a fun problem, and I used more than a couple of comprehensions to get this done.
Solution: git.jamesthebard.net/jweatherl

In neither this year nor the next should anyone expect Russia to propose a deal that is meaningfully different from what it has already.
How do we change the circumstances?
There are two main levers.
The first deteriorates conditions inside Russia to the point that Mr. Putin is forced to consider ending the war as the lesser evil,
and it is achieved by imposing sanctions that would be powerful and smart enough to erode Russia’s capacity to wage war and significantly i…

@jamesthebard@social.linux.pizza
2025-12-03 15:38:46
Content warning: Advent of Code - Day 3 (Python)

Ooooo, I knew that my initial solution for Part 1 was going to get absolutely discarded for Part 2 (which inevitably came true). Lots of string sorting, grabbing an index, and a moving window to find the largest value.
Pretty proud of the solve, it's fast and it's all that janky.
Solution: <…

@emilis@social.linux.pizza
2026-01-01 17:34:21

Ukrainian intelligence fakes commander's death, takes 0.5M bounty from russians.
kyivindependent.com/ukraines-h

@jamesthebard@social.linux.pizza
2025-12-03 17:29:12
Content warning: Advent of Code - Day 3 (Nim)

The #nim solution looks very similar to the Python one, but that works out well enough as the method works great on both. Didn't check to see if Nim had a `for/else` construction, but a friend threatened me with death if I tried.
Solution:

@cheeaun@mastodon.social
2025-10-24 11:06:54

Finally saw this. @… (and me 🙇‍♂️) featured on @… 's talk "The Future is federated" in #fediday2025 (3-5 Oct 2025)
Link…

A speaker at a podium on the left and a presentation slide on the right titled "PHANPY.social" with a screenshot of Phanpy's Catch-up interface and a screenshot of @cheeaun's profile page.
Slide from a presentation titled "MOBILE APPS" showing a speaker on the left and an iOS app folder with several Fediverse app icons on the right; showing Ice Cubes, Ivory, Mastodon, Mona, Phanpy and Surf.
@jamesthebard@social.linux.pizza
2025-12-05 06:28:13
Content warning: Advent of Code Solution - Day 5 (Python)

I stayed up far too long tonight for this one, but it was fun. Saw that we were dealing with an absolute metric ton of ranges at the very beginning so my initial thought was to reduce/merge those ranges and that's what I spent most of my time on before even tackling part 1.
It paid off tremendously and made solving everything very, very easy. There's still the Nim version to write, but I'll handle that after I get some sleep.
Solution:

@jamesthebard@social.linux.pizza
2025-12-03 02:37:05
Content warning: Advent of Code - Day 1 (Nim)

Figured I'd give `nim` some love this #aoc along with Python. I'm rusty as hell, but I think the initial take looks pretty great. Easy enough to compile/run and fairly readable.
Solution for day 1:

@jamesthebard@social.linux.pizza
2025-12-03 05:29:04
Content warning: Advent of Code - Day 2 (Nim)

This solve felt more like #nim and less like me writing Python. More uses of `map` and `apply`, using `if/then` as a proper ternary, integer -> string conversions, etc. Also the `sugar` module makes me a happy person.
The day 2 solution in Nim: