Archive for September, 2008

A Better Binary File Generator DSL in Ruby

September 13th, 2008 | Category: Programming, Ruby

In Creating a Binary File Using a Ruby DSL I did a very small example of using a ruby DSL to generate complex binary files without having to use C or a hexeditor. I’ve beefed it up significantly since then so here is the updated version of h2b.irb.
Read more

Comments are off for this post

XPath From the Command Line Using Ruby

September 13th, 2008 | Category: Programming, Ruby, XML, XPath

There are other ways of doing this, but I thought it would be fun to write a command-line xpath script in ruby using rexml. (full working example here)
Read more

Comments are off for this post

Verifying Code Examples in your Documentation

September 06th, 2008 | Category: Programming, XML, XSLT, docbook

One of the more annoying aspects of writing developer documentation is that it is very easy for your code examples to get out of date, develop typos, etc(As those reading previous articles may have noticed). In this article I use docbook, xslt, and automake to generate code examples that are guaranteed to compile.
Read more

Comments are off for this post