Oct 27

RSS and mercurial

Category: Programming

In a surprisingly well-kept secret, HgWeb and HgWebDir support RSS. Details below.
Read more

1 comment

Oct 25

LDAP, PAM, SSHA, and CRYPT on RHEL 5

Category: Networking

I’m putting this here because it took me two days to figure this out. RHEL 5 (or CentOS 5) has openLDAP broken out of the box. It does not handle SSHA password encryption (the default for openLDAP) properly. If you want openLDAP authentication to work with PAM on CentOs 5.3 you MUST edit the /etc/openldap/slapd.conf to contain:

password-hash    {CRYPT}

If you do not then as soon as you use ldappasswd to change a password your user will no longer be able to log in. That is all.

Comments are off for this post

Jul 24

Why is XML Better?

Category: Programming, XML, XPath, XSLT

Why is XML better than custom internal formats? Isn’t a non-standard set of XML tags basically equivalent to a custom format when using data internally to an application? Absolutely not, and here is why.
Read more

Comments are off for this post

Jun 26

DVSL: An Alternative to XSLT

Category: Java, XML, XPath, XSLT

DVSL is a fairly small, little known, product associated with the Velocity project over at Apache which takes the best part of XSLT: XPATH, and replaces the verbose and frustrating scripting of XSLT with a java-based template language instead.
Read more

Comments are off for this post

Dec 10

Spirit Vs. Lex/yacc/et al.

What are the differences and when should I use one or the other?
Read more

Comments are off for this post

Nov 4

Boost Spirit III (Adding Error Handling)

Category: C++, Programming

This article expands the example from the previous two, here and here, to add more specific error information.

As always the full code from the example is available here here.

Read more

1 comment

Oct 13

Writing a custom check macro for the BOOST test library

Category: C++, Programming

In this article I demonstrate how to write your own check macros for the boost test library (not guaranteed to work in the future)

Full source code for this example can be downloaded here.
Read more

Comments are off for this post

Sep 13

A Better Binary File Generator DSL in Ruby

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

Sep 13

XPath From the Command Line Using Ruby

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

Sep 6

Verifying Code Examples in your Documentation

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

« Previous PageNext Page »