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.
Blogs
Advent of Code 2022 Day 7: No Space Left On Device
Convert terminal output to tree structure of files and directories
Blogs
Advent of Code 2022 Day 3: Rucksack Reorganization
Set operations on the contents of Elf backpacks.
Blogs
Advent of Code 2021 Day 24: Arithmetic Logic Unit
Finding valid input for an ALU program. Graph search. DAGs. Virtual machine.
Blogs
Advent of Code 2021 Day 15: Chiton
Dijkstra’s shortest path algorithm with a priority queue implemented using
container/heap
.Blogs
Advent of Code 2021 Day 9: Smoke Basin
Flood fill in a more literal sense. Implemented using DisjointSet, also known as Union-Find algorithm.
Blogs
Advent of Code 2021 Day 8: Seven Segment Search
Decoding scrambled seven-segment displays using bitwise set operations.
Blogs
Advent of Code 2021 Day 7: The Treachery of Whales
Introduction to crustacean based optimization methods.
Blogs
Advent of Code 2021 Day 6: Lanternfish
Modeling an exponentially growing population of lanternfish.
Blogs
Advent of Code 2021 Day 5: Hydrothermal Venture
Helping Santa’s submarine avoid dangerous clusters of hydrothermal vents using a line drawing algorithm.
Blogs
Mermaid graphs in Obsidian and Hugo
How to render graphs in both Obsidian and Hugo using the same input file.
Blogs
Offentlig 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.
Blogs
Advent of Code 2021 Day 3: Binary Diagnostic
Or how to solve a bitwise operations problem using strings.
Blogs
Advent 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.