How Kim Kardashian's response to Kanye West's vile antisemitic outbursts is said to be causing family friction with Scott Disick
Gun maker converted weapons linked to murders in his Dagenham 'workshop' in garden shed
Liam Payne 'smoked heroin, sexted fans and struggled with his identity': Singer's ex Maya Henry breaks her silence on his death as insiders make bombshell claims
Breakthrough as Oxford scientists say they've achieved teleportation
Essex businessman who scammed 184 people selling fake cruises and 'lived the high life' with their money jailed
Teenager, 15, accused for rape among those arrested during police operation
Teenagers admit starting fire that killed pensioner, 76, in his Essex border home
Ignorance really is bliss when you’re drowning in information
Column I've never seriously accepted the maxim "ignorance is bliss". Now I'm less sure.…
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; }Mindy Kaling is unrecognizable after losing even more weight following secret third baby amid Ozempic rumors
Witham charity helping homeless receives grant to help complete vital repairs
Burlesque teacher welcomes all to her 'fun and empowering' dance school
New Look's pretty £33 denim vest perfect for Spring that shoppers 'love'
Extended “Blackwell” GPU Ramp Cools Growth At Supermicro
Nvidia may be shipping its “Blackwell” B100, B200, and GB200 compute engines, but not in enough volumes for server maker Supermicro to meet its revenue expectations in the quarter ended in December. …
Extended “Blackwell” GPU Ramp Cools Growth At Supermicro was written by Timothy Prickett Morgan at The Next Platform.
New Hack Uses Prompt Injection To Corrupt Gemini's Long-Term Memory
Read more of this story at Slashdot.