Nugget Post: Python Flask framework and multiprocessing

When using the excellent Flask framework in conjunction with the python multiprocessing module , you may notice that the inbuilt Flask webserver will try to start up twice, leaving you with two webserver processing, each trying to bind to the same port. Needless to say this results in unexpected errors. Apparently this is a problem with … Continue reading Nugget Post: Python Flask framework and multiprocessing

Inotify, ubuntu and trash

I ran into an issue while monitoring an ubuntu machine's file system activity using python's implementation of Inotify (pyinotify) and it's awesome big brother, the "watchdog" python library. If you havent checked out watchdog for monitoring file system events - you're seriously missing out. Catch up on it here: http://pythonhosted.org/watchdog/ https://github.com/gorakhargosh/watchdog The watchdog library worked … Continue reading Inotify, ubuntu and trash