howto

Python: two-way thread communication made simple

You don’t need heavyweight communication layers for very simple message passing between threads in python. It’s pretty simple to use pipes and implement your own thread class.

Hide a dialog without destroying – pygtk one-liner

If you like the standard window decorations and dont need/want to create your own buttons to handle custom events, closing a dialog without destroying it is a simple one-liner in pygtk. This is helpful when you have logic that replaces individual widgets inside a dialog and you don’t want to recreate the whole dialog.

How to write simple netsnmp apps in Python

Here’s a couple of different ways you can use netsnmp in Python. I had a hard time finding documentation, and what I did find was old and outdated. I figured most of it out just by playing around with the library.

Build SpamAssassin RPMs for Fedora 12 from tarball

In order from most to least important: It works. It’s free. It’s easy to configure. What more could you ask? There’s even a config generator. Here’s the list of packages required to build on Fedora 12

How to show all video modes available in Linux

Here’s a quick way to show all available video modes available with your current combination of video driver and physical displays. If you’re hand tweaking /etc/X11/xorg.conf to your liking, you should avoid listing display dimensions that your system doesn’t support. This little tool will let you know exactly what’s available.

Master Nuketown and the Explosive Cross Bow in Call of Duty Black Ops

If you like sticking explosive crossbow bolts and/or semtex sticky grenades to people and watching or listening to them explode, you should try mastering the Nuketown map. Don your flak jacket and hatchet and go at them, kamikaze style!

Extract files from a RPM without installing the package

his little utility comes with rpm, so it’s already installed and waiting for you. rpm2cpio converts a rpm file specified as as a command argument (or as standard input) and spits it out as a cpio archive to standard output.