Blog Posts
WTF Brainfuck? A golfing experience
31 October 2016 »I did a talk at the Copenhagen Ruby Brigade (Ruby Meetup Group based in Copenhagen) about my way to have fun whilst programming.
Integers are weird
31 March 2016 »I’m currently trying to teach Bohrium that a+1+1
is the same as a+2
.
This was an somewhat easy task.
Convert UTM to WGS84 in Elixir
04 August 2015 »We are currently in the midst of integrating with a Norwegian company at work. They supply the Norwegian bus- and trainstops with coordinates. We want to show this to our customers at MatchOffice.no so that they can see how far a location is to public transportation.
Get Out of My Way
08 April 2015 »Lately I’ve noticed a lot of clutter on the interwebs. Things I don’t want.
Weird Errors == Best Errors
15 January 2015 »I weird errors. No really. I love having to dig into a system to discover why a certain function or method acts in a certain way.
OpenPull - Fetches Open Pull-Requests for an Organisation from Github
23 December 2014 »Back in August I wrote about a small application I’d written, which fetches organisation pull-requests.
I'm in a book! A Heroku Cookbook
15 December 2014 »Earlier this year I got an e-mail from Packt Publishing asking me if I was interested in reviewing a book about Heroku.
Monitor Everything!
01 October 2014 »We have all our infrastructure on Rackspace. Rackspace had to reboot all the servers recently, so we decided to get some better monitoring going on our servers, e.g. are they up and are the services running on them up.
Threading the pull-requests
21 August 2014 »I’ve seen myself go through the my Github organisations pull-requests pages one by one, to see if anything was up, but no more.
Wonderful quirks in the English language
21 May 2014 »»Lets eat Grandma« or »Lets eat, Grandma«? It depends on whether you want to actually eat your grandmother or you want to say to her that you’re going to eat.
Up and atom
27 February 2014 »So today I got an early access for Githubs new Atom editor. (Thanks Kasper!)
2+2=5. No seriously.
25 January 2014 »So I’ve been watching Numberphile videos on YouTube lately.
They did a video about the sum of all the natural numbers being equal to -1/12
.
Switch to New Ruby Hash Syntax
15 January 2014 »When working on old Ruby code, you’ll see the old (<= 1.9) hash syntax:
Pretty JSON in Grape API
06 January 2014 »So we’re building this JSON API at autobutler.dk, in which we want the JSON outputted to be human readable (pretty).
Nothing is worse than trying to debug a JSON service, and always having to parse it through e.g. json_pp
.
String Interpolation in Knockout
10 December 2013 »At autobutler.dk we are currently developing a new flow for car owners to enter. This flow is based on a data-driven API. The new flow will be a front-end client of this API.
New TheRubyGame Challenge - Time to golf!
27 November 2013 »So TheRubyGame was just brought back from the dead. The newest challenge (Challenge #1) is about ducks and fire and ducks on fire.
✔ as a shortcut
25 November 2013 »I’ve been going crazy over that Mac OS X has a shortcut for √
(Square root sign) but not for ✔
(Check mark).
Failing comments in erubis
07 November 2013 »I’m doing a lot of back-end work in Ruby and in Rails.
Lately we hired a full-time front-end developer, and I wanted to give him some pointers in the index.html.erb
-file in the /app/views/home
-dir (front page of our site).
I started writing some comments in the file, in a branch, which he could then take and improve on, get to know some of the models (stats shown on the front page) and view-helpers.
New .bashrc-file
04 November 2013 »Previously I wrote about functions
and aliases
, however I just swtiched back to bash
from zsh
and thought I’d share some of my .bashrc
-file. I also switched from TotalTerminal to iTerm 2.
Small, but useful script
22 September 2013 »We all have those small lines of code that we write again and again and again. Why not write a script to do it for you?
Welcome to Jekyll! What? Not Rails?
10 September 2013 »I must say. Usually I swear to Rails.
“Hey, shouldn’t we build this?”, “Yeah, of course, lets use Rails!”.
However this tends to get out of hand.
You really shouldn’t build everything in Rails, just because you can, why not use some frameworks that are built with a specific application in mind, e.g. jekyll
.