JavaScript split() a String – String to Array JS Method

If you need to split up a string into an array of substrings, then you can use the JavaScript split() method. In this article, I will go over the JavaScript split() method and provide code examples. Basic Syntax of the split() methodHere is the syntax for the JavaScript split() method.

The React Beginner’s Guide for 2022

So you’re ready to dive into learning React, but you still have some lingering questions, such as: How should I create my React projects?What tools should I add to my React app?Do I need to learn JavaScript first before learning React?Where should I deploy my projects?If

ISPs must accept gov’t subsidy on all plans—no more upselling, FCC chair says

A stack of three $10 bills

Enlarge (credit: Getty Images | maogg)

Less than a year after Verizon and other ISPs forced users to switch plans in order to get government-funded discounts, a new federal program will prevent such upselling by requiring ISPs to let customers obtain subsidies on any Internet plan.

With last year’s $50-per-month Emergency Broadband Benefit that was created by Congress, the Federal Communications Commission let ISPs participate in the program as long as they offered the discount on at least one service plan. The FCC said it did so to encourage participation by providers, but some major ISPs drastically limited the subsidy-eligible plans—forcing users to switch to plans that could be more expensive in order to get a temporary discount.

Congress subsequently created a replacement program that will offer $30 monthly subsidies to people with low incomes. The program also specified that ISPs “shall allow an eligible household to apply the affordable connectivity benefit to any Internet service offering of the participating provider at the same terms available to households that are not eligible households.” The FCC still has to make rules for implementing the new Affordable Connectivity Program (ACP), but that requirement prevented the FCC from using the same one-plan rule that helped ISPs use the program as an upselling opportunity.

Read 11 remaining paragraphs | Comments

How to Push an Empty Commit in Git

In this article, we will discuss how to push a commit in Git without making any changes. Git makes this process of pushing an empty commit super simple. It’s like pushing a regular commit, except that you add the –allow-empty flag. git commit –allow-empty -m “Empty-Commit”You will now need

What is Serialization?

During a recent project update meeting, my team talked about how we were going to use serialization to send data back and forth from this application. An engineer who was looking to get more into software projects told me that they were unfamiliar with the term. It’s easy to miss

Developer sabotages his own apps, then claims Aaron Swartz was murdered

Stock photo of the lit fuse of a stick of dynamite or firework.

Enlarge (credit: James Brey / iStockPhoto / Getty Images)

The developer who sabotaged two of his own open source code libraries, causing disruptions for thousands of apps that used them, has a colorful past that includes embracing a QAnon theory involving Aaron Swartz, the well-known hacktivist and programmer who died by suicide in 2013.

Marak Squires, the author of two JavaScript libraries with more than 21,000 dependent apps and more than 22 million weekly downloads, updated his projects late last week after they remained unchanged for more than a year. The updates contained code to produce an infinite loop that caused dependent apps to spew gibberish, prefaced by the words “Liberty Liberty Liberty.” The update sent developers scrambling as they attempted to fix their malfunctioning apps.

What really happened with Aaron Swartz?

Squires provided no reason for the move, but in a readme file accompanying last week’s malicious update, he included the words “What really happened with Aaron Swartz?”

Read 8 remaining paragraphs | Comments

Microsoft posts its own teardown and repair video for the Surface Laptop SE

Microsoft engineer Branden Cole disassembles the Surface Laptop SE step-by-step.

Enlarge / Microsoft engineer Branden Cole disassembles the Surface Laptop SE step-by-step. (credit: Microsoft/YouTube)

Usually, when you want to see a step-by-step teardown video for a Surface device, you need to go to a third-party outfit like iFixit. But today, Microsoft’s Surface YouTube channel posted its own teardown video for the cheap, education-focused Surface Laptop SE. In the video, a Microsoft engineer completely disassembles the laptop (with iFixit tools, no less) while describing each step as he goes.

Microsoft’s Surface lineup was infamously difficult to repair for years, thanks to the extensive use of glued- and soldered-down components. This has started to shift in recent years, as Microsoft has added user-replaceable SSDs and made other tweaks to make its machines easier to take apart and put back together. Repairability is a selling point for the Surface Laptop SE in particular because the laptop is being marketed to schools, where laptops can be dropped, spilled on, or otherwise abused by kids who may or may not know better.

In response to shareholder pressure, Microsoft has promised to ramp up its repairability efforts in the future, including expanding the availability of parts and documentation and making it easier for third-party service providers to do repairs. This video presumably falls under the umbrella of “documentation,” and hopefully we’ll see the same treatment given to other Surface devices in the future.

Read 1 remaining paragraphs | Comments

Text Box in HTML – The Input Field HTML Tag

In this article you’ll learn how to create a text input field in HTML. You’ll also learn about web forms and get an overview of how they work, since text boxes are a common feature of every form. Let’s get started! What are Web Forms? Forms are an efficient way

Gruesome Viking “blood eagle” ritual is anatomically possible, study finds

Thorbjørn Harr played Jarl Borg of Götaland in the first two seasons of the History Channel series <em>Vikings</em>. Spoiler alert: He met with a gruesome death via the legendary "blood eagle" ritual. The ritual may have been a myth, but a new study shows it is anatomically possible.

Enlarge / Thorbjørn Harr played Jarl Borg of Götaland in the first two seasons of the History Channel series Vikings. Spoiler alert: He met with a gruesome death via the legendary “blood eagle” ritual. The ritual may have been a myth, but a new study shows it is anatomically possible. (credit: History Channel)

The History Channel series Vikings is a fictional account of legendary Norse hero Ragnar Lothbrok (Travis Fimmel), who was born a farmer and became a Scandinavian king. Early in the series, a rival leader named Jarl Borg (Thorbjørn Harr) of nearby Götaland leads an attack on Ragnar’s men and even convinces Ragnar’s brother to betray him. Borg doesn’t get an easy death when his schemes ultimately fail and he is captured. Ragnar performs the blóðǫrn (“blood eagle”) on Borg, a gruesome process of ritualized torture and execution allegedly carried out during the Viking Age (c. 750–1050).

The series prides itself on being as historically accurate as possible, which is a challenge, given that much of what we know about the Viking Age comes from epic poems telling of their achievements in spoken form, finally written down centuries later. That’s especially the case with the blood eagle ritual, which has long been dismissed as mere legend—whether because of repeated misunderstandings during translations of the poems or perhaps a desire by Christian scholars to portray the pagan Vikings as barbaric.

(Warning: some graphic anatomical descriptions follow.)

Read 15 remaining paragraphs | Comments

Find the soul