dot-notes; a simple module for parsing dot notation

Recently I have somehow found myself in need of using JavaScript dot notation to represent values a bit too often to bother constantly rewriting the code for it. Turns out, there's no real (and nice) way to do this in the way that I wanted. Perhaps I'm conforming to some…

READ MORE

Safely Creating Custom Handlebars Helpers For Ghost Blogs

I'm fairly new to Handlebars, the templating system that the blogging system Ghost uses, but my initial impressions are that it's a pretty sweet tool to use. However, it's somewhat limited when you're developing a Ghost blog, due to the fact that Ghost only implements certain definitions. Odds are that…

READ MORE

A New Beginning With DigitalOcean and Node.js

I finally worked up the effort to move this site over to DigitalOcean, something I have been intending to do for sometime. Yes, that is a big ol' referral link, but you can rest assured that I'm telling you to use them for all the right reasons - oh, and…

READ MORE

Neek - A faster way to remove duplicates in files

You may be aware of the *nix tool uniq, used to filter duplicate values from within files. Uniq is a simple way to remove duplicated lines within a file via a simple command. The downside to uniq is that it requires the input to be sorted, which can be a…

READ MORE

Asynchronous Test Loops With Mocha Using it-each

Nowadays people are using Mocha more and more for testing their JavaScript/NodeJS code. One major limitation of Mocha is that there is no real way to loop tests asynchronously and maintain the ability to keep track of what's happening (such as realising which iteration a test fails on). Due…

READ MORE

Redirecting An InputStream To An OutputStream In Java

After working with NodeJS, Streams have always been an annoyance for me in Java (especially when I was first learning), simply due to the fact that you had to wait for the input to buffer and be fed through the abstract read() method of the InputStream interface. Most examples around…

READ MORE

Andrest - A Simple REST Client Implementation For Android

It's still surprising for me that there's no nice way to use REST in Android. Most libraries are either too complex or too slow, so recently I took a look at writing a small client which can be used easily to make REST calls. It's surprisingly simple, and makes use…

READ MORE

Migrating From Subversion To Git The Easy Way

Until recently, I was a big fan of using Subversion for most of my private projects. Now, however, I'd rather be using Git. This is all well and good for new projects, but how do I move the mature projects from my repository to Git (specifically GitHub)? Turns out, it's…

READ MORE

Starting Mocha Tests Programmically With Runner.js

Since I've been using Mocha, I realised there's no good way to include multiple files efficiently via the command line. What happens if you want to add files in nested directories and want to ignore specific files? This isn't really an issue for the typical test suite, but for larger…

READ MORE

Sorting An Object Recursively By Key In Node.JS/JavaScript

Sorting an object is one of those little things which nobody ever considers useful to know (until it becomes so), but it's proven particularly useful to me in the last few months - not necessarily for the comparison of two objects at runtime (which, thankfully, there are much quicker things…

READ MORE
Page 1 / 2