News

Defer & Panic Recovery In Go

Defer & Panic Recovery In Go

Panics are caused by operations like accessing elements outside the bounds of an array, null dereference, closing closed channels, and so on. They are abnormal operations that should be avoided by checks in the code, but sometimes these scenarios are missed, and the panic can crash our application. There might be many reasons to recover from a panic, the most obvious being to "fail gracefully" by finishing cleanup operations and properly reporting the errors before exiting. Panic recovery in Go is based on defers, lets take a look at how they work. Each time the function encounters a defer statement,…
Read More
Amazon drops the first teaser for its upcoming Yakuza adaptation

Amazon drops the first teaser for its upcoming Yakuza adaptation

Amazon has released its first teaser video for Like A Dragon: Yakuza, its live action adaptation of SEGA's Yakuza games, at San Diego Comic-Con. There's a lot of focus on the inking process of Kazuma Kiryu's iconic dragon tattoo, but you'll also get glimpses of Kamurocho's night scene, various characters in the series and the underground fight club that shows up as a mini-game across the franchise. In the last few seconds of the video, you'll see a shirtless Kiryu heading to a circle of cheering viewers betting on his match.When the company announced the show in June, it described…
Read More
How to Fix the Annoying White Space Issue in iOS Safari: A Beginner’s Guide with Easy Solutions

How to Fix the Annoying White Space Issue in iOS Safari: A Beginner’s Guide with Easy Solutions

Have you ever been designing a website and been working on a flawless page when all of a sudden the iOS Safari keyboard appears? There it is—a large blank area that is not welcome on your page. You're not alone, though, if you're scratching your head as to why that is. Let's investigate this peculiar issue and work out a solution. What’s Going On? Imagine this: your user taps on a form field, and the virtual keyboard just magically appears. As it pushes up the content, a little pesky white space shows up at the bottom of the page. It's…
Read More
Solid-state batteries are finally making their way out of the lab

Solid-state batteries are finally making their way out of the lab

Sign up for the Freethink Weekly newsletter! A collection of our favorite stories straight to your inbox Notice: JavaScript is required for this content. This article is an installment of Future Explored, a weekly guide to world-changing technology. You can get stories like this one straight to your inbox every Saturday morning by subscribing here.It’s 2030, and you just bought your first electric vehicle. You took the plunge because of the car’s solid-state battery — the same kind of energy-dense, ultra-safe battery also powering your smartphone and other tech devices. Millions of drivers will soon join you, drawn in by better…
Read More
Samsung Galaxy Ring review: A bit basic, a bit pricey

Samsung Galaxy Ring review: A bit basic, a bit pricey

I don’t expect much from a device as small as a ring. There’s no room for a lot of hardware, so it only really needs to do a few things well. A sleep tracker that doesn’t get in the way of, well, sleeping, is my holy grail, and smart rings are a tantalizing option. Samsung’s Galaxy Ring promises to monitor my slumber and log my daily activity, and do so comfortably and unobtrusively, all for $400. That’s $100 more than its closest competitor, the Oura Ring, though the latter charges an additional $6 a month to use its software. Oura…
Read More
Unlocking the Potential of Cloudflare Workers for Small Projects

Unlocking the Potential of Cloudflare Workers for Small Projects

Cloudflare Workers is a serverless platform that allows developers to run code at the edge, close to the end users. Unlike some other serverless platforms that run in centralized data centers, Cloudflare Workers run in over 200 locations worldwide, providing lower latency and high performance. This article explores why Cloudflare Workers is a fantastic choice for smaller projects and offers a practical use case of creating a Telegram bot using Cloudflare Workers. Why Choose Cloudflare Workers for Smaller Projects? 1. Low Latency and High Performance Imagine your code running in data centers closest to your users, reducing latency significantly and…
Read More
Apple agrees to stick by Biden administration’s voluntary AI safeguards

Apple agrees to stick by Biden administration’s voluntary AI safeguards

has joined several other tech companies in laid out by the Biden administration. Those who make the pledge have committed to abide by eight guidelines related to safety, security and social responsibility, including flagging societal risks such as biases; testing for vulnerabilities, watermarking AI-generated images and audio; and sharing trust and safety details with the government and other companies.Amazon, Google, Microsoft and OpenAI were among the initial adoptees of the pact, which the White House . The voluntary agreement, which is not enforceable, will expire after Congress passes laws to regulate AI.Since the guidelines were announced, Apple unveiled a suite…
Read More
NASA’s Perseverance rover found a rock on Mars that could indicate ancient life

NASA’s Perseverance rover found a rock on Mars that could indicate ancient life

NASA's Perseverance rover has been collecting samples from Mars since 2021, but one of its most recently collected rocks could help it achieve its goal of finding evidence of ancient life on the planet. Nicknamed Cheyava Falls after the tallest waterfall in the Grand Canyon, the 3.2 feet by 2 feet sample contains "chemical signatures and structures" that could've been formed by ancient microbial life from billions of years ago.Perseverance collected the rock on July 21 from what was once a Martian river valley carved by flowing water long ago. The sample, which you can see in close up below…
Read More
The 10th-generation iPad is back down to $300, plus the rest of this week’s best tech deals

The 10th-generation iPad is back down to $300, plus the rest of this week’s best tech deals

As we've seen in years past, once Amazon's Prime Day ends, many of the deals evaporate. But one week after the sale frenzy (both from Amazon and other retailers) we're still seeing quite a few deals that have either stayed true to their event pricing or have come up with a fresh discount after the fact. Right now, the budget pick in our iPad guide is just $1 more than the low it hit last week. Our favorite pair of budget earbuds is also just a buck more than the Prime Day low. And, as of this writing, Amazon is…
Read More
Here’s how to stop Grok’s AI models using your tweets for training

Here’s how to stop Grok’s AI models using your tweets for training

There's word going around that X just enabled a setting that lets it train Grok on public tweets, as well as any interactions they have with the chatbot. That's not entirely true: a help page instructing users how to opt-out of X using their data to train Grok has been live since at least May. X just never exactly made it crystal clear that it was opting everyone into this, which is a sketchy move. If you don't want a bad chatbot to use your bad tweets for training, it's thankfully easy to switch that off.You just need to uncheck…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.