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

Some links on the Visual Studio Code terminal and known issues

Posted by jpluimers on 2022/12/08

For my link archive: some links related to the Visual Studio Code built-in terminal and its’ known issues.

All of the above links started when I looked for [Wayback/Archive] vscode terminal wikipedia – Google Search.

–jeroen

Posted in Console (command prompt window), Development, Power User, Software Development, vscode Visual Studio Code, Windows, Windows Terminal | Leave a Comment »

Chris Bensen on Twitter: “I just had a notion about they cycle I go through with every project I have ever worked on so I drew this up before I forgot it. I hope everyone can read it.… “

Posted by jpluimers on 2022/12/07

The below graph complemented the EKON25 “Impostor Syndrome” session by Jens Fudge very well:

[Wayback/Archive] Imposters Syndrome and mental management – Entwickler Konferenz

[Archive] Jens Fudge on Twitter: “Indeed it is Its not the same but can be compared to some mental aspects of sports I wrote a book on that subject … “:

[Wayback/Archive] English | Choose to be a winner

[Archive] Chris Bensen on Twitter: “I just had a notion about they cycle I go through with every project I have ever worked on so I drew this up before I forgot it. I hope everyone can read it.… “

Read the rest of this entry »

Posted in About, Autistic Spectrum/Autism, Development, Hardware Development, LifeHacker, Personal, Power User, Software Development | Leave a Comment »

Some links to possible ASP.NET core hosting of private projects

Posted by jpluimers on 2022/12/06

For my link archive for hosting private projects built using technology based on [Wayback/Archive] ASP.NET documentation | Microsoft Docs:

If you also are using other technologies than ASP.NET, Heroku might be an option:

–jeroen

Read the rest of this entry »

Posted in .NET, ASP.NET, ASP.NET core, C#, Development, Hosting, Power User, Software Development, Web Development | Leave a Comment »

If It Can’t Be Reduced, Pete Seeger, At89, 2008

Posted by jpluimers on 2022/12/05

A while ago, I saw a quote that I had seen before: [Archive] Jan Willem vd Groep on Twitter: “… “

I never know the quote came from a song, but found out after I did some digging ([Wayback/Archive] pete seeger quote if it can t – Google Search).

Song [Archive] If It Can’t Be Reduced – YouTube is from the At89 album that Pete Seeger released in 2008.

Provided to YouTube by Entertainment One Distribution US If It Can’t Be Reduced · Pete Seeger At 89 ℗ Appleseed Released on: 2008-09-30

Lyrics via [Wayback] Pete Seeger – If It Can’t Be Reduced Lyrics | Lyrics.com

If it can't be reduced, reused, repaired
Rebuilt, refurbished, refinished, resold
Recycled or composted
Then it should be restricted, redesigned
Or removed from production

Hooray for the city of Berkeley
Hooray for the city of Berkeley
Hooray for the city of Berkeley
And its zero waste commission

Hooray for the city of Berkeley
That beautiful city of Berkeley
Hooray for the city of Berkeley
And its zero waste commission

If it can't be reduced, reused, repaired
Rebuilt, refurbished, refinished, resold
Recycled or composted
Then it should be restricted, redesigned
Or removed from production, here we go

Hooray for the city of Berkeley
Hooray for the city of Berkeley
Hooray for the city of Berkeley
And its zero waste commission

Hooray for the city of Berkeley
That beautiful city of Berkeley
Hooray for the city of Berkeley
And its zero waste commission

More about Pete:

–jeroen

Read the rest of this entry »

Posted in Awareness | Leave a Comment »

I won a “The Cloud Resume Challenge Guidebook” bundle: Thanks Forrest Brazeal for writing it and Lightspin for the prize (:

Posted by jpluimers on 2022/12/03

Since all three editions of [Wayback/Archive] The Cloud Resume Challenge Guidebook were on my wish list as I wanted to practice more cloud computing skills in a structured way during my reintegration after the long series of procedures that (hopefully for a long time) got rid of my metastasised rectum cancer, I was really happy to win the bundle late 2022:

Read the rest of this entry »

Posted in Amazon.com/.de/.fr/.uk/..., AWS Amazon Web Services, Azure Cloud, Cloud, Cloud Development, Development, GCP Google Cloud Platform, Infrastructure, Software Development | Leave a Comment »

Windows 10 22H2 ISO download hashes

Posted by jpluimers on 2022/12/02

Since [Wayback/Archive] Download Windows 10 Disc Image (ISO File) hides this only to after you download, below is the complete list of Windows 10 22H2 ISO hashes.

For your convenience, Microsoft did not put it in alphabetic order (for instance, Dutch comes after Norwegian). For a few I downloaded I have added the ISO filenames (which for your convenience too is not included by Microsoft). Oh: note that “English” without any marker means “US English” (which has non-metric defaults, non-ISO page sizes, and odd date formats).

BTW: I wonder if there is a link for Windows 11 Disk Image (ISO File) as https://www.microsoft.com/en-us/software-download/windows11ISO gives a 404 error.

Read the rest of this entry »

Posted in Power User, Windows, Windows 10 | Leave a Comment »

List of the ThinkPad models I owned

Posted by jpluimers on 2022/12/02

I stopped buying ThinkPads when they messed with screen sizes (a long while they did not have anything 16:10 at 1920×1200 or better) and keyboards (no 6-row keyboard for me).

So below is the (at least partial) list of ThinkPads I own(ed) and features they so I can find back information on them in case of need.

Note I had the X201 despite the smaller screen size, as it was an excellent travel companion.

Read the rest of this entry »

Posted in Power User, T510, ThinkPad, W701, X201 | Leave a Comment »

Some experience of htmlpreview.github.io as a replacement for rawgit.com

Posted by jpluimers on 2022/12/01

With [Wayback/Archive] rawgit.com having sunset years ago, but still having a [Wayback/Archive] few links to it from my blog, it was time to take a closer look at the alternative [Wayback/Archive] htmlpreview.github.io.

First of all, htmlpreview needs more examples. I might submit a pull request for it later, as it is open source at [Archive/Archive] htmlpreview/htmlpreview.github.com: HTML Preview for GitHub Repositories.

Second, some actual example URLs, based on content I previously accessed through rawgit.com.

Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, GitHub, HTML, Power User, rawgit, Software Development, Source Code Management, Versioning, Web Development | Leave a Comment »

Reminder to self: write a more extensive blog post on Delphi style guides and code style in general

Posted by jpluimers on 2022/11/30

A while ago, Uwe Raabe reminded me about the Delphi Style Guide which is on-line at the Embarcadero document wiki:

He reminded me to write a bit more about Delphi Style Guides, as there are a few and I used them on past conference sessions.

I thought either the blog post or the conference sessions were already online.

Nope, no 2010 conference sessions at [Wayback/Archive] jpluimers/Conferences: Materials for the conferences that Jeroen Wiert Pluimers spoke on., and no blog post yet.

Hopefully over time I will update that repository, but for now: here is a summary of Delphi Style Guides and a short hint on why to get naming conventions right.

I might extend both in a later blog post, health and time permitting.

Delphi Style Guides

Style guides I found in the past as files named in those session materials:

The above also made me find this interesting post: [Wayback/Archive] Delphi-PRAXiS – Einzelnen Beitrag anzeigen – Delphi Einrücken ::: ::: Wie rückt ihr ein? which mentions these style guides (I modified all links to point to the most recent WayBack machine version that is complete)):

  • Borland empfiehlt folgende Formatierungsregeln:
    http://community.borland.com/article/0,1410,10280,00.html
    Der Punkt 3 “naming conventions” schweigt sich aber über Deine Frage aus 
  • Deutsche Übersetzung der Borland Style Guides
    http://www.dsdt.info/grundlagen/styleguide/
    Unsere Freunde von dsdt.info haben sich die Mühe gemacht und dem Text ins deutsche Übersetzt.
    Damit gibt es nun keine Ausreden mehr sich nicht an die Richtlinien zu halten 
  • Delphi 4 Developer’s Guide Coding Standards Document
    von Econos – Stefan Hoffmeister (1998)
    basiert auf dem Coding standard von Xavier Pacheco and Steve Teixeira
    http://www.econos.de/delphi/cs.html
    Hier gibt es auch eine Liste mit Präfixen zu den einzelnen Komponenten
  • Delphi Object Pascal Coding and Project Organization Standard
    von Michael P. Hollis and Mark S. Lauter
    http://onelauter.com/codestandards/
    Hier wird zwar auch nicht auf die Präfixe eingegangen, aber es wird unter anderem auch eine Verzeichnisstruktur vorgeschlagen.
    Solch ein Dokument mit den einzuhaltenden Regeln sollte in jedem Projekt / Team existieren.
  • Delphi coding Standards
    Maintained by Mustafa GÖKMEN
    http://gokmen.selcuk.edu.tr/document…/delphi/cs.php
    Hier ist auch eine Liste mit Präfixen enthalten
  • Delphi Identifier Naming Conventions
    von Zarko Gajic
    it made it into the WayBack machine
    Dieser Artikel befasst sich nur mit der Benamung von Variablen

The dstgroup version is based on WayBack: onelauter.com/codestandards/CodeStandards.doc.

Mixed emotions conventions

Anyway, this is the piece of code by Uwe Raabe that made me frown as it mixes two Delphi styles at once and uses improper meanings in names:

procedure TSearchForm.StartSearch;
begin
  StatusBar.SimpleText := '';
  dspFiles.Clear;
  Files.Clear;
  BeginSearch;
  SearchFolder(edtRootFolder.Text, edtSearchPattern.Text);
  EndSearch;
end;
 
procedure TSearchForm.SearchFolder(const APath, ASearchPattern: string);
var
  arr: TArray;
  dir: string;
begin
  arr := TDirectory.GetFiles(APath, ASearchPattern);
  AddFiles(arr);
  { release memory as early as possible }
  arr := nil;
  for dir in TDirectory.GetDirectories(APath) do begin
    if not TDirectory.Exists(dir) then Continue;
    SearchFolder(dir, ASearchPattern);
  end;
end;
 
procedure TSearchForm.AddFiles(const AFiles: TArray);
begin
  Files.AddStrings(AFiles);
  dspFiles.Items.Count := Files.Count;
  StatusBar.SimpleText := Format('%d files found', [Files.Count]);
end;

This is the start of technical debt, and resulted in the below cool Twitter thread.

Note that I intentionally used “Digital Signal Processor” as dsp abbreviations are very context sensitive, causing truckloads of problems especially when switching between functionality at front and technical stuff at front in naming conventions.

Functionally, it could have made very much sense to add files into a list to be passed onto a Digital Signal Processor for pre- or post-processing of signals.

Uwe uses this Style Guide (which regrettably does not pay tribute to the original author):

So yes, Uwe posted a cool example on how to apply technology properly, and I retweeted it as this: [Archive] Jeroen Wiert Pluimers on Twitter: “Async Tasks in VCL Projects. Cool example on how to properly to Async in VCL. Important thought: please do not mix naming conventions like Uwe does, as it is substantially adds to your technical debt.… “

It is also a reminder for me to phrase this into the positive form: stick to one naming convention as it makes less technical debt creep in. Like Uwe, I learn new things every day and be reminded it is hart to not follow old habbits.

–jeroen

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

google chrome devtools – Use JavaScript to set value of textbox when .value and events don’t seem to work – Stack Overflow

Posted by jpluimers on 2022/11/29

For my link archive: [Wayback/Archive] google chrome devtools – Use JavaScript to set value of textbox when .value and events don’t seem to work – Stack Overflow

TL;DR

Sometimes fields are blocked from pasting values.

Normally a trick like this works in the chrome development panel console:

document.getElementById('nonPasteElementID').value = 'myValueFromTheClipboard'

With some web development environments this does not work.

For react, after finding the react render name for the input (in the case of the answer, it was “reactNameForInputElement“) this is a solution:

To make it work you will need this:

const input = document.getElementById('nonPasteElementID');
const event = new Event('reactNameForInputElement', { bubbles: true });
input.value = '1';
input.dispatchEvent(event);

–jeroen

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