Skip to the content.

Data tables with cucumber-js

For years i have been using Cucumber with Ruby, but i’ve recently changed job and now i am using Javascript/Typescript. This is a reference for me on how to use the different data table formats with cucumber-js. Typescript implementation Imagine there is a createUser function that takes name, email, city and dob as parameters. I’m just going to console.log() the information so we can understand what’s happening, but in reality this would likely do something more interesting. function createUser(name: string, email: string, city: string, dob: string) { console.log(`Creating ${name} (${email}) who lives in ${city} and was born ${dob}.`); // actual...



Drone image alignment with Hugin

I have programmed repeatable drone flights using Litchi so that i can take progress photos of the Copenhagen Lightrail. The alignment is good … but it’s not perfect. June 2022 January 2023 If we try to overlay these with a slider, we can see that the images aren’t perfectly algined. We can do better! Comparison Try using AI My first instinct was to turn to AI. I tried Python’s cv2 library and various combinations of algorithms to auto-detect features, match and skew the photos so that they match. The results were not good. It seems the photos are not similar...



Thank you, Elon!

It’s been over a year since gave up on Facebook and started dabbling in the Fediverse. After the initial excitement of talking to myself on two different Mastodon instances, trying out Pixelfed and PeerTube, and setting up a federated blog, i soon became bored because nobody i knew had yet come across to the distributed way of doing things. And so i pretty much ignored the entire thing, until a few weeks ago when Elon Musk bought Twitter for $44bn and promptly set about to destroy it. Suddenly loads of my friends on the birdapp were talking about Mastodon, sharing...



Glostrup Lightrail

I am excited about the Copenhagen Lightrail (Hovedstadens Letbane) that is due to open in 2025. Yesterday I went for a bike ride with my drone to see how they’re getting on around Glostrup, which is where I live. Glostrup Station This is my local S-train and bus station. You can see an S-train in the platform and a regional train going by. In the foreground they have cleared away a road and the old bike shed, and begun building the lightrail platforms. A vision picture from dinoffentligetransport.dk/letbanen shows how this may look when the lightrail is finished! Looking West,...



Building a Raspberry Pi dashboard

Imagine you have a spare television at work or home, and you want to use it to display some information dashboards. You want it to start in fullscreen mode and automatically loop through a list of tabs. You want this to happen just by turning the television on, and you want control over the tabs without the need for a keyboard or mouse attached. Anyone should be able to configure which tabs are displayed by updating a document in GitHub. Grab your Raspberry Pi, because we’re about to build a dashboard display! You will need A spare television A Raspberry...



Copenhagen's Cityring Metro

I first went on a walk around Copenhagen’s new Cityring metro line almost a year ago. It was fun to go back again and see how far they have come since then. Gammel Strand Skjolds Plads Nørrebro Nørrebros Runddel Frederiksberg Frederiksberg Allé København Hovedbanegård I am really looking forward to the Cityring opening in 2 weeks time!