Archive for the ‘Uncategorized’ Category

November 11, 2013

I would really like to see support for playlists in SVT Play, but that has not been high enough on the priority list at SVT yet. So in the meantime I’ve built a small hack to provide a simple playlist using a bookmarklet. You can try it out on

The idea was born when a colleague of mine showed a really smart way to create bookmarklets by dynamically loading a script hosted on github. The only code you need to put in the bookmarklet looks something like this:

(function() {
  var e = document.createElement("script");
  e.async = 1;
  e.src = "{user}/{hash}/raw";

This code just creates a <script> tag that loads a javascript file hosted on github. You can then put any stuff you want in that script. To make it a real bookmarklet you also need to pack it into one line, url-encode it and put a javascript: prefix in front, like this:


What is really nice about this approach is that you can change the functionality of the bookmarklet after it has been saved as a bookmark.


March 16, 2013

I’ve done a few presentations on SPDY/HTTP2 during the last year. SPDY is now supported by Chrome, Firefox and Opera. Google has been supporting SPDY on all their SSL/TLS traffic for quite some time now. If you haven’t looked at it yet I recommend that you take a look to see how it may affect the way we build web applications. For example file concatenation is not necessary with SPDY and domain sharding might actually be harmful. Here are some of my slides:

REST presentation

June 16, 2009

I have put together some slides about the basic principles in REST. The real presentation is actually implemented as a JAX-RS application. I started out with a django version, but I needed a Java-angle on it so I had to switch to JAX-RS.

Some reflections from Agile Sweden 2009

June 10, 2009

It’s been two days of interesting talks and discussions at Agila Sverige 2009. These are some of my reflections from the event:

Bring back the simplicity

There was a lot of talk about bringing back simplicity as one of the cornerstones in agile development. XP was all about communication, simplicity, feedback and courage. Somehow the principle of using the simplest solution has been lost when we standardize on agile methods. Many of the talks were about simplicity, for example Johan talked about “Standards vs. Cargo cult“, Niklas talked about “Simplicity as means, opportunity as goal” and Marcus asked “Where did the simplest working solution go?”. All very good presentations. A somewhat related presentation was about allowing variation to facilitate evolution (variation + selection = evolution). The advice was to bring in some variation in each project and select the working solutions. When I think of it, that is usually how I work as well.

Kanban and Scrum

Another hot topic was Scrum and Kanban. Kanban is of course the new and trendy thing to talk about. Henrik gave a good talk where he managed to describe the similarities and differences in just 10 minutes. There were also some good presentations about how to apply Kanban and how Kanban and Scrum can be combined.

Is Scrum the new RUP?

I don’t remember who it was, but someone asked the question whether Scrum is the new RUP. The Agile movement was a reaction on stiff processes being forced down from upper management, but today we see the same thing happening with Scrum. Anna Herting for example described that to solve their problem with prioritizing maintenance activities they used Kanban, but still had to call it Scrum to satisfy the managers. In my view it is always bad to just apply a process methodology without thinking about what the needs are. You also want to continuously improve on the process and extend it with new ways of working. What you need is some principles to follow that will take you in the right direction and simple tools to choose from and use as inspiration.

People, Teams and how we behave

Many of the talks were about how to behave as responsible developers and how to create good team cultures. For example Åke made a talk about self-learning and asking good questions, asking them at the right time and asking lagom many questions. We also got the good advice from Jocke to promise behavior instead of results. He explained that promises are tools to gain trust, synchronize with people and create motivation. Chris talked about the different stages of learning. How you go from unconsciously incompetent -> consciously incompetent -> consciously competent -> unconsciously competent. The unconsciously incompetent needs inspiration while the unconsciously competent needs reflection. Lots of talk about creating openness and trust in teams, for example by establishing common team values.

All in all I had a great time. I really enjoyed the open and interactive format with Lightning Talks and Open Space sessions.

A wave of new HTML5 stuff from Google

June 1, 2009

Google is pushing rather hard for HTML5 now with Google Wave, the new flash free HTML 5 version of YouTube and more HTML5 support in Chrome . It’s nice that someone is pushing for open standards instead of proprietary stuff (read Silverlight, Flex, JavaFX).

Learn JavaScript and learn it properly

February 25, 2009

JavaScript is the global web version of the unix shell script, simply increadibly useful. With tools like ubiquity and greasemonkey you can do lots of cool stuff. Also all the nice frameworks, GUI components and the JSON APIs makes it a very useful language.

So to help you learn JavaScript and for my own reference I have listed some really good resources

The JavaScript Programming Language

Advanced JavaScript

JavaScript – The Good Parts

Interactive tutorial by John Resig:

JavaScript best practices


Hello world!

December 4, 2008

Let there be web…  more web…