May2011

Use gtk settings to make buttons show their icons again

ou may have noticed gtk has stopped showing images for buttons by default. Many apps have not bothered to check the default settings and just assumed that defining an image for a button meant it would show. Too bad the gtk devs decided to change the default value. But never fear, for there is a way to make sure the image shows without modifying the system or user preferences outside of your application!

Printing variables in python with placeholders

Even if you’ve only dabbled with python for a minute or two, you’ve probably already figured out that you can print variables using placeholders. You might have tried concatenation too. However, did you know you can print using %s but with the variable names directly?

Pure Hatred: dhcpd logging unknown subnet for client address

the dhcpd configuration option ignore unknown clients doesn’t do what you think it might. Syslog fills up with DHCPINFORM messages with unknown subnet for client address. Must I hack the code for a workaround?