Publishing eBooks with AsciiDoc

August 23, 2010

Published: 2010-08-23
Updated: 2010-05-08

It’s easy to write and publish books in EPUB and PDF formats using AsciiDoc. This article was originally published on the AsciiDoc website.

Here are three examples: The first is a minimal example introducing the AsciiDoc format, the second The Brothers Karamazov is a rather long multi-part book and the third The Adventures of Sherlock Holmes includes a front cover image and customized page styling.

Read the rest of this entry »

Minimalist Machine Clone

June 25, 2010

Published: 2010-06-25
Updated: 2010-06-28

I was faced with the problem of cloning one Ubuntu server box to another. My solution is purposefully minimalist, requiring only a bootable Linux CD-ROM (I used the Xubuntu 10.04 Desktop CD-ROM) and an external USB drive to transfer the HDD data.

Read the rest of this entry »

Deleting VirtualBox Snapshots

June 18, 2010

Published: 2010-06-18

The Discard current snapshot and state command dishappeared as of VirtualBox version 3.1 leaving VirtualBox with no obvious way of deleting snapshot disk state (the misnamed Delete Snapshot command merges the snapshot into the parent). The good news is that you can delete snapshots using the branched snapshots feature introduced in version 3.1.

Read the rest of this entry »

Merging and Compacting VirtualBox Snapshots

June 17, 2010

Published: 2010-06-19
Updated: 2010-06-20
Updated: 2013-12-08

Using the VirtualBox GUI to manually merge lots of snapshots is time consuming and fiddly so I wrote a Python script called vboxmerge.py to do this automatically. The script merges a snapshot branch into the base VDI with a single command (it also illustrates how easy it is to script VirtualBox using Python).

Read the rest of this entry »

Command-line SMS script

March 23, 2010

Published: 2010-03-23
Updated: 2010-03-30, 2010-05-01, 2011-06-10

Note

The current version of this app is written in CoffeeScript and is published in the npm package registry.

A simple Python command-line script I wrote to send SMS messages using Clickatell’s HTTP API. In addition it:

  • Records sent messages in a log and has command option to view log file.
  • Has command options to query the Clickatell account balance and the status of previously sent messages.
  • Configuration can include a list of phone numbers.

Read the rest of this entry »

Installing Mono 2.0 on Ubuntu 7.10

October 8, 2008

Currently the Mono project does not release Ubuntu binary packages so if you want the latest version of Mono you need to compile and install yourself. I use the Xubuntu, Here are the steps I took to install Mono 2.0 on Xubuntu 7.10:

Read the rest of this entry »

blogpost media processing

May 22, 2008

blogpost 0.9.0 adds lots of new features to the previous 0.1.0 release. The most important feature in the blogpost 0.9.0 release is WordPress media file management:

  • Media files (images, videos, audio, document) referenced in your AsciiDoc (or HTML) documents are automatically uploaded and linked to the uploaded blog.
  • Only new or modified media files are uploaded (changes detected using cached MD5 checksums).
  • Metadata caching means post options are remembered and don’t need to be repeated every time you update your posts.
  • WordPress Pages can be posted and updated (blogpost includes a patched wordpresslib.py containing Page methods).

Read the rest of this entry »

Blogging with AsciiDoc

May 15, 2008

Since this blog was written many new features have been added to blogpost — see blogpost media processing

I make lots of notes using AsciiDoc, the sort of stuff that’s to minor and/or not rigorous enough for formal publication, but possibly useful to others.

So I decided it was about time I started posting my notes to a blog. Creating and maintaining posts using the normal browser based interfaces was not an option — just to tedious for words. So I looked around for an HTML friendly blog host that could make a reasonable job of rendering AsciiDoc generated HTML.

Read the rest of this entry »


Design a site like this with WordPress.com
Get started