David Andrzejewski

David Andrzejewski

Compile PyCrypto on Windows With Visual C++

Install Visual Studio 2008 SP1 Express Edition. Go to the command prompt. First, I had to set the following variable:

Note the trailing backslash – that needs to be there. The value must also NOT be in quotes.

Python – Enhance PyDev’s Code Completion

Because Python isn’t strongly typed, sometimes PyDev doesn’t know what type a variable is – and therefore it cannot give you accurate code completions. Here’s how to make that better. In simpler situations, PyDev works very well. For example:

Squid: Bypass redirector for specific URL

Often times, in your Squid proxy, you may have a redirector configured – such as SquidGuard:

I ran into a problem tonight with my Roku box where SquidGuard was seeing Roku’s NetFlix access as a security threat.  So, to…

Squid Proxy: Make Outgoing Headers Anonymous

By default, Squid sends HTTP headers on every request that can give away information about your internal network. Here’s an example of these headers:

That’s three pieces of information you may not want to give away: The host name…

CSS: Make an element unselectable

Apparently, it’s necessary to use separate CSS properties for each browser.

Configure VLANs on FreeBSD

If you have a switch, access point or other piece of network hardware that supports 802.1q VLAN tagging, and you’d like to your FreeBSD system to recognize them, it’s a pretty straight-forward configuration.  I’ll use examples from my network to…