🌵 "We tell ourselves stories in order to live." - Joan Didion
Happy July!
I hope you had a good week! I had a busy one and the long weekend here in the States was a VERY welcome step away. Let's kick off the week!
Was this forwarded to you? You can subscribe here!
Web links of the week
Your documentation is still in your Mum’s filing cabinet
You Can Detect if Code Is Being Run Inside a Terminal
The Goldilocks customizable select height
New in Chrome 150
Something that interested me this week
I updated my blog template this week to Astro 7! It was really fun and I blogged about the main thing I had to update to make everything work smoothly.
I've been noodling on the tech stack for my blog lately. I really like the setup, but I have noticed that my node_modules folder gets heavy because I'm using TinaCMS. I even made a video about a tool I found to clean up that folder because it was so beefy. I like that Tina is Git and markdown-based, but I might experiment with options to see if I can trim the built repo size down. We'll see!
Sponsor
Ever notice your agents just...forget everything the second a session ends?
Redis Agent Memory fixes that.
It gives your agents short-term memory plus context that actually sticks around across conversations, managed for you.
Interview question of the week
Last week, I had you get the mean number of bits to represent numbers! You did a bit too well Kriszti, Andrew, Alex, Amine, Ten, Paul, Ross, David, Brad, Thulasi, Nico, Shreya, and the fine folks in the Ruby Users Forum!
This week's question:
Given an n x m grid, an odd integer size, and a coordinate (row, col) representing where a firework explodes, return all grid coordinates impacted by the blast. A firework affects every cell within Math.floor(size / 2) rows and columns of the center, clipped to the grid boundaries.
Example:
> getImpactedCoordinates(5, 5, 3, 1, 1)
> [[0,0],[0,1],[0,2],[1,0],[1,1],[1,2],[2,0],[2,1],[2,2]]
> getImpactedCoordinates(3, 3, 1, 2, 1)
> [[2,1]]
> getImpactedCoordinates(5, 5, 3, 4, 4)
> [[3,3],[3,4],[4,3],[4,4]]
(you can submit your answers by replying to this email with a link to your solution, or share on Bluesky, Twitter, LinkedIn, or Mastodon)
Cool things from around the internet
Bring Back Crappy Forums
If you’re a button, you have one job
The Tech Tree of Milk Is Insane (video)
I built a Game Boy Themed Keyboard (video)
Joke
What do you call corn that joins the army?
Kernel!
(...this joke also works for operating systems)
That's all for now, folks! Have a great week. Be safe, make good choices, and go appreciate some plants!
Special thanks to Ben, Kinetic Labs, and Marta for supporting my Patreon and this newsletter!
cassidoo
website | blog | github | bluesky | youtube | twitch | twitter | patreon | codepen | mastodon