Author Archives: ejrh

Coloured call graphs!

Juha Jeronen has added some features to the Python call-graph generator (pyan) I’ve previously blogged about. With a single command line, I can now get pictures like this: A bit of colour always shows a program’s structure in a better … Continue reading

Posted in Programming | Tagged , , , | 9 Comments

Simple but efficient backups

Backups are perennially on my To-do list. Just having them would be good, but more than that I want to automate their creation and maintenance. My problem, of course, is I prefer to make my own system for doing this … Continue reading

Posted in Programming | Tagged , , | Leave a comment

New SSD

A couple of Fridays ago, a solid state drive — the 256GB Crucial M4 — on which I’d been keeping my eye became available again at a reasonable price, so within a few minutes I placed an order. It arrived … Continue reading

Posted in Hardware, Rants | Tagged , , , | Leave a comment

Curious line-endings in FTP

Whilst hurriedly implementing basic FTP support in a program that’s due in a couple of days, I ran into a strange phenomenon: Retrieving ftp://login:password@server/data.csv, a multiline text file, will return the file intact. Retrieving ftp://login:password@server/data.dat, another multiline text file, won’t: … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Is software “engineering” ?

(TL;DR – Yes, but it isn’t architecture.) This question, and the subject of vocational nomenclature in general, has been grinding my gears for ages, and deserves a rant of its own. Sometimes it is difficult to know what to call … Continue reading

Posted in Programming, Rants | Tagged , , | 1 Comment

Sleeping in loops considered harmful

NetBeans gave me an interesting code hint today: Thread.sleep called in loop.

Posted in Programming | Tagged , , | 5 Comments

DOS filenames are still useful

TL;DR – If you end up with an invalid filename on Windows, you can manipulate the file using the secret DOS name.

Posted in Uncategorized | Tagged , , | Leave a comment

Using the NTFS journal for backups

This post (in draft for almost 18 months) describes my amateur understanding of an interesting and useful NTFS feature, the USN Journal, and shows how I’m using it as part of a simple backup program in Python. It also gives … Continue reading

Posted in Programming | Tagged , , | 5 Comments

Sequent calculus fun with Logitext

(This post is overdue; I’ve been more than usually busy at work on a new project, and have not had the energy to do anything interesting when I get home. Well, I saw this a while ago and today out … Continue reading

Posted in Math, Programming | Tagged , | 2 Comments

A small contribution to PostgreSQL beta testing

PostgreSQL 9.2 has been in beta for a few weeks, and (since they asked for volunteers) I thought I’d do a bit of informal testing. I’m also eager to see the effects of Index-only scans and other performance improvements (which … Continue reading

Posted in Programming | Tagged | 1 Comment