Inno Setup: Determining the data directory at install time

Inno Setup is a fantastic and free application for creating Windows setup programs. It takes so much of the hassle out of the process that it's almost fun. I recently needed to extend Inno Setup with a custom code section: I needed to install the program's data to the Common App Data folder or the […]

Iterating over a window in Python

This weekend, I had a fairly common problem: given a sequence of elements and an element in that sequence, I needed to get the next element; if the element was the last in the sequence, then I needed the first element. My first stab at a solution was pretty straightforward: def item_after(elements, item):     […]