It's confession time: after nearly eight years living in Germany, I still haven't learned the language. At this point it feels somewhat embarrassing and it's something I'd like to change. Learning a new language as an adult is not easy. On top of that, when you don't come into contact …
To center a tooltip you'll have to reach for some javascript as you need the coordinates for the element that you either hover over or click on. Below I have an implementation for a tooltip using [[Stimulusjs]]. If you're keen on seeing it in action, you can check out the …
This is what a build action for running a test matrix in github actions looks like in python. The yaml file is saved in .github/workflows/<your_name>.yml . name : Running unittests on : push : branches : [ master ] pull_request : branches : [ master ] jobs : build : runs-on : ubuntu-latest strategy : matrix : python-version : [ 3.6 , 3.7 , 3 …
In newer versions of MySQL you can create materialized views directly without any SQL procedures. However I recently had to work with a database that used MySQL 5.6 and in that version it's not possible to create materialized views. To give some context of what the problem at hand …
I've read The Book once before, but it was a long time ago, and at some point I read an o'reilly book about rust too. At the time of reading those books. It felt like the language made sense. I would remember what I read, surely. A few months go …
Crontab is a particularly finicky unix tool. It's not always the easiest to figure out why on earth your scheduled job is not running as it should. There are a number of things that could go wrong. The very first thing to do is of course to double check that …
I want to see my site on the web! That's what I've thought many times, but the thought of deploying things often seems prohibitively complex (unless you go with heroku, which hides most of the complexities at the expense of your wallet). The world of operations is vast and it's …
Proxy models are pretty useful if you want to create a new customized view in django admin. Let's say that you have a normal model and that you need a specific view where you can do bulk uploads. Creating a proxy model from your normal model and then using the …
It's not exactly crystal clear how to test the functionalities that you add to django admin without diving into the source code of Django. So here are a few tips and snippets that'll help. Testing ModelAdmin methods When you come to the point that you need to override any of …
There are many compelling reasons to have an email address with your own domain. My personal motivation is that you become a lot more independant from the tech giants. I've been using gmail for many years and stories where google has completely locked down their google account are particularly frightening …
There are many options out there if you want to create your own website. But if you want customizability and still come away on the cheap the options shrink considerably. However if you create your website with something called a static site generator you'll be able to achieve exactly this. The only thing that you'll have to pay for in the end is the domain.