Roland's homepage

My random knot in the Web

Older articles (7/26)

  1. Playing a sound when the battery is low

    Although I have a battery indicator on the bottom of my laptop screen I don’t alway check that often enough. That’s why I wanted to add an extra warning in the form of an audio signal. So even if I’m turned away from the laptop, it should still catch my attention.

  2. Cleaning up old port configurations

    On FreeBSD, ports save their configuration parameters under /var/db/ports. When you de-install a port, this configuration remains behind. This is how to clean old configurations up.

  3. Generating barcodes with “BWIPP

    Originally I looked for a Python module to generate barcodes, and I found the treepoem module. This used Pillow to create bitmaps, and I preferred to have PDF or other resolution independant formats. Looking through the README, I found that treepoem is a wrapper for bwipp. This is a set of PostScript procedures to generate barcodes.

    Since I’m familiar with using PostScript, I decided to use bwipp directly.

  4. On the nature of GUI programs

    This is based on answers (1, 2) I gave on stackoverflow. That answer is specific to the tkinter toolkit that comes with Python. The principles apply to other GUI toolkits and languages as well but the terminology used (like mainloop and idle task) may be different.


←  Page 6 Page 7 / 26 Page 8 →