Tag Archives: python

IRC bot as a fun project

Something I started working on last year: yet another IRC bot. Since IRC is a simple protocol for sending plain text messages to channels or users, it provides opportunities for some good programming projects, such as a bot. An IRC … Continue reading

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

Schema diagrams for PostgreSQL

I have made some progress towards the longstanding goal of drawing nice diagrams of database schemas. Firstly, I’ve figured out how to use yEd‘s Entity Relationship node types as table nodes. These special node types have both a node label, … Continue reading

Posted in Programming | Tagged , , , , | 7 Comments

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

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

Debugging wxPython programs

wxPython is a great way to write full-featured native GUI applications in Python.  It’s a wrapper for wxWidgets, a portable windowing toolkit written in C++.  (wxWidgets used to be called wxWindows, but, thanks to Microsoft’s inexcusable penchant for giving all … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Fixing a ZIP file

A certain firewall I know habitually chops off the last few bytes of some responses. It’s usually noticeable when large binaries are downloaded. Installers may fail to run (fortunately most of them contain an integrity check), and ZIP files may … Continue reading

Posted in Programming | Tagged , | 2 Comments

XML viewing and diffing

Another simple XML tool, and a neat recursive diffing algorithm. (Part of my growing toolkit of XML tools.)

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

Simple AI for bridges

I finally overcame several weeks of programmer’s block on the train this evening, by writing the AI for the bridges game.

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

Call graphs in Python part 2

I’ve made some improvements to the program discussed last month in Call graphs in Python. It’s had a significant rewrite in program analysis, paying more attention to how names are used. I’ve also experimented a little more with rendering the … Continue reading

Posted in Programming | Tagged , , , , | 5 Comments