Blog Category – Coding

a random blog about coding, cosplay and whatever else I may find interesting. not updated with any sort of frequency.

There's no 10 ways about it, Subnets are Genius
The power of binary in action!

None

I would hazard a guess that the vast majority of people who have ever had to enter in a "subnet mask" into their network settings have no idea what it means, much less the amazingly powerful and beautifully simple solution to the problem it solves.  In this post, we'll peel back the mystery, talk a little binary and basic computer operations, and hopefully do it in a way that even a non-technical person could understand.

Scanning Drivers License Barcodes on Webforms in Javascript

This weekend I wrote a Javascript AAMVA Driver License/Identification Card Parser for use with USB 2D Barcode Scanners.  The result was an interesting reading through specs for the PDF 417 and DMV websites, but I did get a rough proof of concept together to at least show it works.  I spent a fair amount of time searching the interwebs for something out there to do this, but most all the libraries I did find were more about scanning/decoding the image of the barcode itself (like with a webcam).  I didn't need any of that as I was using a hardware …

Code Testing with Flask, unittest and PyQuery

Over the last year I’ve been teaching programming.  The language of choice where i’ve been working is Python (which I had not used very much before going in).  Because of that, I’ve been making it a point to code as many of my personal projects as I can in the language.  Despite a long “love/hate” relationship over the first few months (python was my first language that uses syntactical whitespace), I’ve really grown to love it.

I’ve also become quite fond of the Flask framework for developing web applications.  I love its minimal approach to things, really getting out of …