Python 3 – there shall be just int

Trying to contribute to the Flask plugin flask-login I just added these lines: if isinstance(duration, (int, long)): duration = timedelta(seconds=duration) Looking quite plausible, isn’t it? But lo and behold: it doesn’t work under Python 3.x. Dang! The reason: Python 2 has two integer types: int and long. In Python 3 there is only int, which…

PB SwissTool Ratchet Screwdriver

I pity the fool who hasn’t got a tool! After buying cheap tools all my life I’ve decided that I became too old for 5€ screwdriver. Our working student Michael Jäger introduced me to the brand PB Swiss Tools. They have lifelong guarantee on their tools and have some nice ideas like colorcoding their bits…

Lint your JavaScript with grunt and jshint

After I’ve introduced You to Yarn I will show You more client side tools in this post. Grunt is a task runner which comes in handy for a lot of setup and configuring work e.g. concatenating and minimizing JavaScript or CSS files To get started You can add grunt via yarn to your project yarn…

Find your mouse pointer on Windows 10

Many software developers use a multi monitor setup with two or three screens at 24 inches or more. Some folks like video editors even use giant curved screens with more than 34 inches. Thus it sometimes can become painful to find your mouse pointer on such big screen estate. On Windows 10 you can change…

Thoughts on building a library

I’ve always loved to read as a child but what I read depended mostly on the books I got as birthday presents. As an adult I occasionally bought some books at book stores at train stations. But I never had a strategy how to build a library. Why do I need a library? Knowledge is…