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,854 other subscribers

CAPTCHA by Basic Apple Guy on X: “Find the Mac Pro (5th anniversary edition) 🔍 1949 cheese graters, 1 of them is a Mac Pro”

Posted by jpluimers on 2024/12/11

Next level CAPTCHA which AI engines fail at [Wayback/Archive] Basic Apple Guy on X: “Find the Mac Pro (5th anniversary edition) 🔍 1949 cheese graters, 1 of them is a Mac Pro”

The low res versions are impossible for me, and even the high-res picture is tough.

What is the smallest size you can find the Mac Pro? Picture on the right for reference.

Twitter picture sizes (I will explain them in a future blog post) via [Wayback/Archive] Tweet  JSON:

Read the rest of this entry »

Posted in AI and ML; Artificial Intelligence & Machine Learning, Development, Fun, Software Development | Leave a Comment »

How To Scale and Crop Images with CSS object-fit | DigitalOcean

Posted by jpluimers on 2024/12/11

[Wayback/Archive] How To Scale and Crop Images with CSS object-fit | DigitalOcean helped me to crop the picture in Florian Haas on Twitter: alias kubectl=”TZ=Etc/UTC kubectl”; You’re welcome.

The picture itself is 800 * 800 pixels (width * height), but the interesting bits are 400 * 200 around the center. Also it is a lot larger than I wanted.

So I embedded it using this HTML

<img class="alignnone size-full" style="width: 200px; height: 100px; object-fit: cover; object-position: 0 50%;" src="https://archive.ph/frSNu/0f0ebeeb5a4edf048577be89adb866344b303394.jpg" alt="" />

The width made it 25% the original size (because of [Wayback/Archive] object-fit value cover), and half the height so I had to move the [Wayback/Archive]object-position up 50%.

I found this via [Wayback/Archive] image inline css to crop top and bottom – Google Search.

That also found [Wayback/Archive] html – while display image crop Top and Bottom of image using css – Stack Overflow with an example at [Wayback/Archive] Edit fiddle – JSFiddle – Code Playground which is similar to the above solution.

--jeroen

 

Posted in CSS, Development, HTML, HTML5, Software Development, Web Development | Leave a Comment »

Some links on Windows kernel APIs

Posted by jpluimers on 2024/12/10

Links from a while ago because some crash caught my eye:

Read the rest of this entry »

Posted in Development, Software Development, Windows Development | Leave a Comment »

Florian Haas on Twitter: alias kubectl=”TZ=Etc/UTC kubectl”; You’re welcome

Posted by jpluimers on 2024/12/10

Sometimes you need to see a tiny bit of code to have this “aha moment”. One for me was a few years back:

[Wayback/Archive] Florian Haas on Twitter: “alias kubectl="TZ=Etc/UTC kubectl" You’re welcome.”

Read the rest of this entry »

Posted in *nix, *nix-tools, Cloud, Containers, Docker, Infrastructure, Kubernetes (k8n), Power User | Leave a Comment »

A Dutch friend got a 2nd hand Lenovo with a keyboard layout I didn’t know: searching for the special keys did not return results

Posted by jpluimers on 2024/12/09

TL;DR: it was a Dutch keyboard, which almost nobody in The Netherlands uses (US or US-International are the most used physical keyboard layouts over there)

I tried searching for keyboard layouts using Google with these special keys that were present on the keyboard (listing all keys that either have special symbols on them, or use the Alg-Gr modifier):

Read the rest of this entry »

Posted in Hardware, Keyboards and Keyboard Shortcuts, KVM keyboard/video/mouse, LifeHacker, Power User | Leave a Comment »

Why does HTML think “chucknorris” is a color?

Posted by jpluimers on 2024/12/09

From a long time ago:

–jeroen

Read the rest of this entry »

Posted in Color (software development), Development, Software Development, Web Development | Leave a Comment »

20240507 – Brand Elektrakast/Transformatorhuis Liander Ringvaartzijde/Grevelingstraat Lisse – Google Photos

Posted by jpluimers on 2024/12/06

Eind voorjaar 2024 was er brand in een elektrakast en transformatorhuis van Liander op Ringvaartzijde 22 in Lisse. Die stond er nog maar kort: volgens ooggetuigen enkele maanden.

De hulpdiensten hebben samen met de monteurs van Liander ontzettend hun best gedaan om de schade te beperken en op een zo veilig mogelijke manier zo snel mogelijk iedereen weer aangesloten te krijgen.

Ons huist vanaf ongeveer een half uur na de eerste melding tot etenstijd geen stroom, maar anderen waren minder gelukkig.

Een deel van de laatste groep is nu aangesloten op een noodaggregaat in afwachting van een definitieve oplossing.

Ik maakte wat foto’s: [Wayback/Archive] 20240507 – Brand Elektrakast/Transformatorhuis Liander Ringvaartzijde/Grevelingstraat Lisse – Google Photos maar was zeker niet de enige.

De P2000 meldingen terugvinden is een eitje. De Liander meldingen terugvinden is een heel ander verhaal omdat de referentienummers die Liander in hun Tweets gebruikt op de site niet meer werken, terwijl de site onder water naar het ARCGIS backend juist wel van die referentienummers gebruikmaakt, en ook in de naamgeving van de UI die daaruit gegenereerd wordt.

Dit soort URLs werkte vroeger (zie Liander URLs for outages (Dutch: storingen)):

Read the rest of this entry »

Posted in About, Personal | Leave a Comment »

Pricing | Better Uptime

Posted by jpluimers on 2024/12/06

Reminder to show how well my experimentation with [Wayback/Archive] Better Uptime went and how they compare to [Wayback/Archive] UptimeRobot.

For now I am at this plan in [Wayback/Archive] Pricing | Better Uptime:

Free:

  • e-mail alerts
  • 3-minute checks
  • 10 monitors

This suffices to keep an eye on the modest IT infrastructure at both our home and the one from my mentally retarded brother.

Note that other prices on that pages are per month. Despite the default selection being “annual plan” the very light grey and thin “/mo” on a black ground indicates they are still per month, but you get 20% discount with the annual plans).

Read the rest of this entry »

Posted in *nix, Amazon SES, Amazon.com/.de/.fr/.uk/..., BetterUptime, Cloud, Infrastructure, Monitoring, Power User, Uptimerobot | Leave a Comment »

I really dislike MacOS choosing machine names, and having the long machine names and short hostnames in separate places to change (one of them command-line only)

Posted by jpluimers on 2024/12/05

After installing my Apple Silicon MacBook, I found out my machine had gotten named automatically in two different ways:

  1. readable name Jeroen’s Macbook Pro
  2. full name Jeroens-MacBook-Pro
  3. local hostname Jeroens-MacBook-Pro.local
  4. actual hostname Jeroens-MBP
  5. HostName from scutil

A few reasons I dislike that:

  • Having 5 different names for the same machine creates a mess
  • They chose for me where I like to choose myself
  • They use spaces, quotes and hyphens where I like single a complete word
  • They use mixed case where I like single case (preferably lower case) as not all other computers handle mixed case well

Finding out how to fix all this was a tedious job as I had to keep refining queries:

Read the rest of this entry »

Posted in Apple, Apple Silicon, ARM Mac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook-Pro, Power User, Terminal | Leave a Comment »

Save the Environment (Variable)

Posted by jpluimers on 2024/12/05

For my link archive as this is environment variable override trick to override DLL loading is not just limited to executables shipping with Windows, but also with other products (likely: virus scanners that run privileged); another alternative is running a local process serving the WebDAV protocol.

Read the rest of this entry »

Posted in Development, Power User, Security, Software Development, Windows, Windows 10, Windows 11, Windows Development | Tagged: | Leave a Comment »