The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for the ‘Python’ Category

Get it while it lasts: Led-pixel display (various Action EU stores)

Posted by jpluimers on 2025/12/11

A cool LED display that is programmable through Python (see [Wayback/Archive] Action led paneel – Boekenwuurm’s blog) made me realise how big Action has grown:

About EUR 20 or CHF 24 in the order of the below query:

There is also a square one, but that one does not remember it’s content during a power off/on cycle.

The above blog mentions this library which sees regular updates: [Wayback/Archive] GitHub – lucagoc/pypixelcolor: A Python library to control iPixel Color devices.

Read the rest of this entry »

Posted in Development, Hardware Interfacing, Python, Scripting, Software Development | Leave a Comment »

camerahacks/rpilocator-rss-feed: rpilocator RSS Feed Notifications

Posted by jpluimers on 2025/12/04

On my list to experiment with is [Wayback/Archive] camerahacks/rpilocator-rss-feed:

This is the official rpilocator.com and hwlocator.com RSS feed reader and push notification scripts and Node-RED flows. The RSS feed is checked every minute and the script/flow sends a push notification when a product comes in stock.

Send ntfy, Pushbullet, Pushover or Gotify notifications to your device.

I only knew one of the above services, so here I have listed links to all of them:

Read the rest of this entry »

Posted in Development, Python, RSS, Scripting, SocialMedia, Software Development, Web Development | Leave a Comment »

EU Code Week on X: “🎨 Creative Corner: ASCII Art Challenge! 🎨 Let’s explore ASCII art! Use your coding skills to create a fun image using text characters. Share your masterpiece in the comments! Check out this guide to get started: Ready, set, create! #CreativeCoding”

Posted by jpluimers on 2025/11/26

This was a nice idea, but apparently not reaching the target audience:

[Wayback/Archive] EU Code Week on X: “🎨 Creative Corner: ASCII Art Challenge! 🎨 Let’s explore ASCII art! Use your coding skills to create a fun image using text characters. Share your masterpiece in the comments! Check out this guide to get started: … Ready, set, create! #CreativeCoding”

It pointed to step 4 in this Raspberry Pi project challenge: [Wayback/Archive] About me: ASCII art – Python challenge

Image via [WaybackSave/ArchiveTweet JSON / [Wayback/Archive] GVfE-_EXAAAv4R6.jpg:orig (1080×1080)

--jeroen

Posted in ASCII art / AsciiArt, Development, Fun, Python, Scripting, Software Development | Tagged: | Leave a Comment »

2023 PDF special voor alle leden: GUI’s programmeren met Python | MagPi

Posted by jpluimers on 2025/11/13

From a while ago, but this 2023 PDF magazine about building GUI applications with Python using guizero is still very fun to read:

[Wayback/Archive] PDF special voor alle leden: GUI’s programmeren met Python | MagPi

Via: [Wayback/Archive] MagPi Nederland on Twitter: “PDF special voor alle leden: gui’s programmeren met python #raspberrypi #python”

Download:

[Wayback/Archive] https://www.magpi.nl/files/attachment/35 (202209131320GUI NL.pdf).

Guizero: Read the rest of this entry »

Posted in Development, Hardware Development, Python, Raspberry Pi, Scripting, Software Development | Tagged: , | Leave a Comment »

Cool visualisations of graph searching: Introduction to the A* Algorithm

Posted by jpluimers on 2025/10/21

This is so cool: graphical [Wayback/Archive] Introduction to the A* Algorithm

It is still being updated, which is even cooler:

Created 26 May 2014, updated Aug 2014, Feb 2016, Jun 2016, Jun 2020, Jul 2023

These are for general graph traversal. That Wikipedia article only mentions depth-first search and breadth-first search, but forgets the A* search algorithm which is an extension of the also not mentioned Dijkstra’s algorithm which in turn is based on breadth-first search.

The visualisations cover the breadth-first algorithms.

The example code is Python based, but easy to translate into other languages.

The visualisation code is in JavaScript, using these files (they Archive.is versions are more accurate than the Wayback Machine ones):

Read the rest of this entry »

Posted in Algorithms, Conference Topics, Conferences, Development, Event, Python, Scripting, Software Development | Leave a Comment »

From 2023: It’s Time For A Change: datetime.utcnow() Is Now Deprecated – miguelgrinberg.com

Posted by jpluimers on 2025/10/14

I forgot how I bumped into this, but a while ago I found this interesting 2023 post: [Wayback/Archive] It’s Time For A Change: datetime.utcnow() Is Now Deprecated – miguelgrinberg.com explaining naive (without time zone) and aware (with time zone) date time objects.

It reminded me of Delphi, where NowUTC – as Delphi does have neither naive or aware date time objects – returns  a floating point value (yes, it has a separate TDateTime type, but it represents the number of days that have passed since December 30, 1899 which in face stems from the Windows OLE Automation era* (OLE Automation is a subset of COM), see [Wayback/Archive] DateTime.ToOADate Method (System) | Microsoft Learn.

That method is mentioned in [Wayback/Archive] Why You Should Use NowUTC Instead of Now in Delphi: A Quick Guide – YouTube and Delphi deserves a way better infrastructure of date and time handling.

So this post is also a reminder to myself: figure out if there is an object oriented DateTime library for Delphi yet, and if not see if there is interest to create one similar to [Wayback/Archive] Noda Time | Date and time API for .NET by Jon Skeet.

Delphi references

Read the rest of this entry »

Posted in .NET, .NET Framework, .NET Standard, C#, Conference Topics, Conferences, Delphi, Development, Event, Jon Skeet, Python, Scripting, Software Development | Leave a Comment »

bash alias to decode email Quoted-Printable stdin data

Posted by jpluimers on 2025/09/25

Perl isn’t my strength, so I was glad to find the below links that inspired me to add this bash function to my profile decoding Quote-Printable email data (for instance used by sendmail and postfix to store SMTP message files):

# https://superuser.com/questions/1452249/fix-revert-wrong-encoding-of-file
function sendmail-decode-quoted-printable-from-stdin() {
  perl -0777 -ne 'use MIME::QuotedPrint; print decode_qp($_)'
}

Read the rest of this entry »

Posted in *nix, *nix-tools, bash, bash, Development, Perl, Power User, Python, Scripting, sendmail, Software Development | Leave a Comment »

What Every Programmer Should Know about How CPUs Work • Matt Godbolt • GOTO 2024 – YouTube

Posted by jpluimers on 2025/09/10

[Wayback/Archive] What Every Programmer Should Know about How CPUs Work • Matt Godbolt • GOTO 2024 – YouTube

Main takeaways for me:

  • CPU pipelines have grown a lot longer than I was aware off
  • there are many more internal registers than I was anticipating
  • clever ways to convert if statements to non-jumps

--jeroen

Posted in .NET, Assembly Language, C, C#, C++, Delphi, Development, Python, Scripting, Software Development | Leave a Comment »

Kevlin Henney on “configuration is code” in his essay “Out of Control. An essay on paradigms, refactoring…”

Posted by jpluimers on 2025/07/31

For my link archive [Wayback/Archive] Out of Control. An essay on paradigms, refactoring… | by Kevlin Henney | Dec, 2020 | Medium.

Neither because Kevlin describes how to refactor a basic algorithm to convert Roman numerals into Hindu-Arabic numerals (in part by using the fact that an if statement can be considered a bounded case of a while loop), nor because he splits the resulting algorithm in coded data and coded statements, or because he mentions the [Wayback/Archive] Gilded Rose Kata but because well, you should just read it in full.

Remember though: Read the rest of this entry »

Posted in Configuration Management, Development, DevOps, Power User, Python, Scripting, Software Development | Leave a Comment »

Wakamai Fondue, the tool that answers the question “what can my font do?”

Posted by jpluimers on 2025/07/24

What Can my Font do - beta pageVery cool web site that I only discovered last year, with the clever name: [Wayback/Archive] Wakamai Fondue, the tool that answers the question “what can my font do?”

Drop a font!
Fonts aren’t uploaded,
they stay on your computer

Back then I used it to investigate some properties of SMuFL (Standard Music Font Layout) fonts as sometimes editing a PDF is easier than manually entering/transcribing it in MuseScore.

Of course you can use local font tools, but this is far easier for occasional use.

The beta can do even more at the risk of bumping into bugs: [Wayback/Archive] Wakamai Fondue, the tool that answers the question “what can my font do?”

Note the colour matching of the text around the circle with the fondue background image.

Oh: it is open source too, written mainly in JavaScript, CSS and a tiny bits of HTML and Python, based on Vue.js and npm, and available as parts in the repositories of [Wayback/Archive] Wakamai Fondue · GitHub:

Read the rest of this entry »

Posted in CSS, Development, Font, HTML, JavaScript/ECMAScript, npm, Python, Scripting, Software Development, Vue.js, Web Development | Leave a Comment »