How to test your code on multiple platforms with nox

Motivation Maintaining python packages for more than one python version can be a bit of a hassle In https://creatronix.de/how-to-use-tox-to-test-your-code-on-multiple-platforms/ I’ve introduced tox. An interesting alternative is nox(!) due to its programmatic approach Installation pip install nox Example Linting Let’s take a minimum viable example. In our main.py we intentionally omit the newline at the end…

Pillow how to convert images to webp

Motivation WebP is a modern image format that provides superior lossless and lossy compression for images on the web. It was developed by Google, and is designed to be smaller in size than other image formats, while still maintaining high image quality. One reason WebP is often considered better than JPEG is that it can…

Three basic types of agile retrospectives

Motivation Inspect and adapt & Iterative and incremental are the most basic agile principles. So, inspection of your process after every iteration can be done by a retrospective. Vegas Rule First some psychological safety: Vega’s Rule: What happens in a retro stays in the retro! Participants only want to share their insights and concerns when…

Advent of Code 2022 Day 3

Challenge – Part 1 https://adventofcode.com/2022/day/3 Problem vJrwpWtwJgWrhcsFMMfFFhFp jqHRNqRjqzjGDLGLrsFMfFZSrLrFZsSL PmmdzqPrVvPwwTWBwg wMqvLMZHhHMvwLHjbvcjnnSBnvTQFn ttgJtRGJQctTZtZT CrZsJsPPZsGzwwsLwLmpwMDw The first rucksack contains the items vJrwpWtwJgWrhcsFMMfFFhFp, which means its first compartment contains the items vJrwpWtwJgWr, while the second compartment contains the items hcsFMMfFFhFp. The only item type that appears in both compartments is lowercase p. The second rucksack’s compartments contain jqHRNqRjqzjGDLGL and…