Python’s Default Argument Values are Sticky
May 25, 2012I can't believe it's taken me this long to learn this: Python's default argument values are only evaluated once during…Compile PyCrypto on Windows With Visual C++
May 25, 2012Install Visual Studio 2008 SP1 Express Edition. Go to the command prompt. First, I had to set the following variable:…Python – Enhance PyDev’s Code Completion
May 3, 2012Because Python isn't strongly typed, sometimes PyDev doesn't know what type a variable is - and therefore it cannot give…Python: Get XML Representation of an Object
November 18, 2011I needed to return all the members of an object as an XML document in Python. I used the ElementTree…Squid: Bypass redirector for specific URL
November 16, 2011Often times, in your Squid proxy, you may have a redirector configured - such as SquidGuard: redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squid/squidGuard.conf…Squid Proxy: Make Outgoing Headers Anonymous
November 6, 2011By default, Squid sends HTTP headers on every request that can give away information about your internal network. Here's an…CSS: Make an element unselectable
October 28, 2011Apparently, it's necessary to use separate CSS properties for each browser. .unselectable { -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select:…Configure VLANs on FreeBSD
September 7, 2011If you have a switch, access point or other piece of network hardware that supports 802.1q VLAN tagging, and you'd…FreeBSD – IPv6 Tunnel and Gateway Configuration
March 4, 2010Most of us don't have native IPv6 Internet connections at home. Fortunately, it's easy (and free) to get connected to…FreeBSD Backup Using dump and duplicity
March 1, 2010I spent some time thinking about backup strategy, and I decided for my purposes, I'd like to handle the staging…