Posts
-
Bouncing blocks gives you Pi
- 1 minute read
The YouTube channel 3Blue1Brown recently uploaded a video where they give the following situation: we have two sliding blocks and a wall on the left. The first block starts out motionless, and the second block comes in sliding from the right.
-
A rusty Advent of Code 2018
- 14 minute read
Like any year since 2015, when December rolled around my productivity plummeted. It’s time to waste all my hours perfecting a program solving a problem that no one needs solved. Hello Advent of Code 2018. If you haven’t read my previous posts and haven’t heard of Advent of Code before, consider checking them out first. If you just want to see the actual code, you can find it on Github.
-
Advent of Code - Polyglot Edition
- 6 minute read
Two years ago, Eric Wastl announced his Advent of Code: an advent calendar with a different programming challenge every day. During the event, you helped Santa power his snow machine by completing the two tasks for that day.
-
Memory-safe linked lists
- 6 minute read
Everyone who worked with C++ for longer than twelve seconds has noticed that keeping track of pointers is somehwat complicated. You have all kinds of wonderful new problems that you never knew you could have in other languages:
- Null-pointer dereferencing
- Use-after free
- Memory leaks
-
Cleaning up the home dir
- 6 minute read
If you’ve ever done something like
ls -la ~
, then you must have noticed that your home directory is a mess of hidden files. This annoys the inner perfectionist in me, as I never have more than a few files in any folder. Everything is a nice tree structure.
subscribe via RSS