Setting up my own Mastodon server

Posted on November 10, 2022. Reading time: 2 minutes

In light of the recent implosion of Twitter after its takeover, there's been an exodus of users to Mastodon, the distributed, open-source, social network alternative. I have also set up an account and initially set it up on the largest server, mastodon.social, it did, however, not take long before there were severe delays and sporadic failed requests when using Mastodon, which is understandable considering the massive growth the network experienced.

Continue reading →


Replacing the icon of a Mac application

Posted on April 30, 2016. Reading time: 2 minutes

I use a MacBook Pro for my daily computer needs. Not long after I got it, I installed smcFanControl in order to increase the idle fan speed, as the laptop otherwise got a bit too hot for my liking, even when doing non-CPU intensive tasks on the machine. There is one problem with smcFanControl though, the menu bar entry for the program can either be the temperature and/or fan speed or just an icon.

Continue reading →


Generating Subresource Integrity Checksums

Posted on September 23, 2015. Reading time: 4 minutes

The GitHub Engineering blog recently had a blog post on how they have added Subresource Integrity (SRI) tags on their third party assets. Long story short, this is integrity attribute you add to your <script> or <link rel="stylesheet"> tags which point to external (ie. not inlined) assets. Supporting browsers will then check the checksum in the attribute against the file it has downloaded before it parses the file. This is to make sure the file hasn't been tampered with and to avoid the browser loading malicious files because some third party hoster got a security problem.

Continue reading →


Nginx with dynamic upstreams

Posted on July 26, 2015. Reading time: 5 minutes

I recently made a setup at work where I had a Nginx server facing the user, which would forward requests to a service running behind an AWS Elastic Load Balancer (aka. ELB). That in itself doesn't sound like a difficult task, you just find the hostname for the ELB and point Nginx at it with a proxy_pass statement like this, right? location / { proxy_pass http://service-1234567890.us-east-1.elb.amazonaws.com; } Test it out and - assuming the firewall/security group configuration is set up right - it should work just fine.

Continue reading →


Python Output Format

Posted on March 13, 2015. Reading time: 2 minutes

I use Sublime Text as my editor of choice, and I have loved how simple but effective the Pretty JSON plugin has been at making minimized JSON chunks into easy readable, neatly indented blocks of code with just one key press. Since I mainly do my programming in Python I found that I for debugging often print out variables from Python code, in order to get an easier glimpse of what data I am working on or what I have produced thus far.

Continue reading →


Guide: Docker Registry Frontend

Posted on January 17, 2015. Reading time: 3 minutes

If you have your own private Docker registry you might be wanting some kind of frontend for it, as docker search [...] can only get you so far in regards to getting an overview of what the registry contains. Fortunately all the information you might want about the registry contents can be aquired through the REST API, making it possible to present the data neatly on a website. Konrad Kleine has made the docker-registry-frontend project to do just that.

Continue reading →


Guide: Private Docker Registry

Posted on January 14, 2015. Reading time: 4 minutes

I got to play around with Docker lately at work, and for that we needed a private place to store Docker images. Since the other guides I found either were unnecessarily advanced, or hosted the registry inside a Docker instance, instead of making use of our existing server setup, I've gone ahead and made a guide for how I set it up. This guide shows the steps to take on an Ubuntu machine, but it should be easy to apply to other operating systems.

Continue reading →


New website

Posted on December 26, 2014. Reading time: 3 minutes

It has been in the making for some time but now it's finally out. I've made a new design for my website and in the process also switched it from being based on Wordpress to now being a static site. Back in July my colleague Esben started work on his own static site generator, Beetle, and I got interested in the project shortly after. Within a month I made the first pull request to Beetle while also acting as a sparring partner to Esben's development work.

Continue reading →


Some thoughts about package dependencies

Posted on July 28, 2009. Reading time: 4 minutes

Last night I installed SqueezeCenter (the server software used with Squeezebox's) on my home server, since I want to use it together with SqueezeSlave running on my server. That way I can play music from my server while I have a webinterface to control it from all computers on my network. For the installation of SqueezeCenter I downloaded the .deb package, since it was going to be installed on my home Ubuntu server.

Continue reading →


Zenphoto plugin: Zenphoto Sitemap

Posted on November 26, 2008. Reading time: 1 minutes

I have been coding a bit the last couple of days on a plugin for the gallery system Zenphoto. I wasn't very happy with how the images from my gallery where indexed, and I couldn't find any other decent coded sitemap generators for Zenphoto, so I decided to create one myself. The result is a one-file plugin for Zenphoto, which is being activated by putting ?sitemap in the URL for your Zenphoto gallery.

Continue reading →