Computer
Plex Raises Premium Subscription Prices for First Time in Decade
Read more of this story at Slashdot.
EU Orders Apple To Open Ecosystem To Rivals
Read more of this story at Slashdot.
AI Crawlers Haven't Learned To Play Nice With Websites
Read more of this story at Slashdot.
More Than 150 'Unprecedented' Climate Disasters Struck World in 2024, Says UN
Read more of this story at Slashdot.
FedEx Data Scraping and Telecom Insider Bribes Powered Nationwide iPhone Theft Operation
Read more of this story at Slashdot.
Microsoft Quantum Computing Claim Still Lacks Evidence
Read more of this story at Slashdot.
Sony Unveils RGB LED Backlight Tech That Outperforms Traditional Mini LED
Read more of this story at Slashdot.
Five Charged In European Parliament Huawei Bribery Probe
Read more of this story at Slashdot.
The Effect of Application Fees on Entry into Patenting
Read more of this story at Slashdot.
Nvidia Says 'the Age of Generalist Robotics Is Here'
Read more of this story at Slashdot.
CodeSOD: Reliability Test
Once upon a time, Ryan's company didn't use a modern logging framework to alert admins when services failed. No, they used everyone's favorite communications format, circa 2005: email. Can't reach the database? Send an email. Unhandled exception? Send an email. Handled exception? Better send an email, just in case. Sometimes they go to admins, sometimes they just go to an inbox used for logging.
Let's look at how that worked.
public void SendEMail(String receivers, String subject, String body) { try { System.Net.Mail.SmtpClient clnt = new System.Net.Mail.SmtpClient(ConfigurationManager.AppSettings["SmtpServer"]); clnt.Send(new System.Net.Mail.MailMessage( ConfigurationManager.AppSettings["Sender"], ConfigurationManager.AppSettings["Receivers"], subject, body)); } catch (Exception ex) { SendEMail( ConfigurationManager.AppSettings["ErrorLogAddress"], "An error has occurred while sending an email", ex.Message + "\n" + ex.StackTrace); } }They use the Dot Net SmtpClient class to connect to an SMTP server and send emails based on the configuration. So far so good, but what happens when we can't send an email because the email server is down? We'll get an exception, and what do we do with it?
The same thing we do with every other exception: send an email.
Ryan writes:
Strangely enough, I've never heard of the service crashing or hanging. We must have a very good mail server!
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!Researchers Engineer Bacteria To Produce Plastics
Read more of this story at Slashdot.
Italian Newspaper Says It Has Published World's First AI-Generated Edition
Read more of this story at Slashdot.
Microsoft Isn't Fixing 8-Year-Old Shortcut Exploit Abused For Spying
Read more of this story at Slashdot.
Gavin Newsom Is Reportedly Sending Burner Phones To Tech CEOs
Read more of this story at Slashdot.
US Music Streaming Tops 100 Million Subscribers; Vinyl Outsells CDs For Third Year
Read more of this story at Slashdot.
Starliner Astronauts Return To Earth After More Than 9 Months In Space
Read more of this story at Slashdot.
FTC Removes Posts Critical of Amazon, Microsoft, and AI Companies
Read more of this story at Slashdot.
VW's Cheapest EV Is First To Use Rivian Software
Read more of this story at Slashdot.
Dutch Parliament Calls For End To Dependence On US Software Companies
Read more of this story at Slashdot.