PyConWeb 2018

PyConWeb is an international Python Web conference held in Munich. Its main purpose is to talk about Web tools and techniques to make the Web even more awesome. Attending this conference really feels different from the other non-German conferences. The conference is organised and prepared with German precision. Everything was taken care of and the only thing you need to think…

Strings in Python 2 and Python 3

The goal of this post is to show you how to properly use encode and decode in python 2 and in python 3. This post will be based on small examples that will (hopefully) make you better understand how strings work in python 2 and python 3. A bit of background on unicode and UTF-8: Unicode has a different way…

Lessons Learned from PyMunich 2016

At the end of October there was a Python conference in Munich (PyMunich). For a regional conference it was quite big in my opinion. There were 3 tracks and more then 40 speakers. As always I won't cover all the talks just the ones that I found the most interesting and educational. After all this is the biggest reason why…

A dev’s MacBook from scratch

I’ve been a long time Apple user. I hate a lot about the company’s policy and how they treat their power users, but I love the tight integration between their software and hardware. Another thing to love is their migration tools. You buy new hardware, you click Restore from backup and you are done. Safari even opens up the tabs…

Lessons learned from EuroPython 2016

This was my first EuroPython conference and I had high expectations because I heard a lot of good things about it. I must say that overall it didn’t let me down. I learned several new things and met a lot of new people. So lets dive straight into the most important lessons. On Tuesday I attended “Effective Python for High-Performance…

Setuptools – run custom code in setup.py

A week or so ago I started developing an experimental Python package for one of our projects. At some point I realized that it would be convenient to automatically execute some additional initialization code during the package installation process (i.e. when "python setup.py install" is run). This can be achived by subclassing the setuptools.command.install class and overriding its run() method,…

Write a Plone CLI maintenance script

This is a quick tip on how to write your own command line maintenance scripts for your Plone application. Recently one of our clients expressed a need for a maintenance script which would walk the database of a Plone application and, for every object, print out all the roles users have assigned on that object. Since we were dealing with…