Computer
Citizen Scientists Just Helped Discover Nearly 8,000 New Eclipsing Binary Stars
Read more of this story at Slashdot.
CodeSOD: All Locked Up
Dan was using a third-party database which provided a PHP API. At one point, Dan was running into an issue where he actually needed locks on the database. Fortunately for him, the vendor documentation told him that there was a method called obtainRowLock.
obtainRowLock($table, $where) - Attempt to lock a row, will escalate and lock the table if row locking is not supported, will escalate and lock the database if table locking is not supported; returns true on success, false on failure
$table - name of table to lock
$where - WHERE clause to define rows, ex: "WHERE id=52". If left empty, function will assume a table lock
That was exactly what Dan needed, so he called it. It returned false, implying a failure. He changed the parameters. He discarded his where clause. He tried all sorts of things, and it always returned false. So he dug into the source code, to see how it actually worked.
function obtainRowLock($table, $where) { return false; }Is it truly a failure if you don't even try?
[Advertisement] Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.Learn more.Google DeepMind's Spinoff Company 'Very Close' to Human Trials for Its AI-Designed Drugs
Read more of this story at Slashdot.
Chinese Film Foundation Plans to Use AI to 'Revitalize' 100 Classic Kung Fu Films
Read more of this story at Slashdot.
Recent College Graduates Face Higher Unemployment Than Other Workers - for the First Time in Decades
Read more of this story at Slashdot.
Simulation of Crashed Boeing 787 Put Focus on a Technical Flaw
Read more of this story at Slashdot.
Drones Used by California Cities to Patrol for Illegal Fireworks and Issue Fines
Read more of this story at Slashdot.
Is China Quickly Eroding America's Lead in the Global AI Race?
Read more of this story at Slashdot.
The FSF Faces Active 'Ongoing and Increasing' DDoS Attacks
Read more of this story at Slashdot.
Interstellar Navigation Demonstrated for the First Time With NASA's 'New Horizons'
Read more of this story at Slashdot.
Police Department Apologizes for Sharing AI-Doctored Evidence Photo on Social Media
Read more of this story at Slashdot.
These Tiny Lasers Are Completely Edible
Read more of this story at Slashdot.
Diffusion + Coding = DiffuCode. How Apple Released a Weirdly Interesting Coding Language Model
Read more of this story at Slashdot.
'Vibe Coder' Who Doesn't Know How to Code Keeps Winning Hackathons in San Francisco
Read more of this story at Slashdot.
Tesla Launches Solar-Powered 'Oasis' Supercharger Station: 30-Acre Solar Farm, 39 MWh of Off-Grid Batteries
Read more of this story at Slashdot.
How Do You Teach Computer Science in the Age of AI?
Read more of this story at Slashdot.
KDE Plasma 6.4 Has Landed in OpenBSD
Read more of this story at Slashdot.
UK Scientists Achieve First Commercial Tritium Production
Read more of this story at Slashdot.
Microsoft Open Sources Copilot Chat for VS Code on GitHub
Read more of this story at Slashdot.
A Common Assumption About Aging May Be Wrong, Study Suggests
Read more of this story at Slashdot.