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 the ‘.NET’ Category

This is nice #geekporn. ASCII Art that’s truly useful.…

Posted by jpluimers on 2025/11/12

I forgot both to archive this 10+ year old G+ post and schedule a blog post about it This is nice #geekporn. ASCII Art that’s truly useful.….

ASCII to bezier drawn images in a very clever way.

Found it back when searching for prior blog posts on ASCII art, because of my yesterday’s blog-post ASCII Art Archive, so here it finally is: the links about how to go from ASCII art to bezier images. Have fun!

Read the rest of this entry »

Posted in .NET, ASCII art / AsciiArt, C#, Delphi, Development, FireMonkey, Fun, ObjectiveC, Ruby, Software Development | Tagged: | Leave a Comment »

A Tour of the .NET Functions Framework – Jon Skeet’s coding blog

Posted by jpluimers on 2025/10/16

From a long time ago, but forgot to queue it because I bumped into it in the midst of my cancer treatments when my memory and executive functions were hardly existent:

https://codeblog.jonskeet.uk/2020/10/23/a-tour-of-the-net-functions-framework/

Via [Wayback/Archive] Tweet:

Blogged: a tour of the .NET Functions Framework – https://t.co/5xpjNyux5q So excited to write this post – I’ve really enjoyed working on this framework, and I’m really looking forward to getting feedback.

--jeroen

Posted in .NET, Development, Jon Skeet, Software Development | Tagged: , | 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 »

Anyone having experience with HttpMaster | Master HTTP Testing and Debugging?

Posted by jpluimers on 2025/09/30

Is there anyone having experience with [Wayback/Archive] HttpMaster | Master HTTP Testing and Debugging?

Via [Wayback/Archive] HttpMaster (@http_master)

–jeroen

Posted in .NET, Development, Software Development, Testing, Web 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 »

Some notes on getting CrystalDiskMark portable on Chocolatey

Posted by jpluimers on 2025/09/03

I needed the portable version of [Wayback/ArchiveCrystalDiskMark on Chocolatey (unlike the [Wayback/Archive] Chocolatey Software | CrystalDiskMark (Install) package). Luckily I found the auto-update package [Wayback/Archive] Chocolatey Software | CrystalDiskInfo (Portable) and knew both that CrystalDiskMark is from the same author as CrystalDiskInfo, and that their code is on GitHub like the Chocolatey package.

Given I had a the below chocolatey-packages/automatic/crystaldiskinfo.portable as a template, I asked the CrystalDiskInfo (Portable) package maintainer if they were willing to maintain CrystalDiskMark (portable) as well and was glad the response was “yes”: [Wayback/Archive] Portabe CrystalDiskMark similar to the current CrystalDiskInfo? · Issue #159 · mkevenaar/chocolatey-packages

So for my link-archive:

Read the rest of this entry »

Posted in .NET, Chocolatey, CommandLine, Development, Lightweight markup language, MarkDown, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows | Tagged: , | Leave a Comment »

RunElevated.bat: Run an Elevated command on Windows

Posted by jpluimers on 2025/09/02

For a long time, I have ran with the runelevated.bat in [Wayback/Archive] Run an Elevated command using that: “net file” returns errorlevel 1 when not UAC, and “PowerShell Start-Process” has a “-Verb RunAs“; see the answers at http://stackoverflow.com/questions/7044985/how-can-i-auto-elevate-my-batch-file-so-that-it-requests-from-uac-admin-rights for more information

By now, I would just prepend this oneliner into each batch-file needing elevation:

@pushd "%~dp0" & fltmc | find "." && (powershell start '"%~f0"' ' %*' -verb runas 2>nul && popd && exit /b)

Both the initial batch file and one-liner are from [Wayback/Archive] windows – How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required? – Stack Overflow (thanks [Wayback/Archive] Ir Relevant,  [Wayback/Archive] ceztko, [Wayback/Archive] Jamesfo, and [Wayback/Archive] PDixon724)

Note that the net file trick below should actually be repeated twice. This is explained in [Wayback/Archive] windows – Batch script: how to check for admin rights – Stack Overflow (thanks [Wayback/Archive] zumalifeguard), but wait: there is even a better solution!

The fltmc trick above works much better than the net file trick and is available from Windows XP and up, see [Wayback/Archive] windows – Batch script: how to check for admin rights – Stack Overflow (thanks [Wayback/Archive] npocmaka).

Oh: on systems where I have full installation control, I always install gsudo, see gsudo (sudo for windows).

–jeroen

Read the rest of this entry »

Posted in .NET, Batch-Files, CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | Leave a Comment »

Redux: Which Windows Resource Editor do you use?

Posted by jpluimers on 2025/08/21

A long time I wrote about Which Windows Resource Editor do you use? containing a poll to choose between XN Resource Editor, IcoFX, ResEdit and Resource Hacker.

In the meantime and betweentime more than 10 years have passed and there seems to be little maintenance in (especially the non-commercial part of) Windows Resource Editor land.

From the poll back then, I also learned about a (for me) new [Wayback/Archive] Resource Editor | MelanderBlog which is still maintained every now and then. The download is at [Wayback/Archive] Downloads | MelanderBlog (at the time of writing [Wayback] ResourceEditor20190421b.zip).

More on that and download/install locations of various resource editors below a new poll.

This new poll adds Resource Editor and allows you to make multiple choices (in case you use more than one tool):

Read the rest of this entry »

Posted in .NET, Delphi, Development, Software Development, Windows Development | Tagged: , , | Leave a Comment »

Can’t debug a .NET project in Visual Studio Code on Windows? Answered in “.net – The library hostpolicy.dll was not found – Stack Overflow”

Posted by jpluimers on 2025/08/19

A while ago I bumped into the error [Wayback/Archive] .net – The library hostpolicy.dll was not found – Stack Overflow (thanks [Wayback/Archive] Nate Barbettini for asking) which prevented me to debug in Visual Studio Code, but none of the answers applied to my case, so I added this one: Read the rest of this entry »

Posted in .NET, C#, Development, Software Development, vscode Visual Studio Code | Leave a Comment »

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 »