Feed aggregator
Meta Confirms It Will Use Ray-Ban Smart Glasses Images for AI Training
Read more of this story at Slashdot.
Google's AI Search Summaries Officially Have Ads
Read more of this story at Slashdot.
Rival Browsers Allege Microsoft's Practices on Edge Unfair
Read more of this story at Slashdot.
NSO Should Lose Spyware Case for Discovery Violations, Meta Says
Read more of this story at Slashdot.
OpenAI Gets $4 Billion Revolving Credit Line, Giving It More Than $10 Billion in Liquidity
Read more of this story at Slashdot.
PayPal Completes Its First Business Transaction Using Stablecoin
Read more of this story at Slashdot.
WP Engine Sues WordPress for Libel, Extortion
Read more of this story at Slashdot.
Private Equity Firms Ploughing Billions Into Fossil Fuels, Analysis Reveals
Read more of this story at Slashdot.
Americans Are Growing Wary of Jumping Jobs
Read more of this story at Slashdot.
Enel X Way's JuiceBox EV Chargers About To Lose All Connectivity Features
Read more of this story at Slashdot.
CodeSOD: Library Checkout
Alexander doesn't usually ask "why are you hiring for this position?" during an interview. But when a small public library is paying your rather high contracting rate, one can't help but wonder. Fortunately, the library offered their reasoning without Alexander asking: "We hired a new staff member, so we need a programmer to add them to our home page."
Alexander assumed that he was dealing with a client who couldn't figure out how to navigate their CMS, and scheduled an afternoon to do the work. It turned out to be a bit more complicated.
The site had an "email a staff member" form. Select a staffer from a drop down, type into a text box, and hit send. Not a single staff member had ever received an email through the interface, but they all agreed it was a good feature to have, even if no one used it.
The relationship between staff members and email addresses was stored in a database. I'm kidding, why would you use a database for that? It was stored in a PHP file called mail_addresses.php:
/* please maintain alphabetical order */ $name=array('Alex'=>'alex@library.com', /* snip a few lines here */ 'Maria'=>'maria@library.com', 'Neil'=>'neil@library.com', /* snip a few lines here */ , 'zoe'=>'zoe@library.com');This is why they felt that they needed a programmer to make changes. No one was comfortable editing PHP code.
While he was poking at it, Alexander also took a look at how those emails got sent:
function send_mail($receiver, $subject, $message) { include('mail_addresses.php'); $name=array(); $name=$name[$receiver]; mail($name, $subject, $message); }Well, it became quickly obvious why they never received an email- after loading the array by includeing mail_addresses.php they immediately overwrite the array with $name=array().
Fixing that issue was easy, even if it wasn't part of the contract. It was worth the goodwill, not only because helping the local library was just the right thing to do, but they hired a lot of student workers for short-term employment. The mail_addresses.php file changed a lot, and they always needed a programmer to edit it.
[Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise. -->Attackers Exploit Critical Zimbra Vulnerability Using CC'd Email Addresses
Read more of this story at Slashdot.
World Wide Web Foundation is Shutting Down
Read more of this story at Slashdot.
Police Arrest Four Suspects Linked To LockBit Ransomware Gang
Read more of this story at Slashdot.
Meta Hit With New Author Copyright Lawsuit Over AI Training
Read more of this story at Slashdot.
Cisco Is Abandoning the LoRaWAN Space With No Lifeboat For IoT Customers
Read more of this story at Slashdot.
Court Blocks Uber Crash Lawsuit After Couple's Daughter Agreed To Uber Eats TOS
Read more of this story at Slashdot.
The Feds Still Can't Get Into Eric Adams' Phone
Read more of this story at Slashdot.
Bank of America Is Down: Users Report Their Accounts Showing Empty Balance
Read more of this story at Slashdot.
Hurricane Helene Took Out NC Town the Entire Tech World Relies On
Read more of this story at Slashdot.