Articles by CiaranG

You are currently browsing CiaranG’s articles.

Problem – you have a directory full of epub files with names like 1234.epub and 4567.epub files, and what you’d really like to have is all those files organised into directories by author name, and the filenames themselves being of the form “Author – Title”.

Solution – first, install Calibre, because it comes with a handy command-line tool called ebook-meta that spits out all the metadata from a file. Then, from the directory where the files are, run this:

Read the rest of this entry »

This is one of those “in case I ever need to do it again” posts. Converting EMF files to SVG files – sounds like it should be a simple task, translating from one vector format to another. It turned out not to be.

However, in the end:

find . -name '*.emf' -exec unoconv -f svg "{}" \;

successfully converted a nested directory structure full of .emf files to have their .svg equivalents alongside. Oh, and for some reason (I don’t care why) you have to run this first:

unoconv --listener &

The key ingredient was unoconv (thankfully, Debian-packaged as unoconv), which also requires a load of openoffice and/or libreoffice stuff to make it work. There were a load of other possible ways of doing this that didn’t work, which I won’t even go into. Also, don’t even ask why I needed to do this in the first place.

Update: After I’d finished, I realised I also needed EPS. Easy conversion, not so easy command due to various shell-related complications:

find . -name '*.svg' -exec sh -c 'inkscape "{}" --export-eps="`dirname "{}"`/`basename "{}" .svg`.eps"' \;

Evolution

After many years as a dedicated user of Thunderbird as a mail and news client, along with the Lightning add-on for calendar and tasks, my list of gripes suddenly reached breaking point this week. I won’t go through them all, but here’s a small selection:

Read the rest of this entry »

Via one of Tim Bray’s tab sweeps, which are always good for picking up something interesting you might have missed, I happened to click through to an article telling me all about how to publish things. The first point was “Design for Reading”, but as you will gather from the screenshot of what I saw, it didn’t seem like a worthwhile use of my time to go any further.

Update: A fine bit of investigation and a workaround.

galaxyscreen1

Whoops. That’s what happens when an ‘indestructible’ AMOLED screen meets a stone driveway. To be fair, it must have to meet it at just the wrong angle, because I’ve dropped it zillions of times before without so much as a scratch. Impressively, despite the cracks covering the entire screen, and one point where there was an actual hole going right through it, the touch screen and display still worked perfectly. What about fixing it though?

Read the rest of this entry »

Aboyne (vb)

As defined by Douglas Adams and John Lloyd in The Meaning of Liff, to aboyne is to beat an expert at a game of skill by playing so appallingly that none of his clever tactics or strategies are of any use to him.

I read that definition this morning and was immediately reminded of the chess game reproduced below. Now, I’m no chess master at the best of times, and particularly not when playing 3 minute blitz. I keep doing that though, which is quite silly because it seems to me you should only play at that speed (if at all) when you’re already extremely good. Playing like that when you’re not good makes you worse. The point being that I’m not making any excuses for my appalling play, triumphant thought it turned out to be. I just thought it was a funny game, worth preserving:

Time to try and catch up with the “what books I’ve been reading” thing. Here’s a partial list since last time. I’ll let the rest roll over into the next one, and I’ll be more brief than ever about these…

Read the rest of this entry »

I made a shelf today, which I have decided is going to be called the Royal Wedding Commemorative Shelf. I’m going to paint that on the bottom, perhaps with an appropriately tacky picture if I’m feeling artistic at the time – just to give some future DIY freak a “WTF?” moment when they inevitably rip it out.

Actually, to be honest, they’ll be saying that anyway on account of it not being cut even remotely straight due to me blasting through a sheet of plywood a metre in one direction and half a metre in another with a jigsaw, by hand, without even marking a line. I might mask the curvy edges with filler, or I might not bother.

Pirate Culture

TL;DR – Take your DRM and sling your hook

It all started when I finished reading one book and got a few pages into another I didn’t really want to read. It occurred to me that it must be about time for another Ian M. Banks book to be out (it’s been this long since I read the last), and perhaps even one of his Culture novels. Sure enough, it turned out that that Surface Detail came out last year.

One snag – after years of stubborn nay-saying, I’ve finally come to the conclusion that ebooks are good thing, for various reasons which I’ll save for another day. This shouldn’t have been a snag, of course, it should have made it easy – instead of an hour’s round trip to the bookshop, complete with the costs of petrol and parking and the need to mingle with shoppers, I could have had it there and then. Or, relatively painlessly if I was prepared to wait for the postman.

Read the rest of this entry »

Books (chapter five)

Books (Chapter 5)

Part of me wishes I’d never started doing this. It should be easy to write a couple of sentences about every book you read, but for some reason it seems to be really hard and I end up leaving it for months before I actually finish it, by which time there’s another list waiting to be written.

On the other hand, another part of me wishes I’d started doing it when I started reading. If nothing else, it’s really nice to be able to look back for a reminder when you forget what a particular book was, so I’m going to keep doing it. Here’s the latest batch (or at least, it was the latest in August):

Read the rest of this entry »

« Older entries