Just wrote a fun little algorithm for iterating through all grid positions within X euclidean distance from a center, roughly in order of distance but also mostly ensuring each position yielded is at least diagonally adjacent to the previous. It's a fun problem to think about with lots of design tradeoffs and many valid solutions.
My solution requires that the origin be on the grid (I think?) and uses a bunch of caching instead of a bajillion distance checks, although I don't actually know what the memory/speed tradeoff is like or whether there are any gains at all (could be net losses, which I'm starting to wonder about more as I write this post). Thankfully I don't expect performance to be very critical here anyways, and doing the caching actually helped separate some logic in a useful way.
A fun little diversion from bigger stuff in the project and a reminder of some of the joys of programming design at a small scope. Feels kinda like mastering the local town's minigame while you're stuck on the main quest in an RPG.
#programming
Pogacar Makes History!
Tadej joins
Jacques Anquetil,
Eddy Merckx,
Bernard Hinault,
Miguel Induršin,
to have won the #TdF 5 times!
chapeux!!
#TourdeFrance #cycling
Anthropic A.I. Model Finds Flaws in Tough-to-Crack Encryption Algorithms
https://www.nytimes.com/2026/07/28/us/politics/anthropic-ai-encryption-security-aes.html?unlocked_article_code=1.1FA.wc91.u3H4zb5-tRdV&smid=url-share
đșđŠ Auf radioeins lĂ€uft...
Tom Petty & The Heartbreakers:
đ” Learning To Fly
#NowPlaying #TomPetty #TheHeartbreakers
https://open.spotify.com/track/17S4XrLvF5jlGvGCJHgF51
Ă
ker en söndagstur i min favoritcykelrunda. Ett medley genom södra tunnelbanans förorter och skogar. Finns hÀr https://happyride.se/turtips/bakvagen.141/
Nu paus i Nackareservatet
Describe what you do in the most uninformative but truthful way possible.
I'll start:
I press buttons for a living.
Any takers?
"But to prove *intent* you'd have to like... collect evidence, such as previous history of actions, what they might have said or written in private. You'd basically have to ask them if they intended to do the bad thing and trust that they'd actually truthfully tell you."
Yes, yes indeed.
TourdeFrance is feitelijk voorbij, spanning is weg, na etappe 6 van de 21. Geen sportliefhebber kan hier blij mee zijn. Al kun je Pogacar niets verwijten.
#wielrennen #tourdefrance