gavinj.net

Thoughts on technology, infrastructure, and AI

Triggers in MySQL

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-clamav Could it get any simpler?

If only life was this simple apt-get install python-clamav: >>> import pyclamav >>> ret=pyclamav.scanfile('/tmp/virus') >>> print ret (1, 'Worm.Sober.G') >>> ret=pyclamav.scanthis("Buffer to test bla...