Generating Subresource Integrity Checksums
Posted on September 23, 2015
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
<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 ...
Nginx with dynamic upstreams
Posted on July 26, 2015
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 ...
Python Output Format
Posted on March 13, 2015
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 ...
Guide: Docker Registry Frontend
Posted on January 17, 2015
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 ...
Guide: Private Docker Registry
Posted on January 14, 2015
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 ...
Posted on December 26, 2014
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 ...
Setting up Tweet Nest in Nginx
Posted on November 23, 2012
Today I've set up Tweet Nest at tweets.tenzer.dk. Tweet Nest is a simple application that archives all your tweets, and make it easy to search for old tweets you've written that you might want to find again. Tweet Nest comes by default with
.htaccess files containing an Apache mod_rewrite specific configuration, but since I'm using Nginx that configuration ...
Football pictures and video
Posted on October 08, 2011
A few weeks ago I watched the Copenhagen Towers' (the American football team I play for) U19 team play the semi-finals in the national championships, and I did of course take pictures of it. They can all be found in the Flickr gallery for the game.
Tuesday this week Jens Rørbye - the media manager for Copenhagen Towers - contacted me ...
Concert photography is fun!
Posted on August 31, 2011
In an attempt on getting a bit of activity back here on my blog, I thought I might as well update a bit on what I've been doing lately.
A few weeks ago I went to the concert venue Gimle in Roskilde in order to watch some concerts, primarily with the Danish live drum and bass band F.U.K.T and electronic artist Rangleklods. I had listened to both artists a fair bit prior to the concert, ...
Zenphoto Sitemap 2.0.0
Posted on February 19, 2010
The new version is a rewrite of the plugin, in order to increase speed, decrease load and generally make the code easier to read, hence the version number. I have also included a README file in the package.
The new version can either be fetched from my project page, or ...
Installing djbdns in an OpenSolaris zone
Posted on October 05, 2009
This guide shows you how to install djbdns in an OpenSolaris zone. The zone is currently running OpenSolaris build 124, but the guide should work on other versions of OpenSolaris as well, though not tested. The zone is simply set up as a default ipkg OpenSolaris zone, without many default installed packages.
First we start of with the installation of some packages, including
sunstudio since we are going to use that to compile ...
Updating an OpenSolaris zone
Posted on October 04, 2009
This is just a quick guide for people who need to update an OpenSolaris zone. First off, you need to shutdown the zone. This can either by done by using
init 5 or
shutdown inside the zone, or by running any of the two commands with
zlogin from the global zone. A final not recommended possibility is to run
zoneadm -z <zonename> halt from the global zone.
After the zone is stopped, you will have to set the zone state to ...
Some thoughts about package dependencies
Posted on July 28, 2009
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 ...
Configuring the Solaris DHCP server
Posted on May 23, 2009
As I recently had to configure the Solaris bundled DHCP server on a box, I though that I would write down the steps I took to get the task done, for everybody else to use and also for myself later on.
I will configure the server with some static entries for specific hosts, and also with a small pool of addresses for random users.
In order to get the DHCP server installed on OpenSolaris, you have to install the package named
SUNWdhcs. This is done by ...
Zenphoto Sitemap 1.0.2
Posted on February 26, 2009
There's a new version of my Zenphoto Sitemap available, which only includes one fix this time.
The change makes the plugin handle non-alphanumeric characters correctly, such as whitespaces, parentheses, brackets, international letters, etc. All those characters are now URL encoded when the sitemap is generated.
As always you can get the new version at the Zenphoto Sitemap page.
Zenphoto Sitemap 1.0.1
Posted on January 24, 2009
I have updated my Zenphoto Sitemap plugin with two minor fixes.
The first change is that there won't be specified any priorities in the sitemap at all, since the priorities only matter against other URLs in the same exact sitemap (ie. not site-wide). The plugin will have to be rewritten to have all URLs in the same sitemap in order to make use of priorities. As I haven't experienced any need to specify the priority, it is simply left out and then the URLs are assigned the default ...
Zenphoto plugin: Zenphoto Sitemap
Posted on November 26, 2008
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. When that is in the URL, a ...
Macro module for Apache
Posted on October 07, 2007
I will explain how to get it running and give some examples of how I use the module, to help you get started with using it.
First we need to get the module installed, since it is not installed ...