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 March, 2023

Windows: investigating error code 0x80073701 and 0x800f081f while updating; some DISM and CBS log things to search for

Posted by jpluimers on 2023/03/20

A while ago when applying KB5008212* through Windows Update, I got errors. It was odd, as until now, all other upgrades had worked fine.

Often Windows update errors are because of lack of disk space (I try maintain 10 gigabytes or more free space on virtual machines, but that sometimes fails because some software – despite user files being on a different drive – sometimes insists on filling the system drive).

This time, Windows Update would show 0x80073701, of course right after reaching 100%, but actually it was a 0x800f081f  in disguise.

My usual modus operandi didn’t solve it (with a retry after every step):

  1. Reboot
  2. Cleanup of the system drive using built-in CleanMgr.exe (Disk cleanup)
  3. Scan all corrupted system files and replace them from cache: SFC /ScanNow (System File Checker)
  4. Cleanup and repair the Windows image using DISM /Online /Cleanup-image /Restorehealth (Deployment Image Servicing and Management)

All failed, but in the last step, DISM would consistently show error 0x800f081f.

Even a local DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\Windows\WinSxS /LimitAccess would fail.

Each DISM run will actually log in two log files, and this is the trick to figure out what the next step would be.

Examples from my case:

Read the rest of this entry »

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

mess with dns: a cool site to directly mess around with subdomains of messwithdns.net.

Posted by jpluimers on 2023/03/17

[Wayback/Archive] mess with dns: a cool site at messwithdns.net that allows you directly mess around with subdomains of messwithdns.com (yup: these are on different top level domains by intent, see [Wayback/Archive] mess with dns: about/FAQ).

Her blog post [Wayback/Archive] New tool: Mess with DNS! has a cool insightful explanation with lots of gifs showing what is going on. The below gif is just one of them:

In addition, it has a cool [Wayback/Archive] mess with dns: DNS dictionary explaining common DNS related terms.

The backend is written in Go, and has a snapshot of the initial source code on github at [Wayback/Archive] jvns/mess-with-dns-backend (mainly so you can file issues or submit ideas).

Oh, and this is a cool video that shows you how DNS works assuming the protocol is phone based: [Archive] Max Meier👨🏻‍💻🛡⚔️ on Twitter: “DNS Server …” / Twitter.

Read the rest of this entry »

Posted in DNS, Internet, Power User | Leave a Comment »

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.

–jeroen

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.

–jeroen

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:

–jeroen

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

Way easier to fix on Intel MacBook machines than I thought: macos kernel_task high cpu dual screen

Posted by jpluimers on 2023/03/13

The links found via [Wayback/Archive] macos kernel_task high cpu dual screen – Google Search were daunting.

In the end, the issue ways way easier to fix than I thought: open up your Intel MacBook (you need pentalobe screwdrivers for that), then with some compressed air, clean the dust (especially from the fans).

This post saved my day [Wayback/Archive] kernel_task takes up 500% of my CPU when plugging in external monitor – MacBook Pro 15″ Retina Display Mid 2015 – iFixit

Things I haven’t tried yet:

  • Cleaning out more free space from HDD
  • Using plain HDMI cable into the HDMI cable port
  • Taking MBP apart and cleaning any potential dust


Block Image

I faced the very same issue that you guys are facing and based on input from another forum decided to get my 2016 MPB fans cleaned out.

This made an immediate impact where when I connected my external display to the MBP.pre-cleaning, it would overheat causing the fans to spin at 6000 rpm or thereabout and the kernel_task would eat up 500%-900% of the CPU rending the system unusable.

This simple cleanup of the fans has allowed me to connect the monitor with no kernel panic anymore and even though the fans run around 5000 rpm now the CPU and GPU are running around 10 degrees cooler now.

The same picture is in [Wayback/Archive] macos – MacBook Pro high CPU with external monitors – Ask Different.

An even dirtier MacBook was at [Wayback/Archive] External Display – High CPU Usage – MacBo… – Apple Community.

Links that were interesting but unhelpful:

–jeroen

Read the rest of this entry »

Posted in Apple, Mac, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, Power User | Leave a Comment »

Jvc Compulink Control Cable are just mono mini audio jacks

Posted by jpluimers on 2023/03/10

–jeroen

Posted in Hardware, Home Audio/Video, Power User | Leave a Comment »

Register for axe-con | Digital Accessibility Conference

Posted by jpluimers on 2023/03/10

Welcome, 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 »

A pain in the ass: gist include image in markdown in current directory – Google Search

Posted by jpluimers on 2023/03/08

This revealed so much pain: [Wayback] gist include image in markdown in current directory – Google Search

I wished that – like in the past – it would work just like in a normal github hosted git repository: [Wayback/Archive] How do I display local image in markdown? – Stack Overflow.

The core problem is that though a gist underneath is a git repository, it is rendered in a way that is different than a github repository is rendered, and that way of rendering has changed over the years effectively making it difficult to embed a picture. When you do embed an image requires the uuid/guid of the raw image URL to be included in the markdown, unlike with a regular repository hosted on github.

That is so much pain that I decided to not host documentation in gists any more.

A bit of the pain:

This is an example gist where I tried to host an image: [Wayback/Archive] Windows 7 with PowerShell v2 fails to upgrade to PowerShell v3 through chocolatey: You must provide a value expression on the right-hand side of the '-' operator.

That gist was prelude to my post Chocolatey on Windows 7: “You must provide a value expression on the right-hand side of the ‘-‘ operator.”.

–jeroen

Posted in Development, DVCS - Distributed Version Control, gist, git, GitHub, Lightweight markup language, MarkDown, Software Development, Source Code Management | Leave a Comment »