A pearl suggested by the Twitter algorithm is [Archive] Mohit Bhoite | मोहित भोईटे (@MohitBhoite) / Twitter
Look at the beauty of for instance [Archive] Mohit Bhoite | मोहित भोईटे on Twitter: “Here is the end result. …” / Twitter
Posted by jpluimers on 2023/05/19
A pearl suggested by the Twitter algorithm is [Archive] Mohit Bhoite | मोहित भोईटे (@MohitBhoite) / Twitter
Look at the beauty of for instance [Archive] Mohit Bhoite | मोहित भोईटे on Twitter: “Here is the end result. …” / Twitter
Posted in Development, Electronics Development | Leave a Comment »
Posted by jpluimers on 2023/05/18
After using Chocolatey for a long time and writing about it, I have written a few articles on other Windows package managers like winget and Scoop.
Part of the reason was that I wanted to install new systems in a semi-automatic way including WSL2 (Windows Subsystem for Linux 2).
As I have spent quite some time getting treated against metastasised rectum cancer, I missed part of the evolvement of WSL into WSL2 and of the winget evolvement.
The good news is that this simplified the scripted installation of WSL2 a lot, as over time, this got very easy, as confirmed in these posts/messages I found via [Wayback/Archive] winget wsl2 – Google Search:
wsl --installis now available in Windows 10 2004 and above. I think that’s a better solution rather than winget having a special case for it.
to install WSL 2 on Windows 10 OS Build 2004 or later you need to open the command prompt app with Administrator permissions, and enter the following command:wsl.exe --installAs soon as you hit enter, the process automatically gets to work. It enables the WSL optional features required, fetches the latest WSL Linux kernel version, and installs Ubuntu as your default distro
I even found back this was announced when I was still in hospital: during the Build 2020 conference. A summary is at [Wayback/Archive] The Windows Subsystem for Linux BUILD 2020 Summary – Windows Command Line describing the introduction of wsl.exe --install and that it defaults to install WSL 2 as back-then already most Windows Insider build users using WSL had switched from WSL 1 to WSL 2.
Yesterday, in Windows “equivalents” for bash backticks in cmd and PowerShell, I showed how to get the wsl.exe information:
C:\temp>PowerShell -Command "SigCheck "$((Get-Command -CommandType Application wsl).Path)"" Sigcheck v2.82 - File version and signature viewer Copyright (C) 2004-2021 Mark Russinovich Sysinternals - www.sysinternals.com c:\windows\system32\wsl.exe: Verified: Signed Signing date: 09:24 15/10/2021 Publisher: Microsoft Windows Company: Microsoft Corporation Description: Microsoft Windows Subsystem for Linux Launcher Product: Microsoft« Windows« Operating System Prod version: 10.0.19041.1320 File version: 10.0.19041.1320 (WinBuild.160101.0800) MachineType: 64-bit
This was on one of my Windows 10 systems with version 21H2.
The installation progress was as follows and took ome 3 minutes on a 50 Mibit/s fiber connection:
C:\temp>wsl.exe --install Installing: Virtual Machine Platform Virtual Machine Platform has been installed. Installing: Windows Subsystem for Linux Windows Subsystem for Linux has been installed. Downloading: WSL Kernel Installing: WSL Kernel WSL Kernel has been installed. Downloading: Ubuntu The requested operation is successful. Changes will not be effective until the system is rebooted.
Time to play around (:
–jeroen
Posted in Batch-Files, Chocolatey, Development, Power User, Scoop, Scripting, Software Development, Windows, Windows Development, winget, WSL Windows Subsystem for Linux | Leave a Comment »
Posted by jpluimers on 2023/05/17
A while ago, I needed the file information of wsl.exe on one of my Windows systems.
On Linux, I would do something like file `which bash` where file will give the file details and which gets you the full path to bash.
The file equivalent on Windows for me is [Wayback/Archive] Sigcheck – Windows Sysinternals | Microsoft Docs, which is part of [Wayback/Archive] File and Disk Utilities – Windows Sysinternals | Microsoft Docs.
The which equivalent on Windows for me is [Wayback/Archive] where | Microsoft Docs.
Posted in bash, Batch-Files, CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | 1 Comment »
Posted by jpluimers on 2023/05/16
Saved because I want to learn how to save a YouTube URL into a [Wayback/Archive] YouTube: Watch later play list, as doing it by hand takes at least 10 seconds per URL.
[Wayback/Archive] Bookmarklet-Youtube: Add all subscriptions to watch-later
–jeroen
Posted in Bookmarklet, Development, GoogleBookmarks, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Browsers | Leave a Comment »
Posted by jpluimers on 2023/05/11
I finally got annoyed enough to figure out how to disable the Windows 10 news (and weather) feeds.
At first I thought the solution in this post worked for Windows 11 as well, but re-testing in Windows 11 it does not or does not (or not any more: given so many new Windows 11 releases with ever changing functionality I’m not surprised).
explorer.exeBased on the below sources, I made this small batch file:
Posted in Batch-Files, Development, Power User, Registry Files, Scripting, Software Development, Windows, Windows 10, Windows 11 | Leave a Comment »
Posted by jpluimers on 2023/05/10
Sometimes, you want to restart the Windows explorer. This is already an exception case which you want to do when explorer hangs (for instance when taskbar icons do not respond any more), or has files locked which need to be modified. I described the latter in Inno Setup: Program Folder not showing up In Start > All Programs , with this very simple restart script:
taskkill /F /IM explorer.exe start explorer
Even more exception is wanting to run explorer with a UAC elevated administrative token. I sometimes do this when moving around stuff from other users on the same computer without having them logged on (as that would lock the files or directories to be moved around).
The risk of running explorer under UAC elevation, is that any program you start will also start UAC elevated, so beware what you ask for…
This is how you start explorer under UAC elevation:
pwsh.exe -nol -noni -nop -w hidden -c "taskkill /f /im explorer.exe; start explorer -v runas -a /nouaccheck"
or if you run an older Windows version of PowerShell:
PowerShell.exe -nol -noni -nop -w hidden -c "taskkill /f /im explorer.exe; start explorer -v runas -a /nouaccheck"
These command-line options and verbs are used:
pwsh == PowerShell:
-nol == -NoLogo-noni == -NonInteractive-nop == -NoProfile-w hidden == -WindowStyle Hidden *-c == -CommandSee:
taskkill:
/F == force close/IM == image name (name of .exe file)start == [Wayback/Archive] Start-Process (Microsoft.PowerShell.Management) – PowerShell | Microsoft Docs
-v == -Verb (in this case runas*)-a == -ArgumentList (to explorer)See [Wayback/Archive] Start-Process (Microsoft.PowerShell.Management) – PowerShell | Microsoft Docs.
explorer
/nouaccheck == /NoUACCheck**Time to explain a few:
Posted in Batch-Files, CommandLine, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows, Windows 10, Windows 11, Windows 7, Windows 8.1 | 1 Comment »
Posted by jpluimers on 2023/05/09
Last month, I wrote Need to take a look a Scoop (as a long time Chocolatey user).
So I did, and started with a list of my Chocolatey installs grouped by functionality in order to expand the table towards winget and [Wayback/Archive] GitHub – ScoopInstaller/Scoop: A command-line installer for Windows.
This was a good way to start learning, and by already doing this, got learned this:
Let’s focus on the latter for a bit:
scoop-bucket, see [Wayback/Archive] scoop-docs/Buckets.md at master · kidonng/scoop-docsIf you want your bucket listed in the Scoop Directory , add a topic of
scoop-bucketto its github page.
The indexing is done by the project [Wayback/Archive] ScoopSearch/ScoopSearch.AzureFunctions: Azure functions to maintain Scoop applications index.
ScoopDirectory indexes once a day, updating both the static Markdown pages and a [Wayback/Archive] scoop-directory/scoop_directory.db at master · rasa/scoop-directory database used for searching.
.The refreshing is done by [Wayback/Archive] scoop-directory/update-index.yml at master · rasa/scoop-directory calling [Wayback/Archive] scoop-directory/github-crawler.py at master · rasa/scoop-directory.
From the above, I got a feeling that Scoop is way more like the Linux Package Managers than WinGet and Chocolatey are.
–jeroen
Posted in Chocolatey, Development, Power User, Scoop, Software Development, Windows, Windows Development, winget | Leave a Comment »
Posted by jpluimers on 2023/05/04
As a continuation of the various bookmarklet posts, here is one with information on bookmarklets that operate on the current page, for instance when you already got text selected.
Bookmarklets
Bookmarklets are free tools to help with repetitive or otherwise impossible tasks in your web browser. To use a bookmarklet from this site on another web page:
1. Drag the bookmarklet (e.g. zoom images in or zap colors) to your [Wayback/Archive] Bookmarks Toolbar or Links Bar.
2. While viewing a page you want to use the bookmarklet on, click the bookmarklet from your Bookmarks Toolbar.Bookmarklet categories:
- [Wayback/Archive] Link Bookmarklets: search links, linked images, etc.
- [Wayback/Archive] Form Bookmarklets: toggle checkboxes, enlarge textareas, view passwords, etc.
- [Wayback/Archive] Text and Data Bookmarklets: zoom images in, sort table, etc.
- [Wayback/Archive] Zap Bookmarklets: get rid of annoyances such as unreadable color combinations, Flash, and blind links.
- [Wayback/Archive] Web Development Bookmarklets: debug web pages and experiment with new code.
- [Wayback/Archive] Validation Bookmarklets: check how well the code of a web page is written.
- [Wayback/Archive] Miscellaneous Bookmarklets.
- [Wayback/Archive] Search Bookmarklets.
- [Wayback/Archive] Search Engine Optimization Bookmarklets: search for backlinks, analyze search engine positions.
- [Wayback/Archive] Log Analysis Bookmarklets: analyze referer logs efficiently.
- [Wayback/Archive] Flash Bookmarklets: pause, rewind, and fast-forward Flash cartoons.
- [Wayback/Archive] Tipping Bookmarklet: send money to an e-mail address in a page.
- [Wayback/Archive] Color Bookmarklets: change all colors on a page at once.
- [Wayback/Archive] Keyword Bookmarklets for Scripters: type “jb document.body” to make document.body blink, etc.
- [Wayback/Archive] Site-specific Bookmarklets: fix annoyances on some sites I read.
- [Wayback/Archive] Bugzilla Bookmarklets: for people involved in the [Wayback/Archive] Mozilla project or other projects that track bugs using [Wayback/Archive] Bugzillas.
- [Wayback/Archive] Testing browsers: test features or stress limits of browsers.
Other pages:
- [Wayback/Archive] Frequently asked questions
- [Wayback/Archive] Announcement list
- [Wayback/Archive] Links
- [Wayback/Archive] Browser comparison chart: how well various browsers support bookmarklets.
- [Wayback/Archive] Add a bunch of bookmarklets at once
- [Wayback/Archive] Creating a remote control bookmarklet
All via [Wayback/Archive] bookmarklet that works on link of current selection – Google Search
–jeroen
Posted in Bookmarklet, Development, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Browsers, Web Development | Leave a Comment »
Posted by jpluimers on 2023/05/03
For a while now, there has been a free [Wayback/Archive] ChatGPT which works around the paid barriers by relaying the chat through 3rd parties.
I wonder how long it will exist.
The cease and desist letter was from OpenAI to the repository owner which – paraphrased – maintains the stance that the 3rd parties pay license fees to OpenAI, and that if these parties have issues with his tool basically scraping them, should contact the repository owner to work things out.
This is all part of a bigger discussion on license and copyright of what AI based LLMs (Large Language Models) which are sourced from a large corpus of text that we all publish for free on the internet without a way to track back from ChatGPT responses to which texts were used.
Links:
Posted in AI and ML; Artificial Intelligence & Machine Learning, ChatGPT, Development, GPT-3, Software Development | Leave a Comment »
Posted by jpluimers on 2023/05/03
Oh well: [Archive] Kris on Twitter: “L> add AI there and you’ve got a paper R> I just had a look, and that thing is pretty much completely offline. the JS contains the entire dictionary C> well would you look at that, might want to use the actual dictionary then “
Actually, it was dead easy to copy the sources to a gist and host the gist:
And of course someone distilled the wordle word solutions list into some statistics:
More was done at [Wayback/Archive] Reverse Engineering Wordle | Robert Reichel.
Which got updated to the statistics of the union of solution and accepted words list
Another tool that helps solving is [Wayback/Archive] willthames/wordle-guesses which I found via [Archive] Will Thames on Twitter: “I spent some of my New Year’s Day writing a program to generate the best first two guesses for Wordle. Time well spent, I think: …”.
Jilles then posted a video on how to view the source [Archive] Jilles🏳️🌈 on Twitter: “How to cheat on #wordle …”.
To make Wordle even harder, there is Absurdle, an adversorial version of Wordle that decides the word upon your input until it runs out of decisions:
A Dutch and German version were added as Woordle and Wordle (which missed being called WorDeL and Wortle):
Shortly followed by another German version (always the Austrians setting themselves apart), and a French one (which messed Le Word as perfect name):
There is also a four-letter word edition, actually two of them:
There is a Prime version too:
Felienne posted a cool analysis bot that watches Wordle tweets and uses them to estimate the correct Wordle solution:
@MetaWordle Account will post a try every day around CET noon, clearly don’t follow the account if you don’t want to see spoilers!”
Solving Wordle daily by observing the colored squares people post on Twitter. A bot by @rix0rrr and @felienne.
Oh, there is a single Letterle, which on average takes you some 13 tries when disregarding letter frequencies (which likely should not matter):
edjefferson.com/letterle“
When you think Absurdle was going far, look at what happened Wordlinator:
Two search tools that are very useful:
grep ^(?!.*g).d.l.$“
If you are desperate, these solvers can help; the second one is more flexible, the first one faster, and the last one is pure cheating:
I tried referencing all posts in the somewhat broken thread at:
Some links that did not make it into that thread (yet):
Having good start words and an on-line dictionary help:
And there is always a really fast way: [Wayback/Archive] Wordle Solver | Not Fun at Parties (explained in [Wayback/Archive] Ruining the fun: a Wordle auto-solver – by Tom)
–jeroen
Posted in Development, JavaScript/ECMAScript, LifeHacker, Natural Languages, Power User, Scripting, Software Development | Leave a Comment »