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 one in my ~/eclipse directory: …

David AndrzejewskiMake Eclipse Less Ugly in Linux Mint 13 with MATE

Python: Get XML Representation of an Object

I needed to return all the members of an object as an XML document in Python. I used the ElementTree library to do this. The class in question is pretty basic: It has a constructor, member variables, getters and setters for the member variables, and now this new function. Every Python class has a built-in __dict__ member, which is a …

David AndrzejewskiPython: Get XML Representation of an Object

CSS: Make an element unselectable

Apparently, 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: none; user-select: none; }

David AndrzejewskiCSS: Make an element unselectable

Python URLGrabber: Ignore System Proxy Settings

The Duke URLGrabber package for Python makes it incredibly easy to retrieve files from remote servers, and it abstracts urllib2 for you in a protocol-independent way, so you can focus on your application instead of spending time working with Python’s built-in urllib2. On Windows and Mac OSX, by default, urllib2 (and therefore URLGrabber) will use the built-in proxy settings of …

David AndrzejewskiPython URLGrabber: Ignore System Proxy Settings