Flask and bower – download jQuery, others automatically

In last couple of weeks, I experimented a lot with flask and web development. Since this a learning phase, I tend to setup lots of small projects, where a couple of external libraries (such as bootstrap or jQuery) usually need to be downloaded. As I am rather lazy, using an external tool (bower) to download… Continue reading


Multiprocessing – understand your exception

If you are reading this post, most likely you’re still working with python 2.7 series for some reason. In such case, one of the small annoyances you risk running into is nearly complete lack of information what’s happening when the multiprocessing module is used and an uncaught exception is thrown in the child process. In… Continue reading




MongoDB for Developers (python flavour) – course review

Some while ago I decided to dive into the NoSQL world. This decision was driven partially by curiosity if it could be treated as an alternative to the Elasticsearch, which I have seen being used (along with Kibana) to implement rich analytics on mixed (text+numerical) data. I wanted also to understand when I would want… Continue reading


How I’ve managed to shoot myself in the foot with numpy and cPickle

Currently, I use python mostly for data analysis and modeling. Whenever I can I take a pipeline-like approach, where data is processed in multiple steps. Those are implemented in separate py files with cPickle used for data persistence and exchange. You can think of this as of a poor man’s mapreduce. Usually the development is… Continue reading




Multiprocessing and exceptions – some batteries not included

Today I’m going to write about a not that minor inconvenience one faces when using the built-in multiprocessing module – how child process exceptions are presented to the user. I will show you also how to improve it, so in case something goes wrong you don’t have to guess where the problem is. Standalone multiprocessing Through this… Continue reading