04 Mar
by: Matt in Development, Python
tags: multiprocessing, Python
Python’s multiprocessing module is a great tool that abstracts the details of forking and managing child processes in an interface inspired by the threading module. The benefit to using processes over threads is that you effectively avoid the issues of the GIL (Global Interpreter Lock).
I wanted to share my experience with sharing static data [...]
For one off scripts for a particular project:
#!/usr/bin/env python
from django.core.management import setup_environ
from myapp import settings
setup_environ(settings)
# do some stuff
02 Mar
by: Matt in Development, PHP
tags: concurrency, fork, parallel, pcntl, pcntl_fork, pcntl_wait, php, process, thread, unix
I find it interesting and challenging to bend PHP in ways it probably shouldn’t be bent. Almost always I walk away pleasantly surprised at it’s ability to solve a variety of problems.
Consider this example. Let’s say you want to take advantage of more than one core for a given process. Perhaps it [...]
Just a quick note alerting everyone to the fact that jQuery has gotten EVEN EASIER AND FASTER.
Go check out the release notes.
08 Feb
by: Matt in Development, Django, Infrastructure, PHP, Python, Ruby, Ruby on Rails
tags: deployment, Django, mod_wsgi, mongrel, passenger, php, phusion passenger, Python, rails, ruby, subversion
I finally got around to setting up a more sophisticated deployment system for some of my apps. These apps include some built on a custom PHP framework and others that are Python / Django apps. I figured I’d share my experience…
Why is a high-level deployment infrastructure important? Deployment is something that should [...]
Many (awesome) changes http://blog.jquery.com/2010/01/14/jquery-14-released/.
View the release notes here: http://jquery14.com/day-01/jquery-14
19 Dec
by: Matt in Development, JavaScript
tags: 1.4, JavaScript, jquery, jquery 1.4
The wonderful folks over at jQuery have released Alpha 2 of version 1.4 for all those testers out there.
1.4 is slated for official launch on January 14th – how cute :)
Just wanted to mention that jQuery 1.4 Alpha 1 has been released.
Most of the changes seem to revolve around heavy optimization of some core functionality. Installing this alpha and testing in live applications will help get this release out!
30 Nov
by: Matt in Book Reviews, CSS, Clojure, Development, Django, Infrastructure, JavaScript, PHP, Python, Ruby, Ruby on Rails
tags: book review, clojure, Development, Django, php, programmer, Python, rails, ruby, Ruby on Rails
Send this to your significant other/parent/relative/friend so, instead of that sweater, you get one of these nuggets of awesome this Christmas.
The Pragmatic Programmer: From Journeyman to Master
Write better, cleaner, more maintainable code. Learn how to manage your projects and focus on shipping your product. With insight that covers the gamut of software development [...]
15 Nov
by: Matt in Development, Django, Infrastructure, Python
tags: centos, Django, linux, mod_wsgi, mysql, mysql-python, mysqldb, Python, setuptools
This is an update to my previous how-to Setup Python 2.5, mod_wsgi, and Django 1.0 on CentOS 5 (cPanel).
The biggest reason why I chose to go with Python 2.5 at the time was because the MySQL Python (MySQLdb) package didn’t support Python 2.6. The 1.2.3c1 release does so that roadblock is lifted.
The instructions are [...]
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.