While I have been working on streaming capability for the Klipspringer hub (and refactored existing code in the process), a need for asynchronously providing a resource has repeatedly come up and confused me. It’s confusing because it doesn’t immediately fall in line with Javascript’s promise construct. This post describes the problem in a general way,… Continue reading Pattern for an asynchronous resource
Tag: programming
Listening to Linux device input in Javascript
This post is about getting a program that runs in Node.js to react to input directly from a device such as a keyboard or remote control (and it’s probably applicable to a mouse as well) on a GNU/Linux operating system.
Decoding the FLAC audio format in Java
About recording sound, storing and compressin it, the FLAC audio format, and how Klipspringer implements FLAC decoding by invoking libFLAC via JNI.