Category Archives: How-tos

Multiple IP uplinks with Gentoo

When your computer or server has access to multiple LAN segments with different address spaces and different gateways to the Internet,┬áthere’s a nice feature called policy routing that allows you to use all of them simultaneously without having to re-configure your network topology. This is especially useful when you want to increase the bandwidth and […]

Also posted in Sysadmin | Tagged , , , , , , | 2 Comments

Integrate Tornado in Django

Tornado is a nice python WSGI-compliant web server developed by guys at FriendFeed. It’s primarily thought as application server for python web frameworks and according to FriendFeed benchmarks, it’s blazing fast thanks to its non-blocking connections. UPDATE: For more performance info, James Abley pointed me to a very complete benchmark of available Python asynchronous webservers. […]

Also posted in Coding | Tagged , , , , , | 15 Comments

Pre-processing Audio and Video capture to Flash in Mac OS X

Web streaming services like UStream.tv and Livestream (previously known as┬áMogulus) use a Flash applet to capture audio and video signals on source computer. Media stream is encoded by Flash and sent over to broadcasting server. Currently this approach has two shortcomings: Flash applet audio capture is very limited: only one device a time, only one […]

Also posted in Audio, Video | Tagged , , , , , , , , , | 2 Comments

.gitignore for Django buildout

If you’re keeping your django buildout installation under git, you may find the following .gitignore list useful to prevent your commits from cluttering with ugly temporary files (of course it also applies to other revision control system ignore files). You may need to adapt folder names to your buildout.cfg setup.

Also posted in Coding | Tagged , , , , , , | Leave a comment

Gentooize Part 1: colorize console

One of the best lessons you can learn from Gentoo is you can export most of its juice to other OSes. I’ve been using Gentoo as main Linux distro since 2001. Currently I have a few setups where drawbacks of migrating to Gentoo would exceed benefits, so I decided to increase affinity by adding some […]

Also posted in Sysadmin | Tagged , , , , , , , | 2 Comments

Django dynamic template paths

Several add-on applications for Django bring in their own templates and expect user to hardcopy those files into project’s template directory. The problem raises when add-on egg is updated and its hardcopied templates are not. Another approach could be to add add-on template directory path to TEMPLATE_DIRS variable in project’s settings.py. However, once add-on application […]

Also posted in Coding | Tagged , , , , | 3 Comments

Exim ldap lookup multiple DNs

Exim is one of the most flexible MTAs on the market. Its optional modules for database connectivity and its extensive config syntax allow full customization and use of external data sources. Provided LDAP backend allows three kinds of database query lookups: ldap: This does an LDAP lookup using a query in the form of a […]

Also posted in Sysadmin | Tagged , , , , | Leave a comment

Django and mysql names

Using django 1.1.1 framework with dmigrations tool, I’ve discovered that they don’t honour mysql naming conventions correctly. In fact, mysql has a limit of 64 characters on table names, index names and column names, but django doesn’t take it into account when generating tables and indices from models.

Also posted in Coding | Tagged , , , | 2 Comments

Install wxPython in buildout

While completing setup of this blog with WordPress, I’ve also been working on another task: adding wxPython dependency to a pythonic project of mine. The deployment of this project is done through buildout, a nice piece of software that handles a sandboxed environment for python projects. You can find download and install instructions to start […]

Also posted in Coding | Tagged , , , , , | Leave a comment