EasyInstall - CPAN for Python?
In a nutshell, dowload EasyInstall from: http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install This now allows you to install python packages (called eggs). Like CPAN for PERL, i...
Thoughts on technology, infrastructure, and AI
Viewing posts tagged programming Clear filter
In a nutshell, dowload EasyInstall from: http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install This now allows you to install python packages (called eggs). Like CPAN for PERL, i...
Just learned how to use variables in mysql - the variables are bound to the specific client session - and are destroyed on disconnect. SET @varname = value SELECT max(value) from table into @varname S...
File magic is used on Linux and Unix systems as a binary "fingerprint" to tell what type a file actually is - this provides a much better result than MIME or filename extensions. The "magic" pattern i...
Starting from Mysql 5.0.2, mysql now supports triggers - which can be quite handy. I'm using them to automatically create new (derived) table records when a user submits data to my web app. Syntax is...
Python provides a pretty handy module for performin MD5 sums of both text and data buffers. The following function provides an MD5 sum given a file name: def get_hash(self, filename): """ Generates an...