How to give your Raspberry Pi’s a static IP?

How to give your Raspberry Pi’s a static IP?

A static IP will make your Pi easier to find in your network. I'm using Raspbian Lite on my RPi 1 and RPi3 and knowing on what IP to connect to them makes life so much easier!

The default ethernet adapter is called eht0. I assume you want to change this adapter. If you need to change the wifi - please use wlan0. I've created a simple script to retrieve all information and write it to the right location.
A small batch file to compile and execute… Java

A small batch file to compile and execute… Java

Entering a javac (compile) and a java (execution) command seems tedious, so I wondered if those could be scripted into a good old .bat file.

I've created a file called yall.bat to help with the process. It has been a while since I've been playing around with batch files. I've seen my father do it... it still looks like a dark - and ancient - art to me.
How to dynamically map JSON commands to object methods in .Net?

How to dynamically map JSON commands to object methods in .Net?

Lately I've been playing around with USB led lights in .Net. I wanted the animations to be separated from my code. Wouldn't it be great if you could define what animations are executed in a JSON file? And map it to code?

Normally one would build a mapper that does the conversion of the JSON commands to the methods. I like to use a more generic approach. I've created a small utility class that executes commands by mapping and executing them as a method of the object.
Support both Node.js and browser JS in one TypeScript file

Support both Node.js and browser JS in one TypeScript file

TypeScript allows for better JavaScript development. JavaScript is getting useful in more domains. But different systems require different ways of handling modules and exposing features. TypeScript solves this by compiling differently when a target is specified.

But what if you need a TypeScript script that supports both vanilla browser JS and Node.js? What if you need to expose 10+ classes?
Convert QUnit test to Mocha / Chai

Convert QUnit test to Mocha / Chai

Recently I've been playing around with NPM. I switched my unit tests from QUnit to Mocha. This was not as straight forward as one would hope. In this blog I'll show some example code. At the end I'll link to a side by side comparison of the entire test project. Hopefully it helps you to convert your code. I'll be using the Chai BDD assertion engine.