The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,839 other subscribers

Archive for the ‘Development’ Category

Thread by @aakashg0 on Thread Reader App: the Twitter tweet ranking algorithm

Posted by jpluimers on 2023/04/05

Interesting read: [Wayback/Archive] Thread by @aakashg0 on Thread Reader App with this takeaway:

If you take away anything, remember this – the models take in 3 inputs:

• Likes, retweets, replies: engagement data
• Mutes, unfollows, spam reports: user data
• Who follows you: the follower graphImage

Read from the start at [Wayback/Archive] Aakash Gupta 🚀 Product Growth Guy on Twitter: “Twitter revealed its algorithm to the world. But what does it mean for you? I spent the evening analyzing it. Here’s what you need to know:”

The algorithm is at [Wayback/Archive] twitter/the-algorithm: Source code for Twitter’s Recommendation Algorithm.

Via [Wayback/Archive] Andrea on Twitter: “Haha, dát is het dus!” / Twitter

Note: for me the only way to reliably follow people is this: [Wayback/Archive] Jeroen Wiert Pluimers @wiert@mastodon.social on Twitter: “@chrisbensen @geerlingguy @TwitterBlue @elonmusk @tweetbot About the only tweeps I see tweets from on a regular base is the ones I turned notifications on for. It does not matter if they are blue or not. The blue ones tend to post overly large tweets. Those I skip reading.”

–jeroen

Posted in Development, Java, Java Platform, SocialMedia, Software Development, Twitter | Leave a Comment »

Two now 3 months old O’RLY book puns “Getting ChatGPT to write your code” / “Copying and Pasting from ChatGPT”

Posted by jpluimers on 2023/04/04

Earlier this week I got reminded of the “book” so many people seem to fall for via the Tweet by [Wayback/Archive] turbo (@turboCodr) / Twitter.

The image (and text) is in fact a parody both on ChatGPT and on the Stack Overflow meme it is based on (more on my opinion on both further below).

Back to the book title referred by [Wayback/Archive] turbo on Twitter: “Something something last tech book you’ll ever buy”.:

Deploying untested code at break-neck speeds
Essential
Copying and Pasting from ChatGPT
O’REILLY
The Practical Developer

Read the rest of this entry »

Posted in AI and ML; Artificial Intelligence & Machine Learning, Awareness, ChatGPT, Development, GPT-3, Software Development | Leave a Comment »

Eight Dollars – Chrome Web Store: see who fell for the twitter blue scam

Posted by jpluimers on 2023/04/03

[Wayback/Archive] Eight Dollars – Chrome Web Store

It’s available for other browsers too (Brave, FireFox, Edge, Opera; Safari should become supported too), and more importantly: open source as well at [Wayback/Archive] wseagar/eight-dollars: A browser extension that shows twitter blue vs real verified users.

Via [Wayback/Archive] Alan Neilan on Twitter: “@IanColdwater pssst check out”.

jeroen

Read the rest of this entry »

Posted in CSS, Development, HTML, JavaScript/ECMAScript, PowerShell, Scripting, Software Development, Web Development | Leave a Comment »

Two more Twitter bots that help with inclusion and accessibility (a11y): @get_altText and @captions_please

Posted by jpluimers on 2023/04/03

  1. [Archive] Alt Text Reader (@get_altText) / Twitter
    I read alt texts from images for you – just mention me in the reply to an image! (alt texts are a cool & accessible way to describe images – see pinned tweet)
    (If I’m broken, complain to @malfynnction)
  2. [Archive] captions_please (@captions_please) / Twitter

    I’m a bot, just starting to beep boop. Tag me in a tweet (or a reply to a tweet) and I’ll do my best to describe the image. Try @captions_please help for more

The first is developed and maintained by [Archive] φnn (@malfynnction) / Twitter with source code at [Wayback/Archive] malfynnction/AltText-Tweeter.

The second is developed and maintained by [Archive] Anil (@TheOtherAnil) / Twitter, with source code at [Wayback/Archive] AnilRedshift/captions_please_go where I learned the bot actually understands more commands, even some German:

Look for these methods in the file [Wayback/Archive] captions_please_go/parse_command.go at main · AnilRedshift/captions_please_go:

  • parseCommand
  • parseGerman
  • parseEnglish
  • parseGermanRemoveModifiers (removes words und and das)
  • parseGermanDirectives (understands the words hilfe, alternativtext, scannen, beschreiben, text)
  • parseEnglish
  • parseEnglishRemoveModifiers (removes words and and the)
  • parseEnglishLang (conditionally removes words in and into)
  • parseEnglishDirectives (understands the phrases help, auto, text, ocr, describe, caption, alttext, alt_text, alt text, translate, get)
  • parseTag (gets the target IETF Language Tag – like du-nl for Dutch-Netherlands or de-de for German-Germany, and fr-be for French-Belgium)
English / German Example Action
(nothing, internally called auto) As in @captions_please Tweets best it can do:

  • alt text if there is an image with an alt attribute,
  • ocr if there is an image without an alt attribute,
  • describe when no alt text or ocr can be returned.
help / hilfe As in @captions_please help Tweets help text
alt text, alttext, alt_text / alternativtext As in @captions_please alt text Tweets user-supplied alt text
ocr, text, get text / scannen As in @captions_please ocr Scan the image for text, then tweets the result
describe, caption / beschreiben As in @captions_please describe Tweets the AI generated description of the image
translate As in @captions_please translate Tweets the translated text

Also observe the commands set boolean flags in a structure, so it is possible to issue multiple commands at once (like @captions_please ocr translate fr-be)

The above Twitter accounts are complementing the below accounts/commands that I wrote about in One of the coolest Twitter bots commands: @AltTextCrew OCR please (and which both are being developed and maintained by [Archive] LGBTired 🏳️‍⚧️⚢ (@hbeckpdx) | Twitter):

 

–jeroen

Posted in About, accessibility (a11y), Awareness, Development, Inclusion / inclusive society, LifeHacker, Personal, Power User | Leave a Comment »

Some notes on converting Twitter threads/tweets to Markdown

Posted by jpluimers on 2023/03/29

I’ve switched to either Markdown or reStructuredText for documentation purposes a while ago.

Often Twitter threads or Tweets are a useful addition to that, so it makes sense being able to convert them to a more portable format, especially since both Markdown and reStructuredText render well on GitHub (including Gists) and GitLab (including Snippets).

So here are some links that hopefully will get me going in the future:

–jeroen

Posted in Development, Lightweight markup language, MarkDown, reStructuredText, Software Development | 1 Comment »

Installing Windows OpenSSH from the command-line on Windows 10 and 11

Posted by jpluimers on 2023/03/28

While writing On my reading list: Windows Console and PTY, I found out that OpenSSH had become available as an optional Windows feature.

It was in [Wayback/Archive.is] Windows Command-Line: Introducing the Windows Pseudo Console (ConPTY) | Windows Command Line:

Thankfully, OpenSSH was recently ported to Windows and added as a Windows 10 optional feature. PowerShell Core has also adopted ssh as one of its supported PowerShell Core Remoting protocols.

Here are a few links:

Read the rest of this entry »

Posted in *nix, *nix-tools, Communications Development, ConPTY, Console (command prompt window), Development, Internet protocol suite, OpenSSH, Power User, SSH, ssh/sshd, TCP, Windows, Windows 10, Windows 11 | Leave a Comment »

The fundamentals of programming, a thread by @isotopp on Twitter

Posted by jpluimers on 2023/03/22

Kristian Kohntöpp publishes great DevOps related threads on Twitter. [Wayback/Archive] Thread by @isotopp “I am Kris, and I am 53 now. I learned programming on a Commodore 64 in 1983. My first real programming language (because C64 isn’t one) was 6502 assembler, forwards and backwards. “ is his response, about a year and a half ago, to a request by Julia Evans (@b0rk) that I also saved: [Wayback/Archive] Thread by @b0rk on Thread Reader App – Thread Reader App.

Her request: [Archive] 🔎Julia Evans🔍 on Twitter: “if you’ve been working in computing for > 15 years — are there fundamentals that you learned “on the job” 15 years ago that you think most people aren’t learning on the job today? (I’m thinking about how for example nobody has ever paid me to write C code)” / Twitter followed by [Archive] 🔎Julia Evans🔍 on Twitter: “I’m especially interested in topics that are still relevant today (like C programming) but are just harder to pick up at work now than they used to be” / Twitter.

The start of his thread is [Archive] Kris on Twitter: “@b0rk I am Kris, and I am 53 now. I learned programming on a Commodore 64 in 1983. My first real programming language (because C64 isn’t one) was 6502 assembler, forwards and backwards.” / Twitter.

Kristian’s story is very similar to mine, though I sooner stepped up the structured programming language ladder as at high school, I had access to an Apple //e with a Z80 card (yes, the SoftCard), so could run CP/M with Turbo Pascal 1.0 (later 2.0 and 3.0) which I partly described in The calculators that got me into programming (via: calculators : Algorithms for the masses – julian m bucknall), followed by early access at the close by university to PC’s running on 8086 and up. The computer science lab, now called Snellius, but back then known as CRI for Centraal RekenInstituut – is now had an educational deal with IBM, which means they switched from the PC/XT to the PC/AT with a 80286 processor as soon as the latter came out).

Read the rest of this entry »

Posted in 6502 Assembly, Assembly Language, Development, ESP32, ESP8266, Software Development, x86 | Leave a Comment »

git add a revision before first commit – Google Search

Posted by jpluimers on 2023/03/21

Will need this one day to gain better insight on how git works under the hood: [Wayback/Archive] git add a revision before first commit – Google Search

–jeroen

Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | 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 »