-
Recent Posts
Archives
Categories
Meta
Category Archives: software development
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 log output, log4js, logger, mocha, mock, node, node.js, npm, sinon, spy, stub, test, test log output, test suite, unit test
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 array of promises, callback, javascript, mongo, mongoose, node, node.js, promise, promises, q
4 Comments
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 array of promises, javascript, library, node.js, nodejs, promise, promises, q, sequential, serial, upload, upload file, uploading files sequentially
6 Comments
User registration in django with django-allauth
While working on my bridge website (at this moment, very much in alpha state), which is written in Django, I had arrived at the point where I wanted users to be able to register themselves, instead of me having to … Continue reading
Posted in django, python, software development
Tagged allauth, auth, bridge, django, django-allauth, login, logout, webauth
3 Comments
Giving people limited shell access to your server
At work, I develop all kinds of backend software. We have a team of testers for high-level testing (in addition to the many unit-tests we have). At some point, I had written a Perl script that was going to run … Continue reading
Posted in software development
Tagged access, edit file, execute file, perl, servera, shell access, via browser, wrats
Leave a comment