Forking processes and Gtk2

I made a change recently on the gjay program. gjay is a gtk program that basically analyzes your music and makes playlists. There is a gui frontend and a analyzer back-end and they communicate through a pipe.

One really useful debugging option gtk has is to make warnings fatal, so when gtk finds one it crashes at that point and you can use gdb to trap it. The flag is –g-fatal-warnings.  I have been updating gjay and initially it didn’t have this option, so I needed to add the gtk options, which is a simple one-liner.

A python utf gotcha

This one had me stumped for a while: # -*- coding: utf-7 -*- import datetime from sqlalchemy import ForeignKey, Column from sqlalchemy.types import Integer, Unicode, Boolean, DateTime default_due_date = + datetime.timedelta(days=30) Syntax error found on last line. Hmm, bring up a python interpreter and type the last line in with the imports. Works fine.