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 4,152 other subscribers

Archive for the ‘Development’ Category

llamasoft/polyshell: A Bash/Batch/PowerShell polyglot!

Posted by jpluimers on 2023/03/16

PolyShell is a script that’s simultaneously valid in Bash, Windows Batch, and PowerShell (i.e. a polyglot).

[Wayback/Archive] llamasoft/polyshell: A Bash/Batch/PowerShell polyglot!

Need to check this out, as often I have scripts that have to go from one language to the other or vice versa.

Maybe it enables one language to bootstrap functionality in the other?

The quest

The above polyglot started with a quest to see if I can could include some PowerShell statements in a batch file with two goals:

  1. if the batch file started from the PowerShell command prompt, then execute the PowerShell code
  2. if the batch file started from the cmd.exe command prompt, then have it start PowerShell with the same command-line arguments

The reasoning is simple:

  1. PowerShell scripts will start from the PATH only when PowerShell is already running
  2. Batch files start from the path when either cmd.exe or PowerShell are running

Lots of users still live in the cmd.exe world, but PowerShell scripts are way more powerful, and since PowerShell is integrated in Windows since version 7, so having a batch file bootstrap PowerShell still makes sense.

Since my guess was about quoting parameters the right way, my initial search for the link below was [Wayback/Archive] powershell execute statement from batch file quoting – Google Search.

I have dug not yet into this, so there are still…

Many links to read

These should give me a good idea how to implement a polyglot batch file/PowerShell script.


Posted in *nix, *nix-tools, bash, bash, Batch-Files, Development, JavaScript/ECMAScript, Perl, Polyglot, Power User, PowerShell, Scripting, Software Development | Leave a Comment »

For my reading list: some links on Twitter bookmarklets

Posted by jpluimers on 2023/03/15

Yup, web browser bookmarklets, though hardly published about any more, I still like them (and wrote about them before). With a little bit, usually unreadable, JavaScript, they can add magical functionality to your browser.

So here are some links on Twitter related bookmarklets:

All via [Wayback/Archive] twitter bookmarklet – Google Search.


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

On my list of things to try: Live Share – Visual Studio Marketplace

Posted by jpluimers on 2023/03/14

I need to try [Wayback/Archive] Live Share – Visual Studio Marketplace and get a feel for how it is to live share code: is it a way of working that fits me well?

This installs Live Share for Visual Studio Code:

code --install-extension MS-vsliveshare.vsliveshare
code --install-extension MS-vsliveshare.vsliveshare-pack

The second extension is for [Wayback/Archive] Live Share Extension Pack – Visual Studio Marketplace, which got released about a year after the first one.

Live Share was introduced in 2017, a period when most of my work was outside the Visual Studio realm, Visual Studio Code was just starting to gain momentum over Atom (which was mul multi-platform editor of choice back then; I wrote about it in a few blog posts), and my then main development environment did not allow live sharing at all. so I missed all this (:

For my reading list:

Uses search queries:

  1. [Wayback/Archive] markdown online co-editing – Google Search
  2. [Wayback/Archive] visual studio code collaborative editing – Google Search
  3. [Wayback/Archive] vscode live share – Google Search

The first query was my initial goal to accomplish, but I rather have the markdown files available off-line, so these did not help:


Posted in atom editor, Development, Power User, Software Development, Text Editors, vscode Visual Studio Code | Leave a Comment »

Register for axe-con | Digital Accessibility Conference

Posted by jpluimers on 2023/03/10

Welcome, #a11y squad! Axe-con is committed to providing an accessible conference experience, and having free registration is key to this commitment.

Please fill in the following information on the form below to reserve your spot at axe-con 2023. Registration will provide you with access to the live sessions and on-demand recordings of 60 sessions.

[Wayback/Archive] Register for axe-con | Digital Accessibility Conference

Via [Wayback/Archive] CircuitSwan on Twitter: “Deque Systems axe-con 2023 Free Registration Building accessible experiences #a11y Virtual Conference: March 15-16th, 2023 Registration will provide you with access to the live sessions and on-demand recordings of 60 sessions.”

Related: Read the rest of this entry »

Posted in accessibility (a11y), Development, Software Development | Leave a Comment »

My little tray with neodymium magnets for holding little screws while servicing equipment 

Posted by jpluimers on 2023/03/09

From an interesting thread where Iris Classon had laptop overheating problems (just like I had with a 2015 Retin MacBook Pro in Cleaning the cooling fans of a 15-inch Retina MacBook Pro 2015 model):

My tray is from the lid of a broken container.

I love repurposing the remains of old household items..

The actual problem: dust, just like my MacBook had.

Read the rest of this entry »

Posted in Development, DIY, Hardware Development, LifeHacker, Power User | Leave a Comment »

%d bloggers like this: