Blog on Thilo Negendanckhttps://tnegendanck.de/en/blog/Recent content in Blog on Thilo NegendanckHugo -- gohugo.ioenSun, 01 Oct 2023 00:00:00 +0000Managing a Bunch of Servershttps://tnegendanck.de/en/blog/managing-a-bunch-of-servers/Sun, 01 Oct 2023 00:00:00 +0000https://tnegendanck.de/en/blog/managing-a-bunch-of-servers/It is 2017 and you just acquired your first domain. You start out small, with a webhosting package from some hoster. After a while, you realize that there are limits. You can’t publish your Python webapp. So, you rent your first VPS and set it up. It resembles the webhosting from before, with the addition of some apps you built.
One day you notice that your registrar takes ages to update your DNS entries.Random points in a circlehttps://tnegendanck.de/en/blog/random-points-circle/Fri, 01 Sep 2023 00:00:00 +0000https://tnegendanck.de/en/blog/random-points-circle/Here’s a problem: How do you get a uniform distribution of points in a circle? The solution for a square is pretty simple: you take a random $x$ and a random $y$ and you get a point $(x, y)$!
$(x, y)$ = (random(), random()) A naive idea for a circle might be to use this approach, but ignore everything not in it (e.g. ignore every point where $ 1 \lt \sqrt{x^2 + y^2}$).Creating an append-only backup with restichttps://tnegendanck.de/en/blog/append-only-backups-restic/Tue, 01 Aug 2023 00:00:00 +0000https://tnegendanck.de/en/blog/append-only-backups-restic/I wanted to backup my data. Easy premise, but harder to get right.
There are a few questions that need to be answered if you want to create a backup:
What backup strategy do i want to use? Which software do I want to use? Where will I store my backup? At the end, I will present my current restic configuration.
StrategyTo create a backup strategy means thinking about what sort of incidents you want to recover from.