Curabitur Nec Sapien Orci Fusce justo neque rutrum Vivamus at nunc a pretium Pellentesque rhoncus feugiat
Injecting variables into a function’s scope in Javascript

Injecting variables into a function’s scope in Javascript

on March 21st, 2013 in Computer, Javascript, Programming by | No Comments

First of all, we’re talking about ‘scope’, not ‘context’. (Just to paint a quick picture: ‘this.var’ adds something to the current context, ‘var a’ adds something to the current scope.) I’m currently creating a node.js MVC, and I really dislike the fact that my controller actions have pre-defined arguments. Don’t…

Read more

Meet this little project I’ve been working on …

Meet this little project I’ve been working on …

on February 22nd, 2013 in Computer, Javascript, Linux, Programming by | 5 Comments

I actually did not want to make this announcement just yet, I felt like I needed to wait for a proper, working version of what I was building. But 3 months have passed, and my colleague's thought what I created was pretty cool already and that it would be interesting…

Read more

Installing Amarok 1.4 on Ubuntu 12.04 64bit (Precise Pangolin)

Installing Amarok 1.4 on Ubuntu 12.04 64bit (Precise Pangolin)

on June 8th, 2012 in Computer, Linux by | 8 Comments

Upon popular request, here is the guide to installing Amarok 1.4 on Ubuntu 12.04. Not a lot has changed, really, just a few more files were needed from older repositories. Good luck! Warning: this is for 64bit systems. For 32bit you’ll need to find the original ppa packages yourself You’ll…

Read more

VNC X11 session on Ubuntu 12.04 server without monitor or graphics card

VNC X11 session on Ubuntu 12.04 server without monitor or graphics card

on March 20th, 2012 in Computer, Linux by | 4 Comments

I’m splitting my HTPC in a backend-frontend system, in order to place the server in another location where I don’t suffer from the noise it makes. In doing so I felt there was no need to put a graphics card in the system. But I still wanted to vnc into…

Read more

(Nederlands) De jaarlijkse kost van broodjes

(Nederlands) De jaarlijkse kost van broodjes

on January 13th, 2012 in Cijfers by | No Comments

Sorry, this entry is only available in Nederlands.

Read more

The lexicographical (or row-major) order of a map

The lexicographical (or row-major) order of a map

on November 25th, 2011 in Math, Programming by | 1 Comment

Take this 2-dimensional tile-based map: As you can see according to these (x,y) co√∂rdinates (0,0) = grass (0,1) = water (0,2) = grass … Storing this map in memory can happen in two ways, for example you can store every Y-position in an X-row, like this: map[X][Y] = tile; So:…

Read more

Using requestAnimationFrame and a target FPS

Using requestAnimationFrame and a target FPS

on November 21st, 2011 in Javascript, Programming by | 1 Comment

In the beginning… People who’ve worked with Javascript animations before will probably know the next piece of code: var targetFps = 25; var loopInterval = window.setInterval(renderFrame, 1000 / targetFps); What this does is create a loop that will run 25 times per second, which will hopefully give you your target…

Read more

Installing Amarok 1.4 on Ubuntu 11.10 64bit (Oneiric Ocelot)

Installing Amarok 1.4 on Ubuntu 11.10 64bit (Oneiric Ocelot)

on November 4th, 2011 in Computer, Linux by | 37 Comments

Every time I upgrade to a new Ubuntu version I ask myself this question: “Will I still be able to install Amarok 1.4 on it!?” This time the answer is: yes, but not as easy as it used to be. There’s no ppa for it, nobody has repackaged it, there…

Read more

A quick explanation of HDR photography

A quick explanation of HDR photography

on September 8th, 2011 in Photography by | No Comments

As Wikipedia says it best, HDR is a set of techniques that allow a greater dynamic range of luminance between the lightest and darkest areas of an image. Take these two pictures: The one on the left clearly shows the inside of the tunnel, but the exit is extremely overexposed….

Read more

Unzipping lots of files in subdirectories to the current directory

Unzipping lots of files in subdirectories to the current directory

on July 17th, 2010 in Computer, Linux by | No Comments

Have you ever had a bunch of subdirectories each filled with only one zip file? Or have you ever had a task that needed to be done in the same way? Well here’s a handy little line of code that will help you on your way! find -name ‘*.zip’ |…

Read more