Johntron

Python, PHP, Zend, Django, Mobile, and Linux web development guru


k-cluster algorithm in PHP

July 11th, 2011

I couldn’t find any k-cluster algorithms in PHP, so I wrote my own for demonstration purposes. It’s not very efficient, but should help learn.

Evaluating Third-party Software

November 8th, 2010

I recently ran across a great overview of the strengths of Django: The Rise of Python and Django on the Web. Great job jltfox! When evaluating any third-party software, here are the criteria I use: Documentation – If a framework wants to be the core of my code, I have to be able to understand [...]

Python site-packages

July 18th, 2010

To get the path of your Python site-packages, just type the following from the console: python -c “from distutils.sysconfig import get_python_lib; print get_python_lib()

Multiple Databases in Django 1.2

December 16th, 2009

Django 1.2 will contain support for multiple databases. Good news for people trying to scale their web application or building intranet services.

Interactively debug Django applications

November 21st, 2009

Quit banging your head and learn to debug your Python web application using an interactive stack trace (pdb).