Recent Blogs
Functional Options in Go and Rust
The Functional Options Pattern is a safer alternative to struct literals, and is commonly used in Go. These are the challenges I encountered when trying it out in Rust.
read moreAdvent of Code 2022 Day 7: No Space Left On Device
Convert terminal output to tree structure of files and directories
read moreAdvent of Code 2022 Day 3: Rucksack Reorganization
Set operations on the contents of Elf backpacks.
read moreAdvent of Code 2021 Day 24: Arithmetic Logic Unit
Finding valid input for an ALU program. Graph search. DAGs. Virtual machine.
read moreAdvent of Code 2021 Day 18: Snailfish
Tree-traversal for snailfish number calculation purposes.
read moreAdvent of Code 2021 Day 15: Chiton
Dijkstra’s shortest path algorithm with a priority queue implemented using
read morecontainer/heap
.Advent of Code 2021 Day 14: Extended Polymerization
Growing petabyte-long molecules at home.
read moreAdvent of Code 2021 Day 9: Smoke Basin
Flood fill in a more literal sense. Implemented using DisjointSet, also known as Union-Find algorithm.
read moreAdvent of Code 2021 Day 8: Seven Segment Search
Decoding scrambled seven-segment displays using bitwise set operations.
read moreAdvent of Code 2021 Day 7: The Treachery of Whales
Introduction to crustacean based optimization methods.
read moreAdvent of Code 2021 Day 6: Lanternfish
Modeling an exponentially growing population of lanternfish.
read moreAdvent of Code 2021 Day 5: Hydrothermal Venture
Helping Santa’s submarine avoid dangerous clusters of hydrothermal vents using a line drawing algorithm.
read moreAdvent of Code 2021 Day 4: Giant Squid
Implementing the bingo subsystem for Santa’s submarine.
read moreMermaid graphs in Obsidian and Hugo
How to render graphs in both Obsidian and Hugo using the same input file.
read moreOffentlig IPv4 med Telenor SIM-kort
(Norwegian) I dag lærte jeg: Hvis du ønsker å tilgjengeliggjøre en server som kjører på en mobiltelefon, bak en 4G-ruter, eller på en PC med SIM-kort, og er på Telenor-nettverket (Telenor, Vipps Mobil, Fjordkraft, Gudbrandsdal Energi, Happybytes, NorgesEnergi), kan du gjøre følgende:
I nettverksinnstillingene på dingsen din, finn “APN” (Access Point Name). Hos Telenor er denne f.eks. telenor.smart eller telenor.fwa. Endre denne til internet.public, og skru av/på flymodus eller restart dingsen din.
read moreAdvent of Code 2021 Day 3: Binary Diagnostic
Or how to solve a bitwise operations problem using strings.
read moreAdvent of Code 2021
It’s happening! Finally December is here, and a new Advent of Code begins. I’ll try to write a very short post for each of my solutions.
read more