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 2022

A while ago I bumped into some GPI Mojibake examples, but soon found out I should use the ftfy test cases

Posted by jpluimers on 2022/11/22

I have been into more and more Mojibake example pages like [Wayback] Mojibake: Question Marks, Strange Characters and Other Issues | GPI

Have you ever found strange characters like these ���  when viewing content in applications or websites in other languages?

They made me realise that all these (including the Mojibake examples on my blog) are just artifacts, but the real list of examples is the set of ftfy test cases at [Wayback/Archive.is] python-ftfy/test_cases.json at master · LuminosoInsight/python-ftfy

I got reminded when Waternet moved from paper mail using “Pyreneeën” to email using “Pyreneeën“. Not as bad as Waterschap AGV did earlier: they took it one level further and made “Pyreneeën” out of it, see Last year, a classic Mojibake was introduced when Waterschap Amstel, Gooi en Vecht redesigned their IT systems.

This seems like a trend where newer systems perform worse than older systems. I wonder why that is.

BTW: the trick on the [Wayback/Archive] Python.org shell to run ftfy (which is not installed by default) is first dropping to the shell (see my post How do I drop a bash shell from within Python? – Stack Overflow), then starting python again:

Read the rest of this entry »

Posted in CP850, Development, Encoding, ftfy, ISO-8859, Mojibake, Python, Scripting, Software Development, Unicode, UTF-8, UTF8 | Leave a Comment »

Polderman: “Alsjeblieft: mijn magische sinterklaasgedichtengenerator!… “

Posted by jpluimers on 2022/11/21

Voor een jaar waarin corona voorbij is en we toch een Sinterklaasgedicht nodig hebben:

[Archive] Polderman, beslisbomenmaker des vaderlands 🌳 on Twitter: “Alsjeblieft: mijn magische sinterklaasgedichtengenerator!… “

Er is ook een [Wayback/Archive] groot plaatje door [Archive] Bart van der Linden on Twitter: “.@Poldermanie zat te denken, waarom zou ik Nederland niet een magische sinterklaasgedichtengenerator schenken…… “.

Via [Archive] Ionica Smeets on Twitter: “Echt jammer dat ik niet het lootje van Gert-Jan heb.… “.

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

Kris helped me motivate to enter the Fediverse, so here I am: @wiert@mastodon.social

Posted by jpluimers on 2022/11/18

Given Elon Musk taking over Twitter, I decided to create an account in the federated social network Mastodon part of the Fediverse realm. In my case it is [Wayback/Archive] Jeroen Wiert Pluimers (@wiert@mastodon.social) – Mastodon (which you can visit at mastodon.social/@wiert).

Right now the account is rudimentary. More meta-data and media will be added later.

Mastodon is open source at [Wayback/Archive] mastodon/mastodon: Your self-hosted, globally interconnected microblogging community and you can join via [Wayback/Archive] Mastodon – Decentralized social media (joinmastodon.org) after choosing a Mastodon server/website. I have chosen [Wayback/Archive] Home – Mastodon (mastodon.social).

Given a Mastodon has a trunk, messages on Mastodon are called “Toots”.

For now some of the Tweets and links that Kris ([Wayback/Archive] Kris (@isotopp@chaos.social) – chaos.social) posted helping me to start on Mastodon.

Read the rest of this entry »

Posted in Mastodon, SocialMedia, Twitter | Leave a Comment »

I switched from SysInternals’ TcpView to NirSoft’s CurrPorts (cports)

Posted by jpluimers on 2022/11/18

I was a long time user of SysInternalsTcpView, but a while back I switched to NirSoft‘s CurrPorts (cports).

The main reason is that TcpView does not support filtering, which in the long past was not a problem since few Windows applications keep TCP connection open.

But nowadays with so many network dependencies, especially when using cloud services like DropBox/OneDrive/GoogleDrive/backblaze, these clutter the view a lot.

NirSoft’s CurrPorts (actually the executable is called [Wayback/Archive] cports.exe) can filter for both inclusion/exclusion on the open ports list based on many parameters (search for the “Using Filters” section in the cports.exe documentation: it’s a little bit below the version history).

The filtering syntax is extensive, and for ease of use, the context menu of the open ports list allows adding include/exclude filters on various parameters. After doing that, you can inspect the filter list to get an idea of possibilities and syntax.

For me, the easiest way to install CurrPorts is through [Wayback/Archive] Chocolatey Software | CurrPorts 2.65.

I found CurrPorts when trying to figure out how to use filters in TcpView: [Wayback/Archive] tcpview filter by process – Google Search

–jeroen

Posted in Chocolatey, NirSoft, Power User, SysInternals, Windows | Leave a Comment »

.NET: programmatically cutting and pasting files (as opposed to copy/pasting them)

Posted by jpluimers on 2022/11/17

Some notes for my link archive.

A long time ago, I asked [Wayback/Archive] c# – Console application using Clipboard.GetFileDropList: how to check if that came from a cut or copy operation? – Stack Overflow.

Back then, the use case had disappeared, so I didn’t follow up. But a new use case might appear soon, so here it goes:

–jeroen

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

Where can I find a comprehensive list of Delphi “compiler magic” declarations? – Stack Overflow

Posted by jpluimers on 2022/11/16

A long time ago, I posted one of the answers to [Wayback/Archive] Where can I find a comprehensive list of Delphi “compiler magic” declarations? – Stack Overflow

So for my link archive, these are the main ways of assembling an (always incomplete, as only partially documented) list:

–jeroen

Posted in Conference Topics, Conferences, Delphi, Development, EKON, Event, Software Development, Undocumented Delphi | Leave a Comment »

WordPress.com gets it consistently wrong, Twitter has it right: posting time stamps

Posted by jpluimers on 2022/11/15

UTC and time zones are both hard, especially with respect to scheduling.

The easiest would be to schedule things and store the time zone offsets together with the timestamp, just as ISO 8601 has UTC-relative time zone designators, or alternatively store the region in addition to the timestamp (which can be more user friendly).

When a scheduling system uses local time for schedules, you can expect these will adhere to your local time when the schedule becomes in effect.

So I schedule my posts for 06:00, 12:00 and 18:00 local time during weekdays.

Look what happens:

  1. [Archive.is] Jeroen Wiert Pluimers on Twitter: “Pro-tip for @wordpressdotcom : fix the scheduler so when you schedule in your local time zone, there is no shift during daylight saving time changes. I schedule all my posts to appear at 06:00 12:00 and 18:00 in my local time. 1/… “
  2. [Archive.is] Jeroen Wiert Pluimers on Twitter: “That works fine during winter time, which is ~5 out of 12 months, for example https://t.co/banrMebk2A 2/… “
  3. [Archive.is] Jeroen Wiert Pluimers on Twitter: “However 7 out of 12 months, they get posted at 07:00 13:00 and 19:00 local time, for example  3/3… “

Via [Archive.is] Colin Nederkoorn on Twitter: “Pro tip: Don’t schedule recurring meetings in UTC if you live in a place with daylight savings.… “ (which I do not agree with, see my post UTC and ISO 8601, or GTFO).

–jeroen

Posted in Development, ISO 8601, Power User, Software Development, UTC, Web Development | Leave a Comment »

Online Familieberichten; Overleden: Leonardus Hendricus Cornelis “Leo” Koelewijn (14-11-2021)

Posted by jpluimers on 2022/11/14

Ter herinnering:

[Wayback/Archive] Online Familieberichten; Overleden: Leonardus Hendricus Cornelis “Leo” Koelewijn (14-11-2021)

[Wayback/Archive] Online Familieberichten; Overleden: Leonardus Hendricus Cornelis “Leo” Koelewijn (14-11-2021)

(1934409

Wat een prachtige betrokken vader was dit bij het kanovaren van Stichting de Zevensprong.

–jeroen

Posted in About, Personal | Leave a Comment »

Exporting your Twitter content, converting to Markdown and getting the image alt-texts (thanks @isotopp/@HBeckPDX/@weiglemc for the info and @kcgreenn/@dreamjar for the comic!)

Posted by jpluimers on 2022/11/12

This is fine #Twitter

This is fine (illustration inspired by KC Green; creation video below)

(Edit 20221114: script for high-res images; more tweets from Jan) (Edit 20221116: hat-tip to Sam) (Edit 20221120: archiving t.co links by Michele Weigle) (Edit 20221122: added article by Johan van der Knijff) (20221128 Tapue export tool by Mike Hucka)

Time to be prepared:

The below will help you exporting your Twitter content (Tweets, DMs, media), perform some conversions on them and optionally delete (parts of) your content.

Important: keep your Twitter account afterwards (to prevent someone from creating a new account with the same handle).

Read the rest of this entry »

Posted in *nix, *nix-tools, Awk, Development, Lightweight markup language, MarkDown, Mastodon, Power User, SocialMedia, Software Development, Twitter | Leave a Comment »

Hopefully the Archive Today domain archive.is still exists

Posted by jpluimers on 2022/11/11

Last year there was some tension with the .is registry: [Wayback] Archive.is blog — Why has ‘is’ been redirecting to ‘vn’ and ‘md’…

This was because of a dispute from ISNIC: [Archive.is] archive.today on Twitter: “@ISNIC is threatening again with “putting archive.is in Bad Reg Process” (whatever that means). Formal reason: complaints about snapshots of old bitcoin-scam pages.”.

Back then, archive.vn and archive.md were the redirects. If archive.is really disappears, I have a lot of dead links to fix and need to first figure out which of these domains will last most:

archive.today – Wikipedia URL list:

URL

–jeroen

Read the rest of this entry »

Posted in archive.is / archive.today, Internet, Power User | Leave a Comment »