Skip to content

works on my machine

¯\_(ツ)_/¯

  • Projects
  • Prototypes
  • Coding
  • HowTos
  • Pinouts
  • Story time

Links

Github
  • About
works on my machine
¯\_(ツ)_/¯
  • Software tests
    Story time

    Software tests

    ByStefan December 20, 2022January 10, 2023

    Write them. Do not try to save time writing them poorly or even not at all. You and your coworkers and even often your future self will appreciate the work you put in. Many many times I found probable issues, uncovered cases and bugs lurking in my code I wrote by testing the code step…

    Read More Software testsContinue

  • https://commons.wikimedia.org/wiki/File:Notepad_plus_plus.png
    HowTos

    Notepad++ synchronize vertical scrolling

    ByStefan November 4, 2022November 4, 2022

    I like to use the “other view” feature of Notepad++ to show two files side by side. As I often have compare them I really like the synchronized vertical scrolling option which scrolls them both at the same time. There’s an icon you can click, but I prefer to use a key binding to toggle…

    Read More Notepad++ synchronize vertical scrollingContinue

  • https://commons.wikimedia.org/wiki/File:Notepad_plus_plus.png
    HowTos

    Notepad++ show line numbers

    ByStefan November 4, 2022

    It’s a little hidden imo, so future-me or for your service – the setting to show the line numbers.

    Read More Notepad++ show line numbersContinue

  • We need a bigger boat – Raspberry Pi Zero, Zero 2 and Raspberry 4 pinouts
    Pinouts

    We need a bigger boat – Raspberry Pi Zero, Zero 2 and Raspberry 4 pinouts

    ByStefan September 12, 2022September 12, 2022

    As all the Raspberry Pis have the same pinout – here is a overview valid for all of them. Thank you pinout.xyz for your great service! The HDMI and USB ports are on the left, the SD card slot on top and the pins on the right.

    Read More We need a bigger boat – Raspberry Pi Zero, Zero 2 and Raspberry 4 pinoutsContinue

  • Say hello to my little friend – D1 mini pinout
    Pinouts

    Say hello to my little friend – D1 mini pinout

    ByStefan September 10, 2022February 6, 2023

    Thank you AZ-Delivery for this pinout! And thanks for best prices for this. They have got some really good offers here: https://amzn.eu/d/2ZqjALZ (no affiliate link) The onboard LED is at GPIO 2. Checkout Random Nerds Tutorials for which GPIOs to use.

    Read More Say hello to my little friend – D1 mini pinoutContinue

  • A snake with no name – Lambdas in Python (also functions and list comprehensions)
    Coding

    A snake with no name – Lambdas in Python (also functions and list comprehensions)

    ByStefan September 7, 2022September 8, 2022

    Sweet and short: Instead of a function you can write a single statement in Python as a lambda. Either is one either better or worse nor does one replace the other. They both have their place and intended use. Functions hopefully have describing names, are probably used multiple times and handle a specific part which…

    Read More A snake with no name – Lambdas in Python (also functions and list comprehensions)Continue

  • “You won’t get IN with THIS E-Mail” – Python Regex to validate email (formally)
    Coding

    “You won’t get IN with THIS E-Mail” – Python Regex to validate email (formally)

    ByStefan September 6, 2022September 7, 2022

    Currently did some text analysis with Python and Regex. Came up with an E-Mail format validation method which could help you with the same problem and remind me of it in the future. Import package re and use the compile method to get a regex pattern with which you can match your desired String.For evaluation…

    Read More “You won’t get IN with THIS E-Mail” – Python Regex to validate email (formally)Continue

  • It was born like this – pre-enabling WiFi and SSH on Raspberry Pi OS and creating a user
    HowTos

    It was born like this – pre-enabling WiFi and SSH on Raspberry Pi OS and creating a user

    ByStefan September 5, 2022February 10, 2023

    Most of my Raspberry Pis run headless (just remote console, no GUI). To remind myself and for your service I wrote this short memo how to set them up correctly. You can also find the same and much more Pi related information here, but I like to keep the stuff I need together in one…

    Read More It was born like this – pre-enabling WiFi and SSH on Raspberry Pi OS and creating a userContinue

  • Knock-knock- a door or window sensor prototype in (Micro)Python on the Pico, D1 mini and Pi Zero
    Prototypes

    Knock-knock- a door or window sensor prototype in (Micro)Python on the Pico, D1 mini and Pi Zero

    ByStefan August 22, 2022August 26, 2022

    Jump to: Pico – D1 mini – Pi Zero Raspberry Pico A short Python implementation of a magnetic switch turning on a LED when it is not connected (e.g. window is opened). For simplicity reasons I used the builtin LED on the Pico. You have to use the pull=Pin.PULL_DOWN parameter for the input pin (sensor)….

    Read More Knock-knock- a door or window sensor prototype in (Micro)Python on the Pico, D1 mini and Pi ZeroContinue

  • Gordon knows how: Flashing Micropython on D1 mini and D1 mini lite
    HowTos

    Gordon knows how: Flashing Micropython on D1 mini and D1 mini lite

    ByStefan April 26, 2022January 26, 2023

    As I really prefer Python for my little projects over C++, I flashed my Wemos boards with Micropython and wanted to share how I did it (it was pretty easy). You have to connect your board with USB to your computer, have Thonny installed and the desired micropython image downloaded. (You can do it with…

    Read More Gordon knows how: Flashing Micropython on D1 mini and D1 mini liteContinue

  • Dusting off the blood sucker – deleting sustained mosquitto messages
    HowTos

    Dusting off the blood sucker – deleting sustained mosquitto messages

    ByStefan April 25, 2022January 25, 2024

    After expermienting alot with my MQTT server it was pretty polluted with sustained messages and I wanted to get rid of them. The fastest way I got this reliably to work was by deleting the persistence file while the MQTT server was offline. You could delete all or specific topics with a script, too, but…

    Read More Dusting off the blood sucker – deleting sustained mosquitto messagesContinue

  • Enter the Matrix – UNICORN style (a.k.a. a Matrix scroller in MicroPython on the Pimoroni PicoUnicorn Hat)
    Projects

    Enter the Matrix – UNICORN style (a.k.a. a Matrix scroller in MicroPython on the Pimoroni PicoUnicorn Hat)

    ByStefan April 12, 2022January 25, 2024

    As a software engineer I often write code that runs (hopefully) fine in the background, does its job and you probably never see it again. That dragged me to buy a unicorn hat for my first Raspberry Pico, as I’d like to see some fancy output of my spare time project. After some time of…

    Read More Enter the Matrix – UNICORN style (a.k.a. a Matrix scroller in MicroPython on the Pimoroni PicoUnicorn Hat)Continue

Page navigation

Previous PagePrevious 1 2 3 4 5 Next PageNext

© 2025 works on my machine

Privacy Policy

Scroll to top
  • Projects
  • Prototypes
  • Coding
  • HowTos
  • Pinouts
  • Story time
Search