[micah@octopus ~]$ - Page 2
-
PHP 5 Zip Code Range and Distance Calculation
A silly little bit of code I wrote 6 years ago to calculate the distance between 2 zip codes in PHP based on a MySQL table still gets a lot of feedback to this day. About a year ago I was working on a project which needed this same functionality. I thought it would be a perfect opportunity to rewrite the code, bringing it up to date with PHP 5 syntax and implementing some perfomance improvements.
Things changed, my project went in a new direction, and I had forgotten about this code--until this morning. I found this little gem in my archives and sure enough, it's working. While there are some missing features and coding styles that I'm not in love with, it is certainly worth sharing with the PHP community rather than collecting dust in my halls of forgotten code.
Thus, I give you PHP-ZipCode-Class, a PHP 5 class for calculating distances and ranges on MySQL table containing zip codes.
-
Django Project Plugin for Gedit 3
Gedit Django Project is my new plugin for Gedit 3 which adds some GUI interfaces to the Django CLI project management commands (django-admin.py and manage.py).
-
Favorites Plugin for Gedit 3
Check out my new Favorites Plugin for Gedit 3.
-
Writing Plugins for gedit 3 with Python
'This is a guide to programming plugins for gedit 3, the default text editor for GNOME 3. gedit 3 uses the Libpeas GObject plugin system and the plugins can be written using C or Python. This guide will only cover writing plugins with Python.
Some of the information I provide is also found in the Python Plugin How To for Gedit found on live.gnome.org. However, I hope to provide a different approach to presenting the information and add some additional insights.
-
"Hello World" in Python with GTK+ 3
Playing around with the newly released GTK+ 3.0 in Python, I thought I would share this simple "Hello World" code which uses the new Gtk.Application object.



