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,861 other subscribers

Archive for the ‘Python’ Category

Some interesting tweets by @isotopp and others on home power measurement and what to do to optimise energy usage at home

Posted by jpluimers on 2025/02/26

For my link archive (browse back and forth in the tweets: lots of useful tips):

[Wayback/Archive] Kris on Twitter: “@mausdompteur @HildebrandtRalf … Tasmota Support P1-mqtt in Python, für den oa Zuidwijk Slimme Lezer Diese Lösung setze ich ein.”

A few of his power usage pictures:

Read the rest of this entry »

Posted in Development, Hardware, IoT Internet of Things, LifeHacker, Network-and-equipment, Power User, Python, Scripting, Software Development | Leave a Comment »

How to send raw network packets in Python with tun/tap

Posted by jpluimers on 2025/02/20

For my link archive: [Wayback/Archive] How to send raw network packets in Python with tun/tap

I never really played around with tun and tap, so this is a nice opportunity to do so. I know they were the base for VPN on Linux, but just now I learned TUN/TAP are not available on nx, but also on Windows. Cool!

Via [Wayback/Archive] 🔎Julia Evans🔍 on Twitter: “how to send raw network packets in Python with tun/tap …”

--jeroen

Posted in *nix, *nix-tools, Development, Ethernet, Hardware, Linux, Network-and-equipment, Power User, Python, Scripting, Software Development | Leave a Comment »

Stable Diffusion – a Hugging Face Space by stabilityai

Posted by jpluimers on 2025/02/06

I’m anxious to see how some 2.5 years after the introduction, Stable Diffusion has evolved.

By then, you could run it either on-line at for instance [Wayback/Archive] Stable Diffusion – a Hugging Face Space by stabilityai:

Stable Diffusion DemoStable Diffusion is a state of the art text-to-image model that generates images from text.

or run it yourself if your GPU was powerful enough by using the base repository [Wayback/Archive] CompVis/stable-diffusion or one of the many forks: [Wayback/Archive] Forks · CompVis/stable-diffusion (back then some 1.4k!)

The original announcement was [Wayback/Archive] Stable Diffusion Public Release — Stability.Ai.

Read the rest of this entry »

Posted in AI and ML; Artificial Intelligence & Machine Learning, Development, Python, Scripting, Software Development | Tagged: | Leave a Comment »

Bridgy Fed – bridges to/from BlueSky, Fediverse (including Mastodon) and many web-sites

Posted by jpluimers on 2025/01/29

I bumped into [Wayback/Archive] Bridgy Fed a while ago. The highlights:

Source is written in Python and HTML. It is available from [Wayback/Archive] GitHub – snarfed/bridgy-fed: 🌉 A bridge between decentralized social network protocols.

The blog post re-introducing it: [Wayback/Archive] Re-introducing Bridgy Fed | snarfed.org.

There is docs too: [Wayback/Archive] Bridgy Fed: docs

Bridgy Fed is a kind of a spin-off from the longer existing [Wayback/Archive] Bridgy which has documentation at [Wayback/Archive] About – Bridgy and source code at [Wayback/Archive] GitHub – snarfed/bridgy: 📣 Connects your web site to social media. Likes, retweets, mentions, cross-posting, and more….

Via [Wayback/Archive] Ionica Smeets (@ionica.mathstodon.xyz.ap.brid.gy) — Bluesky who’s primary social media presence is at [Wayback/Archive] Ionica Smeets (@ionica@mathstodon.xyz) – Mathstodon.

I created my [Wayback/Archive] wiert.me profile – Bridgy Fed which resulted in these two entities (that by the time you read this should have some updates):

--jeroen

Posted in Blogging, BlueSky, Development, Fediverse, HTML, Mastodon, Python, Scripting, SocialMedia, Software Development, Web Development | Leave a Comment »

python – What is a virtualenv, and why should I use one? – Stack Overflow

Posted by jpluimers on 2025/01/29

I knew that venv is always needed inside your project directory when using Python, and roughly why, but not exactly why, so the points in the below StackOverflow Q/A sequence and underlying article are important to save in my link archive.

[Wayback/Archive] python – What is a virtualenv, and why should I use one? – Stack Overflow (thanks [Wayback/Archive] Kevin and [Wayback/Archive] Thanh Nguyen).

Read the rest of this entry »

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

Converting Power Point

Posted by jpluimers on 2025/01/15

I have a lot of old Power Point slide decks that I want to reuse in current presentations. By now however, I learned prepare all my presentation stuff in either Markdown or reStructuredText: far easier to publish and put under version control.

After searching, I could only find one tool that is still maintained doing a decent job doing a PowerPoint to Markdown conversion: [Wayback/Archive] GitHub – ssine/pptx2md: a pptx to markdown converter. The tools which works great, in big part of PowerPoint content being highly structured with styles like title, subtitle and various heading levels and content types.

The thing it does not document is the prerequisites, which are these:

Future enhancements

Read the rest of this entry »

Posted in Development, Lightweight markup language, MarkDown, Office, Power Point, Power User, Python, Scripting, Software Development, venv | Leave a Comment »

Uncommon Uses of Python in Commonly Used Libraries

Posted by jpluimers on 2025/01/01

For my link archive as it will help me when ready to step up my Python skills: [Wayback/Archive] Uncommon Uses of Python in Commonly Used Libraries.

Via: [Wayback/Archive] Julia Evans on Twitter: “i love this kind of researchy blog post (“i read a bunch of python libraries, here’s what i learned!”)

Read the rest of this entry »

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

How to extract playlists (list of file locations) from iTunes using python – Stack Overflow

Posted by jpluimers on 2024/12/18

While migrating from iTunes on one machine to Apple Music on another one, I needed to migrate part of the (disorganised) playlists.

I knew there was a binary ~/Music/iTunes/iTunes Library.itl file, but that is encoded or encrypted, making it hard to parse.

Luckily there is also ~/Music/iTunes/iTunes Music Library.xml which I found via the links below.

Read the rest of this entry »

Posted in Apple, Development, iTunes, Mac OS X / OS X / MacOS, Power User, Python, Scripting, Software Development, XML, XML/XSD | Leave a Comment »

ValueError: invalid literal for int() with base 10: ” by tzwickl · Pull Request #768 · sivel/speedtest-cli

Posted by jpluimers on 2024/11/22

Somehow this post missed the schedule and for a long time I forgot to properly checked for “missed schedule” posts.

Back in 2021, suddenly systems with speedtest-cli threw a [Wayback/Archive] ValueError: invalid literal for int() with base 10: ” by tzwickl · Pull Request #768 · sivel/speedtest-cli after accessing the speedtest.net servers.

Around 7-8 April, 2021 the speedtest.net/speedtest-config.php XML configuration suddenly had changed the value for the XPath expression /settings/server-config/@ignoreids from being a list of integers into empty, see the archived files below.

Read the rest of this entry »

Posted in Development, JavaScript/ECMAScript, Python, Scripting, Software Development, XML/XSD, XPath | Tagged: , | Leave a Comment »

The state of malware today: From Highly Obfuscated Batch File to XWorm and Redline – SANS Internet Storm Center

Posted by jpluimers on 2024/10/10

A very interesting read, where it keeps me wondering how batch files like these are being generated (making them by hand feels very surreal): [Wayback/Archive] From Highly Obfuscated Batch File to XWorm and Redline – SANS Internet Storm Center

VirusTotal entry: [Wayback/Archive] VirusTotal – File – 453c017e02e6ce747d605081ad78bf210b3d0004a056d1f65dd1f21c9bf13a9a

The day after the article was written, only Kaspersky and ZoneAlarm detected it; in the past ZoneAlarm used the Kaspersky engine, but that stopped a while ago: [Wayback/Archive] ZoneAlarm Free Antivirus Review | PCMag.

The malware uses at least these technologies:

Read the rest of this entry »

Posted in Antivirus, Batch-Files, Development, Power User, PowerShell, Python, Scripting, Security, Software Development, Windows Development | Leave a Comment »