6104 comments
2357 subscribers
6264 on Twitter
Subscribe! Feed reader E-mail

John Wiegley’s ledger

From John Wiegley, Emacs ubercoder:

I’ve traded 60 Mb on my laptop for 60 Kb. How can you, too, lose
three orders of magnitude of fat and waste on your hard drive?

By checking out the incredibly lean and mean “ledger” accounting
tool. Written in C++, it parses it only, simplified general ledger
file (intended for editing with Emacs), or it can even just parse
GnuCash data files directly. This gives you the easiest way of
starting out:

ledger -f print

That will print out your GnuCash XML ledger data into much simpler,
text-based “ledger” file.

Below is the code. For reading GnuCash, you’ll need libxmltok1-dev
installed (if you’re a Debian user). It also uses GNU’s
multi-precision library (libgmp3-dev) and Perl regular expression
library (libpcre3-dev).

http://sacha.free.net.ph/notebook/emacs/ledger.tar.bz2

Short URL: http://sachachua.com/blog/p/1209
  • http://www.red-bean.com/kfogel Karl Fogel

    Seconded, wholeheartedly. John Wiegley’s Ledger has become irreplaceable infrastructure for me — when hackers do bookkeeping, this is how it should be done.

    • http://sachachua.com Sacha Chua

      I’m not entirely sure how I’m going to get it into a form that my accountant will be able to easily work with, but I love planning my spending with the virtual envelope system I also use for my personal finances, so we’ll see how this goes!

On This Day...

  • 2011: Decision review: Marrying W- — W- and I celebrated our first wedding anniversary last Sunday. It’s been a fantastic year! Time to review just how [...]
  • 2010: Lotus Notes mail practices — Here is a partial list of interesting practices I’ve seen, which I can compile into an internal or external wiki [...]
  • 2008: I’m so sorry! — I got caught up in IBM’s Innovation Jam, and I hadn’t realized that my blog was somewhat broken. Oops. I’ve disabled a [...]
  • 2007: Weekly review — The highlights of my week were the conversations I had. From hot chocolate at Farcoast with Driss (whom I’d last met [...]
  • 2005: More thoughts about Google and projects — I’ll keep Google internships in mind, as I really have AJAX and other fun Web stuff on my to-learn list. I [...]
  • 2005: Enthusiasm — From Year to Success: The source of the word “enthusiasm” comes from the Greek word enthousiasmos, which ultimately comes from the adjective [...]
  • 2003: Java Games tutorial #3 – Creating a Stand-alone Graphics Application — http://www.programmersheaven.com/articles/userarticles/mark/tut3/tut3_1.htm The tutorial uses BlueJ as an environment. Interesting…
  • 2003: NNTP access — Ani Dido Sevilla: Apparently the only way you can have access to Usenet these days from here is via groups.google.com. Some [...]
  • 2003: There’s more than one way to do it — linux — The original problem: Hi, I have a file in this format of words: joe jill bill bob frank tom harry and want to convert [...]

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging

Free sample!