Johntron

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


Setup remote debugging in PhpStorm 6

April 26th, 2013

How to setup remote PHP debugging with Xdebug in JetBrains PhpStorm 6

Better logging with Loggly and Symfony 2

July 2nd, 2012

If you’re using the WhitewashingLogglyBundle to send your Symfony 2 project’s log messages to Loggly, you’re probably wishing the messages on Loggly were a little more informative. Just add this to your services.yml: monolog.processor.introspection: class: Monolog\Processor\IntrospectionProcessor tags: – { name: monolog.processor } monolog.processor.web: class: Monolog\Processor\WebProcessor tags: – { name: monolog.processor }

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()