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

Archive for August, 2025

Quick batch file hack to download a file calling PowerShell to do the heavy lifting

Posted by jpluimers on 2025/08/12

I needed this download-file.bat a while ago, but forgot how I found out.

It’s in this gist too: [Wayback/Archive] Quick batch file hack to download a file calling PowerShell to do the heavy lifting.

Here we go: Read the rest of this entry »

Posted in .NET, Batch-Files, CommandLine, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows, Windows 10, Windows 11, Windows 8.1 | Leave a Comment »

Running DOS Programs on an Apple Silicon based Mac

Posted by jpluimers on 2025/08/11

I’m vintage, so I have some old machinery but also want to be able to run old software on newer hardware.

TL;DR: Since Apple Silicon (which is based on ARM) uses Intel Emulation for regular Mac binary programs, VMware Fusion# on Mac M* series cannot run Intel based operating systems, after some research there basically were these options:

  • use VMware Fusion and run inside a Windows on ARM VM by using
    • a dos emulator like DOSBox or DOSBox-X, since modern 64-bit Windows lacks the NTVDM:

      Since virtual 8086 mode is not available on non-x86-based processors (more specifically, MIPSDEC Alpha, and PowerPC) NTVDM is instead implemented as a full emulator in these versions of NT, using code licensed from Insignia’s SoftPC. Up to Windows NT 3.51, only 80286 emulation is available. With Windows NT 4.0486 emulation was added.

      NTVDM is not included with 64-bit versions of Windows or ARM32 based versions such as Windows RT or Windows 10 IoT Core. The last version of Windows to include the component is Windows 10, as Windows 11 dropped support for 32-bit processors.

    • an NTVDM replacement like NTVDMx64 or winevdm (sometimes calles otvdm)
  • use a specific emulator like DOSBox-X directly on MacOS
  • use a more generic emulator like QEMU based UTM

I have a VMware background on bare metal, Windows and MacOS, so I prefer it over Parallels

Links: Read the rest of this entry »

Posted in DOSBox, DOSBox emulator, Emulators, MS-DOS, Power User, Virtualization | Leave a Comment »

Conductor, Semiconductor and Superconductor with a twist

Posted by jpluimers on 2025/08/11

I tried finding older versions of [Wayback/Archive] 160767437_1614740178716498_1088211482313253900_n.jpg (667×960) from Facebook: Crappy Electrical jokes and Puns. 1,666 likes · 9 talking about this. Just for fun (20210315), especially as the web-site of the ultimate source seems to have died: [Wayback/Archive] Kill The Neighbours, the game that doesn’t hurt – free online puzzle game

Read the rest of this entry »

Posted in Development, Electronics Development, Fun, Power User | Tagged: , , | Leave a Comment »

Turn iPhone, iPad and Android into wireless mobile mouse / trackpad / keyboard with Remote Mouse.

Posted by jpluimers on 2025/08/08

On my list of things to try: [Wayback/Archive] Turn iPhone, iPad and Android into wireless mobile mouse / trackpad / keyboard with Remote Mouse.

Goal is to see if the iPad can function as a larger touchpad to assist drawing on my MacBook.

Links:

Via:

Query: [Wayback/Archive] use ipad as mouse – Google Suche

--jeroen

Read the rest of this entry »

Posted in Apple, Apple Silicon, iOS, iPad, iPhone, LifeHacker, Mac, MacBook, MacBook Retina, MacBook-Pro, Power User | Leave a Comment »

Hopefully by now the Chocolatey .nuspec extensions and limitations are documented in a more central way

Posted by jpluimers on 2025/08/08

Chocolatey extends the NuGet file format .nuspec based XML files as base for their packages with at the time of writing very sparse and limited documentation in what it extends, why it does that and what extra limitations it imposes on the fields used inside .nuspec files.

Hopefully by now that has improved, so this post is a reminder to myself to check that out eventually.

At the time of writing, the NuGet .nuspec documentation was at [Wayback/Archive] .nuspec File Reference for NuGet | Microsoft Learn and the file format at [Wayback/Archive] NuGet.Client/nuspec.xsd at dev · NuGet/NuGet.Client. Most fields are defined as primitive data types xs:boolean, xs:string and xs:anyURI (of the 19 available primitive XML SChema (W3C) types). Some composite data types are are composed from them using local and global complexType, most using xs:all, xs:attribute or single-type unbounded xs:sequence (which all imply no particular order).

Since an XML Schema allows to both use restriction and extension on data types (the eXtensible in XML!), making them more strict is a relatively straight-forward operation and has the benefit of having these in a central place.

In the past for more than 5 years [Wayback/Archive] Is there a specification for the package format? · Issue #379 · chocolatey/choco was just pointing to the NuGet .nuspec format, but after a request to re-open new comments were made pointing to a current issue (basically a stub, but still) and a Chocolatey nuspec.xsd file, yay!

Still it was a quest to figure out the additional rules they have added, especially since the documentation was sparse and sloppy.

Read the rest of this entry »

Posted in Chocolatey, Development, Power User, Windows, Windows 10, Windows 11, Windows 7, Windows 8, Windows 8.1, XML/XSD, XSD | Tagged: , , , , , , | Leave a Comment »

html – What can cause Chrome to give an net::ERR_FAILED on cached content against a server on localhost? – Stack Overflow

Posted by jpluimers on 2025/08/07

On my research list [Wayback/Archive] html – What can cause Chrome to give an net::ERR_FAILED on cached content against a server on localhost? – Stack Overflow

The reason what that back then this would fail (but worked in Firefox and Safari, and because I was in a hurry I didn’t research further): [Wayback/Archive] https://www.office.com/

This site can’t be reached

The webpage at https://www.office.com/ might be temporarily down or it may have moved permanently to a new web address.

ERR_FAILED

Thanks [Wayback/Archive] Mason Wheeler and [Wayback/Archive] Joel Davey.

Details:

Read the rest of this entry »

Posted in Chrome, Communications Development, Development, Encryption, HTTP, https, HTTPS/TLS security, Power User, Security, TCP, TLS, Web Browsers, Web Development | Leave a Comment »

Looking for an alternative to the (now dead) ZXing Barcode Scanner – Apps on Google Play

Posted by jpluimers on 2025/08/07

Edit 20250807: (thanks [Wayback/Archive] twm/dummzeuch!) at [Wayback/Archive] dummzeuch: “@wiert yeah, I found out about…” – Mastodon

@wiert yeah, I found out about this a few weeks ago, when I wanted to install it on my new phone.
I switched to this one:

gitlab.com/Atharok/BarcodeScan

But I haven’t used it enough to be able to make a final evaluation.

So I will try [Wayback/Archive] Atharok / Barcode Scanner · GitLab with the install from the Android App-store [Wayback/Archive] Scanner: QR Code and Products – Apps on Google Play.

Original post:

Read the rest of this entry »

Posted in Android, Development, Mobile Development, Software Development | Tagged: | Leave a Comment »

peter purgathofer: “… i recently found a little HDMI-fob that fakes a second screen; i can now see my presenters’ notes on the built-in screen, while the presentation is on a hallucinated second screen …” – 🌱 hci.social

Posted by jpluimers on 2025/08/06

The below post reminded me that around black friday I bought [Wayback/Archive] ADWITS 2-Pack 4K 2K 1080P 30Hz to 60Hz Support HDMI Display Emulator DDC EDID Headless Ghost Monitor Adapter Dummy Plug, Highest 4096 x 2160 @ 60Hz – Gold Colour: Amazon.de: PC & Video Games

[Wayback/Archive] peter purgathofer: “today i gave a talk, where the…” – 🌱 hci.social

today i gave a talk, where the setup was that i had to share my presentation over zoom, but i didn’t have a second screen. this usually meant that i have to forgo seeing my presenters’ notes because my notebook’s screen would be the shared presentation screen.

i recently found a little HDMI-fob that fakes a second screen; i can now see my presenters’ notes on the built-in screen, while the presentation is on a hallucinated second screen.

simple and effective.

--jeroen


Image from the Toot: [Wayback/Archive] 6af960c3f84a12e8.jpeg (2939×2821)

Posted in Development, Hardware Interfacing, HDMI, LifeHacker, Power User | Leave a Comment »

linux – Get final URL after curl is redirected – Stack Overflow (plus some Twitter scraping tricks)

Posted by jpluimers on 2025/08/06

Sometimes I need [Wayback/Archive] Redirect Checker | Check your Statuscode 301 vs 302 on the command-line, so cURL to the rescue: [Wayback/Archive] linux – Get final URL after curl is redirected – Stack Overflow. The relevant portions of answers and comments further below.

TL;DR:

Since I prefer verbose command-line arguments (you can find them at the [Wayback/Archive] curl – How To Use on-line man page) especially in scripts this HTTP GET request is what works with Twitter:

% curl --location --silent --output /dev/null --write-out "%{url_effective}\n" https://twitter.com/anyuser/status/20
https://x.com/anyuser/status/20

This failed (twitter dislikes HTTP HEAD requests):

% curl --head --location --silent --output /dev/null --write-out "%{url_effective}\n" https://twitter.com/anyuser/status/20
https://twitter.com/anyuser/status/20

Notes

Given so many of my scripts now run on zsh, I added the new-line because of command line – Why does a cURL request return a percent sign (%) with every request in ZSH? – Stack Overflow. You can strip that bit.

Note that these do not perform client side redirects, so they do not return the ultimate originating URL https://x.com/jack/status/20 (which was the first ever Tweet on what was back then called twttr) as Twitter on the client-side overwrites window.location.href with the final URL. Similar behaviour for getting the Twitter user handle of a Twitter user ID, more on Twitter tricks below.

Tweet by TweetID trick via [Wayback/Archive] Accessing a tweet using only its ID (and without the Twitter API) – Bram.us.

Further reading (thanks [Wayback/Archive] vise, [Wayback/Archive] Daniel Stenberg, [Wayback/Archive] Ivan, [Wayback/Archive] AndrewF, [Wayback/Archive] Roger Campanera, and [Wayback/Archive] Dave Baird):

Read the rest of this entry »

Posted in *nix, *nix-tools, bash, Batch-Files, Bookmarklet, Communications Development, Conference Topics, Conferences, CSS, cURL, Development, Event, HTTP, Internet protocol suite, JavaScript/ECMAScript, Power User, Scripting, SocialMedia, Software Development, TCP, Twitter, Web Browsers, Web Development | Tagged: | Leave a Comment »

Tootski, a sharing bookmarklet for Mastodon · GitHub

Posted by jpluimers on 2025/08/05

For my research list: [Wayback/Archive] Tootski, a sharing bookmarklet for Mastodon · GitHub

--jeroen

Posted in Bookmarklet, Development, JavaScript/ECMAScript, Mastodon, Power User, Scripting, SocialMedia, Software Development, Web Browsers | Leave a Comment »