惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Last Watchdog
The Last Watchdog
博客园_首页
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
美团技术团队
小众软件
小众软件
V
V2EX
博客园 - Franky
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Attack and Defense Labs
Attack and Defense Labs
S
Security Affairs
Simon Willison's Weblog
Simon Willison's Weblog
I
Intezer
T
The Exploit Database - CXSecurity.com
有赞技术团队
有赞技术团队
S
Schneier on Security
人人都是产品经理
人人都是产品经理
Security Archives - TechRepublic
Security Archives - TechRepublic
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
K
Kaspersky official blog
PCI Perspectives
PCI Perspectives
AI
AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
O
OpenAI News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Register - Security
The Register - Security
V
Vulnerabilities – Threatpost
GbyAI
GbyAI
博客园 - 【当耐特】
C
Cisco Blogs
大猫的无限游戏
大猫的无限游戏
Help Net Security
Help Net Security
Google DeepMind News
Google DeepMind News
S
Securelist
Application and Cybersecurity Blog
Application and Cybersecurity Blog
P
Proofpoint News Feed
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
L
LangChain Blog
SecWiki News
SecWiki News
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V2EX - 技术
V2EX - 技术
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
L
LINUX DO - 热门话题
Cisco Talos Blog
Cisco Talos Blog

Latest news

LG G6 vs. LG G5: I compared the latest OLED TV models, and it's a surprisingly tough choice I saw the 'MacBook Pro for Linux users' for the first time, and it's a legit Windows threat I'm putting Motorola above Samsung when it comes to flip phones - and won't think twice I got an early look at ChatGPT Images 2.0, and it's impressive - with one exception I tested Surfshark's new Dausos VPN protocol - here's how it compares to WireGuard How to easily encrypt your files on an Android phone - for free I'm not giving up on DJI cameras yet - not when they can upset my GoPro like this The best website builders for small businesses in 2026: Expert tested and reviewed Why I'm recommending last year's phones over 2026 models - with one exception This powerful Gemini setting made my AI results way more personal and accurate After testing this HP laptop, I get why its 'boring' design is adored by business users The best TV antenna of 2026: Expert tested Your old iPad or Android tablet can be your new smart home panel - here's how Apple's original AirTag still tracks effectively, and you can get a 4-pack for its best price ever T-Mobile will give you an iPad for $99 when you sign up for a new line - here's how How to qualify for Apple's education discount - and get a $499 MacBook Neo for school T-Mobile will give you a Samsung Galaxy Watch 8 for free - how to get yours Prolonged AI use can be hazardous to your health and work: 4 ways to stay safe Verizon will give you a free iPad or Apple Watch with your next iPhone - how the deal works The best laptops of 2026: Expert tested and reviewed I hid 4 Bluetooth trackers (including AirTags) to test their reliability - here's how Android rivals compared I stopped using my iPhone's hotspot after testing this 5G router - and that won't change The best Kindles in 2026: Expert recommended Does Best Buy price match? Everything to know about matching prices online and in-store The best WordPress hosting services of 2026: Expert tested and reviewed The best Apple Watch of 2026: Expert tested and reviewed The best TV screen cleaners of 2026: Expert recommended The best 50-inch TVs of 2026: Expert tested I traded my Sonos Era 300 for Denon's new home speaker - and see no reason to go back AI-powered website builders have come a long way - here's your best option in 2026 Amazon just slashed $250 off the Google Pixel 10 - and a Prime subscription isn't required I found the apps slowing down my PC - how to kill the biggest memory hogs These companies are actually upskilling their workers for AI - here's how they do it Verizon will give you Meta Ray-Bans for free with this Fios Internet deal - how to get yours I tried the new Gemini app for Mac - it has one major advantage over the web version How Google's updated AI Mode will ease your tab clutter when you search Why this MagSafe battery pack is our readers' favorite model right now - especially at its price T-Mobile will give you a Google Pixel 10a for free - plus an extra gift OpenAI's Codex Desktop can run your computer now - and has its own browser Want to build a startup that gets acquired? This founder shares 5 proven tips Google to pay $135M settlement to Android phone users - how to claim your share if you qualify Want to stand out on LinkedIn? Try this career strategist's top 3 tips for strengthening your profile I've used Dell's new XPS 16 for a week, and it's the Windows laptop to beat in 2026 You can get 50% off YouTube Premium for 1 year right now - but the deal ends soon Tidal vs. Qobuz: I tried both hi-res streaming services, and they couldn't be more different This stroller turns into a carry on-suitcase, and I recommend it for traveling parents The best small business VoIP providers of 2026: Expert tested and reviewed Protect your devices with our pick for the best antivirus software, now over 60% off MacBook Neo vs. Surface: Why spiraling RAM prices are bruising Microsoft's PC business but not Apple's I tried Google's new desktop app for Windows, and I'll never search the old way again Microsoft's Windows 11 laptop deal for students comes with a $500 bonus - what's included You can buy an LG B5 OLED for $1,500 off at Best Buy - and it comes with a free 4K TV Why Zorin OS 18.1 is simply the best Linux distro - for anyone Why Netgear just got the first FCC router ban exemption in the US Microsoft's latest Windows update now confirms if your PC is Secure Boot-protected - how it works Can this $70 Linux app make up for the lack of Photoshop? I tried it to find out 'Like handing out the blueprint to a bank vault': Why AI led one company to abandon open source iPhone charging slowly? 6 quick fixes to try before blaming your battery Roku TV vs. Fire Stick: Why I'm looking beyond streaming resolution when comparing the two AI is getting better at your job, but you have time to adjust, according to MIT The best internal communication tools of 2026: Expert tested and reviewed Half of all US employees use AI at work now - and waste almost 8 hours a week doing it I've been subscribed to a data removal service a month now - what I wish I knew sooner You can use Linux 7.0 on these 7 distros today - here's what to expect How I share audio from my Android phone to multiple earbuds (and why it's a big deal) Why the Apple Watch's 20-minute calibration test is worth your time - especially if you're data curious I used the 'Plus Five' rule to fix my iPhone's slow wireless charging - here's how it works 'Job seekers have to be detectives': 3 signs that listing is a scam How the latest Netrunner distro delivers a Linux productivity powerhouse How I boosted my portable solar panels' power by up to 30% - 11 expert-approved tips I see why Ubuntu 26.04 is more than just a performance bump for thrill-seeking gamers As an Android user, this MagSafe wallet is the clearest reason why Qi2 magnets shouldn't be ignored The best Zoom alternatives in 2026: Expert tested and reviewed KDE Linux is the purest form of Plasma I've used in months - but there's a catch LG C6 vs. LG C5: Why the 2025 model is still the smarter OLED TV model buy for me How I disabled 'fast startup' on my Windows 11 laptop to stop overnight battery drain 30 years later, I returned to Enlightenment Linux to test the Elive beta - and it's much better Here's my favorite email trick for cleaning up inbox clutter - automatically The $30 Google TV stick may be the budget Chromecast successor we've been waiting for The best AR and MR glasses in 2026: Expert tested and reviewed This handy electric screwdriver is now 50% off - here's where to snag the deal This Ryobi yard essentials bundle packs a free power tool - how to get yours After trying these boomless headphones in the office, I'm feeling hopeful for the future of work tech I used this EcoFlow battery to run my 3,000-sq-ft home in a blackout - here's how it kept my AC on Microsoft's Windows Insider Program is no longer a confusing mess Forget Shokz: I tried the Suunto Spark earbuds for a month, and they've sold me on air conduction iOS 26.4 brings essential upgrades to your iPhone - including a vital security fix YouTube Premium is getting a price increase in June - but you can save $32 with one change Your router may be vulnerable to Russian hackers, FBI warns: 5 steps to take now I walked 3,000 steps with my Apple Watch, Google Pixel, and Oura Ring - this tracker was most accurate I stopped guessing which AA batteries are dead - this charging station keeps them in check for me My favorite Android Auto find is these hidden shortcuts that are highly customizable AirDrop is coming to older Samsung phones - is yours supported? How to get it early I'm no longer using Google Photos as just a cloud storage - 5 tools that elevate the app The best data removal services of 2026: Expert tested and reviewed The best Samsung TVs of 2026: Expert tested and reviewed The best mobile scanning apps of 2026: Expert tested and reviewed The best HP laptops of 2026: Expert tested and reviewed After using Lenovo's new Yoga laptop, I'm wondering if Windows makers are running out of ideas Samsung S95H vs. Samsung S95F: I compared the OLED TVs and wasn't prepared for the upset
I've reviewed every PDF editor out there - then I had ChatGPT build me a better one
David Gewirtz · 2026-06-15 · via Latest news
img-9754b
David Gewirtz/ZDNET

Follow ZDNET: Add us as a preferred source on Google.


ZDNET's key takeaways

  • Yellow sheet music can confuse playback apps.
  • A command-line Python script solved the PDF problem.
  • Sometimes AI is best used to write the tool.

Recently, my wife, Denise, started singing with her church's choir. She has a lovely singing voice. She needed to practice all the new songs. The songs came in booklets, about the size of a trade paperback, printed on yellow paper. She wanted to scan those booklets into her computer as a PDF, remove the color, and reprint them larger, on 8.5-by-11-inch paper so she wouldn't have to wear her reading glasses to see them.

So one afternoon she came to me. She asked how she could remove the yellow background, but preserve the music itself, so that she could print it out without wasting a huge amount of color printer ink. If she printed it out in black and white, she'd still be using a lot of ink to print out a gray background, which would be even harder to see.

Also: How to use ChatGPT: A beginner's guide to mastering OpenAI's chatbot in 2026

She was also planning to feed the music into PlayScore 2, an app that plays the sheet music so that you can sing along to it. She was concerned the software might not like the background color.

I initially suggested removing the yellow background in Photoshop, but the procedure turned out to be too fiddly. Each image needed slightly different slider settings. It was just too annoying and time consuming to do it that way.

So, I suggested she use ChatGPT. She has a ChatGPT Plus account, so this seemed like a fair option.

Deterministic vs. non-deterministic

I did some tests, using prompts like:

Give me back a PDF I can download where the yellow background has been removed and replaced with white.

You did it correctly, but unfortunately, the text quality is very low resolution. Can you regenerate it in full resolution, please?

Also: This easy prompt trick gave me better AI-generated images - no matter the model

These tests worked, but ChatGPT subtly altered the resulting PDFs. My wife was concerned that ChatGPT might change the notes the words or some other aspect of the original music. She didn't want to sight read and practice it wrong.

ChatGPT and other AIs are "non-deterministic." Webster's defines determinism as, "occurrences in nature, or social or psychological phenomena [that] are causally determined by preceding events or natural laws." In other words, the input always predicts the output.

Algorithmic programming, unlike AI, is deeply deterministic. Granted, programs can go off the deep end, but they do so in a way that can ultimately be predicted from the exact arrangement of code and variables.

AIs are non-deterministic. This means that you could feed in the exact same input three or four times, and get three or four different results back. It's kind of like talking to a plumber or an electrician. AIs base their results on a complex series of probability calculations, so the results can change with each pass.

Also: ChatGPT's new memory upgrade is powerful - and could poison every answer it gives you

Denise has experienced this in her interactions with ChatGPT. She most definitely didn't want to give ChatGPT her music and get back something where ChatGPT took liberties with the masters.

She wanted a tool to remove background color that was strictly deterministic.

Python can do that

For my final program in my Harvard Python programming certification, I wrote an interactive image management tool that was able to do individual Photoshop-like image transformations, and batch them together in sequences. So I knew that Python has the libraries to accomplish what Denise wanted.

Also: I stopped using ChatGPT for everything: These AI models beat it at research, coding, and more

I, on the other hand, didn't have the time to write a Python program to do that. It was a very busy week. I had a long backlog of work-related projects I needed to power though.

But ChatGPT has all the time in the world. This is where things get cool. You can use a non-deterministic tool like ChatGPT to generate a deterministic program, like a Python decoloring tool. If you want to read a really interesting article on AI determinism vs. non-determinism, read this by former ZDNETer Jason Perlow.

In any case, I decided to ask ChatGPT to write a Python script that would do the color removal. To create the script, I gave it this prompt, and then went into the kitchen to help my wife prepare dinner.

Write a python script that takes in a jpeg and sets any pixels that are not gray or black to white, saving it back out as name-decolor.jpg where name is the file name. Allow slightly tinted grays so that black text on a colored background will render properly as black text. Can you do the same thing if a PDF is presented? It also needs to work if the PDF is multiple pages.

By the time dinner was done, so was ChatGPT. The first version of the script had a few issues because I needed to install a Python library. But after that, it just ran.

It works very simply. You execute the program decolor_pdf.py from the command line, feeding it a single PDF file. It outputs a new PDF file with the background color removed.

% python decolor_pdf.py input.pdf

Does it work?

Yeah, it does. If you want to download a copy for yourself, it's on my GitHub repo. My wife was concerned about me using screenshots in this article from the copyrighted church hymnals, so visited the New York Public Library's website and grabbed a public domain song to demonstrate.

side-by-side
Image: New York Public Library (and my Python program)

This is a song by jazz great Fats Waller, who also wrote several musicals. It's a bit of a racy song, using horse racing metaphors to describe changing lovers. It was co-written with Andy Razaf, known for writing the lyrics to songs as "Ain't Misbehavin'" and "Honeysuckle Rose".

Helpful lessons

So there are a few helpful takeaways from this experience.

  • If you want the AI's help, you don't always need to rely on non-deterministic processing. Sometimes, you can just ask for it to write you a program that works based on a reliable algorithm.
  • You also don't have to spend a lot of time on creating a look or UI. Sometimes creating a simple command-line tool will get the job done.
  • Don't be afraid to refine your spec with the AI. Try out what it creates and then ask for tweaks and fixes.
  • Python can do a lot. There are many, many libraries so if you're not sure what you want to use, build it in Python.

So there you go. If you need a quick solution to something, try asking ChatGPT to write it for you. Worked for me and I was able to give my wife a workable tool and help de-chickelate a rotisserie chicken at the same time.

Also: I tested ChatGPT Images 2.0 vs. Gemini Nano Banana to see which is better - this model wins

Have you ever avoided using AI directly because you were worried it might subtly change the original file? Let us know in the comments below.


You can follow my day-to-day project updates on social media. Be sure to subscribe to my weekly update newsletter, and follow me on Twitter/X at @DavidGewirtz, on Facebook at Facebook.com/DavidGewirtz, on Instagram at Instagram.com/DavidGewirtz, on Bluesky at @DavidGewirtz.com, and on YouTube at YouTube.com/DavidGewirtzTV.

Featured