Writing SipHash: my introduction to NIFs in Elixir

After recently discovering SipHash when searching for a solid algorithm to use in another project, I decided to take a shot at writing an implementation in Elixir as an exercise (having only started picking up Elixir in the last few weeks or so). The project is available on GitHub and…

READ MORE

Introducing Oryx; a convient scaffolding library for Node.js and Express

Say hello to Oryx. Oryx is a project I have been working on for a little over a month now, born from another project I'm currently working on (but haven't yet released). It's designed to be a fairly straightforward way to set up an Express app to use models and…

READ MORE

Java 8 Custom Collectors: Jackson ArrayNode

Streams are one of the niceties provided in JDK 8 and they provide extreme flexibility to the user. They make it extremely easy to transform Collections in some way, either serially or in parallel. One of the most awesome things about Streams is that they're extremely extensible. The example we're…

READ MORE

Using MongoDB with Elixir, Phoenix and Ecto

This is as much for my reference as anyone else's, so I hope everything is clear enough for newcomers. Update: Refer here for an example project following the method below. Due to having gotten a little bored with Node.js in recent times, and also a lack of engagement with…

READ MORE

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

Twitter Toolbox - A Look At Learning Chrome Extensions

Yesterday I revisited a project I began a couple of years ago when I was learning JavaScript, named Twitter Toolbox. I decided to run over it and make it work (properly). It's a Chrome extension, built with HTML/JavaScript, with allows you to customise the layout of your Twitter (somewhat)…

READ MORE
Page 1 / 2