Latest Posts

Some advice for junior developers new on the job by Henrik on November 15th, 2017First of all, the below applies to a quite high stakes setting in a financially related company, a place were we don't move fast and break things if we want to continue being in business.

Setting up Ansible for MySQL by Henrik on September 14th, 2016In this how to we're going to manage in total 16 different LXC nodes on two different host machines.

A Function Browser for Emacs by Henrik on April 9th, 2016In my emacs init file for 2015 post I state:
However it would be kind of nice to be able to run a command to open a new buffer with links to line numbers for all definitions in the current file, shouldn’t be too hard to implement either, we’ll see if I manage in 2015.

Hacking Wordpress The Ugly And Quick Way by Henrik on August 4th, 2015Recently I've started a little project to see how I can do with IDN affiliate sites where there is a lot less competition than in English.

Functional HTML Rendering with PHP by Henrik on August 4th, 2015When you're working with a programming language that doesn't have templating per default and you're not in the mood - or don't see the need - for templating your first course of actions is to write something to obviate having to print and concatenate everything.

We’ve arrived at the final piece of the puzzle when it comes to the latest WP MU mass posting addition to SEO tools.

In other words, it’s time to start posting articles to our blogs.

Using HTTPClient is kids play like with so much else in Ruby, as usual the author has put a lot of effort into ease of use. This is something I really appreciate when it comes to the Ruby community, the attention to clean interfaces.

So we use ActiveRecord to fetch all unposted articles. Our earlier setup of foreign relations in the AR models serves us well here, for instance when we fetch the domain (a.wp_site.url) of the blog the article is to be posted to. The URL to post to is set in the MU object which we breezily access through a.wp_site.wp_mu.url.

Finally, if we were successful in posting the article we set it to published and save it.

I think the above example is a very good example of how RoR (AR to be specific) makes web development truly painless.