Feed aggregator
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.
GM Taps Nvidia To Boost Its Self-Driving Projects
Read more of this story at Slashdot.
Nvidia Reveals Next-Gen AI Chips, Roadmap Through 2028
Read more of this story at Slashdot.
US Appeals Court Rejects Copyrights For AI-Generated Art
Read more of this story at Slashdot.
Vance Slams Globalization For Hampering American Innovation
Read more of this story at Slashdot.
The First New Pebble Smartwatches Are Coming Later This Year
Read more of this story at Slashdot.
Why Are the Most Expensive Netflix Movies Also the Worst?
Read more of this story at Slashdot.
Meta's Llama AI Models Hit 1 Billion Downloads, Zuckerberg Says
Read more of this story at Slashdot.
Apple Loses German Antitrust Appeal, Opening Door for Greater Controls
Read more of this story at Slashdot.