Vanzonneveld - vanzonneveld.net

General Information:

Latest News:

Yesterday I Wrote My First Firefox OS App 12 Aug 2013 | 03:47 pm

Yesterday I wrote my first Firefox OS App. For now it’s called kbt2 and it’s a round timer that I can use to give kickboxing lessons. After: a few very frustrating hours dealing with the unintuitiv...

Fix Vagrant Box Hanging At Boot 25 Jul 2013 | 03:22 pm

Sometimes it happens that vagrant hangs during boot of your virtual image. Right after typing: It hangs for a long time and then finally throws: If you open VirtualBox you’ll see that the virtual ma...

Deploy to a dynamic serverlist with Capistrano 15 Jul 2013 | 11:27 pm

At our company we use Capistrano for deploys. It reads Ruby instructions from a ./Capfile in the project’s root directory, then deploys accordingly via SSH. It has support for releases, shared log dir...

Prefix Streaming stdout & stderr in Go 12 Jul 2013 | 03:55 pm

If you are executing a lot of (remote) commands, you may want to indent all of their output, prefix the loglines with hostnames, or mark anything that was thrown to stderr red, so you can spot errors ...

Convert Code to use Triple Equality 23 Apr 2013 | 01:18 pm

In loosely typed languages such as JavaScript or PHP, using == to compare values is bad practice because it doesn’t account for type, hence false == 0 == '' == null == undefined, etc. And you may acci...

Scrape All Text from a Domain 19 Apr 2013 | 02:32 pm

Here are some commands to download the most important pages of your site as plain text (determined by MAX_DEPTH), and save it into one big .txt file. This could come in handy when you want to have ev...

Migrate Redis Keys Without RDB Files 16 Apr 2013 | 06:28 pm

Recently we moved the Transloadit status page from an unmanaged EC2 instance to the Nodejitsu platform. We kept status uptime history in redis, and obviously I wanted to preserve that data. For the n...

Let's Make DNS Outage Suck Less 27 Mar 2013 | 05:56 pm

This article was featured on the Hacker News frontpage. Feel free to checkout comments there. Unfortunately the Linux DNS resolver has no direct support for detecting and doing failovers for DNS serv...

Find duplicate input with MySQL 4 Mar 2013 | 03:32 pm

Back to basic, let’s brush up on some SQL : ) At my company we have employees creating customer accounts every day. Sometimes we make mistakes, for instance, we forget to check if the company already...

Introducing BASH3 Boilerplate 26 Feb 2013 | 04:19 am

There are many cases where using BASH to code ends up overcomplicating things, but due to it’s portability there are many cases that make it the best tool for the job. When I do hack on BASH scripts,...

Recently parsed news:

Recent searches: