While to some it may seem trivial to roll your own PIL (Python Imaging Library) it can be quite annoying for others. Especially if you have followed my previous tutorial on installing Python 2.7 from source. On request from a…
The following is a generational cache object, which can be used to cache resources that take a long time to load or allocate. This is particularly useful for caching images or large files that are used often to prevent frequent…
So, we have all heard the horror stories of replacing the 2.4 interpreter with a newer one that is not offered in any of the maintained repos. Clouds part, log files build, mutt inboxes overflow and yum (among many other…
So . . . it occurred to me that there wasn’t a real way to monitor the internals of a django app/project. Sure you can run munin (or any flavor of monitoring app) and watch apache response times, db hits,…
It is often necessary to sanitize lists after substantial use and whilst using mixed sources. This is one of many ways you can achieve this with minimal effort. Apologies for the line return in the WP template. Update: no more…
So. Ran into a little frustration using MongoDB with Django; if you try to represent the _id field of a mongo object using something like {{ mongo_object._id }} or {{ mongo_object.id }}, you will get nothing but django…
To continue the security talks I decided to show you all how to create unpartisan port forwarded. This daemon will allow eleven constant active connections. Just make sure that your destination is able to interrupt the data properly. Also, I…
So you have a ton of functions that you are running and importing them at the time of execution seems . . . . legacy? Why not throw them into memory. Real memory. While I haven’t actually benchmarked it; the…