All my Django sites are running 1.2, which poses a conflict with writing apps for Google’s App Engine, as use_library currently only supports < Django 1.1. There are two solutions that I found: a) use virtualenv, or b) chroot, which I’ve already detailed. This document will hopefully show you how to create a virtual environment to use a secondary django version, especially for GAE. Of the two options, I think this one is a bit quicker, but there will likely be tradeoffs that a chroot environment can deal with better, e.g. python imaging (I don’t use it for GAE).
First, install PIP and virtualenv:
Read Ubuntu 10.04, Django and GAE - Part 2Nearly everyone on our team stayed up the entire night; most of us didn’t sleep at all.
It had been years since I last pulled an all-nighter, but they had always been for good causes. I had just completed another one and had an immense amount of fun in the process. The reason? GovHack.
GovHack aimed to encourage the Australian government to make as much information openly available as possible. The challenge was to take the scattered pieces of information already available and turn them into useful tools or visualisations for the public.
Read GovHack 2009Status: ✅
I’m currently studying French, and if you’ve read any of this site, you’ll notice I’m a bit of a techie. Often several of my interests collide, which is what happened today. I was searching for the “most frequent french words,” and while I found some lists, nothing was exactly what I wanted.
My desire was to have a PDF of the top few thousand most used French words. With the English translation next to it. In order. I’ve found some great resources, which I’ll list now
Read Most Frequently Used French WordsI’ve received this error a few times when working with pytz:
Error reading file '/usr/share/xml/iso-codes/iso_3166.xml' In short, install the ‘iso-codes’ package in Ubuntu/Debian. I’m sure this is covered in the manual that I didn’t read, but I’m sure others didn’t read it too.
apt-get install iso-codes
Read ISO Code ErrorI’ve evaluated Zenoss before, but forgot the default password, and searching for it didn’t come up with anything quickly. I tried everything under the sun: password, 1234, admin, God, Sex, but alas, grep to the rescue:
kelvin@monitor:/usr/local/zenoss/zenoss/etc$ grep admin * hubpasswd:admin:zenoss Update: it is listed on page 4 of the Admin PDF :)
Read Zenoss Default PasswordI rank OSSEC as one of my favorite pieces of open source software, and finally decided to play around with it more in my own free time. (Yup, I do this sort of stuff for fun). My goal was quite simple: send syslog packets from my Cisco to my “proxy” server, running OSSEC. I found that, although OSSEC supports Cisco IOS logging, it didn’t really work. In fact, I couldn’t find any examples or articles of anybody actually getting it to work.
Read Integrating OSSEC with Cisco IOSAs you can tell from reading some of the other pages, I like Linux and open source. But I also like to answer the question “what if…” This post is my [brief] run down of answering “what if I could run Django on Server 2003 with SQL Server and IIS.” Why, you may ask? To be honest with you, at this point, I don’t really know. One of the deciding factors was seeing that the django-mssql project maintains support for inspectdb, which means I could take a stock 2003 server running SQL Server, inspect the DB, and build a web app on top of it. The Django docs offer a lengthy howto for using Django with IIS and SQL Server, but the website for PyISAPIe seems to have been down for the …
Read Using Django with SQL Server and IISI’m writing down these quick notes so I can remember the steps for getting py2exe to work with GTK.
Download the GTK+ runtime Download py2exe Copy over your project into the windows box Create a setup.py file (see below) Run “c:\Python25\python.exe setup.py py2exe” Copy over the lib, etc, and share folder from C:\Program Files\GTK2-Runtime into the dist folder Run app! setup.py:
from distutils.core import setup import py2exe setup( name = 'ploteq', description = 'Bunnys Plotting Tool', version = '1.0', windows = [ { 'script': 'ploteq.py', } ], options = { 'py2exe': { 'packages':'encodings', 'includes': 'cairo, pango, …
Read PyGTK + py2exe for WindowsI needed another Python fix, and I need one pretty badly. I spent the weekend wondering why it appears to be impossible to edit the GUIDs inside an Exchange mailbox store (read: NOT the GUIDs stored in AD for Exchange). Anyways, I digress.
My goals were simple. I wanted to use Python, wanted something to do with traffic, and wanted to play around with Glade/PyGTK and graphing stuff. My end result was a little app that allows you to specify a GPX file, and it plots the waypoints (and calculates the moving average!). Pretty simple, pretty useless, but pretty fun. I really do like pretty pictures.
Read GUI to Plot Driving SpeedI showed a few of my co-workers my graph and one replied – oh! that’s really cool. (I think only two of my co-workers are actually interested in my geekyness). He then emailed me tonight a .kmz file containing a colorized file of his speed. I looked at the kml and noticed it appeared to be dynamically allocated judging by the top speed. Well, as you could guess, I surely had to modify my code to include colors.
Read Another Baby Step