Stadium card stunts and the art of programming a crowd

With college bowl season just around the corner, football fans across the nation will be dazzled, not just by the on-field action, but also by the intricate “card stunts” performed by members of the stadium’s audience. The highly-coordinated crowd work is capable of producing detailed images that resemble the pixelated images on computer screens — and which are coded in much the same manner.  

Michael Littman’s new book, Code to Joy: Why Everyone Should Learn a Little Programming, is filled with similar examples of how the machines around us operate and how we need not distrust an automaton-filled future so long as we learn to speak their language (at least until they finish learning ours). From sequencing commands to storing variables, Code to Joy provides an accessible and entertaining guide to the very basics of programming for fledgling coders of all ages.  

MIT Press

Excerpted from Code to Joy: Why Everyone Should Learn a Little Programming by Michael L Littman. Published by MIT Press. Copyright © 2023 by Michael L Littman. All rights reserved.

“GIMME A BLUE!”

Card stunts, in which a stadium audience holds up colored signs to make a giant, temporary billboard, are like flash mobs where the participants don’t need any special skills and don’t even have to practice ahead of time. All they have to do is show up and follow instructions in the form of a short command sequence. The instructions guide a stadium audience to hold aloft the right poster-sized colored cards at the right time as announced by a stunt leader. A typical set of card-stunt instructions begins with instructions for following the instructions: 

listen to instructions carefully 

hold top of card at eye level (not over your head) 

hold indicated color toward field (not facing you) 

pass cards to aisle on completion of stunts (do not rip up the cards)

These instructions may sound obvious, but not stating them surely leads to disaster. Even so, you know there’s gotta be a smart alec who asks afterward, “Sorry, what was that first one again?” It’s definitely what I’d do. 

Then comes the main event, which, for one specific person in the crowd, could be the command sequence: 

Blue 

Blue 

Blue 

Breathtaking, no? Well, maybe you have to see the bigger picture. The whole idea of card stunts leverages the fact that the members of a stadium crowd sit in seats arranged in a grid. By holding up colored rectangular sign boards, they transform themselves into something like a big computer display screen. Each participant acts as a single picture element— person pixels! Shifts in which cards are being held up change the image or maybe even cause it to morph like a larger-than-life animated gif. 

Card stunts began as a crowd-participation activity at college sports in the 1920s. They became much less popular in the 1970s when it was generally agreed that everyone should do their own thing, man. In the 1950s, though, there was a real hunger to create ever more elaborate displays. Cheer squads would design the stunts by hand, then prepare individual instructions for each of a thousand seats. You’ve got to really love your team to dedicate that kind of energy. A few schools in the 1960s thought that those newfangled computer things might be helpful for taking some of the drudgery out of instruction preparation and they designed programs to turn sequences of hand-drawn images into individualized instructions for each of the participants. With the help of computers, people could produce much richer individualized sequences for each person pixel that said when to lift a card, what color to lift, and when to put it down or change to another card. So, whereas the questionnaire example from the previous section was about people making command sequences for the computer to follow, this example is about the computer making command sequences for people to follow. And computer support for automating the process of creating command sequences makes it possible to create more elaborate stunts. That resulted in a participant’s sequence of commands looking like:

up on 001 white 

003 blue 

005 white 

006 red 

008 white 

013 blue 

015 white 

021 down 

up on 022 white 

035 down 

up on 036 white 

043 blue 

044 down 

up on 045 white 

057 metallic red 

070 down

Okay, it’s still not as fun to read the instructions as to see the final product—in this actual example, it’s part of an animated Stanford “S.” To execute these commands in synchronized fashion, an announcer in the stadium calls out the step number (“Forty-one!”) and each participant can tell from his or her instructions what to do (“I’m still holding up the white card I lifted on 36, but I’m getting ready to swap it for a blue card when the count hits 43”). 

As I said, it’s not that complicated for people to be part of a card stunt, but it’s a pretty cool example of creating and following command sequences where the computer tells us what to do instead of the other way around. And, as easy as it might be, sometimes things still go wrong. At the 2016 Democratic National Convention, Hillary Clinton’s supporters planned an arena-wide card stunt. Although it was intended to be a patriotic display of unity, some attendees didn’t want to participate. The result was an unreadable mess that, depressingly, was supposed to spell out “Stronger Together.” 

These days, computers make it a simple matter to turn a photograph into instructions about which colors to hold up where. Essentially, any digitized image is already a set of instructions for what mixture of red, blue, and green to display at each picture position. One interesting challenge in translating an image into card-stunt instructions is that typical images consist of millions of colored dots (megapixels), whereas a card stunt section of a stadium has maybe a thousand seats. Instead of asking each person to hold up a thousand tiny cards, it makes more sense to compute an average of the colors in that part of the image. Then, from the collection of available colors (say, the classic sixty-four Crayola options), the computer just picks the closest one to the average. 

If you think about it, it’s not obvious how a computer can average colors. You could mix green and yellow and decide that the result looks like the spring green crayon, but how do you teach a machine to do that? Let’s look at this question a little more deeply. It’ll help you get a sense of how computers can help us instruct them better. Plus, it will be our entry into the exciting world of machine learning. 

There are actually many, many ways to average colors. A simple one is to take advantage of the fact that each dot of color in an image file is stored as the amount of red, green, and blue color in it. Each component color is represented as a whole number between 0 and 255, where 255 was chosen because it’s the largest value you can make with eight binary digits, or bits. Using quantities of red-blue-green works well because the color receptors in the human eye translate real-world colors into this same representation. That is, even though purple corresponds to a specific wavelength of light, our eyes see it as a particular blend of green, blue, and red. Show someone that same blend, and they’ll see purple. So, to summarize a big group of pixels, just average the amount of blue in those pixels, the amount of red in those pixels, and the amount of green in those pixels. That basically works. Now, it turns out, for a combination of physical, perceptual, and engineering reasons, you get better results by squaring the values before averaging, and square rooting the values after averaging. But that’s not important right now. The important thing is that there is a mechanical way to average a bunch of colored dots to get a single dot whose color summarizes the group. 

Once that average color is produced, the computer needs a way of finding the closest color to the cards we have available. Is that more of a burnt sienna or a red-orange? A typical (if imperfect) way to approximate how similar two colors are using their red-blue-green values is what’s known as the Euclidean distance formula. Here’s what that looks like as a command sequence:

take the difference between the amount of red in the two colors square it 

take the difference between the amount of blue in the two colors square it 

take the difference between the amount of green in the two colors square it add the three squares together 

take the square root

So to figure out what card should be held up to best capture the average of the colors in the corresponding part of the image, just figure out which of the available colors (blue, yellow green, apricot, timberwolf, mahogany, periwinkle, etc.) has the smallest distance to that average color at that location. That’s the color of the card that should be given to the pixel person sitting in that spot in the grid. 

The similarity between this distance calculation and the color averaging operation is, I’m pretty sure, just a coincidence. Sometimes a square root is just a square root. 

Stepping back, we can use these operations — color averaging and finding the closest color to the average — to get a computer to help us construct the command sequence for a card stunt. The computer takes as input a target image, a seating chart, and a set of available color cards, and then creates a map of which card should be held up in each seat to best reproduce the image. In this example, the computer mostly handles bookkeeping and doesn’t have much to do in terms of decision-making beyond the selection of the closest color. But the upshot here is that the computer is taking over some of the effort of writing command sequences. We’ve gone from having to select every command for every person pixel at every moment in the card stunt to selecting images and having the computer generate the necessary commands. 

This shift in perspective opens up the possibility of turning over more control of the command-sequence generation process to the machine. In terms of our 2 × 2 grid from chapter 1, we can move from telling (providing explicit instructions) to explaining (providing explicit incentives). For example, there is a variation of this color selection problem that is a lot harder and gives the computer more interesting work to do. Imagine that we could print up cards of any color we needed but our print shop insists that we order the cards in bulk. They can only provide us with eight different card colors, but we can choose any colors we want to make up that eight. (Eight is the number of different values we can make with 3 bits — bits come up a lot in computing.) So we could choose blue, green, blue-green, blue-violet, cerulean, indigo, cadet blue, and sky blue, and render a beautiful ocean wave in eight shades of blue. Great! 

But then there would be no red or yellow to make other pictures. Limiting the color palette to eight may sound like a bizarre constraint, but it turns out that early computer monitors worked exactly like that. They could display any of millions of colors, but only eight distinct ones on the screen at any one time. 

With this constraint in mind, rendering an image in colored cards becomes a lot trickier. Not only do you have to decide which color from our set of color options to make each card, just as before, but you have to pick which eight colors will constitute that set of color options. If we’re making a face, a variety of skin tones will be much more useful than distinctions among shades of green or blue. How do we go from a list of the colors we wish we could use because they are in the target image to the much shorter list of colors that will make up our set of color options? 

Machine learning, and specifically an approach known as clustering or unsupervised learning, can solve this color-choice problem for us. I will tell you how. But first let’s delve into a related problem that comes from turning a face into a jigsaw puzzle. As in the card-stunt example, we’re going to have the computer design a sequence of commands for rendering a picture. But there’s a twist—the puzzle pieces available for constructing the picture are fixed in advance. Similar to the dance-step example, it will use the same set of commands and consider which sequence produces the desired image.

This article originally appeared on Engadget at https://www.engadget.com/hitting-the-books-code-to-joy-michael-l-littman-mit-press-153036241.html?src=rss 

Soccer Star Ashlyn Harris Denies Cheating on Wife Ali Krieger Amid Divorce

The athlete, who is in a rumored relationship with actress Sophia Bush, released a statement about the “darkness” of her ongoing divorce. 

The athlete, who is in a rumored relationship with actress Sophia Bush, released a statement about the “darkness” of her ongoing divorce.  

Ooni Black Friday deals include up to 30 percent off pizza ovens and accessories

Ooni is holding a Black Friday sale, offering all-time-low deals on its highly-rated outdoor pizza makers. The company’s Fyra 12 wood pellet pizza oven is 30 percent off, dropping it to $244 from its standard $349. If that’s out of your holiday budget, Ooni also has the Pizza Steel 13, a flat surface that upgrades your indoor-baked pizzas, on sale for $70.

The Ooni Frya 12 wood pellet pizza oven is one of Engadget’s top picks for the best pizza ovens. It uses “sustainably sourced hardwood pellets” to reach 950 degrees Fahrenheit in 15 minutes and can cook stone-baked pizzas in as little as 60 seconds. It uses a gravity-fed hopper that replenishes the pellet tray automatically, allowing you to focus less on the oven’s needs and more on your pie’s.

The outdoor oven fits 12-inch personal pizzas inside, allowing everyone at your gathering to customize their pies. It weighs only 22 lbs and has a relatively small footprint, ideal for easy transportation and tabletop pie-baking. It could be a popular supply for outdoor parties, tailgating, camping and other open-air activities that would benefit from more pizza.

Ooni

Meanwhile, the deceptively simple-looking Pizza Steel 13 accessory slides into your conventional oven to enhance your homemade pies. The stainless steel surface heats quickly and retains the warmth, helping your indoor pizzas come out more like those made in dedicated pizza stoves. The Pizza Steel 13 is on sale for $70 (typically $100).

Ooni’s Black Friday sale runs from now through November 28.

Your Black Friday Shopping Guide: See all of Yahoo’s Black Friday coverage, here. Follow Engadget for Black Friday tech deals. Learn about Black Friday trends on In The Know. Hear from Autoblog’s experts on the best Black Friday deals for your car, garage, and home, and find Black Friday sales to shop on AOL, handpicked just for you.

This article originally appeared on Engadget at https://www.engadget.com/ooni-black-friday-deals-include-up-to-30-percent-off-pizza-ovens-and-accessories-140019161.html?src=rss 

OpenAI potentially considering reinstating its freshly-ousted CEO Sam Altman

Following his surprise firing on Friday, currently-former OpenAI CEO Sam Altman might not be as out of a job as we initially thought he was, according to new word from The Verge on Saturday. Reportedly, sources close to Altman say that the board itself, in a stunning reversal, have “agreed in principal” to resign while reinstating him to his former position. However, the board has since reportedly missed a 5pm PT deadline regarding the decision.

Shortly after Altman’s firing on Friday afternoon, several senior staffers including former Chairman and President Greg Brockman, Director of Research Jakub Pachocki, Head of Preparedness Aleksander Madry and Senior Researcher Szymon Sidor tendered their resignations in protest. Numerous additional OpenAI staffers were set to quit in solidarity at that meeting. They’re reportedly willing to follow Altman, a la Jerry Maguire, to a new AI startup venture should he decide to launch one. 

An internal memo circulated after Altman’s dismissal argued that his termination was not related to “malfeasance or anything related to our financial, business, safety, or security/privacy practices,” per Axios’ reporting.

Sam and I are shocked and saddened by what the board did today.

Let us first say thank you to all the incredible people who we have worked with at OpenAI, our customers, our investors, and all of those who have been reaching out.

We too are still trying to figure out exactly…

— Greg Brockman (@gdb) November 18, 2023

Microsoft is a major investor in the OpenAI venture — having injected some $10 billion into the project’s coffers this past January as part of a long term partnership between the two. It maintains the “utmost confidence” in OpenAI interim-CEO Mira Murati, and “remains confident” in the partnership overall. 

Despite those assurances, rank-and-file employees were given little notice prior to the official announcement going out (Altman himself receiving even less) of the change in leadership. Altman had, in the days leading up to his termination, remained an active supporter and recruiter for the firm, appearing at the Asia-Pacific Economic Cooperation forum less than a day prior to his firing. 

According to the New York Times, neither Altman nor Brockman are guaranteed a return to power, largely on account of the company’s non-profit origins, which preclude investors from directing company-wide decisions. They instead leave those choices to members of the board itself. Altman and Brockman were both members of the OpenAI board. However, with their departures, only lead researcher, Ilya Sutskever; Quora CEO Adam D’Angelo; director of strategy at Georgetown’s Center for Security and Emerging Technology Helen Toner; and computer scientist Tasha McCauley remain members — at least, through the weekend.

This article originally appeared on Engadget at https://www.engadget.com/openai-potentially-considering-reinstating-its-freshly-ousted-ceo-sam-altman-051223213.html?src=rss 

John Stamos and Lori Loughlin Reunite to Do Cute Viral Dance Trend

The ‘Full House’ stars busted moves to Kenny Rogers and Dolly Parton’s ‘Islands in the Stream’ for the trend that started from Netflix’s ‘Beckham.’

The ‘Full House’ stars busted moves to Kenny Rogers and Dolly Parton’s ‘Islands in the Stream’ for the trend that started from Netflix’s ‘Beckham.’ 

Echo Show 8 bundles are up to 64 percent off in Amazon’s Black Friday deals

If you’ve been holding out for a deal on the Echo Show 8, it doesn’t get any better than Amazon’s current Black Friday bundles for its smart displays. Amazon is selling the second-generation Echo Show 8 with a Kasa Smart multicolor lightbulb for just $55. Normally, these would cost over $150 together. The third-generation Echo Show 8, released this year, is also deeply discounted on Amazon in a bundle with the Kasa Smart Bulb, going for just $105 compared to the list price of $173.

The 2023 Echo Show 8 (3rd gen) brought a refreshed design to what was already one of the best smart displays out there. The latest version has a sleeker build and upgraded capabilities, with spatial audio, a 13MP camera and faster response times from Alexa. Still its predecessor, released in 2021, achieves solid performance for tasks like video calls and smart home control. It’s equipped with automatic face framing to keep you centered on calls, and has a privacy cover for the camera. Both models have a compact 8-inch touchscreen that’s big enough for viewing content without taking up too much counter space.

Amazon’s smart display deals don’t just stop at the Echo Show 8. The retailer is also offering discounts on the Echo Show 5 and the larger Echo Show 10. There are bundles to include additional accessories — including the Blink Mini camera and Kasa Smart bulbs — and deals on individual devices for 30 to 64 percent off.

Your Black Friday Shopping Guide: See all of Yahoo’s Black Friday coverage, here. Follow Engadget for Black Friday tech deals. Learn about Black Friday trends on In The Know. Hear from Autoblog’s experts on the best Black Friday deals for your car, garage, and home, and find Black Friday sales to shop on AOL, handpicked just for you.

This article originally appeared on Engadget at https://www.engadget.com/echo-show-8-bundles-are-up-to-64-percent-off-in-amazons-black-friday-deals-220607231.html?src=rss 

Taylor Swift Postpones Brazil Show After Young Fan’s Shocking Death: ‘Safety Comes First’

The singer shared a message that expressed concern for concertgoers and crew just hours after a 23-year-old woman died in the hot venue before yesterday’s show.

The singer shared a message that expressed concern for concertgoers and crew just hours after a 23-year-old woman died in the hot venue before yesterday’s show. 

Internal memo says Sam Altman’s firing wasn’t due to ‘malfeasance’ or OpenAI safety practices

An internal memo sent to OpenAI staff on Saturday after former CEO Sam Altman’s abrupt firing reiterates that “a breakdown in communication” led to the decision, not “malfeasance or anything related to our financial, business, safety, or security/privacy practices,” according to Axios and The New York Times. The memo obtained by both publications was sent to employees by OpenAI’s Chief Operating Officer Brad Lightcap.

Speculation has been nonstop since Altman was ousted unexpectedly as CEO on Friday and dropped from the company’s board of directors, with little concrete information from OpenAI itself to go on. In its announcement of the decision, the board said only that he was not “consistently candid in his communications with the board, hindering its ability to exercise its responsibilities.” The board named Mira Murati, OpenAI’s Chief Technology Officer, as interim CEO.

In response, OpenAI’s now-former president, Greg Brockman, announced he was stepping down too, tweeting, “Sam and I are shocked and saddened by what the board did today.” Three senior researchers later resigned as well, according to The Information. Now, in another report, sources told The Information that Altman already has a “new venture” in the works, and he plans to bring Brockman and possibly others on with him. It’s as yet unclear if this venture is separate from Altman’s other known upcoming projects, including a purported collaboration with former Apple designer Jony Ive.

Numerous reports in the aftermath have attempted to provide an explanation for Altman’s firing, with some claiming there were concerns over the rapid development of the company’s AI products and, according to journalist Kara Swisher, its “profit driven direction.” In Saturday’s memo, per Axios, Lightcap wrote that the announcement “took us all by surprise,” and “we have had multiple conversations with the board to try to better understand the reasons and process behind their decision.”

if i start going off, the openai board should go after me for the full value of my shares

— Sam Altman (@sama) November 18, 2023

The sudden shakeup could now have ramifications for the impending sale of OpenAI’s employee shares, valued at roughly $86 billion, The Information reported. In a cryptic tweet on Saturday, Altman quipped, “if i start going off, the openai board should go after me for the full value of my shares (sic).”

This article originally appeared on Engadget at https://www.engadget.com/internal-memo-says-sam-altmans-firing-wasnt-due-to-malfeasance-or-openai-safety-practices-205156164.html?src=rss 

Nick Jonas Makes Rare Comment About Daughter’s ‘Mischievous Attitude’ & Compares Her to Wife Priyanka Chopra

The singer gushed over the little one’s sense of humor and more during a recent podcast interview.

The singer gushed over the little one’s sense of humor and more during a recent podcast interview. 

Generated by Feedzy
Exit mobile version