David Andrzejewski

Make Eclipse Less Ugly in Linux Mint 13 with MATE

  Eclipse Juno looks terrible in Linux Mint 13 with the MATE desktop environment. Here’s an example of part of the screen: Everything is big and bulky, the tool bar’s style doesn’t really match the theme’s style. Here are the steps I’ve taken so far to correct this: Create a file called gtkrc, I’ve created […]

Make Eclipse Less Ugly in Linux Mint 13 with MATE Read More »

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: C:>set VS90COMNTOOLS=C:Program FilesMicrosoft Visual Studio 9.0Common7Tools Note the trailing backslash – that needs to be there. The value must also NOT be in quotes. C:>cd “Program FilesMicrosoft Visual Studio 9.0vcbin” C:Program FilesMicrosoft Visual Studio 9.0VCbin>vcvars32

Compile PyCrypto on Windows With Visual C++ Read More »

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: emp = Employee() Typing ’emp.’ will get you a good autocomplete. Now, let’s say you have

Python – Enhance PyDev’s Code Completion Read More »

Squid: Bypass redirector for specific URL

Often 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 I ran into a problem tonight with my Roku box where SquidGuard was seeing Roku’s NetFlix access as a security threat.  So, to make Squid bypass the redirector, add an ACL and a redirector-access rule:

Squid: Bypass redirector for specific URL Read More »

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: HTTP_VIA:1.1 proxyserver.local (squid/3.1.16) HTTP_X_FORWARDED_FOR:192.168.0.123 That’s three pieces of information you may not want to give away: The host name of your proxy server, the version of Squid it’s running, and the

Squid Proxy: Make Outgoing Headers Anonymous Read More »