Skip to content

works on my machine

¯\_(ツ)_/¯

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

Links

Github
  • About
works on my machine
¯\_(ツ)_/¯
  • Finding Nemo or check a Python list if there is one or all elements matching a condition
    Coding | HowTos

    Finding Nemo or check a Python list if there is one or all elements matching a condition

    ByStefan March 26, 2024

    Yeah we all can loop, but can you any or all? Checking if condition matches for at least one element of an iterable (e.g. list, tuple, set) In Python you can write that nicer with the builtin method any(): But who doesn’t like a one-liner (that is understandable): Very similar is the case if you…

    Read More Finding Nemo or check a Python list if there is one or all elements matching a conditionContinue

  • Mastering the chaos – subscribe to all MQTT topics of your Mosqitto server with console and Node-RED
    HowTos

    Mastering the chaos – subscribe to all MQTT topics of your Mosqitto server with console and Node-RED

    ByStefan January 23, 2024January 25, 2024

    I wanted to know which topics are active on my MQTT server and if there were some skeletons in the closet I could get rid of. Many Iot devices, Node-RED flows and surely some unused topics or old retained topics lead to more or less MQTT being a chaotic museum of topics. This is just…

    Read More Mastering the chaos – subscribe to all MQTT topics of your Mosqitto server with console and Node-REDContinue

  • You are locked in here with me(dia) – function keys always on. How to deactivate?
    HowTos

    You are locked in here with me(dia) – function keys always on. How to deactivate?

    ByStefan January 16, 2024

    Pressing F5 does not refresh your view anymore but rewinds the current media?F11 does not run the selected JUnit test in Eclipse any more but activates Caps Lock? I have a Logitech K850 keyboard and I unintentionally turned on the function key lock (didn’t even know such a thing existed). Try the following: [Fn] +…

    Read More You are locked in here with me(dia) – function keys always on. How to deactivate?Continue

  • Always look on the bright side of life: An adaptive night light for RGB LED stripes in MicroPython
    Coding | Prototypes

    Always look on the bright side of life: An adaptive night light for RGB LED stripes in MicroPython

    ByStefan December 22, 2023December 22, 2023

    This covers a very configurable and more complex variant of measuring brightness and turning on LEDs.If you are looking for a more basic variant: It all began with a LDR and curiosity. The result is a night light for a ESP8266 like D1 Mini or Raspberry Pi Pico (W) which compensates darkness with many configurable…

    Read More Always look on the bright side of life: An adaptive night light for RGB LED stripes in MicroPythonContinue

  • How not to make your config file a pain in the ass – MicroPython edition
    Coding

    How not to make your config file a pain in the ass – MicroPython edition

    ByStefan December 20, 2023December 21, 2023

    Externalizing the configuration is a good idea. This makes the reusability of your program much higher and a user doesn’t have (and shouldn’t have to) change values in the code.This separation tends to show where your code is perhaps too tightly coupled and constants are referenced directly as they are directly available in the script…

    Read More How not to make your config file a pain in the ass – MicroPython editionContinue

  • Faster than the shadow – an adapting nightlight in MicroPython
    Coding | Prototypes

    Faster than the shadow – an adapting nightlight in MicroPython

    ByStefan December 18, 2023

    This is a continuation of Is it dark yet ? – Measuring brightness with LDR on Pi Pico (W) and ESP8266 (D1 Mini & NodeMCU v3) in MicroPython, but concentrating on a fast and clean code rather than how to use a LDR with MicroControllers in principle. What you need: D1 mini or a similar…

    Read More Faster than the shadow – an adapting nightlight in MicroPythonContinue

  • Is it dark yet ? – Measuring brightness with LDR on Pi Pico (W) and ESP8266 (D1 Mini & NodeMCU v3) in MicroPython
    Prototypes

    Is it dark yet ? – Measuring brightness with LDR on Pi Pico (W) and ESP8266 (D1 Mini & NodeMCU v3) in MicroPython

    ByStefan December 15, 2023December 16, 2023

    Materials you need for this: LDRs (I am using 5528), breadboard, jumper wires, resistor (I used 56k) and a 5V power supply. The MicroPython code has been written for and tested on Pi Pico, Pi Pico W, D1 Mini and NodeMCU v3 ESP8266 .I bought it at berrybase.de and az-delivery.de (not referral links). The microcontrollers…

    Read More Is it dark yet ? – Measuring brightness with LDR on Pi Pico (W) and ESP8266 (D1 Mini & NodeMCU v3) in MicroPythonContinue

  • NodeMCU V3 ESP8266 Pinout
    Pinouts

    NodeMCU V3 ESP8266 Pinout

    ByStefan December 14, 2023December 20, 2024

    Great microcontroller, bought it at az-delivery.de (no ref link). The onboard LED pin is 2 (GPIO 4).

    Read More NodeMCU V3 ESP8266 PinoutContinue

  • How not to be seen – a.k.a. Notepad++ Analyse Plugin hidden result window
    HowTos

    How not to be seen – a.k.a. Notepad++ Analyse Plugin hidden result window

    ByStefan December 7, 2023January 15, 2024

    This short HowTo is about a problem I had with the Analyse Plugin for Notepad++. The Main window with the text and the one with the filters were still shown, but the result window disappeared and it wasn’t an instant fix to display it again. This is was worked for me:After a quick search I…

    Read More How not to be seen – a.k.a. Notepad++ Analyse Plugin hidden result windowContinue

  • Trust is good control is better – JUnit Tests (parametrized and different arguments providers) with RxJava and some Mockito
    Coding

    Trust is good control is better – JUnit Tests (parametrized and different arguments providers) with RxJava and some Mockito

    ByStefan June 8, 2023

    A follow up to Software tests – some basic JUnit testing in the area of RxJava. Not much text right now, just the announcement, the code below and the link to my github repo. Includes a build.gradle with all the needed dependencies.(There are already some other test concerning ConnectableObservables subscriptions and time of emit.) Short…

    Read More Trust is good control is better – JUnit Tests (parametrized and different arguments providers) with RxJava and some MockitoContinue

  • Deciphering the expected secret – Python this.s in a one liner
    Coding

    Deciphering the expected secret – Python this.s in a one liner

    ByStefan May 23, 2023

    The little easter egg of “import this” in Python is well known – it shows Zen of Python. Nice guideline of how to keep your code clean. The Zen of Python, by Tim Peters Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than complicated.Flat is better than nested.Sparse…

    Read More Deciphering the expected secret – Python this.s in a one linerContinue

  • Breaking the ice – solving frozen SSH on Raspberry OS
    HowTos

    Breaking the ice – solving frozen SSH on Raspberry OS

    ByStefan May 5, 2023May 5, 2023

    “I didn’t change anything and it (the SSH console) just kept on freezing”.This sound like something a callcenter agent would hear many times a day. Not that I ever worked shifts in the night and early on weekends and got paid really well posing as some who knows more than the computer screen in front…

    Read More Breaking the ice – solving frozen SSH on Raspberry OSContinue

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