Feed aggregator
Valve To Drop Steam Support For 32-Bit Windows Versions Next Year
Read more of this story at Slashdot.
SoftBank Vision Fund To Lay Off 20% of Employees in Shift To Bold AI Bets
Read more of this story at Slashdot.
This Microsoft Entra ID Vulnerability Could Have Been Catastrophic
Read more of this story at Slashdot.
Error'd: You Talkin' to Me?
The Beast In Black is back with a simple but silly factual error on the part of the gateway to all (most) human knowledge.
B.J.H. "The old saying is "if you don't like the weather wait five minutes". Weather.com found a time saver." The trick here is to notice that the "now" temperature is not the same as the headline temperature, also presumably now.
"That's some funny math you got there. Be a shame if it was right," says Jason . "The S3 bucket has 10 files in it. Picking any two (or more) causes the Download button to go disabled with this message when moused over. All I could think of is that this S3 bucket must be in the same universe as https://thedailywtf.com/articles/free-birds " Alas, we are all in the same universe as https://thedailywtf.com/articles/free-birds .
"For others, the markets go up and down, but me, I get real dividends!" gloats my new best friend Mr. TA .
David B. is waiting patiently. "Somewhere in the USPS a package awaits delivery. Either rain, nor snow, nor gloom of night shall prevent the carrier on their appointed rounds. When these rounds will occur are not the USPS's problem." We may not know the day, but we know the hour!
[Advertisement] Keep the plebs out of prod. Restrict NuGet feed privileges with ProGet. Learn more.
Microsoft is Filling Teams With AI Agents
Read more of this story at Slashdot.
China's Future Rests on 200 Million Precarious Workers
Read more of this story at Slashdot.
Intel Says Blockbuster Nvidia Deal Doesn't Change Its Own Roadmap
Read more of this story at Slashdot.
Google Adds Gemini To Chrome Desktop Browser for US Users
Read more of this story at Slashdot.
FTC and Seven States Sue Ticketmaster Over Alleged Coordination With Scalpers
Read more of this story at Slashdot.
Samsung Brings Ads To US Fridges
Read more of this story at Slashdot.
China's DeepSeek Says Its Hit AI Model Cost Just $294,000 To Train
Read more of this story at Slashdot.
Amazon Violated Online Shopper Protection Law, Judge Rules Ahead of Prime Signup Trial
Read more of this story at Slashdot.
$599 MacBook With iPhone Chip Expected To Enter Production This Year
Read more of this story at Slashdot.
How Americans View AI and Its Impact on People and Society
Read more of this story at Slashdot.
Gen Z Leads Biggest Drop In FICO Scores Since Financial Crisis
Read more of this story at Slashdot.
Nvidia To Invest $5 Billion in Intel
Read more of this story at Slashdot.
LimeWire Acquires Fyre Festival Brand
Read more of this story at Slashdot.
Color-Changing Organogel Stretches 46 Times Its Size and Self-Heals
Read more of this story at Slashdot.
CodeSOD: An Echo In Here in here
Tobbi sends us a true confession: they wrote this code.
The code we're about to look at is the kind of code that mixes JavaScript and PHP together, using PHP to generate JavaScript code. That's already a terrible anti-pattern, but Tobbi adds another layer to the whole thing.
if (AJAX) { <?php echo "AJAX.open(\"POST\", '/timesheets/v2/rapports/FactBCDetail/getDateDebutPeriode.php', true);"; ?> AJAX.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); AJAX.onreadystatechange = callback_getDateDebutPeriode; AJAX.send(strPostRequest); } if (AJAX2) { <?php echo "AJAX2.open(\"POST\", '/timesheets/v2/rapports/FactBCDetail/getDateFinPeriode.php', true);"; ?> AJAX2.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); AJAX2.onreadystatechange = callback_getDateFinPeriode; AJAX2.send(strPostRequest); }So, this uses server side code to… output string literals which could have just been written directly into the JavaScript without the PHP step.
"What was I thinking when I wrote that?" Tobbi wonders. Likely, you weren't thinking, Tobbi. Have another cup of coffee, I think you need it.
All in all, this code is pretty harmless, but is a malodorous brain-fart. As for absolution: this is why we have code reviews. Either your org doesn't do them, or it doesn't do them well. Anyone can make this kind of mistake, but only organizational failures get this code merged.
[Advertisement] Keep the plebs out of prod. Restrict NuGet feed privileges with ProGet. Learn more.China Is Sending Its World-Beating Auto Industry Into a Tailspin
Read more of this story at Slashdot.