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
OpenAI Buys Seat on Rust Board for $600K

How much is it worth, to the maker of ChatGPT, to have control of The Rust Foundation? $600,000 apparently.

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:09:10
SteamOS Ditches X11 for Wayland

Valve's Arch-based SteamOS Linux distro (primarily for Steam Decks) has switched to Wayland by default to comply with KDE's upcoming "Wayland Only" policy.

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:10:57
Islamic Terrorists Attack Disney+

The Iran & Hamas aligned "313 Team" is claiming credit for a Disney+ outage this evening. The same Islamic cyber terrorists previously attacked Ubuntu, Microsoft, OpenAl, Cloudflare, & others.

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:08:37
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
2 hours ago

"There's a Secret Backdoor in Netgear" Routers, ft. Wendell of Level1 Techs - YouTube

17 hours ago

Job Search in the AI Era

Turns out I wasn’t a match for my new job. So life goes. I lost my job today.

Since getting let go, I’ve basically become the manager of a small AI staff: job-search agents, business-development agents, research agents, outreach agents, and a Chief of Staff agent that coordinates them and produces daily executive briefings.

My role is increasingly strategy, prioritization, and review rather than doing every task personally.

An agent went through 174 LinkedIn conversations from the last year and identified the 20 most promising follow-ups.

I have another agent scouring company job postings — something I almost never do myself.

Another revamped my resume.

I came up with two consulting business ideas and built autonomous loops around them. Each hour, the agents wake up, assess progress, add ideas to a backlog, prioritize, select the most important thing they can do without me, and do it. They also maintain a separate list of things that require my involvement.

So ...

11 hours ago

Rob Braxman is going to begin offering SIM cards without identity validation. Stay anonymous on your phone.

placeholder
post photo preview
"C64" & "BeOS" Lunduke Journal Lifetime Walls open!

The “TempleOS” and “Macintosh System 1” Lunduke Journal Lifetime Subscriber Walls are full! Those suckers filled up in a single week! (You can check them all out at Lunduke.com.)

But, behold! The “Commodore 64” and “BeOS R5” Walls are now available to add your names to!

  • Windows 2000 : 2 spots left

  • Commodore 64 : Space available

  • BeOS R5 : Space available

 

Those last two spots on the Windows 2000 Wall won’t last long. And, honestly, I expect the C64 Wall to by full pretty quickly.

Don’t have a Lifetime Subscription yet?

Already have a Lifetime Subscription to The Lunduke Journal?

  • Email “bryan at lunduke.com” with which Wall you would like to be on, and how you’d like your name displayed (nickname, full name, etc.).

There are roughly 12 days left in June. How many Retro Computer themed Lifetime Walls can we fill up before the end of the month? Let’s find out!

Huge thank you to each and every one of you! You make The Lunduke Journal possible.

-Lunduke

Read full Article
post photo preview
Lunduke's Week in Tech : June 7 - June 13, 2026

It has been, yet another, weird and wild week in the world of Tech and Open Source.

Filled with awesome and inspiring stories (Linux logos on Race cars!)… mixed with bizarre, Woke politics and concerning technical news.

And, as usual, all but one of the big stories this week were completely ignored by the other of the Tech News outlets.

Here are the major stories from the last week, with direct links to X and Substack. You can also watch / listen on a bunch of other platforms (Rumble, RSS Audio Podcast, etc.), listed on Lunduke.com.

  • Rust-Based Malware Hits 1.4% of Arch User Repository (X, Substack)

  • Godot Game Engine Promotes Extreme, Pro-Trans "Pronoun Palace" Game (X, Substack)

  • GNOME in Damage Control Mode After Revelations from Ex Board Member (X, Substack)

  • Proton Mail Apologizes for Sponsoring "Far Right French YouTuber" (X, Substack)

  • Ex Board Member Reveals Corruption & Dysfunction at GNOME Foundation (X, Substack)

  • AI Generated Patches to Linux Kernel Hits New Record High (X, Substack)

  • Linux Logos on Racecars (X, Substack)

  • XLibre Turns One Year Old (X, Substack)

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

-Lunduke

Read full Article
post photo preview
TempleOS arrives on The Lunduke Journal Lifetime Wall

“When are you going to add a TempleOS Lifetime Wall??!”

I’ve lost track of the number of times I’ve received that request over the last few weeks. Well. What the heck! Why not?

There are now three Lunduke Journal Lifetime Subscriber Walls (displayed both on Lunduke.com and the end of all new shows) with space available:

  • Macintosh System 1

  • Windows 2000

  • TempleOS

 

A few quick notes:

  1. The Windows 2000 Wall, which was introduced only 2 days ago, is already about half way full. At the current rate, that one will likely be full by the end of the week. Still plenty of space on the Mac System 1 Wall.

  2. The discount on Lifetime Subscriptions ($125… discounted from the normal $300) runs through the end of June.

  3. One Lifetime Subscription = Name Listed on One Wall. These Walls are crazy popular and fill up super fast, so I have to put that limit in place.

  4. Want your name on more than one Lifetime Wall? Grab a second Lifetime Subscription (use the discounted rate) and you can have your name added to one of the Walls with space still available.

Massive high five to everyone who has supported The Lunduke Journal and made these retro-computer Lifetime Walls so much fun to do!

-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