Follow me on Twitter for my latest adventures!
Quick note on GitHub - GitHub is the best invention ever for programmers. Nothing stimulates you more than pushing more and more projects to GitHub and seeing people forking them, following them, finding and fixing bugs for you. I wouldn't be doing so much coding if there wasn't GitHub.
Right, so here are the new projects:
This is a node.js module for recording HTML5 Theora/Ogg videos. It's written in C++ and is the first class citizen of node.js, meaning that it's fully asynchronous. It uses libtheora and libogg libraries for recording.
This is another node.js module for producing PNG images from raw RGB/BGR/RGBA/BGRA buffers. It's also written in C++, is asynchronous, and uses libpng to produce images. I also wrote it for StackVM. I added a concept of stacked-pngs to the library where many virtual machine screen updates get stacked together to produce the final image, but that is a topic for a separate post.
This module was also written for StackVM and it will be used in cases when the client has a really slow connection. In that case the virtual machine screen updates get downsampled to quality and size that the client is able to receive.
This is a module for node.js for producing GIF images. I like this module the most because it can be used to record what I call "gifcasts". Gifcasts are screencasts that get recorded to animated gifs. Here is an example gifcast that I recorded - A gifcast of me plurking from Windows XP.
This module is also written in C++ and uses giflib.
This is a module for node.js that unifies node-png, node-jpeg and node-gif. So instead of requiring all three modules, you just
var Image = require('image') and then can do things like:
var png = Image.encodeSync('png', buffer); // or var jpeg = Image.encodeSync('jpeg', buffer); // etc. var gif = Image.encodeSync('gif', buffer);
Node-supermarket is like a regular key-value store (hash-table), except greater. It uses node-sqlite as the underlying storage engine that gives it unprecedented stability. This library doesn't end here. The plan is to create an object store, where you can just dump the whole js objects, and then restore them back, map, filter and fold on them, etc.
Supermarket-cart stores connect sessions in supermarket key-value store.
This ia a node.js module for doing base64 encoding/decoding. I wrote it because half a year ago when I started working on StackVM, node.js didn't have base64 encoding functions and all other modules were terribly broken for binary data. So I named this module "base64 module that actually works."
This is a HTTP proxy written in node.js. It has access control and URL black lists. I wrote it for fun.
Perl TCP Proxy
This is a TCP proxy written in Perl. I wrote it as a helper program for my "Turn any Linux computer into SOCKS5 proxy in one command" post.
This is a my, James's and Joshua's node.js knockout entry - an online chess game (half-working).
catonmat.net blog engine
I wrote a new catonmat.net engine in Python. I used Werkzeug, SQLAlchemy, Mako, Pygments, Memcached, Sphinx and repoze.profile to make it as awesome as it is.The design followed the "50 ideas for the new catonmat.net website."
This is an older project from 2007 that I found on my hard drive. It's a social media website scraper (and also some popular news site scraper). It used to scrape data from boingboing, del.icio.us, digg, flickr, furl, reddit, simpy, stumbleupon and wired.
The Little Schemer Book Review
This is a book review of The Little Schemer. The book is a dialogue between you and the authors about interesting examples of Scheme programs and it teaches you to think recursively.
If anyone asks me which book do I recommend for learning basics of Lisp, I recommend this one (and The Seasoned Schemer, see below). It's very fun to read and can be read in one evening.
The Seasoned Schemer Book Review
This is a book review of The Seasoned Schemer. This book continues where The Little Schemer ended and introduces more advanced programming and Scheme concepts such as accumulators, letrec, letcc, call/cc and generators.
Where The Little Schemer can be read in one evening, this book will take one whole day.
The Reasoned Schemer Book Review
This is a book review of The Reasoned Schemer. Though this is not yet a full book review. I currently only had time to go through first few chapters. It's really complicated and takes a lot of effort to understand. One of the authors is Oleg Kiselyov, which instantly makes this book so conceptually difficult that it may take one full week to comprehend some of the topics.
Here is how I summarize this book:
The goal of the book is to show the beauty of relational programming. The authors of the book believe that it is natural to extend functional programming to relational programming. They demonstrate this by extending Scheme with a few new constructs, thereby combining the benefits of both styles. This extension also captures the essence of Prolog, the most well-known logic programming language.
The Little MLer Book Review
This is a book review of The Little MLer. The Little MLer book has two goals. The first and primary goal is to teach you to think recursively about types and programs. The second goal is to expose you to two important topics concerning large programs: dealing with exceptional situations and composing program components.
Having learned the concept of functors in ML, I realized that various programming languages like to call all kinds of unrelated things "functors". So I wrote a post "On Functors".
These are not all the projects that I have pushed to GitHub since last time, but the others are not that interesting. Just for completeness, they are:
- php2000 - written in 2000, a php routing engine via require().
- webdev-template - a small webdev template with reset css.
- node-bufferdiff - compares two node.js buffers fast.
- node-time - time functions for node.js (had forgotten about Date object).
- node-async - simplest possible asynchronous node.js C++ module (useful as an example).
- rfb-protocols - implements hextile rfb decoder to RGB buffer in C++.
This is actually more than 20 projects, but not all of them count. Anyway, hope you find some of them useful and until the next post!