Installing multiple versions of Node.js

If you have the need for using or testing multiple different versions of Node.js, theres a small tool that can help you a lot. It's an npm package called n. You install it via npm: npm install -g n And then you can easily install a certain version of Node.js like this: n 5.12.0 - to install node.js version 5.12.0 You can also type n and press enter, to list all installed Node.

» Read more

Mongoose Dates and Mixed objects not being saved to database

If you are working with Date or Mixed type objects in Mongoose you may notice that some objects are not always saved to the database, like they should, even if it looks like it just worked. The Dates and Mixed types in Mongoose, are not attached to Mongoose' change tracking system, which means for any changes you make to those fields, they have to be marked as changed. From the documentation on SchemaTypes: Built-in Date methods are not hooked into

» Read more

Android Volley library - Fixing the empty POST parameters

Recently, I came across the Volley library for Android. I already had an app that used network requests, to post and get data from a Node.js webserver with Express.js. The code I had for doing the network part, downloading JSON data and images, with memory and disk cache of images, was working fine, but I thought I’d make use of volley instead. As it had better support for certain things, one of them; grouping and cancelling requests

» Read more