Nginx with dynamic upstreams

Posted on July 26, 2015

I recently had 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 like this, right? location / { proxy_pass http://service-1234567890.us-east-1.elb.amazonaws.com; } Test it out and - barring the firewall/security group configuration is set up right - it should work just ...

Continue reading →


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 what data I am working on or what I have produced thus far. When you print out structures like lists, dictionaries and ...

Continue reading →


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 a website. Konrad Kleine has made the docker-registry-frontend project to do just that. It's a client-only AngularJS based web app ...

Continue reading →


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 systems. Installation We are going to use the official ...

Continue reading →


New website

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 a sparring partner to Esben's development work. For a while I had an urge to do ...

Continue reading →


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 won't work for me. The mod_rewrite rules are limited to rules for handling requests to /sort, /favorites, /search and pages to show tweets ...

Continue reading →


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 and asked if I could help out with an interview of the teams American import quarterback player, JR Artozqui. The news was that the player has renewed his contract ...

Continue reading →


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, and the concert was free so it was really a no brainer to go. I decided to try and take some pictures from the ...

Continue reading →


Zenphoto Sitemap 2.0.0

Posted on February 19, 2010

I have made a new version of the Zenphoto gallery plugin, Zenphoto Sitemap, available. 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 from the new GitHub project page. I do have some ideas for ways to further improve the plugin, which can be seen on the project issue tracker, ...

Continue reading →


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 djbdns with: pkg install sunstudio SUNWbtool That is probably going ...

Continue reading →


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 halt from the global zone. After the zone is stopped, you will have to set the zone state to "ready", in order for the file systems to be mounted: zoneadm -z ...

Continue reading →


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 .deb package, since it was going to be installed on my home Ubuntu server. I ran sudo dpkg -i squeezecenter_7.3.3_all.deb, which to my big disappointment ...

Continue reading →


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 running: pfexec pkg install SUNWdhcs After ...

Continue reading →


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 priority (0.5) ...

Continue reading →


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 sitemap index will be generated, pointing to a new sitemap for each ...

Continue reading →


Macro module for Apache

Posted on October 07, 2007

This guide is about the wonderful mod_macro, which makes the job of managing an Apache webserver much easier, or just for the home developer with several test pages or projects. 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. Installation First we need to get the module installed, since it is not installed in a default Debian/Ubuntu installation. I presume you already have Apache2 installed, otherwise you should install ...

Continue reading →