Something Fun

I casually play minecraft from time to time and run a small server for group play. Things are kept mostly vanilla, but code and hacking excites me as much as (or more than) mining and crafting. I wanted a way to do something simple – say boom in chat, and wherever…

Anti-hacking

I was made aware of trouble with a wordpress site – not that there's anything inherently wrong with wordpress, this one just happened to be. It was a non-profit site managed by a team of volunteers, and it was redirecting to a spam-ish canadian pharmacy domain. Investigation found the site to…

Sails ORM/ODM

Sails has grand goals. It's a smartly built and underappreciated framework that pulls together some of the best utilities available to the node.js community and combines them into one super framework of awesome. ....except that it doesn't.... My main gripe comes from the explanation of ORM/ODM where it…

smarter gulp restart

I wanted to make a gulpfile to restart a server when files changed. It seemed easy enough at first: var gulp = require('gulp') var child = require('child-process') gulp.task('default', function(){ var ps function spawn(){ if(ps) ps.kill() //spawn becomes respawn automatically ps = child.spawn('node', ['.'], {stdio:…

RS-232 Spy

This is a brief post to describe how to spy on rs232 traffic for the purpose of investigating protocol between two devices that don't provide an interface traffic log. As example, we're examining traffic between a Property Management System (PMS) and a PBX. The basic concept is very simple -…