Archives:
Applied

Ssh-Agent Forwarding

For some reason this seems confusing– but it isn’t! That said, I always forget the specifics. Here’s how you use ssh-agent to do key forwarding to remove machines.
On your local machine, execute:

eval `ssh-agent`

Note the back ticks around ssh-agent. you need to eval this, not run it!
Now you need to add the identities you want [...]

JSON Encoding and Decoding with Custom Objects in Python

The JSON module supports encoding (aka serializing) for all the basic built-in python types– strings, lists, dictionaries, tuples, etc. but if you have your own user-defined class that you want to store, I found the documentation to be pretty ambiguous. And since I also didnt see any complete examples out there of custom object [...]

Colourizing Python Print Statements

Lately I find myself writing a lot of python scripts that involves a ton of text flying by, and me inventing increasingly creative combinations of obscure symbols to delineate different portions of the output. Luckily, if you’re not using windows using a sensible operating system, then you probably have an underappreciated tool at your disposal– [...]

NASA Image of the Day as Gnome background

Lately I’ve really been enjoying the NASA Image of the Day, and so I decided to make a script to update my gnome background daily with the new images. here’s a really great one that came in the other day:

I thought of making a nice python script using the elegant universal feed parser; something able [...]

PostGIS Beginner Notes

these are basically my notes as a total n00b coming to postgres and postgis from previous experience with mysql. hopefully, they will be useful to others as well in finding their feet. i am using ubuntu, but except for the package names below these instructions should be rather generic for non-windozz systems.
first thing’s is [...]

Archives

  • January 2010
  • November 2009
  • July 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • Site Feeds

    Posts
    Comments

    Marginal Structure Posts RSS feed

    Site Tags