Category: Programming

Django – selective restore of DB dump

If you are running a Django application, hopefully you have regular backups of the DB.  We had a customer who realized they deleted something over a month ago and needed the deleted objects restored.  Instead of just reverting the entire DB and losing all of the new information, I wrote a simple script that will create a fixture of everything that was… Read more →

High Performance JavaScript – Array Creation & Population

JavaScript Arrays Arrays in JavaScript are very easy to use and there are some simple tricks to make them perform at peak efficiency.  Testing shows that the recommended standard method for declaring arrays in JavaScript ( var a = [];) has pretty poor performance when compared to using the less popular alternative ( var a = new Array(100);). Most people argue that the performance difference is negligible and the benefits of the standard method… Read more →

Python Google Speech to Text API implementation

This constantly seems to be a request on Stack Overflow, and the fact that documentation for Google’s Speech API is practically non-existent, I have decided to share an implementation of it with everyone.  If you just want the source code here you go. Google Speech API Supported File Types First off, your audio must first be encoded in the FLAC… Read more →

Screenshot of the PDF document Google Speech API Information and Guidelines

Google Speech Recognition – API Information & Guidelines

  Google’s Speech Recognition is quick and powerful, and handles a bunch of different languages. I have compiled together a bunch of information that I have found while learning how to use the Speech API outside of Google Chrome for audio files.  I hope my time spent reverse engineering their protocol and compiling this document can save you some of your… Read more →