guest@pyhacker ~/search

grep -ir "python" *
Results: 15

Compiling PIL 1.6 for Cygwin and Python 2.5

I'm not sure if this is still relevant today, but I had written this on my blog last year so I may find it useful again in the future, I was trying to compile PIL 1.6 to use with my Cygwin-installed python at work and had to do this: rebase -b 0x1000000000 /bin/tk84.dll python setup.py build_ext -i ...

more ...

gitorious.py - A command line interface to Gitorious

We started using Gitorious at work for our git repositories. Since I couldn't find a way to create projects and repositories on the command line, I decided to write one using mechanize. The script allows for project creation and deletion as well as repository creation and deletion. I may add more fe...

more ...

Migrating to Pelican

Inspired by a post here, I decided to checkout Pelican. This site has been powered by Django for a few years and although I love Django, it's a bit overkill for this blog. I also thought it'd be a good idea to give my little SheevaPlug server a break from running a database backed website. Migrating...

more ...

pysiri - A Python interface to Siri

Last week, the guys at Applidium posted an article on their blog with the technical details to the Siri HTTPS server (the blog post has since been taken down). Along with the article, they published some proof of concept code written in Ruby. That code can be found here. Anyway, I thought it'd be fu...

more ...

Gmail

I've found it useful to send email on the command line. Since Python can send email and I use Gmail as my mail provider, I wrote this script: send_gmail.py Some of my other scripts use this one to send csv attachments, informaton, etc. ...

more ...

Liquid Planner

We use Liquid Planner at my job to manage our projects and timesheets. Liquid Planner provides a nice RESTful API so I wrote some python to access some of the functions: liquidplanner.py This script requires my other send_gmail.py script. ...

more ...

Copy every nth file

This is a little gui that copies files from one directory to another directory. You can specify a step to selectively copy files (such as every tenth file, etc). I originally wrote this code to copy every nth pair of stereo images from one directory to another so there's an option for that (if selec...

more ...

Convert comments exported from Disqus to WXR

When I moved the Python code from my other site (http://www.thehobbsfamily.net) to this site, I wanted to move the comments from those posts over too. I'm using Disqus for the comments on the site and the comment migration tool Disqus provides didn't seem to work for me. The only way I could think o...

more ...

comcap.py - Comcast internet usage script

Yesterday I wrote a little python script that grabs your current Comcast internet usage and prints it to stdout. It depends on the excellent mechanize module so if you don't have it, install it with easy_install.py mechanize. To run the script, simply execute comcap.py. You will be prompted for your...

more ...

Install AnnWrapper (scikits.ann) on Windows XP

ANN (Approximate Nearest Neighbor) is a C++ library for both exact and approximate nearest neighbor searching in arbitrarily high dimensions. I've been trying to use SWIG to wrap this library so I can use it in Python. Today I found out that someone had already done it! The project is called scikits...

more ...

Adding a Software License Agreement to a DMG file

As part of the software distribution process I go through at my job (Qforma, Inc), I package up our software for both Windows and Mac. For Windows, I create an installer using NSIS which requires a user to agree to a Software License Agreement (SLA) before installing the software. For Mac, rather th...

more ...

#FreeStuffFriday on twitter

So @Sega has been giving stuff away on twitter every Friday in a promotion they call #FreeStuffFriday. All you need to do to win is direct message them with the key phrase at the right time. I wrote a script to help me win and it's actually worked a handful of times. The hardest part is trying to es...

more ...

Migrating to Nuxt

It's been 6 years since I migrated this site off of Django and onto Pelican. A lot has changed in the mean time. I still spend the majority of my time hacking in Python but for the past couple of years, frontend Javascript frameworks have really taken off. At work (Carta), we use a variety of fronte...

more ...

sas7bdat

more ...