- ARCHIVE / TAG ARCHIVE
- Snippet to load stuff quickly in the Django shell
Sometimes you end up testing out things a lot using the handy django shell, but every time you’ve got to repeat the same commands to load all the necessary models, utils etc. etc. In order to do this automatically, I thought you had to modify the django-admin.py file or something like that. Nope! Here’s a […]
- Python pitfall: Passing Mutable Objects as Default Args
I have a long and nested lists of parameters to throw out with a django template, but the visualization routine in the template processes them better if the parameters are ordered two by two. So I was trying to put together a simple function for reordering the original list accordingly. This is what I came […]
- Installing RDFlib on osX
RDFlib is a Python library for working with RDF, a simple yet powerful language for representing information. Installing it is easier than what you might think. I googled it and it seems that several people had problems (missing components mainly) with this.. but in my case it was easy-beasy (well you need to have easy-install): […]
- Offline django docs
An offline copy of the django docs can be quite helpful if you find yourself doing development work without an internet connection. Obviously, django comes with its docs that you can generate (provided you have Sphinx and build tools). However sometimes a pdf is the handiest solution… here’re some useful links I found: Docs in […]
- GAE SQL Designer
GAE SQL designer is a simple app that allows you to Draw E-R designs, Edit tables and rows, Manage keys, Create relations (FK constraints), Save & Load designs and Import DB schemas. Finally – it’s online and it’s free! Check it out at http://gaesql.appspot.com/ (docs).
- MacPython/Leopard – PythonInfo Wiki
Some people have legitimate reasons for wanting to install IDLE on Leopard. E.g., even though Leopard's Xcode 3.0 (and later) supports Python development, it does so in a heavyweight, support-all-of-Cocoa fashion. And educators teaching Python who wish to do so in a platform-agnostic way may also be best served by IDLE. The following steps will […]
- pysmell – Python auto-complete – works with TextMate too!
One of the reasons that kept me away (sigh) from TextMate is the lack of autocompletion support.. especially in Python. Seems like those days have ended – I just downloaded and installed Pysmell, and it works great!!! The instructions are very clear, you install it, dbl click the TextMate bundle file and you’re already half […]
- Komodo-Edit :: a nice free python editor!
Finding the perfect IDE for a programming language is always an ongoing process – even more if your language is python – i’ve been happily using eclipse/pydev for a while now, but recently i run into KomodoEdit and I liked it. Mostly, cause it’s lightweight and it’s built with a ‘snippet-oriented’ philosophy (something like textmate). […]
- Python easy_install – The PEAK Developers’ Center
Easy Install is a python module bundled with setuptools that lets you automatically download, build, install, and manage Python packages. That is to say – super easy installation of a long list of Python modules. You can download it from here . Installation on Mac OS: 1. Download the appropriate egg for your version of […]
- Python’s phenotype
Phenotype: any observable characteristic or trait of an organism: such as its morphology, development, biochemical or physiological properties, or behavior. .. IDLE 1.2 >>> type(‘aaa’) <type ‘str’> >>> type(‘aaa’) <type ‘str’> >>> type(‘aaa’) == type(‘a’) True >>> type(type(‘aaa’) == type(‘a’)) <type ‘bool’> >>> type(type(type(‘aaa’) == type(‘a’))) <type ‘type’> >>> type(type(type(type(‘aaa’) == type(‘a’)))) <type ‘type’> >>> […]