The archives.

Code, discoveries, detours. Collected over the years.

2012

Scala Utils with IP Subnet Matching

Good evening everyone, so you thought i stopped blogging, but i didn’t. What i did do? Well, i wrote some amazing Scala stuff. Apart from my Liftweb, Netty and Akka Talk at SkillsMatter, London, i was busy coding some awesome stuff for…

#Xen 4 dynamic VLANs through VIF-script

So last night i got really bored, so i tried to integrate VLANs in my existing Xen4 setup. While googling for solutions, i only found things where i’d have to statically allocate VLANs for every customer on every host through…

Hector-Client #Scala Wrapper for Cassandra

A few days ago i had to use Cassandra for my special project, so i went on to search for usable clients. First i tried Cascal, which felt a bit clunky, so i decided to try Cassie (Twitter) which couldn’t create Keyspaces in code. So i…

My #Liftweb and #Scala Events in Fall 2012

First off, i’ve never thought of myself as a presenter. My dad always taught me things but i didn’t really listen, to my dismay i must add. Anyway, i think i’ve done quite okay in the past (since i got good feedback). But this fall, you…

Flexible #CSV Parser in #Scala

For a few months now i’ve been doing some CSV Imports in my Liftweb projects. This mostly is because the old databases i am migrating to something normal (PostgreSQL or MongoDB) are badly designed (mostly MySQL) and therefore i don’t…

cfengine, bcfg2, chef and puppet

I’ve been talking with a lot of folks lately about Configuration Management/Automation Systems. Mainly about puppet vs cfengine. The first question i usually ask people recommending interpreter solutions (ruby, perl, python..) is…

Liftweb CSS Selectors and implicits

When using Ruby, i found myself frequently making things like formatting methods to display a variety of things. def formatDouble(dbl) "%.2f" % dbl end Often these output formatters are render-specific, so defining them on the…

Why is everyone so fucking stupid? UBERRANT!

I encounter stupidity on a daily basis, wether it is wannabe Linux-Admins like this guy “gehirn”/“gott” i chatted with on several occasions, but it’s not just him, he’s one of the 99% of Occupied by Brainfarts in my line of work.…