Mar 13, 2013

Creating Debian Squeeze Box for Vagrant

TL;DR. This article describes how you can setup a custom Debian base box for Vagrant. Vagrant, or VagrantUp, is a system to create and configure lightweight, reproducible, and portable development environments. The documentation has a guide for setting up base boxes. It is a bit complex, perhaps because it aims too widely. This topic is labeled "only for advanced users" in the documentation, but I think the true power of Vagrant lies in working with your own custom boxes. For that reason I've created this guide.



More and more I find myself setting up a Debian box for work or for some big or small project. It can be a web-server a db-server or something else, but it is always the same. I keep telling myself to make a bare bone installation and clone on which I can build my future boxes. I never really came to that. Thanks to Vagrant, I don't have to.

Continue reading

Mar 9, 2013

Posterous to

Since Posterous have announced that the service is shutting down, I've decided to give a go. I'm a huge fane of Markdown and builds nicely upon Dropbox, a very appaling blogging packages.

An example post, this post in fact, saved to Dropbox/Apps/scriptogram/posts/ and published by

Date: 2013-03-09  
Title: Posterous to

Since Posterous have announced that the service is shutting down, I've decided to give []( a go. I'm a **huge** fane of [Markdown]( and builds nicely upon Dropbox, a very appaling blogging packages.

An example post, this post in fact saved to Dropbox/Apps/scriptogram/posts/ and published by
Nov 10, 2012

Layoutlet a CSS Layout Helper Bookmarklet

This is a small tool for getting insight into your page CSS layout.

I wrote this small tool because that, the otherwise brilliant Webkit Developer tools, often cluttered my view of the important stuff:

Sep 9, 2012

Riding with Mother Nature

I had a great experience with mother nature yesterday. I was riding around Kathmandu Vally in the suburbs while it started to poor like there was no tomorrow. Within 5 minutes the 20 meter wide road turned into a 20 meter wide river. The motorcycles in the side of the road started to tumble over, and a few bicycle owners had to look far for the bikes flowing down stream. It was a relatively strong flow.

Continue reading

Apr 6, 2012

PHP Variable Test To Live With!

You don't have to love PHP, but you can learn to live with it. This page might help you doing so.

It is basically just a range if boolean and value comparison tests to help you understand the untyped language that PHP is.

Here is a screenshot - but really just go there.

pvaat screenshot

Feb 27, 2012

FFixture easy unit testing with Flourish

Even when you are working with an ORM, that works primarily from reflecting on the database schema, thus leaving you with very little code to write, it can still be tedious to write or rather provider test data as the model grows large.

At the moment we are working both on a CMS and a shopping platform, this means loads of data and loads of tables and sometimes rather complex structures.

All of this is naturally unit tested (sort of), but creating new tests and maintaing old tests can be pretty tedisous and often clutters up what really matters.

In comes fFixture an extension for Flourish, that easily lets you create test data using JSON documents and manage subsets of data for special unit test needs.

The goals of fFixture is to:

  • reuse data as a base for all tests
  • control of which data is loaded
  • optional overrides for unit tests with specific data needs tear down

Continue reading

Oct 1, 2011

A Go At CSS Poetry

A go at CSS poetry. I'm sure you can do better, perhaps even get a narrative going?

iPhone 4S vs 5:

#2011 .october4 .iphone4s:visible .money { display:none; }
#2011 .october4 .iphone5:visible .money { display:block; }

Tree Hugger - Never Leaves a Trail:

.treehugger:after { content:''; content:none; }

We are all in this together:

#earth .human+.human { margin:0; padding:0; border:0; outline:0; }

An attempt to get away from the more serious stuff.


Check out @csspoetry on Twitter. He is the true poet. Some of his stuff:

#police:hover #car, #bong { visibility:hidden; }
#Wrong { position:absolute; right:0% }
#helloworld { text-transform:poetry }
Sep 29, 2011

Managing CSS aggregation and specificity in a modular CMS

For some time now we’ve been working on a module based CMS. In this process we’ve been dicussing the best way to handle problems of specificity and id and class naming for modules. After reading Scalable and Modular Architecture in CSS (the module section) by Jonathan Snook, I got inspired to write this post.


During development, our main focus has been, to make this development and maintainability of modules as easy as possible.

Continue reading

Jul 13, 2011

PHP Unframeworks: Flourish and Spoon

I'm happy to see that web-development is not all about MVC frameworks with scaffolding and auto-generation of everything. It is nice to see that some people still build things, or does things differently. Don't get me wrong, MVC frameworks has their purposes, but not everything fits into that paradigm and you shouldn't try to make it do so. Perhaps that is why I'm welcoming Node.js and the rather simple frameworks that has risen around it.

Spoon Flourish

Continue reading