How to use defaultdict

Motivation When learning a specific language it is essential that you also learn the built-in functionality which gives you leverage. In Python there are often so called pythonic ways to solve problems like lambdas, filter function or enumerate. Tools that save you time when addressing real world problems. Use case Sometimes you want to do…

How to find the mouse pointer on macOS

Motivation Many software developers use a multi monitor setup with two or three screens at 24 inches or more. Some folks like videoeditors 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. But macOS got you covered. Settings…

How to use the configparser module

Motivation Sometimes you need a configuration for your project to adapt to different environments. The easiest way is to alter some variables / constants in your program code. But Hold your horses. This isn’t always a good idea. What if you package your code into an executable with e.g. PyInstaller? Maybe the user of your…

Stolz und Vorurteil in der Software-Entwicklung

Ein Plädoyer für die Einbindung externer Expertise in Softwareprojekten. Ein Gastartikel von Marcel Müller Software-Entwicklung besteht längst nicht mehr nur aus den Aktivitäten im Bereich Informatik, die der Erstellung, Gestaltung, Bereitstellung und Unterstützung von Software dienen. Gute Software-Entwicklung ist Leidenschaft. Gute Software-Entwicklung ist Kunst. Perspektiven & Spezialisierungen Man kann Software immer aus verschiedenen Perspektiven entwickeln…

How to use the sys module in Python

Motivation Sometimes you need information about your system e.g. which Python version your program is running on. Enter the sys module Import import sys How to find the currently active Python interpreter current_interpreter = sys.executable assert current_interpreter == “/Users/jb/PycharmProjects/blog_content_creatronix/venv311/bin/python” How find out about your Python version sys.version assert sys.version == “3.11.0rc1 (v3.11.0rc1:41cb07120b, Aug 5 2022,…

BarCamp Regensburg 2022

Endlich wieder BarCamp! – Yeah! Zwei lange Jahren mussten wir auf das BarCamp Regensburg verzichten. Ich wusste nicht wie sehr ich es vermisst hatte. Als ich die Stufen zu Techbase hochstolperte fühlte es sich so an, als wäre ich gerade erst dort gewesen. Allerdings konnte ich diesmal direkt in der Nähe parken. Location Die Location…

How to configure git

Motivation Working on different projects with different user info and settings you may find it necessary to dive deeper into the git configuration. First of all you need to know that there are at least three git configuration files system global local worktree Each level overrides values in the previous level, so local overwrites global,…

Shortcuts for Screenshots on macOS

When you write articles you occasionally need a screenshot of a program or a website. macOS got you covered with several options. Here are some useful keyboard shortcuts to use them: Screenshot of the full screen Press Shift + Cmd + 3 simultaneously Part of the screen Press Shift + Cmd + 4 simultaneously Window…