Sponsored Post Learn from the experts: Create a successful blog with our brand new courseThe WordPress.com Blog

WordPress.com is excited to announce our newest offering: a course just for beginning bloggers where you’ll learn everything you need to know about blogging from the most trusted experts in the industry. We have helped millions of blogs get up and running, we know what works, and we want you to to know everything we know. This course provides all the fundamental skills and inspiration you need to get your blog started, an interactive community forum, and content updated annually.

Link

Chopstix from the past

Want to see something terribly old from my past?  This is “Chopstix” a restaurant order entry and management system.  It puts the curse in libcurses, and shows why dot matrix printers are both fantastic (run forever) and awful (vendor specific control codes).  It also taught me a lot about user experience, designing for stability and extensibility.  I’m releasing it as-is – it was last built against OpenBSD 4.2 which is long since deprecated.

Code Attic: libpigeon – secure communication and messaging

More from my code attic, this is “libpigeon” – the (carrier) pigeon for messaging in a nomadic filesystem I built between 2002-2007.  In hindsight this should have been 2 separate libraries, isolating the communication transport from the messaging.  The entire API generated here utilizes state machines and callbacks to avoid any blocking network or disk operations outside of the initialization.

libpigeon on GitHub

Here are some highlights:

robin.asn1

This is the entire specification for the over-the-wire message format.  Implementing in ASN.1 allowed the use of automatic code generation to handle all wire traffic, and automatically created structures for use in code that exactly matched the specification.  Inside are definitions for locking behaviour, rights & permissions, crypto tokens, data protection, and much more.

pigeon.c

The heavy lifting of setting up the GSSAPI security context, ensuring both client and server are valid principals, and enabling encryption & signatures.  It uses the libevent bufferevent API to handle network IO.  Connection principals are surfaced for access control by the caller.

dns.c

Fully asynchronous DNS resolver capable of handling SRV records in addition to standard queries.  From an age when libc resolvers blocked and suffered race conditions.

That’s all for today, hope you enjoy!