Author Archives: Joost

Wifi on IP Cam EM 6220 does not work – or how not to design your UI

I bought an IP cam to spy on my little baby girl. The plan was to set up this camera above her bed. It has wifi, so the lack of network sockets in the bedroom should be no problem. Setting up wifi … Continue reading

Posted in software, UX | Tagged , , , , , , , , | Leave a comment

Why we chose JSON-RPC over REST

If you don’t want to mess about with XML, REST is pretty much the industry standard for creating an API. Initially, we had a REST(ish) API. But after using it internally at HomeRez, we were not very happy with how … Continue reading

Posted in software development | 7 Comments

Checking log4js output in your node.js testsuite

This post will teach you how to test  log4js  log statements in your code. You can also find the code below in the src/log4js-unittest dir of my blog code repository. Let’s say that we have written this simple node.js module, foo.js . … Continue reading

Posted in JavaScript, node.js, software development | Tagged , , , , , , , , , , , , , , | Leave a comment

Combining mongoose and Q in node.js

This post will teach you how to write promise-based mongoose code, using Kris Kowal’s Q library. You can also find the code below in the src/mongoose-and-q dir of my blog code repository. We have a mongo database with 3 collections: users, … Continue reading

Posted in JavaScript, node.js, software development | Tagged , , , , , , , , , | 4 Comments

Hiding your sshd with ufw and knockd on Ubuntu

I don’t like it if malicious programs or people try to hack my server. I do, however, like to have access to my server, via ssh of course. Not just from home, but from wherever I happen to be. Fortunately, … Continue reading

Posted in linux | Tagged , , , , , , , , , , , , , , , | Leave a comment

Wifi USB adapter N300 in Ubuntu server

In my living room, I have a home theatre PC that runs Ubuntu 14.04 with Kodi (formerly XBMC). I wanted to reduce the amount of cables under my TV, so I bought a Sitecom N300 Wi-Fi USB adapter. It turned out … Continue reading

Posted in linux | Tagged , , , , , , , , , , , , | Leave a comment

Processing an array of promises sequentially in node.js

This post describes how you can perform a sequence of promises sequentially – one after another – using Kriskowal’s Q library in node.js. If you’re just interested in how to do this, and not in the other examples, scroll down … Continue reading

Posted in JavaScript, node.js, software development | Tagged , , , , , , , , , , , , | 6 Comments

Chatting at work for fun and profit

As I am writing this, I am employed as a software engineer at XS4ALL, the oldest consumer internet provider in the Netherlands. One of the things that makes people at XS4ALL so effective, is the use of a company IRC … Continue reading

Posted in work | Tagged , , , , , , , , , , | 1 Comment