Feed aggregator
Claude Code Gets a Web Version
Read more of this story at Slashdot.
Hackers Say They Have Personal Data of Thousands of NSA and Other Government Officials
Read more of this story at Slashdot.
Louvre Museum Security 'Outdated and Inadequate' at Time of Heist
Read more of this story at Slashdot.
Nvidia CEO Says Company Went from 95% to 0 Market Share in China
Read more of this story at Slashdot.
Google To Let 'Superfans' Test In-Development Pixel Phones
Read more of this story at Slashdot.
OpenAI's 'Embarrassing' Math
Read more of this story at Slashdot.
The Sims Mobile is Shutting Down Next Year
Read more of this story at Slashdot.
China Accuses NSA of Hacking National Timekeeping Agency
Read more of this story at Slashdot.
Experts Hail 'Remarkable' Success of Electronic Implant in Restoring Sight
Read more of this story at Slashdot.
Peanut Allergies Have Plummeted in Children, Study Shows
Read more of this story at Slashdot.
India Draft Plan Reveals $21 Trillion Net-Zero Investment Need
Read more of this story at Slashdot.
Are We Living in a Golden Age of Stupidity?
Read more of this story at Slashdot.
AWS Outage Takes Thousands of Websites Offline for Three Hours
Read more of this story at Slashdot.
Should We Edit Nature to Help It Survive Climate Change?
Read more of this story at Slashdot.
'The AI Revolution's Next Casualty Could Be the Gig Economy'
Read more of this story at Slashdot.
Representative Line: The Batch Managing Batch File
Carl was debugging a job management script. The first thing that caught his attention was that the script was called file.bat. They were running on Linux.
The second thing he noticed, was that the script was designed to manage up to 999 jobs, and needed to simply roll job count over once it exceeded 999- that is to say, job 1 comes after job 999.
Despite being called file.bat, it was in fact a Bash script, and thus did have access to the basic mathematical operations bash supports. So while this could have been done via some pretty basic arithmetic in Bash, doing entirely in Bash would have meant not using Awk. And if you know how to use Awk, why would you use anything but Awk?
njobno=`echo $jobno | awk '{if ($0<999) {print $0 + 1} else { print 1 }}'`As Carl writes: "I don't mind the desire to limit job count by way of mod(1000) but what an implementation!"
[Advertisement] Keep the plebs out of prod. Restrict NuGet feed privileges with ProGet. Learn more.Windows 11 Update Breaks Recovery Environment, Making USB Keyboards and Mice Unusable
Read more of this story at Slashdot.
Was the Web More Creative and Human 20 Years Ago?
Read more of this story at Slashdot.
A Plan for Improving JavaScript's Trustworthiness on the Web
Read more of this story at Slashdot.
Should Workers Start Learning to Work With AI?
Read more of this story at Slashdot.
