Category Archives: Code
Pointfree style in Python
I’ve been getting back into Python lately… I just wrote a small module that provides support for pointfree style programming with a combination of automatic partial function/method application and operator overloading for function composition: See the overview for a lengthier … Continue reading
GTK+ and Haskell (gtk2hs) on Windows
Update: Jacob Stanley has a great article on installing gtk2hs on Windows which goes into more detail, including a tutorial on GTK theming. Gtk2hs is my favorite way to do cross-platform GUI programming in Haskell — and it’s the toolkit … Continue reading
Windows tool to clean up OS X junk files
I wrote a little old-school Windows HTA script to delete the .DS_Store, .Trashes, and ._* junk files and directories typically littered across non-HFS media by Mac OS X: You can download it from my GitHub account if you have a … Continue reading
Mobile LAN-oriented filtering in iptables
One of the things that I really like about pf, the OpenBSD firewall, is how it lets you define dynamic packet filtering rules — rules that filter based on your network interfaces’ current addresses at the time of filtering. For … Continue reading
Patch for segfault in OpenBSD 4.3′s pfctl
A couple of months ago, I upgraded an old PowerPC machine from OpenBSD 4.2 to 4.3, and I discovered that the new version of pfctl in 4.3 would segfault when reading my old pf.conf file. Some brief poking around with … Continue reading
UF Weather Report Widget Thingy
I’ve tired of manually pointing my browser at http://www.phys.ufl.edu/weather/ each time I want to check the conditions on campus, so I made a small widget to bring the campus weather report to my NetVibes home page: Fellow Gators can use … Continue reading