Musk exposes chilling new conspiracy against him and Tesla: 'I've never seen anything like this'
The chance drive-by that stopped Britain's worst school massacre: How quiet 'geeky' teen, 19, plotted Britain's own Sandy Hook after slaughtering his family before being stopped by police
Father-of-six's excruciating battle with rare skin disease covering 50 percent of his body in black lesions
Boffins 3D-print artificial iris muscle that flexes both ways
Bioengineers have pulled together to get artificial muscles pulling in multiple directions, an important step towards using them in medical treatments and robots.…
Wetherspoon on track for summer opening as work to start on £2.85m Basildon pub
Wetherspoon on track for summer opening as work to start on £2.85m Basildon pub
Paddy McGuinness puts sprawling marital home on the market for £6.5million as ex-wife Christine 'is desperate to sell up'
How Sarah Ferguson's divorce became a blueprint for Princess Diana - on what NOT to do
Conor McGregor enters the political ring: How shamed UFC fighter teased Irish presidential bid backed by Elon Musk months before launching anti-migrant rant in White House meeting with Trump
The smile that says he's staying! Prince Harry pictured in California after he dodges visa file controversy
Traffic on A12 with one lane closed due to stalled vehicle
Nvidia Says 'the Age of Generalist Robotics Is Here'
Read more of this story at Slashdot.
Woman with rare condition 'trapped' in unsuitable home says council is 'playing with her life'
Nvidia Draws GPU System Roadmap Out To 2028
High tech companies always have roadmaps. Whether or not they show them to the public, they are always showing them to key investors if they are in their early stages, getting ready to sell some shares on Wall Street to make money – literally, going public – or talking to key customers who are interested in buying a platform, not just a point product to solve a problem today. …
Nvidia Draws GPU System Roadmap Out To 2028 was written by Timothy Prickett Morgan at The Next Platform.
Ted Lasso character to be recast for season four
Non-x86 servers boom even faster than the rest of the AI-infused and GPU-hungry market
Here’s another thing AI can do: Increase revenue from selling servers by 91 percent year-over year, according to analyst firm IDC.…
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!