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 September, 2024

Ringzer0: “Support your local OSS Devs ” – Infosec Exchange

Posted by jpluimers on 2024/09/24

Important, as it is the only way to keep your development stack functioning well: [Wayback/Archive] Ringzer0: “Support your local OSS Devs ” – Infosec Exchange

Read the rest of this entry »

Posted in Awareness, Conference Topics, Conferences, Development, Event, Open Source, Software Development | Leave a Comment »

string – Check if MyString[1] is an alphabetical character? – Stack Overflow (and how Embarcadero broke one of the product version neutral redirects)

Posted by jpluimers on 2024/09/24

Quite a while ago [Wayback/Archive] string – Check if MyString[1] is an alphabetical character? – Stack Overflow asked by [Wayback/Archive] User Jeff was answered by [Wayback/Archive] Andreas Rejbrand:

The simplest approach is

function GetAlphaSubstr(const Str: string): string;
const
  ALPHA_CHARS = ['a'..'z', 'A'..'Z'];
var
  ActualLength: integer;
  i: Integer;
begin
  SetLength(result, length(Str));
  ActualLength := 0;
  for i := 1 to length(Str) do
    if Str[i] in ALPHA_CHARS then
    begin
      inc(ActualLength);
      result[ActualLength] := Str[i];
    end;
  SetLength(Result, ActualLength);
end;

but this will only consider English letters as “alphabetical characters”. It will not even consider the extremely important Swedish letters Å, Ä, and Ö as “alphabetical characters”!

Slightly more sophisticated is

function GetAlphaSubstr2(const Str: string): string;
var
  ActualLength: integer;
  i: Integer;
begin
  SetLength(result, length(Str));
  ActualLength := 0;
  for i := 1 to length(Str) do
    if Character.IsLetter(Str[i]) then
    begin
      inc(ActualLength);
      result[ActualLength] := Str[i];
    end;
  SetLength(Result, ActualLength);
end;

Back in 2011 I added a comment that for more than a decade would redirect to the most current documentation on the IsLetter method:

+1 for using IsLetter which checks the Unicode definition for being a letter or not [Wayback] docwiki.embarcadero.com/VCL/en/Character.TCharacter.IsLetter

Back then, Delphi X2 was current, so it would redirect

  1. from [Wayback] http://docwiki.embarcadero.com/VCL/en/Character.TCharacter.IsLetter
  2. to [Wayback] http://docwiki.embarcadero.com/VCL/XE2/en/Character.TCharacter.IsLetter
  3. then to [Wayback] http://docwiki.embarcadero.com/VCL/XE2/en/Character.TCharacter.IsLetter
  4. ending at [Wayback] http://docwiki.embarcadero.com/Libraries/XE2/en/System.Character.TCharacter.IsLetter

After a long outage in 2022 (see The Delphi documentation site docwiki.embarcadero.com has been down/up oscillating for 4 days is now down for almost a day.) only the Alexandria help was restored.

This killed the above redirect.

Luckily [Wayback/Archive] George Birbilis noticed that and commented this:

@JeroenWiertPluimers the correct link now is: docwiki.embarcadero.com/Libraries/Alexandria/en/…

In order to refer to the most recent Delphi version, now you have to use [Wayback] http://docwiki.embarcadero.com/Libraries/en/System.Character.TCharacter.IsLetter.

This redirects:

  1. via [Wayback] http://docwiki.embarcadero.com/Libraries/Alexandria/en/System.Character.TCharacter.IsLetter to
  2. to [Wayback] https://docwiki.embarcadero.com/Libraries/Alexandria/en/System.Character.TCharacter.IsLetter

The above breaks the help integration from older Delphi products which is bad. It is also bad because it makes it harder to port legacy Delphi code to more modern Delphi versions.

Hopefully the above gives you a bit insight how the docwiki help system was designed and what is left of that design.

–jeroen

Posted in Communications Development, Conference Topics, Conferences, Delphi, Development, Encryption, Event, HTML, HTTP, https, HTTPS/TLS security, Internet protocol suite, Power User, Security, Software Development, TCP, TLS, Web Development | Leave a Comment »

Thread by @LetheForgot to @SwiftOnSecurity on Thread Reader App – Windows boot recovery

Posted by jpluimers on 2024/09/23

[Wayback/Archive] Thread by @LetheForgot on Thread Reader App:

What we did was use the advanced restart options to launch the command prompt, skip the bitlocker key ask which then brought us to drive X and ran “bcdedit /set {default} safeboot minimal“which let us boot into safemode and delete the sys file causing the bsod.

Not scalable at all but let us get vital systems running while we try to solve the bootloop en masse

Don’t forget to renable normal booting afterwards by doing the same but running “bcdedit /deletevalue {default} safeboot

Just in case another event like the 2024 Crowdstrike debacle happens.

--jeroen

Posted in Encryption, Power User, Security, Windows | Leave a Comment »

Fixing the date/time of a ST-977 or ST-977T weather station

Posted by jpluimers on 2024/09/23

A long time ago I asked about the manual for a Daryis ST-977 weather station, but got no response from the manufacturer or anyone else.

So about 9 months later the topic came back up and I did get some responses, most suggesting to use the SET button which I already tried earlier.

I retried and found out the button was both bouncing and needed to be held for a really long time (15+ seconds!) to even switch to “edit” mode.

With 4 AA batteries in the base it at least should survive a power outage and hopefully by now we have switched away from using daylight saving time in Europe so no time changes are needed in the future.

Later I found out the FCC was on the external sensor and could find back a manual of a similar model:

Read the rest of this entry »

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

For my link archive: Power (and Energy) | Die wunderbare Welt von Isotopp

Posted by jpluimers on 2024/09/20

Since the prices of solar panels have fallen considerably and the prices of batteries are expected to fall as well:

making the  conclusions of [Wayback/Archive] Power (and Energy) | Die wunderbare Welt von Isotopp the most important bit of his article:

Read the rest of this entry »

Posted in LifeHacker, Power User, Solar Power | Leave a Comment »

Nederland: Overzicht schoolvakanties 2024-2025 | Schoolvakanties | Rijksoverheid.nl

Posted by jpluimers on 2024/09/20

[Wayback/Archive] Overzicht schoolvakanties 2024-2025 | Schoolvakanties | Rijksoverheid.nl

Voor Nederland zelf:

Vakanties schooljaar 2024-2025
Regio Noord Regio Midden Regio Zuid
Herfstvakantie 26 oktober t/m 3 november 2024 26 oktober t/m 3 november 2024 19 oktober t/m 27 oktober 2024
Kerstvakantie 21 december 2024 t/m 5 januari 2025 21 december 2024 t/m 5 januari 2025 21 december 2024 t/m 5 januari 2025
Voorjaarsvakantie 15 februari t/m 23 februari 2025 22 februari t/m 2 maart 2025 22 februari t/m 2 maart 2025
Meivakantie 26 april t/m 4 mei 2025 26 april t/m 4 mei 2025 26 april t/m 4 mei 2025
Zomervakantie 12 juli t/m 24 augustus 2025 19 juli t/m 31 augustus 2025 5 juli t/m 17 augustus 2025

--jeroen

Posted in LifeHacker, Power User | Leave a Comment »

Linear Algebra | Mathematics | MIT OpenCourseWare

Posted by jpluimers on 2024/09/20

In case I ever need to refresh my linear algebra knowledge, this series of videos is where to start: [Wayback/Archive] Linear Algebra | Mathematics | MIT OpenCourseWare

The videos: [Wayback/Archive] Video Lectures | Linear Algebra | Mathematics | MIT OpenCourseWare

Via: [Wayback/Archive] Santiago on Twitter: “The best linear algebra course out there. PERIOD. For Free! MIT’s Professor Gilbert Strang. Go through these videos, and you’ll never ever have a problem with linear algebra again!”

–jeroen

Posted in LifeHacker, Mathematics, Power User, science | Leave a Comment »

GitHub Profile Roast 🔥🔥🔥

Posted by jpluimers on 2024/09/19

Who needs AI (:

[Wayback/Archive] GitHub Profile Roast 🔥🔥🔥

Sourcecode at [Wayback/Archive] GitHub – codenoid/github-roast: Spicy GitHub Roast 🔥

Via [Wayback/Archive] Dennis Schubert: “okay, I finally found a good u…” – Mastodon

okay, I finally found a good use for an LLM. no, really.
github-roast.pages.dev
this thing is brutal

In addition, I learned about [Wayback/Archive] lokal.so · GitHub: Supercharged HTTP/TCP/UDP Tunneling Software

Read the rest of this entry »

Posted in AI and ML; Artificial Intelligence & Machine Learning, C#, C++, Development, JavaScript/ECMAScript, LLM, PHP, Python, Ruby, Rust, Scripting, Software Development | Leave a Comment »

“Koning Willem-Alexander is bij de viering van het honderdjarig jubileum van Woonzorgpark Willem van den Bergh. Met twee cliënten opent hij de tentoonstelling ‘100 jaar Willem van den Bergh’”.

Posted by jpluimers on 2024/09/19

Dit is een voorbeeld waarom zorg belangrijk is:

[Wayback/Archive] 100-jarig jubileum woonzorgpark Willem van den Bergh | Activiteit | Het Koninklijk Huis

Foto’s van Koninklijk Huis (van het ANP):

[Wayback/Archive] Artikel Leids Dagblad “‘Majesteit, mag ik met u op de foto?’ Bewoners van woonzorgpark Willem van den Bergh in Noordwijk willen allemaal een glimp opvangen van de koning” ([Wayback/Archive] foto)

[Wayback/Archive] Tweet: “Woonzorgpark Willem van den Bergh bestaat 100 jaar! Op het park wonen, werken, leren en recreëren 700 mensen met en zonder (verstandelijke) beperking. De Koning is bij de jubileumviering en opent de tentoonstelling ‘100 jaar Willem van den Bergh’. koninklijkhuis.nl/actueel/nieuws/2024/09/09/koning-bij-100-jarig-jubileum-woonzorgpark-willem-van-den-bergh

[Wayback/Archive] Artikel 112 Duin- en Bollenstreek: “Koning Willem Alexander brengt bezoek aan ’s Heeren Loo Willem van den Bergh in Noordwijk” met veel foto’s van Flashlight Fotografie.

--jeroen

Posted in Awareness, Inclusion / inclusive society | Leave a Comment »

Hopefully by now the choco client will be more resilient and informative about Chocolatey maintenance windows (and maybe even about any disruptions mentioned at status.chocolatey.org)

Posted by jpluimers on 2024/09/19

Reminder to check-out of the 2015 issue mentioned in the tweets below has been had any progress.

At the time of tweeting, choco has no notion of [Wayback/Archive] status.chocolatey.org which would be very helpful to point to in case of errors on time-outs on chocolatey server calls especially if it could interrogate and inform of maintenance windows and outages when things fail on the client side.

Read the rest of this entry »

Posted in .NET, Chocolatey, CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development, Windows | Leave a Comment »