How to Convert a Value to a Boolean in JavaScript

A boolean is a primitive value [https://developer.mozilla.org/en-US/docs/Glossary/Primitive] that represents either true or false. In Boolean contexts, JavaScript utilizes type casting [https://developer.mozilla.org/en-US/docs/Glossary/Type_Conversion] to convert values to true/false. There are implicit and explicit methods to convert values into their boolean counterparts. This article provides an overview of truthy and falsy values and

Qualcomm’s Snapdragon “8+ Gen 1” salvage operation moves the chip to TSMC

Qualcomm’s Snapdragon “8+ Gen 1” salvage operation moves the chip to TSMC

Enlarge (credit: Qualcomm)

Qualcomm’s mid-cycle “plus” chip refresh—the Snapdragon 8+ Gen 1—has been announced. As usual, Qualcomm is promising some modest improvements over the existing 8 Gen 1 chip. The company said the chip will provide “10 percent faster CPU performance,” thanks to a 200 MHz peak CPU boost (up to 3.2 GHz now) and a 10 percent faster GPU. The real shocker is a “30 percent improved power efficiency” claim for the CPU and GPU.

For the Snapdragon 8 Gen 1 Plus, Qualcomm is moving the chip from Samsung Foundry to TSMC, which is apparently where the power improvements are coming from. That’s a serious slam against Samsung’s 4 nm process versus TSMC’s 4 nm process, but it lines up with earlier reports of troubles at Samsung Foundry.

Swapping foundries as part of a mid-cycle upgrade is not normal, and it seems that Qualcomm has a bit of a salvage operation on its hands with the Snapdragon 8 Gen 1. The chip has not fared very well in the real world, with the CPU regularly turning in lower benchmark scores than 2021’s flagship Snapdragon 888.

Read 1 remaining paragraphs | Comments

New USB-C dock triples M1 Mac external monitor support, Anker says

Anker 563 USB-C dock

Enlarge (credit: Anker/YouTube)

If you have an M1-based Mac, Apple says you’re limited to just one external monitor. But Anker, which makes power banks, chargers, docks, and other accessories, this week released a dock that it says will boost your M1 Mac’s max monitor count to three.

The $250 Anker 563 USB-C docking station, spotted by MacRumors, connects to a USB-C port on your computer (which doesn’t have to be a Mac) and can also charge a laptop at up to 100 W. Of course, you’ll also need to plug in the dock’s 180 W power adapter. Once connected, the dock adds the following ports to your setup:

  • 2x HDMI (version not specified)
  • 1x USB-C (3.1 Gen 1): charges devices at up to 30 W
  • 1x USB-A (3.1 Gen 1): charges devices at up to 7.5 W
  • 2x USB-A (2.0)
  • 1x 3.5 mm headphone jack
  • 1x Ethernet

You’ll need the two HDMI ports and DisplayPort to add three monitors to an M1 MacBook. There are some notable limitations, though.

Read 10 remaining paragraphs | Comments

What is Coding Used For?

Are you aware of the millions of lines of code behind the applications and devices you use every day? Coding is used for many different purposes – more than you may realize. In this article, I will first go over what the term ‘coding’ actually means. Then, I will briefly

Blizzard offers refund for nerfed $25 Hearthstone card

Shine bright like a diamond.

Enlarge / Shine bright like a diamond.

Last month, Hearthstone broke a long-standing precedent by selling a single cosmetic card upgrade for a whopping $25 (or a similar amount of in-game currency). Now that the expensive card’s power level is being scaled back, Blizzard is offering a generous refund to players who made that purchase—and it’s letting them keep the ultra-rare card, to boot.

Drek’Thar has been an extremely popular Hearthstone card since its release in December alongside the Fractured in Alterac Valley set. Thanks to the card’s ability to draw and summon two minions from your deck whenever cast (if your deck is constructed correctly), Drek’Thar was showing up in upward of 20 percent of all competitive decks this month, according to HSReplay.net statistics, and decks with the card were winning more than 60 percent of the time.

A diamond is forever

For months, Hearthstone players could find a Legendary Drek’Thar in regular packs, craft a copy by using in-game dust gained from excess cards, or earn a “free” Golden copy by completing various in-game quests. Starting April 5, though, Blizzard added a way to obtain a new version of Drek’Thar: pay $25 (or 3,000 in-game gold) to purchase an ultra-rare “Diamond” upgrade.

Read 8 remaining paragraphs | Comments

Find the soul