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 ‘Development’ Category

Crowbarring Windows 95 into Windows NT with CAPITALS โ€ข The Register

Posted by jpluimers on 2026/02/04

Via [Wayback/Archive] Crowbarring Windows 95 into Windows NT with CAPITALS โ€ข The Register refers a nice trick that I have used in various case-codebases as well.

On case sensitive environments the casing method is easy no matter if you use macros or just regular identifiers.

On case insensitive environments, prepending or appending soemthing like an underscore (_) works just as well.

The trick referred to is in a section of [Wayback/Archive] How did the Windows 95 user interface code get brought to the Windows NT code base? – The Old New Thing:

Read the rest of this entry »

Posted in Development, Software Development | Tagged: | 1 Comment »

msxml – Error when loading valid Windows-1252 document “System error: -2146697210” – Stack Overflow

Posted by jpluimers on 2026/02/04

Yes, I know that Windows XP SP3 and Windows 7 SP1 have been end-of-life for a long time, but in the wild they are still being used so here is for posterity:

[Wayback/Archive] msxml – Error when loading valid Windows-1252 document “System error: -2146697210” – Stack Overflow (thanks [Wayback/Archive] Rob Kennedy for the comment):

Read the rest of this entry »

Posted in .NET, Delphi, Development, History, Power User, Software Development, Windows, Windows 7, Windows Development, Windows XP, XML, XML/XSD | Leave a Comment »

What is the difference between git pull and git fetch + git rebase? – Stack Overflow

Posted by jpluimers on 2026/02/04

Great Question, Answer and Comment at [Wayback/Archive] What is the difference between git pull and git fetch + git rebase? – Stack Overflow (thanks [Wayback/Archive] michael, [Wayback/Archive] gawkface and [Wayback/Archive] Daniel K.):

Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | Leave a Comment »

From Meh to WOW – With 1 “Tiny” Hack! – YouTube – where the comments mention better ways than this convoluted solution

Posted by jpluimers on 2026/02/03

[Wayback/Archive] From Meh to WOW – With 1 “Tiny” Hack! – YouTube shows an interesting but convoluted solution to solve temperature drift on a cheap Tuya WT410-BH-3A-W thermostat (there are similar models, see below) based on the replacement sensor [Wayback/Archive] WSEN-TIDS Temperature Sensor IC & EV-Kits | Sensors | Wรผrth Elektronik Product Catalog.

Luckily the commenters stepped in and suggest better and easier ways.

On the other hand, the solution is nice to know as it allows plugging in a remote thermostat that sits in a better place to read the temperature while the control bits stay in a place where it is easier to manually adjust.

Chapters:

Read the rest of this entry »

Posted in ARM Cortex-M, Development, Domotics/Smarthome, ESP32, ESPHome, Hardware, Hardware Development, Hardware Interfacing, Home Assistant, Homey, IoT Internet of Things, Network-and-equipment, Power User, STM32 | Leave a Comment »

woo-besluit-broncode-digid-app/NFCService.cs at master ยท MinBZK/woo-besluit-broncode-digid-app

Posted by jpluimers on 2026/02/03

This method sparked a lot of discussion on social media:

private static string GetPercentageRounds(double percentage)

It is part of [Wayback/Archive] woo-besluit-broncode-digid-app/NFCService.cs at master ยท MinBZK/woo-besluit-broncode-digid-app which was published after a request according to the Dutch Open Government Act (WOO: Wet Open Overheid).

Even though it services the iOS app, it is written in C# not Swift despite it being client-side code, but that’s not why it sparked a lot of discussion costing more man-hours than the code is worth.

This is the code:

Read the rest of this entry »

Posted in .NET, C#, Development, Software Development, Swift, xCode/Mac/iPad/iPhone/iOS/cocoa | Leave a Comment »

Naming Files and Directories the Right Way – YouTube

Posted by jpluimers on 2026/01/29

I totally agree with the first comment of [Wayback/Archive] Naming Files and Directories the Right Way – YouTube as it holds not just for file management, but for naming anything including software development:

Iโ€™ve watched many videos on file management, but this one explains naming very clearly.
  1. 0:31 Rule 1: No Spaces
  2. 2:40 Rule 2: Avoid Special Characters
  3. 3:43 Rule 3: Be Descriptively Concise
  4. 4:24 Rule 4: Case Sensitivity
  5. 5:00 Rule 5: Dates and Sorting
  6. 6:40 Rule 6: Be Consistent!

--jeroen

Posted in *nix, Apple, BSD, Development, Linux, Mac OS X / OS X / MacOS, Power User, Software Development, Windows | Leave a Comment »

JavaScript unit testing in the browser without Node.js: Getting Started | QUnit

Posted by jpluimers on 2026/01/29

A cool way to unit-test JavaScript code on the browser side is [Wayback/Archive] Getting Started | QUnit:

To get started with QUnit in the browser, create a simple HTML file calledย test.htmlย and include the following markup:

<!DOCTYPE html>
<meta charset="utf-8">
<title>Test Suite</title>
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.19.4.css">
<body>
  <div id="qunit"></div>
  <div id="qunit-fixture"></div>
  <script src="https://code.jquery.com/qunit/qunit-2.19.4.js"></script>
</body>

Thatโ€™s all the markup you need to start writing tests. Note that this loads the library from theย jQuery CDN.

I was so glad to find QUnit via the below links as I unconsciously wanted such a thing for a very very long time.

You can either run it locally or remotely or from the jQuery CDN as both it

  • is a Node.js module so the source files are all available on the jQuery CDN
  • it does not require the Node.js to load so it can run from any location you want (that CDN, locally or another on-line location)

Read the rest of this entry »

Posted in Chrome, Development, Edge, Firefox, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Browsers, Web Development | Leave a Comment »

Some links for JavaScript tokenizers and syntax highlighters

Posted by jpluimers on 2026/01/28

In yesterday’s post Bookmarklet for Archive.is to navigate to the canonical link with the โ€œredirected fromโ€ instead of โ€œsaved fromโ€ I mentioned js-tokenizer for syntax highlighting. When writing that, I didn’t have time to dig deeper, but saved the links for later investigation.

Since I won’t have time to finish writing a complete article on this anytime soon, I decided to just publish the list:

Read the rest of this entry »

Posted in Development, JavaScript/ECMAScript, Scripting, Software Development | Leave a Comment »

vmstan/gravity-sync: ๐Ÿ’ซ The easy way to synchronize the DNS configuration of two Pi-hole 5.x instances.

Posted by jpluimers on 2026/01/28

Interesting: [Wayback/Archive] vmstan/gravity-sync: ๐Ÿ’ซ The easy way to synchronize the DNS configuration of two Pi-hole 5.x instances.

Reasoning: [Wayback/Archive] Frequent Questions: Why two Pi-hole? ยท vmstan/gravity-sync Wiki

Via:

–jeroen

Posted in *nix, *nix-tools, bash, bash, Development, DNS, Hardware Development, Internet, Power User, Raspberry Pi, Scripting, Software Development | Leave a Comment »

Bookmarklet for Archive.is to navigate to the canonical link with the “redirected from” instead of “saved from”

Posted by jpluimers on 2026/01/27

This is a follow-up on Bookmarklet for Archive.is to navigate to the canonical link which can be accessed from multiple URLs, some through redirection:

You can see the difference in these archived links (the navivate was a typo that I only spotted after the original blog post got published):

I wanted a Bookmarklet to find the last link; the one in the referenced blog post didn’t.

Read the rest of this entry »

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