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, 2023

How to set up OpenVPN with Google Authenticator on pfSense – Vorkbaard uit de toekomst

Posted by jpluimers on 2023/09/18

For my link archive: [Wayback/Archive] How to set up OpenVPN with Google Authenticator on pfSense – Vorkbaard uit de toekomst

Should work with Authy too.

Via: [Archive] Matthijs ter Woord (@mterwoord) | Twitter

–jeroen

Posted in 2FA/MFA, Authentication, Power User, Security | Leave a Comment »

Revision of some JavaScript bookmarklets for WordPress published pages centered around navigation and IDs: WordPress ditched the undocumented HighlanderComments structure

Posted by jpluimers on 2023/09/15

As promised yesterday, I updated the scripts for Some JavaScript bookmarklets for WordPress published pages centered around navigation and IDs

Code (which broke at 20230914 because of WordPress.com changes: the undocumented HighlanderComments structure got removed; I will update the gist later on and post an updated blog post)

Instead of the undocumented HighlanderComments structure, I now use two (also undocumented) link rel elements.

In addition, I found this element that will be interesting in the future: <link rel='shortlink' href='https://wp.me/pvelJ-m8g' />.

You can view the change with the below archivals of the Wayback Machine and Archive.is.

And of course I learned a few things from these MDN entries:

The 20230530 archivals (Wayback/Archive) of wiert.me/2022/02/14/philosophy-of-management have this HighlanderComments structure:

Read the rest of this entry »

Posted in Bookmarklet, Conference Topics, Conferences, Development, Event, HTML, JavaScript/ECMAScript, Power User, Scripting, SocialMedia, Software Development, Web Browsers, Web Development, WordPress | Leave a Comment »

Using Fields in Microsoft Word – a Tutorial in the Intermediate Users’ Guide to Microsoft Word

Posted by jpluimers on 2023/09/15

This page has a truckload of information, but has a short index and few anchor targets: [Wayback/Archive] Using Fields in Microsoft Word – a Tutorial in the Intermediate Users’ Guide to Microsoft Word.

I found it doing these searches:

I needed them because I misread it at first and replaced { SAVEDATE \* MERGEFORMAT } with { SAVEDATE \* "dd-mm-yyyy" } which resulted in the field to become displayed as needed Error! Unknown switch argument.. and at first thought this might be a Windows versus MacOS thing.

Fixing the error with { SAVEDATE \@ "dd-mm-yyyy" }) almost solved the problem, as the actual format should be { SAVEDATE \@ "dd-MM-yyyy" } (which displays month number instead of minute number).

So I learned that Word date formatting is almost the same as Excel date formatting.

I was specifically looking for these bits (the first luckily has the #Charformat anchor and was immediately followed by the latter):

Read the rest of this entry »

Posted in Office, Power User, Word | Leave a Comment »

John Scott-Railton on X: “Where are the Quote Tweets? 1️⃣ Find & click the tiny dots 2️⃣ Navigate this cumbersome menu 3️⃣ Marvel at the deliberate enshittification of Twitter 4️⃣ Ponder whether this change is because someone didn’t enjoy getting ratioed.”

Posted by jpluimers on 2023/09/14

[Wayback/Archive] John Scott-Railton on X: “Where are the Quote Tweets? 1️⃣ Find & click the tiny dots 2️⃣ Navigate this cumbersome menu 3️⃣ Marvel at the deliberate enshittification of Twitter 4️⃣ Ponder whether this change is because someone didn’t enjoy getting ratioed.”

Read the rest of this entry »

Posted in LifeHacker, Power User, SocialMedia, Twitter | Leave a Comment »

Some threadreaderapp URLs

Posted by jpluimers on 2023/09/14

For my link archive so I can better automate archiving Tweet threads using bookmarklets written in JavaScript:

The base will likely be this:

javascript:void(open(`https://archive.is/?run=1&url=${encodeURIComponent(document.location)}`))

which for now I have modified into this:

javascript:void(open(`https://threadreaderapp.com/search?q=${document.location}`))

It works perfectly fine without URL encoding and demonstrates the JavaScript backtick feature for template literals for which you can find documentation at [WayBack/Archive] Template literals – JavaScript | MDN.

Read the rest of this entry »

Posted in *nix, *nix-tools, bash, bash, Bookmarklet, Communications Development, cURL, Development, HTTP, https, Internet protocol suite, Power User, Scripting, Security, Software Development, TCP, Web Browsers | Leave a Comment »

Waarom verschillen buizerds zo sterk in kleur? – rootsmagazine.nl (dank @HermVerm)

Posted by jpluimers on 2023/09/13

Ik vroeg @HermVerm (twitter) via DM wat een grote bijna zwarte roofvogel lijkend op een buizerd en in de buurt van Lisse plots tussen de bomen de weg overvloog zou kunnen zijn. Herman kwam met [Wayback/Archive] Waarom verschillen buizerds zo sterk in kleur? – rootsmagazine.nl

Erfelijk bepaald

Kleurvariaties, oftewel genetisch polymorfisme, komen bij 3,5 procent van de vogelsoorten voor en zijn erfelijk bepaald. Het overgrote deel van de buizerds is min of meer bruin. Zo’n 5 procent is (spier)wit, eenzelfde percentage zwart. De basis voor die kleurvariaties ligt in de hoeveelheid pigment: hoe meer melanine, hoe donkerder de buizerd.

Ik heb nu dus geleerd dat een buizerd ontzettend veel kleurvariaties van licht tot donker kan hebben.

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

Figuring out the cause of “Controlled Folder Access” error messages.

Posted by jpluimers on 2023/09/13

Still need to investigate why every now and then Windows Remote Desktop causes this error:

C:\Windows\System32\mstsc.exe has been blocked from modifying %userprofile%\Documents\ by Controlled Folder Access.

Related links about EventID numbers 1123, 1124 and 5007:

This is the place in the Settings where you can enable the Controlled Folder Access feature:

Read the rest of this entry »

Posted in Power User, Windows, Windows 10 | Leave a Comment »

Microsoft Store: update all apps from the command-line

Posted by jpluimers on 2023/09/12

TL;DR

I have converted the below PowerShell one-liner into this batch file (the ^| syntax is to ensure the pipe runs within PowerShell, not within the batch file):

PowerShell 'Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" ^| Invoke-CimMethod
 -MethodName UpdateScanMethod'

The why and how

Since I am a CLI person, and some Windows applications are only available on the Microsoft Store, I wanted to be able to initiate an update cycle from the command-line interface.

So I searched for [Wayback/Archive] microsoft store update all apps from the command-line – Google Search and found these to be valuable:

Read the rest of this entry »

Posted in Batch-Files, Development, Microsoft Store, Power User, PowerShell, Scripting, Software Development, Windows, Windows 10, Windows 11 | Leave a Comment »

Seams I might in part be the cause of (#3186) Remove easter egg “You are smarter than the average bear …” by pauby · Pull Request #3276 · chocolatey/choco

Posted by jpluimers on 2023/09/11

Only having really learned to speak English starting in my late teens, I never got the “smarter than the average bear” reference, so I filed what I thought was a bug early 2019: [Wayback/Archive] “You must be smarter than the average bear…” after upgrading to 7zip.install v18.6 and notepadplusplus.install v7.6.2 · Issue #1700 · chocolatey/choco which last year got this useful comment

I had this for several packages now, since I am updating them daily.
I am assuming there is a way to remove versions, which leads to this error until there is a new update.

It was confirmed this summer from

I’m smarter than the average bear at least once or twice a month. I think it might be packages which are pulled back and you happen to have installed that version

The bug got referenced this summer from [Wayback/Archive] Remove warning message about “smarter than the average bear” · Issue #3186 · chocolatey/choco.

This in turn lead to [Wayback/Archive] (#3186) Remove easter egg “You are smarter than the average bear …” by pauby · Pull Request #3276 · chocolatey/choco

That made me realise that for large groups of English speaking people “smarter than the average bear” would actually be a well known thing.

So I searched and learned a thing or two:

Read the rest of this entry »

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

Fixing a broken xs4all internet connection was a simple as a cold NTU reboot – jpluimers on Twitter

Posted by jpluimers on 2023/09/11

Translation of solving a broken xs4all connection:

Solved. Summary:

  • Liander and UPS functiond, so both Fritz!Box and NTU had power
  • NTU LEDs show Power and Glass, but no Ethernet
  • Fritz!Box has green Power and WLAN LEDs and a red Info LED

Solution was cold reboot of NTU.

I also neatly tucked away the NTU power cord for an additional 8 minutes extra down time: [Wayback/Archive] mwgp ping – wiert.me

Read the rest of this entry »

Posted in Fritz!, Fritz!Box, Hardware, Network-and-equipment, Power User, Security | Leave a Comment »