Computer
Opendoor Cuts Jobs in India, Shifts Technical Hiring To Bay Area and Krakow
Read more of this story at Slashdot.
Google Will Use Machine Learning To Estimate a User's Age
Read more of this story at Slashdot.
Tech Leaders Hold Back on AI Agents Despite Vendor Push, Survey Shows
Read more of this story at Slashdot.
Children's Arithmetic Skills Do Not Transfer Between Applied and Academic Mathematics
Read more of this story at Slashdot.
Apple Explores Robotics Push For Smart Home Market, Analyst Says
Read more of this story at Slashdot.
Google Fixes Flaw That Could Unmask YouTube Users' Email Addresses
Read more of this story at Slashdot.
Ex-Google Chief Warns West To Focus On Open-Source AI in Competition With China
Read more of this story at Slashdot.
How 3D-Printed Parts Changed the NASCAR Cup Series
Read more of this story at Slashdot.
Man Who Hijacked SEC's X Account To Pump Bitcoin Faces Up To 5 Years In Prison
Read more of this story at Slashdot.
The Mystery Behind the Best UFO Picture Ever Seen
Read more of this story at Slashdot.
CodeSOD: Finally, a Null
Eric writes:
Yes, we actually do have code reviews and testing practices. A version of this code was tested successfully prior to this version being merged in, somehow.
Well, that's ominous. Let's look at the code.
public static SqsClient create() { try { SqsClient sqsClient = SqsClient.builder() ... .build(); return sqsClient; } catch (Exception e) { log.error("SQS - exception creating sqs client", e); } finally { // Uncomment this to test the sqs in a test environment // return SqsClient.builder(). ... .build(); return null; } }Eric found this when he discovered that the application wasn't sending messages to their queue. According to the logs, there were messages to send, they just weren't being sent.
Eric made the mistake of looking for log messages around sending messages, when instead he should have been looking at module startup, where the error message above appeared.
This code attempts to create a connection, and if it fails for any reason, it logs an error and returns null. With a delightful "comment this out" for running in the test environment, which, please, god no. Don't do configuration management by commenting out lines of code. Honestly, that's the worst thing in this code, to me.
In any case, the calling code "properly" handled nulls by just disabling sending to the queue silently, which made this harder to debug than it needed to be.
.comment { border: none; } [Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!New Hack Uses Prompt Injection To Corrupt Gemini's Long-Term Memory
Read more of this story at Slashdot.
'Ne Zha 2' Becomes First Non-Hollywood Film To Hit $1 Billion
Read more of this story at Slashdot.
'Serial Swatter' Who Made Nearly 400 Threatening Calls Gets 4 Years In Prison
Read more of this story at Slashdot.
KDE Plasma 6.3 Released
Read more of this story at Slashdot.
Tumblr To Join the Fediverse After WordPress Migration Completes
Read more of this story at Slashdot.
PassMark Sees the First Yearly Drop In Average CPU Performance In Its 20 Years
Read more of this story at Slashdot.
AUKUS Blasts Holes In LockBit's Bulletproof Hosting Provider
Read more of this story at Slashdot.
Thomson Reuters Wins First Major AI Copyright Case In the US
Read more of this story at Slashdot.
Anduril To Take Over Managing Microsoft Goggles for US Army
Read more of this story at Slashdot.