Archive for the ‘Web Development’ Category
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 »
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 »
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 »
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 »
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: 1656, 2062, 763 | Leave a Comment »
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 »
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 »