The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,839 other subscribers

When reg.exe gives you “ERROR: Invalid key name.”

Posted by jpluimers on 2023/10/16

Be careful phrasing reg.exe commands.

Sometimes it gives you the errorΒ ERROR: Invalid key name.

The reason is that the reg.exe is really sensitive on the order of the command-line: the first argument must be a full key, optionally prepended by a computername.

Any other optional command-line option (like /f to force execution without asking) needs to go after that.

See:

–jeroen

Posted in Batch-Files, Power User, Registry Files, Scripting, Windows | Leave a Comment »

Bimostitch Panorama Stitcher – Android-apps op Google Play

Posted by jpluimers on 2023/10/13

Often, Google Photos does not auto-stitch a series of photos.

On Android, you can use this app in stead: [Wayback] Bimostitch Panorama Stitcher – Android-apps op Google Play

I stitched the panorama photo in the Tweet below with it [Wayback/Archive].

You can find it back in this Google Photo’s album: [Wayback/Archive] photos.app.goo.gl/XgovxiK2CKJzdH4u7

ViaΒ [Wayback/Archive] Force panorama creation on Google Photos – Google Photos Community.

--jeroen

Read the rest of this entry »

Posted in Android Devices, Google, Google Photos, Power User | Leave a Comment »

Bestellen kan, maar leveren duurt nog even: Kiezen & Delen is een spel vol dilemma’s, stellingen en vragen over het leven, ziek zijn en de dood.

Posted by jpluimers on 2023/10/13

https://kiezenendelen.nu/

Kiezen & Delen is een spel vol dilemma’s, stellingen en vragen over het leven, ziek zijn en de dood. Het kan door iedereen gespeeld worden. Of je nu jong of oud bent, gezond of (ongeneeslijk) ziek. Want praten over het leven en de dood is voor iedereen zinvol. Hopelijk helpen deze vragen je om te ontdekken wat je echt belangrijk vindt. En om die keuzes te delen met je naasten en/of zorgverlener.

Via [Wayback/Archive] Sander de Hosson on X: “Hoorde dat het spel Kiezen&Delen van PZNL en KWF compleet door de voorraden heen is. Wat een succesvolle wijze om dit gesprek aan te gaan. U kan wel bestellen, maar het afleveren duurt een paar weken. Kijk snel op kiezenendelen.nu. Wat zou u hierop beantwoorden?”

Meer linkjes:

Read the rest of this entry »

Posted in About, Awareness, Personal | Leave a Comment »

C#/.NET: for personally identifiable information, use Gaev.Blog.Examples/PiiString.cs at 3.1.1 Β· gaevoy/Gaev.Blog.Examples

Posted by jpluimers on 2023/10/12

A while agoΒ [Wayback/Archive] Vladimir GaevoyΒ wrote a great blog post which I bumped into through his tweet [Wayback/Archive] “Blogged: .NET type for personally identifiable information (PII). Working with PII with the help of .NET String is painful. Let’s see the benefits of PiiString as explicit .NET type instead of .NET StringΒ  #pii #dotnet #gdpr #security “

The tweet does not fully do justice to his blog post [Wayback/Archive] .NET type for personally identifiable information (PII), as the post not only discusses the background (GDPR and other requirements, for instance theΒ [Wayback/Archive] GDPR compliance checklist – GDPR.eu) and the class, but also with examples how to use it for:

  • conversion to/from user interface plain text
  • hashing to pseudonymized/anonymized form
  • encryption for more secure storage

In addition, more examples cover JSON, Entity Framework,Β [Wayback/Archive] NLog,Β and [Wayback/Archive] Serilog β€” simple .NET logging with fully-structured events.

Read the rest of this entry »

Posted in .NET, C#, Development, Power User, Privacy, Security, Software Development | Leave a Comment »

Ookla speedtest CLI for Windows has some undocumented arguments to accept license and GDPR

Posted by jpluimers on 2023/10/11

I had speedtest-cli running on MacOS and various Linux machines, but not yet on Windows (see for instance my post Ubuntu: Fixing the myserious β€œFailed to stop apt-daily.timer: Connection timed out”).

[Wayback/Archive] Install and Test Internet Speed with Speedtest CLI Command Line – NEXTOFWINDOWS.COM reminded me there is a Speedtest CLI for Windows download at atΒ [Wayback/Archive] Speedtest CLI: Internet speed test for the command line, but I am a an automation/scripting/devops person, so luckily there are alsoΒ [Wayback/Archive] Chocolatey Software | Speedtest by Ookla (don’t getΒ [Wayback/Archive] Ookla.Speedtest download, as that is the GUI version).

Both the Chocolatey and winget packages are named the same, so that is quite confusing. This is how I have set them apart:

Read the rest of this entry »

Posted in *nix, *nix-tools, Batch-Files, Chocolatey, DevOps, GDPR/DS-GVO/AVG, Internet, ISP, KPN, Notepad++, Power User, Privacy, Scripting, SpeedTest, Windows, xs4all | 2 Comments »

Getting the Chocolatey shimgen generated shim target

Posted by jpluimers on 2023/10/10

For tomorrow’s post Ookla speedtest CLI for Windows has some undocumented arguments to accept license and GDPR I neede the full path to the speedtest.exe which I had installed using Chocolatey.

I know chocolatey uses a shim that redirects to the actual executable, so a simple where speedtest.exe would not cut it.

My guess would be that the generated shim allowed to either get the target pathname out, or have the target pathname encoded in it.

Luckily the first applies: a few of the shim command-line parameters are in [Wayback/Archive] Chocolatey Software Docs | Executable shimming (like symlinks but better):

You pass these arguments to an executable that is a shim (e.g. executables in the bin directory of your Chocolatey install, not choco.exe):

  • --shimgen-helpΒ – shows this help menu and exits without running the target
  • --shimgen-logΒ – logging is shown on command line
  • --shimgen-waitforexitΒ – explicitly tell the shim to wait for target to exit – useful when something is calling a gui and wanting to block – command line programs explicitly have waitforexit already set.
  • --shimgen-exitΒ – explicitly tell the shim to exit immediately.
  • --shimgen-guiΒ – explicitly behave as if the target is a GUI application. This is helpful in situations where the package did not have a proper .gui file.
  • --shimgen-usetargetworkingdirectoryΒ – set the working directory to the target path. Useful when programs need to be running from where they are located (usually indicates programs that have issues being run globally).
  • --shimgen-noopΒ – Do not actually call the target. Useful to see what would happen if you ran the command.

But the below dumps show more more (using [Wayback/Archive] Strings – Windows Sysinternals | Microsoft Docs,Β [Wayback/Archive] clip | Microsoft Docs and post-processing inΒ [Wayback/Archive] Notepad++).

Back to the second solution,

strings C:\ProgramData\chocolatey\bin\speedtest.exe | findstr speedtest.exe

showed

speedtest.exe
..\\lib\speedtest\tools\speedtest.exe
Cannot find file at '..\\lib\speedtest\tools\speedtest.exe' (
speedtest.exe
speedtest.exe

And towards the first,

strings C:\ProgramData\chocolatey\bin\speedtest.exe | clip

resulted in this fragment:

Read the rest of this entry »

Posted in Batch-Files, Chocolatey, CommandLine, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows | Leave a Comment »

Help saving time drain: YouTube Time – Chrome Web Store

Posted by jpluimers on 2023/10/09

Trying to help someone with a time drain: [Wayback/Archive] YouTube Time – Chrome Web Store

Via [Wayback/Archive] How to Limit YouTube Time on Mac on Chrome and Safari.

–jeroen

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

Expositie: 30 jaar Power Unlimited | Beeld & Geluid – 7 t/m 29 oktober 2023

Posted by jpluimers on 2023/10/06

Koop je tickets via [Wayback/Archive] Expositie: 30 jaar Power Unlimited | Beeld & Geluid

Via [Waybacksave/Archive] Martin Verschoor on X: “Zodat je wat te doen hebt de komende herfstvakantie! Speciaal voor jou met 30 (nee, dit is geen toeval) % korting met de code β€˜PU2023’”

--jeroen

Posted in Games, History | Leave a Comment »

Snelklaar.nl – 13-duizend gerechten die snel klaar zijn

Posted by jpluimers on 2023/10/06

[Wayback/Archive] Welkom op Snelklaar.nl, dΓ© culinaire site voor mensen met weinig tijd.

Via:

 

Related:

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

Publishing a Github Gist to JSFiddle | Toolbox Tech

Posted by jpluimers on 2023/10/05

I like JSFiddle, but rather keep source code under my own version control.

I was curious, so queriedΒ [Wayback/Archive] gist as jssfiddle – Google Search and found [Wayback/Archive] Publishing a Github Gist to JSFiddle | Toolbox Tech

It has better steps than the official documentation at these links:

  • [Wayback/Archive] Pass response directly from a Github repo – JSFiddle Docs
  • [Wayback/Archive] Display fiddle from a Github repository – JSFiddle Docs

    Demo Directory/

    demo.js
    demo.html
    demo.css
    demo.details
    • demo.[ js | html | css ] contains fiddle code for the specific panel
    • demo.details is a description of the demo written in YAML
    ---
    name: Name of the Demo
    description: Some description, please keep it in one line
    authors:
    - John Doe
    - Jan Wisniewski
    resources:
    - http://some.url.com/some/file.js
    - http://other.url.com/other_filename.css
    normalize_css: no
    load_type: d
    ...
  • [Wayback/Archive] Display fiddle from Gist – JSFiddle Docs

    Read a demo from Github Gist and present it as a fiddle.

    Gist files structure

    fiddle.js
    fiddle.html
    fiddle.css
    fiddle.manifest
    File name
    Description
    fiddle.[js/html/css]
    Contains fiddle code for the specific panel
    fiddle.manifest
    YAML description of the Gist for JSFiddle to parse
    Manifest file example
    name: The Name of the Fiddle
    description: Some description, please keep it in one line
    authors:
      - John Doe
      - Jan Wisniewski
    resources:
      - http://some.url.com/some/file.js
      - http://other.url.com/other_filename.css
    normalize_css: no
    wrap: bpanel_js: 1
    panel_css: 1
    Manifest fields
    • panel_html – Language for HTML panel. Accepts:
      • 0 – HTML
    • panel_css – Language for CSS panel. Accepts:
      • 0 – CSS
      • 1 – SCSS
    • panel_js – Language for the JS panel. Accepts:
      • 0 – JavaScript
      • 1 – CoffeeScript
      • 2 – JavaScript 1.7
    • resources – List of external resources.
    • name – Fiddle title
    • description – Fiddle description
    • normalize_css – Normalize CSS by loading normalize.css before any CSS declarations.
      • yes – normalize
      • no – don’t normalize
    • wrap – Set the JS code wrap. Options:
      • l – On load
      • d – On DOM ready

–jeroen

Posted in Development, DVCS - Distributed Version Control, gist, GitHub, JavaScript/ECMAScript, JSFiddle, Scripting, Software Development, Source Code Management | 1 Comment »