A Humbly Arrogant Blog

Posts about software development

Why Revel?

So lately I’ve been working on a project to increase productivity when dealing with Bitbucket and Jenkins. As I am a web developer, it’s a web app. So one of the first questions when building an application these days seems to be what framework? This for me has taken a month to really decide. In the end I choose Revel. At first At first I decided to use Gorilla Web Toolkit. ... Read more

Social Engineering defence

So a while back I read a blog post by ChunkHost about a “Huge security hole in Sendgrid”. And instantly I thought why isn’t there a protection against something which is so obviously dodgy. After a few seconds I thought of an easy protection against such an attack, I’ve now found time to write about it so here it is. #The attack The attack was simple, someone phoned up Sendgrid’s customer support and talked them into changing the email for the ChunkHost account from support@chunkhost. ... Read more

xvfb-run and wkhtmltopdf won't run in Jenkins/Apache

I recently came across a rather unsual error with our testing suite while running on Jenkins. The test would pass on our development environment, not exactly odd in itself. Sadly they aren’t exact copies, patch level out and what not. However the test would pass on the Jenkins server if ran via command line. So it wasn’t that a minor release had a bug fix that was causing the issue. Since after all my googling on the subject turned up nothing I thought I would write up how I found out what it was and what the cause and solution was. ... Read more

Observer pattern in golang

For some reason at some point, I thought it would be hard to implement the observer pattern in Go. Then I made an issue for me to blog about it. Well it’s not hard. It’s as easy as it is in every other language. Observers First part of the observer pattern is you need the actual observers. The logic that you want executed whenever something happens. Here I’ve just put a simple log print statement that will print out the name of the hook to the log. ... Read more

Why hacking on production code during an interview is a good thing

Wrote this ages ago and just found it and figured I should post it. A while back I saw a blog post (link) saying that he would never hack on a production code base during the interview. Since he was not getting paid for it. Well I strongly disagree with that, both from an interviewee and an interviewer point of view. Interviewer While working at my last job I was in charge of the technical test for developers. ... Read more