Posts
read more
AoC24 - Some stone blinking
Who said AoC25-11 should be complicated?
The Challenge
The ancient civilization on Pluto created stones that change every time you blink. Each stone follows specific transformation rules:
- A stone marked 0 becomes 1.
- A stone with an even number of digits splits into two stones, each half of the original number.
- Any other stone is replaced by a new one, with its number multiplied by 2024.
The stones remain in order, and their transformations continue with each blink. For example, the sequence [0, 1, 10, 99, 999] would change to [1, 2024, 1, 0, 9, 9, 2021976] after one blink.
Part 1: blink 25 times. Part 2: blink 75 times.
Full description available here.
Posts
read more
HSTS & .dev domain
A brief overview of HSTS protocol or why I chose the .dev domain
Quick intro
What happens when you’re back from a family weekend in a cabin in the woods with no internet?
I’d probably check my dog’s instagram account first.
On the browser: instagram.com and … my browser is making a call to http://instagram.com
Exactly! I haven’t explicitly used https, so where does this leave me? Exposed to all sorts of man-in-the-middle attacks that wikipedia can list for us in a scary way - session hijacking, protocol downgrade attack, etc.