Python funny story: split() vs split(" ")

Today I would like to tell you a funny story about a problem that I faced at work. We are a security company and we have many systems that process logs for various purposes. Many of these are written in Python and basically split the log lines to work on specific fields. In Python, the split function splits on a specific string if specified, otherwise on spaces (and then you [Read More]

How to use MongoDB (and PyMongo) with Flask-Login

Before deciding to use Ghost, I was thinking to create my blog platform from scratch using Flask, its extensions and MongoDB. The first thing I thought about was sessions and users management. Flask has a nice extension, called Flask-Login, that handles all details for you, so I started to dig further into its documentation. Unfortunately, every example is written using SQLAlchemy which has a different syntax as opposed to pymongo [Read More]