mark shroyer, dot com: this is where I keep my things

Site Navigation


Category Archives: Code

Pointfree style in Python

November 14, 2011 – 6:12 am

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 »

Posted in Code | Leave a reply

GTK+ and Haskell (gtk2hs) on Windows

October 31, 2010 – 11:50 pm

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 »

Posted in Code, Windows | 4 replies

Windows tool to clean up OS X junk files

October 28, 2010 – 12:13 am

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

September 23, 2008 – 10:13 pm

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 »

Posted in Code, Linux, Unix | Leave a reply

Patch for segfault in OpenBSD 4.3′s pfctl

July 2, 2008 – 11:52 pm

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 »

Posted in Code, Unix | Leave a reply

UF Weather Report Widget Thingy

June 3, 2008 – 8:28 pm

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 »

Posted in Code, Web | Leave a reply