How the JavaScript reduce and reduceRight Methods Work

reduce and reduceRight are two built-in JavaScript array methods that have a bit of a steep learning curve. But the very essence of these methods are as simple as the following arithmetic computations. Suppose we have an array of numbers: [1, 2, 3, 4] And we want to get

How to Use GitHub Discussions as Your Blog’s Chat System

If you have a personal blog, you might be using a comment system to manage your blog’s discussions and comments. If so, it’s time to think about updating your comment system. You can take your blog’s comments to the next level with the help of GitHub Discussions. In this

Musk says Twitter deal “on hold” over concern about number of spam accounts

In this photo illustration, Elon Musk's twitter account is displayed on a smartphone in front of a background with the twitter logo.

Enlarge (credit: Getty Images | SOPA Images)

Elon Musk today said his deal to purchase Twitter is “temporarily on hold” while he awaits details on the number of spam and fake accounts on the site, but he later added that he remains “committed” to the acquisition.

“Twitter deal temporarily on hold pending details supporting calculation that spam/fake accounts do indeed represent less than 5 percent of users,” Musk wrote in a tweet Monday morning. In a follow-up tweet two hours later, he wrote, “Still committed to acquisition.”

The first tweet saying that the deal is “on hold” included a link to a May 2 Reuters article noting that Twitter had “estimated in a filing… that false or spam accounts represented fewer than 5 percent of its monetizable daily active users during the first quarter.”

Read 13 remaining paragraphs | Comments

How to Use Apache Airflow to Schedule and Manage Workflows

Apache Airflow is an open-source workflow management system that makes it easy to write, schedule, and monitor workflows. A workflow as a sequence of operations, from start to finish. The workflows in Airflow are authored as Directed Acyclic Graphs (DAG) using standard Python programming. You can configure when a

North Korea: Six dead, 350,000 “fevers” as coronavirus spreads “explosively”

North Korea's leader Kim Jong Un on June 30, 2019.

Enlarge / North Korea’s leader Kim Jong Un on June 30, 2019. (credit: Getty | BRENDAN SMIALOWSKI)

At least six people in North Korea have died and more than 350,000 have contracted an unusual fever since late April in an outbreak that “explosively spread nationwide,” North Korean state media said Friday.

On Thursday, 18,000 new cases were reported, 187,800 people were in quarantine, and 162,200 had reportedly recovered. The cases are being defined by “a fever whose cause couldn’t be identified,” according to The New York Times.

The numbers come just a day after the authoritarian country acknowledged for the first time during the pandemic that the coronavirus was spreading within its borders.

Read 6 remaining paragraphs | Comments

Lenovo’s Yoga 9i Gen 7 is a 2-in-1 statement piece

Lenovo Yoga 9i lid

Enlarge / Lenovo’s Yoga 9i 14″ 7th Gen laptop. (credit: Scharon Harding)

 

Specs at a glance: Lenovo Yoga 9i (14″)
Worst Best As reviewed
Screen 14-inch 1920×1200 IPS touchscreen 14-inch 3840×2400 90 Hz OLED IPS touchscreen 14-inch 2800×1800 90 Hz OLED IPS touchscreen
OS Windows 11 Home
CPU Intel Core i7-1260P
RAM 8GB LPDDR5-5200 16GB LPDDR5-5200
Storage 256 GB PCIe 4.0 SSD 1 TB PCIe 4.0 SSD 512 GB PCIe 4.0 SSD
GPU Intel Iris Xe (integrated)
Networking 802.11ax (2×2), Bluetooth 5.2
Ports 2x Thunderbolt 4 (USB-C), 1x USB-C 3.2 Gen 2, 1x USB-A 3.2 Gen 2, 1x 3.5 mm jack
Size 12.52 x 9.06 x 0.6 inches
(318 x 230 x 15.25 mm)
Weight Starts at 3.26 lbs (1,480 g)
Battery 75 Whr
Warranty 1 year
Price (MSRP) $1,080 at Lenovo $1,930  $1,730
Other Stylus, protective sleeve included

For a laptop to make a statement, it needs to have more than just the latest components—it has to have style. Lenovo’s Yoga 9i is ready to compete in today’s market with its Intel 12th Gen P-series CPUs, but it shows it’s more than just another thin-and-light convertible with luxurious details.

You can immediately tell the Yoga 9i was designed to grab your attention with its shiny, polished finishes. But it’s the creature comforts, like a hi-res webcam with background blur, an optional tall and fast OLED touchscreen, and abnormally loud speakers—that tell the real story.

Read 43 remaining paragraphs | Comments

Orville: New Horizons trailer takes intrepid crew into unexplored space… and time

Seth MacFarlane’s epic space adventure series The Orville: New Horizons returns exclusively as a Hulu original series.

We here at Ars have sorely missed the intrepid crew of the USS Orville. Production on the third season of The Orville abruptly halted in March 2020 due to the onset of the COVID-19 pandemic. But the series is finally coming back with a new home on Hulu, a new name (The Orville: New Horizons), and an entertaining new trailer rife with all the space-based action and buoyant good humor in the face of danger that we’ve come to expect from this sci-fi series.

(Spoilers for prior seasons of The Orville below.)

As I’ve written previously, the series is set aboard the USS Orville (ECV-197), an exploratory spaceship in the service of a 25th-century interstellar alliance known as the Planetary Union. Series creator and star Seth MacFarlane (Family Guy), who plays Capt. Ed Mercer, was a huge fan of Star Trek growing up, particularly The Next Generation, so it’s not surprising that The Orville has embraced a similar sensibility. As I wrote in my S2 review, “This is a smart series that combines humor and witty dialogue with cutting-edge science, ethical musings, the occasional literary reference, and genuine heart.”

Read 5 remaining paragraphs | Comments

Google’s new Android Auto interface works with any screen size

The many sizes of Android Auto.

Enlarge / The many sizes of Android Auto. (credit: Google / Ron Amadeo)

Android Auto, Google’s car interface app for Android, is getting a new, more flexible design at Google I/O. Android Auto previously demanded a pretty rigid screen aspect ratio. It could not handle things like large, vertically oriented car screens and would often resort to pillar boxing or letterboxing the UI to keep a reasonable layout. Now, Google says the interface is “built to adapt to any screen size” thanks to a new panel design.

Google says that “there are three main functionalities that drivers prioritize in their cars: navigation, media and communication,” and the new Android Auto design puts each of those interfaces in its own panel. Maps gets the biggest, main panel, media and communication panels get stacked next to each other, and there’s a combo status/navigation bar. To accommodate the million different screen sizes, these items can be arranged in whatever orientation works best in the car.

One example, close to the current Android Auto configuration, shows the combo bar oriented vertically against the side of the screen, followed by a vertical stack of the message and media panels, then a big Google Maps panel. Another example of a more vertical screen design shows a big Google Maps panel on top of the message and media panels, with the combo bar on the bottom, where things can be arranged to fit.

Read 1 remaining paragraphs | Comments

Bitcoin plunges to lowest price since 2020 amid broader sell-off

Bitcoin plunges to lowest price since 2020 amid broader sell-off

Enlarge (credit: R.Tsubin / Getty)

The price of one bitcoin briefly fell below $27,000 on Thursday morning, the lowest price for the cryptocurrency since 2020. The world’s leading virtual currency bounced back later in the day and now trades at $28,600. But that’s still 20 percent below the price one week ago and 57 percent below last November’s peak.

Bitcoin’s fall is part of a broader cryptocurrency sell-off. Ethereum is currently down 8 percent over the last 24 hours and 28 percent over the last week. Additionally, cardano (39 percent), dogecoin (36 percent), and litecoin (32 percent) have all fallen during the past week.

Perhaps most alarming for the cryptocurrency world: “Stablecoin” tether lost its peg to the US dollar early Thursday, briefly dipping to 96 cents. Tether is now trading at $1 once again.

Read 10 remaining paragraphs | Comments

Find the soul