Addictive Software


var me = Random.shuffle(List("Developer", "Cook", "Geek", "Musiclover", "Engineer"))


  1. Executable Scala scripts on Linux/Mac

    As most developers are also DevOps nowadays, we're not only writing code, but are also at least partly responsible for getting/keeping it running. That often means writing scripts that have to run on servers. The SBT install when done with Conscript adds two scripts that make maintaining servers with…


  2. Rijksmuseum API

    I really like the innovative approach of the Rijksmuseum in Amsterdam. I just found out that they put high-resolution pictures of their entire collection online. and the even provide an API to query it. I'm thinking: Random paintings in virtual reality environments When using "lorum ispum" for text why not…

    on innovation, api, art, tips

  3. IBAN calculation in scala

    Curiosity led me to the question: "how is the control number for an IBAN number calculated?" I found the answer on (how could it not) wikipedia 10 minutes later i had written a small scala function that calculates it def createIBAN(bank:String, country:String, accountNr:String) = { //translate letters to…

    on dev, scala, iban

  4. Code coverage in scala

    Most code coverage tools check lines of codes and branches (which part of the if/then/else is covered) For scala this is not a very useful metric, i'll let the following example speak for itself Players.filter(_.active == true).sortBy(- _.score).take(5) .foreach(p => println(s"…

    on dev, scala, code-coverage

  5. The 12 factors in building apps in any language

    Good website on how to build scalable and maintainable apps. About building stateless apps that are the same on dev, test and production environments, and therefor scale really well both up and out. http://12factor.net…

    on dev, methodology, scalable

  6. Using apache webserver as a frontend for a node.js website

    As I moved my blog from wordpress to node.js I ofcourse wanted to run it on port 80, as I already have apache running on my server using that as a frontend was obvious. To get it running I needed to enable the proxy and the http handler for…

    on dev, tip, nodejs, proxy, apache