Posting to the Twitter API
Just to provide a little bit of context, I'm working on a project that will be similar to secrettweet. Users will be able to post anonymous messages. Those messages will be reviewed manually through the Django admin, and once they're approved, they'll be posted to a Twitter account through ...
Read More
Simple Parsing Script
A simple script to parse plain text files (in this case pipe-delimited), then write the rows to a table. Take a look at the sample text file - the fields in the first row should match the column headers.
#!/usr/bin/python # usage: ./parser.py CUSTOMERORDERS_20090401.txt # don't forget ...
Read More
converting tabs to spaces in vi
This is mostly for my own personal reference - just one of those little things I use frequently and always forget how to set up:
If you're writing Python, then you know that indentation is, uhm, somewhat important. Mkay. I use four space indentation as a standard, but ...
Read More
If you're writing Python, then you know that indentation is, uhm, somewhat important. Mkay. I use four space indentation as a standard, but ...
Read More





