How to use Automator on macOS

Motivation Inspired by the session at BarCamp Regensburg I started to think about pain points in my workflow. I figured out that the conversion of my photos was too cumbersome. Before When writing articles I download the images from my phone via AirDrop to my Mac. Apple stores images in the HEIC format on my…

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,…