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

  • Email Subscription

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

    Join 717 other subscribers

Archive for the ‘Web Development’ Category

Improving the JavaScript Bookmarklet to enable Mastodon publishing for a WordPress.com post that is edited in the Classic Editor

Posted by jpluimers on 2026/09/22

A while back (actually: a long time ago), in JavaScript Bookmarklet to enable Mastodon publishing for a WordPress.com post that is edited in the Classic Editor I promised to improve that code.

Actually I did improve the gist, but I forgot to write the blog post on it.

So below is the old code, new code, and explanation of the improvements.

Read the rest of this entry »

Posted in Bookmarklet, CSS, Development, HTML, JavaScript/ECMAScript, Mastodon, Scripting, SocialMedia, Software Development, Web Browsers, Web Development, WordPress | Leave a Comment »

You’re using HttpClient wrong and it is destabilizing your software | ASP.NET Monsters

Posted by jpluimers on 2026/09/16

Reminder to self as I see see people disposing [Wayback/Archive] HttpClient Class (System.Net.Http) instances: [Wayback/Archive] You’re using HttpClient wrong and it is destabilizing your software | ASP.NET Monsters

HttpClient is different. Although it implements the IDisposable interface it is actually a shared object. This means that under the covers it is reentrant and thread safe. Instead of creating a new instance of HttpClient for each execution you should share a single instance of HttpClient for the entire lifetime of the application.

…

Huh, that’s weird…the application has exited and yet there are still a bunch of these connections open to the Azure machine which hosts the ASP.NET Monsters website. They are in the TIME_WAIT state which means that the connection has been closed on one side (ours) but we’re still waiting to see if any additional packets come in on it because they might have been delayed on the network somewhere.

…

If we share a single instance of HttpClient then we can reduce the waste of sockets by reusing them

The second part of the quote is what happens if you keep instantiating and disposing HttpClient instances. Instead, use a global instance and let it pool connections as described in the above post.

It is based on [Wayback/Archive] performance-optimization/ImproperInstantiation/docs/ImproperInstantiation.md at 465514674354c8f833c73882f7405ac22c4fd437 · mspnp/performance-optimization · GitHub (an old commit as the document by now has vanished) and [Wayback/Archive] performance-optimization/ImproperInstantiation/docs/LoadTesting.md at master · mspnp/performance-optimization · GitHub.

–jeroen

Posted in .NET, C#, Development, Software Development, Web Development | Leave a Comment »

CoreyGinnivan/whocanuse: WhoCanUse is a tool that brings attention and understanding to how color contrast can affect different people with visual impairments. #inclusion #a11y

Posted by jpluimers on 2026/09/08

An important tool for inclusion and accessibility awareness about colour usage: [Wayback/Archive] CoreyGinnivan/whocanuse: WhoCanUse is a tool that brings attention and understanding to how color contrast can affect different people with visual impairments..

It is online at [Wayback/Archive] WhoCanUse and mainly written in JavaScript and CSS.

Via [Wayback/Archive] Marc Amos: “Today I discovered www.whocanuse.com and I wanted to yell it to the world, but 56 people will have to do.” – Front-End Social

–-jeroen

Posted in CSS, Development, HTML, JavaScript/ECMAScript, Scripting, Software Development, Web Development | Leave a Comment »

Reminder to self: do like TWM did – “Static version of my blog – twm’s blog”

Posted by jpluimers on 2026/09/07

On the to do list is do this for my own blog: [Wayback/Archive] Static version of my blog – twm’s blog.

His static site is very rudimentary, but also loads very quickly. Just take a look at [Wayback/Archive] twm’s blog – Programming is thinking, not typing (was: Common sense isn’t)

TWM set this up a few years after introducing the static [Wayback/Archive] Delphi IDE Explorer Expert – twm’s blog page he announced 8 years before in [Wayback/Archive] New static page for my Delphi IDE Explorer expert – twm’s blog.

--jeroen

Posted in Blogging, Development, Power User, SocialMedia, Software Development, Web Development, WordPress, WordPress | Leave a Comment »

How to export Google Maps Timeline – twm’s blog

Posted by jpluimers on 2026/09/04

I am so glad that TWM wrote this down: [Wayback/Archive] How to export Google Maps Timeline – twm’s blog

A while ago, Google changed Maps to no longer store the Timeline data on Google’s servers but only on an Android phone. It also supposedly encrypts that data. Optionally you can enable a “cloud backup” which stores an encrypted backup of that data on Google’s server so you can move your Timeline from one Android phone to another and don’t lose your history.

I’m not a huge fan of this change because it means that I can access my Timeline on my Android phone only and no longer in the web browser, but I guess Google got tired of those requests by various police and spy organizations for user’s Timeline data, so they made it technically impossible.

But I would like to at least see that data on my computer, so what can be done?

…

TWM then goes on with some steps, and then list links what you can do with the exported data which I extended below.

I wish there was an app what would automate the exporting process on a regular interval, or merge from multiple phones back into a single one. Oh, well: maybe one day…

Read the rest of this entry »

Posted in CSS, Development, Google, GoogleMaps, HTML, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Development | Leave a Comment »

The Wayback Machine uses Wombat from Webrecorder (digipres.club/@webrecorder) (@webrecorder_io) / Twitter

Posted by jpluimers on 2026/09/03

I really like non-descriptive product names. In this case it is Wombat from which its name it is hard to deduct what it does. In this case it’s Wombat from [Wayback Webrecorder (digipres.club/@webrecorder) (@webrecorder_io) / Twitter which is used by the Wayback Machine given the error messages displayed in for instance the Chrome Developer tools when displaying an archived page.

In fact, it is the key library when you look at the repository description [Wayback/Archive] webrecorder/wombat: Wombat.js client-side rewriting library.

When looking at all the [Wayback/Archive] Webrecorder repositories of the [Wayback/Archive] Webrecorder organisation, luckily only a few of them have a non-descriptive name. Too bad Wombat is one of them.

In order to function, Wombat replaces many methods that pages can use to navigate. It does that in a way that is virtually impossible to work around and this bit me a while ago when writing a Bookmarklet that would navigate out of an archived Wayback Machine and would navigate to the wrong URL:

Read the rest of this entry »

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

Some links on finding the redirection target of a URL from within a web-browser

Posted by jpluimers on 2026/08/26

Likely what I want is not possible because of CORS or CSP (both security features, often mixed up in writings), but just in case below are some links I found.

The problem at hand was that I wanted to use the functionality of a site like [Wayback/Archive] Redirect Checker | Check your Statuscode 301 vs 302, but on the client side because sometimes redirects depend on locality (for example, but not limited to, AliExpress sites).

Thinks like these fail with CSP errors like Refused to connect to 'https://t.co/Ui4Wmesq1j' because it violates the following Content Security Policy directive: "connect-src chrome://resources chrome://theme 'self'".:

var xhr = new XMLHttpRequest();
xhr.onload = function() {
  if (this.status < 400 && this.status >= 300) {
    console.log('request redirects to ' + this.getResponseHeader("Location"));
  } else {
    console.log('request does not redirect');
  }
}
xhr.open('HEAD', 'https://t.co/Ui4Wmesq1j', true);
xhr.send();

Links – many of them mentioning CORS, but few CSP:

Read the rest of this entry »

Posted in Communications Development, Development, HTTP, Internet protocol suite, Software Development, TCP, Web Development | Tagged: , , | Leave a Comment »

ceceradio/twitter-block-chain: Chrome extension to block all users on a followers/following page.

Posted by jpluimers on 2026/08/26

Cool: [Wayback/Archive] ceceradio/twitter-block-chain: Chrome extension to block all users on a followers/following page.

On the play store: [Wayback/Archive] Twitter Block Chain – Chrome Web Store

Via: [Wayback/Archive] Ӏօղցմìçհ on Twitter: “Weet iemand een goede tool om alle volgers van iemand in een klap te blocken ? En dan liefst een tool die niet 30 dollar per maand kost ..” / Twitter

It’s not just cool because of the functionality, but also because it is a relatively small extension from which I hopefully can learn a bit or two when starting to write my own extensions.

–jeroen

Posted in Chrome, CSS, Development, HTML, HTML5, JavaScript/ECMAScript, Scripting, Software Development, Web Browsers, Web Development | Leave a Comment »

Not doing CSS much, I was this years old to learn about “font-variant-numeric: tabular-nums”

Posted by jpluimers on 2026/08/25

Via the below BSKY post (some call these skeets), I learned about the CSS feature “font-variant-numeric: tabular-nums” which switches on the OpenType tnum feature of fonts that support it.

More and more supports these tabular numerics, which makes all digits equally wide making both numbers in tables and lists as well as quickly changing numbers like sub-second timers a lot easier to read.

Failing example due to WordPress ditching the style

Read the rest of this entry »

Posted in CSS, Development, Font, Google, GoogleFonts, HTML, Power User, Software Development, Web Development | Leave a Comment »

Open source meme generators on GitHub

Posted by jpluimers on 2026/08/20

I knew open source meme generators would exist, but I never searched for them before. Here is a small table with generator and repository columns:

Read the rest of this entry »

Posted in *nix, *nix-tools, ash/dash, bash, bash, Batch-Files, Bookmarklet, CSS, Development, HTML, JavaScript/ECMAScript, Makefile, Power User, Python, Scripting, sh, Sh Shell, Software Development, Web Browsers, Web Development | Leave a Comment »