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
Linux App Store Bans Software Touched by AI in Any Way

Flathub Team: "Applications containing Al-generated or Al-assisted code, documentation, or other content are not allowed."

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:14:04
Microsoft to Brick Office 2019 for Mac

On July 13th, Microsoft plans to intentionally disable all purchased copies of Office 2019 for Mac. Even though these were "permanent" licenses.

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:14:14
Rust Re-Write of GNU CoreUtils Has New, Even Buggier Release

The 0.9 release of Uutils (the Rust clone of GNU CoreUtils shipped by Ubuntu), is now failing more tests, with more bugs, than the previous release.

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:20:07
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

Heads up: Locals is having some trouble processing videos this morning.

The latest show is up on all other platforms, and it will appear here on Locals as soon as it works again. (Should be quick, the Locals team is usually pretty on top of this stuff.)

3 hours ago

I would say I should have taken up capentry. But I know I was never good at it.

Bots Surpass Humans in Global Web Traffic for the First Time in Internet History
https://cybersecuritynews.com/bots-surpass-humans-in-web-traffic/

"...
The United States paints an even starker picture, with bot traffic commanding a staggering 71.5% share of domestic web requests, underscoring how deeply AI-driven automation has penetrated the world’s most connected markets.
..."

Arc 3 - the final 8 episodes of Rogue AI In Progress

My grandson and I are hanging out. He's "I wanna watch iPad Pawpaw" - sshh, it's really a refurbed Android tablet from Walmart. He's watching Blippi videos on Kids Youtube.

I'm watching the French Open and I have my iPad too. I'm using it to kick off the writing of arc 3 via Codex running on my Mac mini. The "run codex remotely" feature is very nice. I already have everything set up from the first 16 episodes. It's just me directing Codex to get to work and by gosh durn, actually use all those writing agents we defined.

More hanging out with the grandson and watching tv as my AI staff runs the process I have defined. Book constitution, character maps, the works. This is no "write me a book" prompt.

Now it's time for review. I'm using Claude code to do the review. He's spun up 12 different review agents and is running them simultaneously.

Claude:
The review workflow is running. Here's what's happening:

Phase 1 — 12 specialized review agents running in ...

post photo preview
Windows 1.0 Wall almost full! Last call!

Holy Guacamole, Batman!

The 8th Lifetime Subscriber Wall (“The Windows 1.0 Wall”) of The Lunduke Journal launched exactly one week ago… and it’s already almost full! Bonkers!

 

At the current rate, the “Windows 1.0 Wall” will be full sometime tomorrow (Saturday).

Want your name immortalized in that glorious 1985 styled goodness, proclaiming to the world your support of The Lunduke Journal?

Don’t have a Lifetime Subscription?

  1. Grab one for $125 (normally $300).

  2. You’ll get a confirmation email (within just a few hours). Reply to that email with how you would like your name displayed on a Lifetime Wall.

  3. Then enjoy the other perks of being Lunduke Journal subscriber. Forum access, MP4 downloads, and PDF eBooks.

Already have a Lifetime Subscription?

  1. Just toss an email to bryan [at] lunduke.com with how you would like your name displayed on a Lifetime Wall.

Easy peasy.

First come, first served. Once the “Windows 1.0 Wall” is full, the final version will be added to Lunduke.com and the 9th Lifetime Wall will debut!

-Lunduke

Read full Article
The "Windows 1.0" Lunduke Lifetime Wall is here!

Two awesome tidbits:

  1. The 7th Lifetime Subscriber Wall (aka “The Solaris Wall”) is full! No room for any more names! You can see the final version on the bottom of Lunduke.com (and at the end of new shows).

  2. The 8th Lifetime Wall will make its debut on Monday! The retro computing platform chosen for Wall number 8 will be… Windows 1.0!

If you would like to see your name immortalized in a screenshot of the very first version of Windows, from 1985, displayed on both Lunduke.com & at the end of all Lunduke Journal shows (you know you do):

Support the Lunduke Journal… and, at the same time, have your name immortalized in a screenshot of the operating system with (arguably) the worst color scheme in human history.

It’s a win-win.

 

-Lunduke

Read full Article
post photo preview
Lifetime "Solaris" Wall almost full!

Just a quick heads up that the 7th “Lunduke Journal Lifetime Subscriber Wall”, aka “The Solaris Wall”, is almost full!

The Solaris Wall has enough space for maybe 6 or 7 more names (depending on name length)… before we lock it down and move on to Wall Number 8 (which will be another retro computing platform).

Hard to say how long until the Solaris Wall is full… but no more than a few days. These things fill up fast.

First come, first served.

Huge thank you to every subscriber. The Lunduke Journal wouldn’t be possible without you. You rule.

-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