Lunduke
News • Science & Tech
Make Computers Fun Again - Linux, UNIX, Alternative Operating Systems, Computer History, and Retro Computing. Also dad jokes.
Interested? Want to learn more about the community?
June 04, 2023

BWAHAHAHAHOUHAHA-HAHA!
I honestly did not expect ChatGPT to fail so badly! (I will not paste any of its output, Lunduke!)
It's my first time to directly use ChatGPT. I just couldn't come up with anything I want to know that it could reliably tell me. Until today when I realised I keep receiving requests by some relatives to do a bash oneliner for some text files and I'd be offloaded if I could just tell them how to do it themselves in PowerShell but it'll be long before I've learnt what I need so I have the option to ask an RTFM-level-stupid question on StackOverflow or... to test out the great deceiver. So I sacrificed the confidentiality of my name, surname and friggin' phone number to have a go. I'll paste here just my input but you'll be well able to deduce how it went:
^^^^^^^^^^^^^^^
I want to remove duplicate whitespace from a text file on a Windows 10/11 PC. On Linux with bash what I would do is:
$ cat spacious.txt | tr -s [:space:] > compact.txt
What is the easiest way to do the same on Windows without WSL?
What is the simplest PowerShell script which can produce the same result?
^^^^^^^^^^^^^^^
By whitespace I meant not only " ", but also carriage returns. Does '\s' match carriage returns as well as " "? Also, when I have duplicate carriage returns in the spacious.txt, I want to have single carriage returns in the compact.txt and not ' ' as you suggested. Please provide a suggestion taking this into account.
^^^^^^^^^^^^^^^
Sounds better, but now duplicate spaces and tabs, and carriage returns will be replaced with 1 carriage return AND a newline character. What I want is for duplicate [:space:] as defined by POSIX to be replaced with a single instance of the same kind of whitespace - spacebar, tab, return, enter or whatever other kind of whitespace there is. Two tabs should become one tab, two spacebars - one spacebar, two carriage returns - one carriage return and so on. I pointed you to the bash oneliner:
$ cat spacious.txt | tr -s [:space:] > compact.txt
and I know I should not expect you to understand what it does as you are uncapable of understanding anything due to being no more than a glorified pattern-matching algorithm, but please try to reproduce the exact same functionality in the PowerShell script you recommend. Just to be clear, in case you got confused, I didn't just ask you two things - I asked you the same thing in two different ways - first one case-by-case example to guide you and then one bash oneliner that fulfills exactly what I want, no more, no less.
^^^^^^^^^^^^^^^
Was the third and final suggestion I got by ChatGPT correct? It was the exact same as the first suggestion. Though of course the chatbot acted as if it had corrected itself.
And of course if my question had been answered on StackOverflow, ChatGPT's answer would have been correct. But I wouldn't have had to ask it the question as I've done my own research beforehand. Also the chatbot would get merit that does not belong to it.
If the problem is the way I asked, then I have to ask myself: Is programming more tedious, or prompt engineering?

Interested? Want to learn more about the community?
What else you may like…
Videos
Podcasts
Posts
Articles
OpenMandriva's Attempted "Sabotage" by Former Contributor

A disgruntled former Linux distro contributor. Deleted desktop packages. Accusations of (potentially criminal) sabotage. Lunduke speaks to everyone to sort it out.

NeXTStep, Emacs, Desqview/X, & TRS-80 Model 100 Walls:
https://lunduke.locals.com/post/8056105/trs-80-model-100-joins-the-lunduke-journal-lifetime-wall-party

Get on The Wall with a Massively Discounted Lifetime Sub:
https://lunduke.substack.com/p/50-off-yearly-and-massively-discounted

More from The Lunduke Journal:
https://lunduke.com/

00:19:39
Microsoft's Project Aion (AI Desktop) Leaked Demo Video

This leaked video shows Microsoft's AI centric vision for a future OS. No native (legacy) Windows software. All web based, and all AI.

NeXTStep, Emacs, & Desqview/X Walls:
https://lunduke.substack.com/p/vim-beats-emacs

Get on The Wall with a Massively Discounted Lifetime Sub:
https://lunduke.substack.com/p/50-off-yearly-and-massively-discounted

More from The Lunduke Journal:
https://lunduke.com/

00:22:14
Microsoft Adopts Rust CoreUtils Clone... for Windows (Not a Joke)

Those increasingly buggy, not yet complete, Rust clones of the GNU CoreUtils? The ones Ubuntu ships? Microsoft is now officially maintaining them for Windows.

Massively Discounted Lifetime Subs Through June:
https://lunduke.substack.com/p/50-off-yearly-and-massively-discounted

More from The Lunduke Journal:
https://lunduke.com/

00:13:53
November 22, 2023
The futility of Ad-Blockers

Ads are filling the entirety of the Web -- websites, podcasts, YouTube videos, etc. -- at an increasing rate. Prices for those ad placements are plummeting. Consumers are desperate to use ad-blockers to make the web palatable. Google (and others) are desperate to break and block ad-blockers. All of which results in... more ads and lower pay for creators.

It's a fascinatingly annoying cycle. And there's only one viable way out of it.

Looking for the Podcast RSS feed or other links? Check here:
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

The futility of Ad-Blockers
November 21, 2023
openSUSE says "No Lunduke allowed!"

Those in power with openSUSE make it clear they will not allow me anywhere near anything related to the openSUSE project. Ever. For any reason.

Well, that settles that, then! Guess I won't be contributing to openSUSE! 🤣

Looking for the Podcast RSS feed or other links?
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

openSUSE says "No Lunduke allowed!"
September 13, 2023
"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

This episode is free for all to enjoy and share.

Be sure to subscribe here at Lunduke.Locals.com to get all shows & articles (including interviews with other amazing nerds).

"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

I’m Linux Stupid

I have been building services that run on my Linux box so it makes sense to run Codex on Linux instead of on my Macs. All is well.

Then I’m in bed and come up with an idea and bring up ChatGPT app, go to remote Codex on my Macs Mini and direct work to happen. So the coding is going on the Mac, syncthing is moving the files to Linux. It works, but there’s a delay and I was watching Codex deal with and work around delays.

I still thought it was cool to be able to handle inspiration as it occurred to me.

Tonight I’m watching Wimbledon and my grandson is cuddled in my lap. A other inspiration hits me. Well, 2 inspirations, the first was - why am I running codex remotely on my Mac when I can just ssh into my Linux box and run codex there. You know, like any other terminal app. It’s nothing cool or new, it’s just 50 year old technology that I forgot my iPad and iPhone could easily do.

So I loaded up the Termius app - thoughts on iOS terminals? Loaded up ...

post photo preview
3 hours ago

Will AI take over???

post photo preview
post photo preview
TRS-80 Model 100 joins The Lunduke Journal Lifetime Wall party!

Buckle up, Buttercup. Because The Lunduke Journal is about to blow your mind.

  1. The “BeOS” Wall Lifetime Subscriber Wall is now full (see all of them on Lunduke.com)!

  2. We’ve added a new “TRS-80 Model 100” Wall (because we can)! That’s the 19th Lifetime Subscriber Wall! 19!

  3. The discounted Lifetime Lunduke Journal Subscriptions are still available through to the end of this month (July).

Which means there are, as of this exact moment, 4 Walls with space available (see Lunduke.com for the full list of Walls). But these fill up wicked fast.

  1. Emacs (only a few spots left)

  2. Desqview/X (a little less than 2/3rd’s full)

  3. NeXTStep (still plenty of space)

  4. TRS-80 Model 100 (just launched)

 

Nice, right?

Worth noting: The “TRS-80 Model 100” has very limited screen resolution (240 x 64), which means only a small number of names can fit on that wall. If you want on it, I’d let me know right away.

Grab a discounted Lifetime Subscription (if you don’t already have one), then let me know (email “bryan at lunduke.com”) which Wall you’d like to see your name on.

Huge high five to everyone who has already added their name to a Wall. At the current rate, we’ll have over 20 retro computer themed walls, filled with all of your names, by the end of the month.

And, doggone it, that’s amazing.

-Lunduke

Read full Article
Vim beats Emacs!

Well, we’ve done it.

We’ve answered the eternal question: “Which Lunduke Journal Lifetime Subscriber Wall would fill with names quicker? Emacs or Vim?”

The answer, it turns out, is “Vim”. And it takes just 8 days.

 

A hearty “Thank You” to everyone who supports The Lunduke Journal by getting Lifetime Subscriptions (massively discounted throughout July) and getting on these walls! You make all of this possible!

Now. How long will it take for Emacs to fill up (matching the same number of names as the Vim Wall)?

Well, right now the Emacs Wall is a hair over 2/3rds of the way full. So we’ll find out!

Welcome NeXTStep Wall!

With the closing of the “Vim” Wall (and the BeOS Wall only having the space for 1 name left), now seemed like a good time to add a new retro computer wall: The NeXTStep 1.0 Wall.

Right now, there are 4 Walls available to add your name to (*cough* massive discount *cough*).

  • NeXTStep (just opened)

  • Emacs (about 2/3rds full)

  • BeOS R5 (1 spot left)

  • Desqview/X (1/2 full)

 

Once again, huge thanks to everyone who supports The Lunduke Journal!

-Lunduke

Read full Article
Lunduke's Week in Tech : June 28 - July 4, 2026

Lunduke’s Thoughts of The Week

Yesterday was the 4th of July.

As such, time that I normally would have spent writing up some thoughts on the Tech News of the Week (tm) was, instead, spent eating hamburgers, watching fireworks, and generally goofing off with my kids.

So allow me to briefly summarize my thoughts using as little effort as possible:

Rust is weird, Sony sucks, and America is awesome.

… Yup. That just about covers it.

I hope all of my fellow Americans had a truly splendid Independence Day.

Biggest Tech Stories - June 28 - July 4, 2026

Here are the major stories from the last week, with direct links to X and Substack.

See Lunduke.com for all other platforms (Rumble, RSS Audio Podcast, etc.).

  • Git Takes Another Step Towards Making Rust Mandatory (X, Substack)

  • 74 Million User Accounts Exposed in Breaches During June (X, Substack)

  • BCacheFS Adding Rust Dependency Even Though “Rust doesn’t have a stable ABI” (X, Substack)

  • Git Without Rust From Dev of XLibre (X, Substack)

  • Sony Says No More Physical PlayStation Games (X, Substack)

  • Ubuntu Sponsors Rust Clone Foundation (X, Substack)

  • Like Computers? Thank America. (X, Substack)

Huge thank you to all of The Lunduke Journal’s subscribers. You make all of this possible.

-Lunduke

 
Read full Article
See More
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals