01 Jul
by: Matt in Development, Infrastructure, Python
tags: API, asynchronous, non-blocking, Python, REST, tornado, web.py
I’ve been working with Python’s Tornado for about 2 months now and I love it. Tornado is a non-blocking web server written in Python. It’s structure is similar to web.py so users of that popular Python web framework will feel right at home. This is a structure that lends itself really well to developing RESTful [...]
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 be simple, [...]
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 [...]
05 Oct
by: Matt in Development, Infrastructure, PHP
tags: memcache, mysql, php, session, session handler
The Problem I’m sure many have used PHP’s default session handling capabilities. By default, PHP uses the filesystem to store session data naming files with their session id # and putting them in /tmp. This is done for the sake of simplicity. On a single-server, low load website, this particular setup works fine. It’s when [...]
11 Sep
by: Matt in Development, Infrastructure
Just wanted to post this quick bash script to iterate over the repositories in a directory, perform an svnadmin hotcopy, and tar/gzip the output. By using hotcopy this can be performed on a live subversion repository and will produce a pristine backup. #!/bin/bash REPOS_PATH=/var/repos mkdir -p /backups/weekly rm -rf /backups/tmp mkdir -p /backups/tmp/repos for i [...]
Sometimes, taking a few minutes to do a simple thing will save you a headache down the road. Like changing the oil in your car, or brushing your teeth every night, or automatically backing up your databases. The development server that I mess around on has recently accumulated a lot of data that I really [...]
13 Jan
by: Eric in Development, Infrastructure, Ruby on Rails
tags: apache, deployment, passenger, phusion, ruby, ruby enterprise edition, Ruby on Rails
I’ve been using Phusion Passenger for a few months now and I’m really pleased with it. The performace vs. Mongrel is better, but what makes it so useful is the ease of deployment. Being able to setup a vhost in Apache just like you would for a PHP application was very appealing to me. Having [...]
10 Nov
by: Matt in CSS, Development, Django, Infrastructure, Python
Please read the update to this article Setup Python 2.6.4, mod_wsgi 2.6, and Django 1.1.1 on CentOS 5.3 (cPanel) Installing Python 2.5 dependencies Install sqlite3: $ wget http://www.sqlite.org/sqlite-amalgamation-3.6.4.tar.gz $ tar xvfz sqlite-amalgamation-3.6.4 $ cd sqlite-amalgamation-3.6.4.tar.gz $ ./configure $ make $ make install Install Python 2.5 Download Python 2.5 source package, unzip, and enter working directory: [...]
09 Apr
by: Matt in Development, Infrastructure
tags: auto-props, enable-auto-props, propset, svn
It’s quite the pain in the ass to manually propset for each new file added. Edit the file .subversion/config and scroll down towards the bottom… find the [miscellany] block and uncomment the line enable-auto-props = true In the group of options below titled [auto-props] and add a line like: * = svn:keywords=Id Date LastChangedBy Revision
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.