Iowa Caucuses, Boeing 737 MAX, and Apollo 11: software is usually the weakest link

From Techcrunch:

A smartphone app tasked with reporting the results of the Iowa caucus has crashed, delaying the result of the first major count in nominating a Democratic candidate to run for the U.S. presidency.

Previously, I wrote about how a handful of lines of code could have prevented the Boeing 737 MAX’s software from trimming the airliner into a dive-bomber-at-Midway nose-down attitude (see “Boeing 737 MAX crash and the rejection of ridiculous data”, for example).

I recently visited the Kennedy Space Center visitor center. In the building housing one of the leftover Saturn V rockets there is a compelling “Lunar Theater” presentation explaining that software overloaded the computer system in the Lunar Module during Apollo 11, the first landing on the moon. According to the dramatic retelling, the mission was saved only because the crew hand-flew the spaceship to a successful landing. In other words, all of the civil, mechanical, electrical, and aeronautical engineering challenges were met, but the software failed.

[Update: See comments below for how the the software in this case may have been blameless!]

The books for sale at the KSC do not encourage young visitors to become computer programmers…

Maybe it is time to switch to Haskell?

Also, what if the Iowa debacle had happened in some other country? Would U.S. media report it as resulting from a fundamental problem with that country’s culture and educational system? Whereas if it happens here in the U.S. it is just an unfortunate freak event?

Related:

  • Apollo 11: Mission Out of Control (WIRED): “The inside story of how Neil Armstrong and Buzz Aldrin struggled to touch down on the moon, while their guidance computer kept crashing. Again and again.”
Full post, including comments

Are any of the Kansas City Chiefs from the same tribe as Elizabeth Warren?

So many questions after watching part of the Super Bowl with an Irish friend.

“Are any of the Kansas City Chiefs from the same tribe as Elizabeth Warren?” Turns out that this was already answered by the New York Times:

On Sunday, the Kansas City Chiefs will play the San Francisco 49ers in the Super Bowl. Chiefs fans will don headdresses and mark themselves with red paint to perform the “tomahawk chop,” a wordless chant complete with a swinging motion of the forearm, caricaturing what they believe is Native American culture.

A 2005 resolution by the American Psychological Association recognized research that found that Native American team mascots and symbols harm our children’s self-esteem. Racial stereotypes are harmful, no matter the intent.

How do multiple “chiefs” play together as a team? (No answer so far.)

Inevitably from a person accustomed to soccer: “Why is this game so f*cking slow?” (I timed the last 2.5 minutes of the game… more than 20 minutes.)

A minor question: Why couldn’t the 49ers concede with a few seconds left in the game? Why were the players collectively forced to run out the clock?

My own question: Fox and Fox News are owned by the same parent company. Watching the Super Bowl thus puts cash into the pockets of the Official Channel of the Deplorables. Why would people who proudly #resist and who claim that Fox News is responsible for the parlous state of our nation watch regular Fox at any time for any reason?

Readers: How can anyone who purports to be resisting Donald Trump tune into a Fox station?

Related:

Full post, including comments

Pete Buttigieg is the rich white guy with one black friend

How is my favorite Democratic Presidential candidate, Pete Buttigieg, doing? (previous post) Will he win the Iowa caucuses tonight or will it be one of the (barely) living fossils who get more press coverage?

In Bermuda, a comedian of color said “Pete Buttigieg is the rich white guy with one black friend”. I still think that he is by far the most soothing candidate and therefore ought to win.

How do my neighbors here in Boston feel? They’d like to “move on,” but still display bumper stickers from the 2016 election:

They don’t want anyone to think that they’re Republican:

And it turns out to be all about love:

(Perhaps a sign of the American Zeitgeist, but the driver who wants to communicate a message of “love” has a bumper sticker featuring former divorce plaintiff Elizabeth Warren. (see “Americans separating children and parents at the border and within”))

Full post, including comments

Haircuts for climate change?

My iPhone went for a brief inadvertent swim in the Bahamas. Afterwards, it refused to charge due to the detection of water inside the Lightning connector. My companion is a collector of classic English automobiles (he’s Irish so I don’t know why he would want the automotive products of the country that colonized Ireland) and thus has extensive and bitter experience with Lucas electrics. “Use a hair dryer on it,” he suggested.

As I consumed hundreds of watts of power in what turned out to be a successful quest to restore the iPhone to full health, it occurred to me that long hair might be bad for Mother Earth.

Consider that maintaining long hair requires a lot of shampoo and conditioner plus huge energy consumption if blown dry. By contrast, it costs almost no energy to cut hair short.

Greta Thunberg appears with long hair in photos and therefore plainly wearing one’s hair short cannot be a condition of climate sainthood. But why isn’t it?

Full post, including comments

Tesla, as others saw him

Yesterday’s post was about Nikola Tesla as he saw himself. I also read Tesla: Inventor of the Electrical Age, by Bernard Carlson, a professor with a “Ph.D. in the history and sociology of science”.

The book is weak on explaining science and engineering. The figures are cut and pasted from patent applications of the late 19th century and they are not great for learning Electricity and Magnetism.

The publishers also gave the book a title that the body text contradicts. It seems to have been European scientists who invented the electrical age, not Tesla!

Among these scientists was Hans Christian Oersted, who in 1820 discovered a relationship between electricity and magnetism. Oersted connected a wire to a Voltaic pile and then placed a magnetic compass under the wire. To Oersted’s amazement, the compass needle was deflected only when he connected or disconnected the wire from the pile. Oersted’s experiments were repeated by André-Marie Ampere, who established that it was a flow of charge—a current—that was interacting with the magnetism of the needle and causing motion.

In 1831, Michael Faraday answered this question. Using a donut-shaped coil of wire and a bar magnet, Faraday demonstrated the laws of electromagnetic induction.

Faraday further realized the significance of Oersted’s observation that the compass needle was deflected only when the current was turned on or off; when the current was passing steadily through the wire, there was no deflection. Faraday hypothesized that both the magnet and the electric coil were each surrounded by an electromagnetic field (often depicted as a series of force lines) and that current or motion was produced when one of these fields was changing. When one turned the current on or off in Oersted’s wire, one energized or de-energized the field surrounding the wire, and this change interacted with the magnetic field surrounding the compass needle, causing the needle to swing. As we shall see, this realization that a changing field can induce a current or produce motion was essential for Tesla’s work on motors.

The author also credits Heinrich Hertz with the fundamentals behind radio communication.

What if we had to rely on the work of European engineers?

In Europe, though, AC was not forgotten, and inventors there improved the transformer; by winding two different coils on a single iron core, they found they could raise or lower the voltage of alternating current, and they quickly started using this new device in a variety of ways. For instance, in London in 1883, Lucien Gaulard and John Gibbs used one of the first transformers to connect both arc and different incandescent lights in series to a single large generator.29 About the same time in Budapest, the engineers Tesla had met at Ganz and Company—Zipernowski, Bláthy, and Déri (ZBD)—saw AC as a way of developing an incandescent lighting system that could serve a wider area. By having their generator produce high-voltage AC, they found they could distribute power over longer distances using small copper wires. To protect customers from the high voltage, they used a transformer to step down the voltage before the current came into homes and shops. Within a few years, the ZBD system was being used to light several European cities. Both the Gaulard and Gibbs and ZBD systems employed single-phase AC since that was all that was needed to secure the desired voltage change.

In other words, if no Americans had ever tinkered in this area, we’d have exactly the same system delivering power to our homes and offices.

How about the AC motor itself?

This brings us to Tesla’s third insight in the park. Based on his extensive mental engineering, Tesla had a hunch that somehow one or more alternating currents could be used to create a rotating magnetic field. If so, his thinking would have paralleled that of an English physicist, Walter Baily, who reported in 1879 how he had used two electric currents to cause Arago’s wheel to rotate. Instead of a horseshoe magnet, Baily placed four electromagnets underneath his copper disk (see Figure 2.9). Baily linked the coils in series, joining one with the other diagonally across from it. He then connected each pair of electromagnets to a rotating switch that controlled the current delivered from two separate batteries to the pairs of electromagnets. As Baily rotated his switch, the electromagnets were sequentially energized to become either north or south magnetic poles, with the effect that the magnetic field underneath the copper disk rotated. As a scientist, Baily seems to have been satisfied to know that electric currents could be used to turn Arago’s wheel, and he regarded his motor as a scientific toy.

1884 was a year in which no human being was illegal and Tesla emigrated to the U.S.:

Years later he recalled that process of formally entering the United States consisted of a clerk barking at him, “Kiss the Bible. Twenty cents!” Having lived in the cosmopolitan cities of Prague, Budapest, and Paris, Tesla was initially shocked by the crudeness and vulgarity of America. As he wrote in his autobiography, “What I had left was beautiful, artistic, and fascinating in every way; what I saw here was machined, rough, and unattractive. A burly policeman was twirling his stick which looked to me as big as a log. I approached him politely, with the request to direct me [to an address]. ‘Six blocks down, then to the left,’ he said, with murder in his eyes. ‘Is this America?’ I asked myself in painful surprise. ‘It is a century behind Europe in civilization.’

Tesla was quickly successful, selling patents on AC motors to Westinghouse in 1888 and earning roughly $90,000 for himself. What would $90k have been worth?

In late September, Tesla switched from the Astor House to the Gerlach Hotel on 27th Street, between Broadway and Sixth Avenue. Built in 1888 at a cost of $1 million, the Gerlach was an imposing eleven-story fireproof building that featured elevators, electric lights, and several sumptuous dining rooms.

I.e., Tesla earned enough to fund construction of one entire floor of a massive hotel in Manhattan.

He was a fantastic showman:

To help the audience appreciate the full potential of high-frequency AC for electric lighting, Tesla offered a breathtaking demonstration (Figure 7.2). Two large zinc sheets were suspended from the ceiling about fifteen feet from each other and connected to the oscillating transformer. With the auditorium lights dimmed, Tesla took a long gas-filled tube in each hand and stepped between the two sheets. As he waved the slender tubes, they glowed, charged by an electrostatic field set up between the plates. As Tesla explained, high-frequency current now made it possible to have electric lighting without wires, to have lamps that could be moved freely around a room.

From London, Tesla traveled on to Paris and booked a room in the Hotel de la Paix. On 19 February he gave a lecture before the Société de Physique and the Société International des Electriciens (Figure 8.3). Finding his demonstrations highly persuasive, the French electrician Édouard Hospitalier observed, “The young scientist is … almost as a prophet. He introduces so much warmth and sincerity into his explanations and experiments that faith wins us, and despite ourselves, we believe that we are witnesses of the dawn of a nearby revolution in the present processes of illumination.” Just as in London, Tesla’s performance generated a great deal of excitement and praise. “The French papers this week are full of Mr. Tesla and his brilliant experiments,” reported the Electrical Review. “No man in our age has achieved such a universal scientific reputation in a single stride as this gifted young electrical engineer.”

What did it cost to attend?

In St. Louis, Tesla lectured in the Exhibition Theater, which seated four thousand, but the hall was packed to suffocation as another several thousand people crowded in, most of whom came hoping to see Tesla’s spectacular demonstrations. The demand for seats was so great that tickets were being scalped outside the hall for three to five dollars.

We forget how unstable the U.S. economy was back then. The Panic of 1893 nearly put the new electric companies out of business and certainly wiped out a lot of shareholders even when the companies continued to operate.

The next post will talk about Tesla’s attempts to come up with a Second Act.

Full post, including comments

Why would anyone name a car company after a guy famous for delusional overpromising?

One doesn’t learn much history in Electrical Engineering skool. I had a dim perception of Nikola Tesla as someone who turn Katherine Clerk Maxwell‘s equations into practical AC generators and AC motors. So it seemed to make sense that an electric car company would be named after Mr. Tesla.

During my recent trip to China, I decided to read up on the pioneers of the technology that has made China the modern industrial powerhouse (so to speak) that it is.

I started with My Inventions, The Autobiography of Nikola Tesla. Tesla wrote the book in 1919 at the age of 63 (he would die in 1943, in poverty and debt, in the New Yorker Hotel at age 86). He is enthusiastic about invention:

The progressive development of man is vitally dependent on invention. It is the most important product of his creative brain. Its ultimate purpose is the complete mastery of mind over the material world, the harnessing of the forces of nature to human needs.

Tesla implied that his personality was inherited:

My mother was an inventor of the first order and would, I believe, have achieved great things had she not been so remote from modern life and its multi fold opportunities. She invented and constructed all kinds of tools and devices and wove the finest designs from thread which was spun by her. She even planted seeds, raised the plants and separated the fibbers herself. She worked indefatigably, from break of day till late at night, and most of the wearing apparel and furnishings of the home were the product of her hands. When

Very quickly the delusions begin

My sight and hearing were always extraordinary. I could clearly discern objects in the distance when others saw no trace of them. Several times in my boyhood I saved the houses of our neighbors from fire by hearing the faint crackling sounds which did not disturb their sleep, and calling for help. In 1899, when I was past forty and carrying on my experiments in Colorado, I could hear very distinctly thunderclaps at a distance of 550 miles.

In Budapest I could hear the ticking of a watch with three rooms between me and the timepiece. A fly alighting on a table in the room would cause a dull thud in my ear. A carriage passing at a distance of a few miles fairly shook my whole body.

Isn’t it a good working definition of “delusional” to hear things that nobody else hears?

Bad news for Tesla shareholders:

If my memory serves me right, it was in November, 1890, that I performed a laboratory experiment which was one of the most extraordinary and spectacular ever recorded in the annals of Science. In investigating the behavior of high frequency currents, I had satisfied myself that an electric field of sufficient intensity could be produced in a room to light up electrode less vacuum tubes. Accordingly, a transformer was built to test the theory and the first trial proved a marvelous success. It is difficult to appreciate what those strange phenomena meant at the time. We crave for new sensations, but soon be come indifferent to them. The wonders of yesterday are today common occurrences.

(I still like Dog Mode, though, having asked for it back in 2003!)

Speaking of Dog, Tesla wanted to compete with God:

One day, as I was roaming the mountains, I sought shelter from an approaching storm. The sky became overhung with heavy clouds, but somehow the rain was delayed until, all of a sudden, there was a lightening flash and a few moments after, a deluge. This observation set me thinking. It was manifest that the two phenomena were closely related, as cause and effect, and a little reflection led me to the conclusion that the electrical energy involved in the precipitation of the water was inconsiderable, the function of the lightening being much like that of a sensitive trigger. Here was a stupendous possibility of achievement. If we could produce electric effects of the required quality, this whole planet and the conditions of existence on it could be transformed. The sun raises the water of the oceans and winds drive it to distant regions where it remains in a state of most delicate balance. If it were in our power to upset it when and wherever desired, this might life sustaining stream could be at will controlled. We could irrigate arid deserts, create lakes and rivers, and provide motive power in unlimited amounts. This would be the most efficient way of harnessing the sun to the uses of man. The consummation depended on our ability to develop electric forces of the order of those in nature.

Though he also believed in God:

[World] Peace can only come as a natural consequence of universal enlightenment and merging of races, and we are still far from this blissful realization, because few indeed, will admit the reality that God made man in His image in which case all earth men are alike. There is in fact but one race, of many colors. Christ is but one person, yet he is of all people, so why do some people think themselves better than some other people?

Tesla was not daunted by failure:

I have refrained from publicly expressing myself on this subject before, as it seemed improper to dwell on personal matters while all the world was in dire trouble. I would add further, in view of various rumors which have reached me, that Mr. J. Pierpont Morgan did not interest himself with me in a business way, but in the same large spirit in which he has assisted many other pioneers. He carried out his generous promise to the letter and it would have been most unreasonable to expect from him anything more. He had the highest regard for my attainments and gave me every evidence of his complete faith in my ability to ultimately achieve what I had set out to do. I am unwilling to accord to some small-minded and jealous individuals the satisfaction of having thwarted my efforts. These men are to me nothing more than microbes of a nasty disease. My project was retarded by laws of nature. The world was not prepared for it. It was too far ahead of time, but the same laws will prevail in the end and make it a triumphal success.

Tesla was an isolationist and would have to agree to disagree with Greta Thunberg:

As I view the world of today, in the light of the gigantic struggle we have witnessed, I am filled with conviction that the interests of humanity would be best served if the United States remained true to its traditions, true to God whom it pretends to believe, and kept out of “entangling alliances.” Situated as it is, geographically remote from the theaters of impending conflicts, without incentive to territorial aggrandizement, with inexhaustible resources and immense population thoroughly imbued with the spirit of liberty and right, this country is placed in a unique and privileged position. It is thus able to exert, independently, its colossal strength and moral force to the benefit of all, more judiciously and effectively, than as a member of a league.

He was interested in aviation:

As stated on a previous occasion, when I was a student at college I conceived a flying machine quite unlike the present ones. The underlying principle was sound, but could not be carried into practice for want of a prime-mover of sufficiently great activity. In recent years, I have successfully solved this problem and am now planning aerial machines devoid of sustaining planes, ailerons, propellers, and other external attachments, which will be capable of immense speeds and are very likely to furnish powerful arguments for peace in the near future. Such a machine, sustained and propelled “entirely by reaction,” is shown on one of the pages of my lectures, and is supposed to be controlled either mechanically, or by wireless energy. By installing proper plants, it will be practicable to “project a missile of this kind into the air and drop it” almost on the very spot designated, which may be thousands of miles away.

He also wanted to do AI and self-driving cars!

But we are not going to stop at this. Telautomats will be ultimately produced, capable of acting as if possessed of their own intelligence, and their advent will create a revolution. As early as 1898, I proposed to representatives of a large manufacturing concern the construction and public exhibition of an automobile carriage which, left to itself, would perform a great variety of operations involving something akin to judgment. But my proposal was deemed chimerical at the time and nothing came of it.

That’s Tesla in his own words. The next post will have some links from a biography.

Full post, including comments

Colds will become less prevalent due to cashless economy?

From a Mexican’s point of view, American counter-service restaurants and ice cream stands do something completely unsanitary: the person handling the cash is also the person handling food.

At least in the Shanghai region, I noticed that the Chinese usually separate food-handling from customer-handling (not really “cash handling” since WeChat is the typical method of payment.)

I’m wondering if Americans will get fewer colds as we transition to a cashless economy. If everyone who goes to a counter pays by inserting a credit card into a machine or waving a phone, shouldn’t there be less chance of an infection being passed from customer-to-clerk-to-customer?

I couldn’t find good research on this subject. China would be an interesting case study since they have gone mostly cashless in a short period of time. Anecdotally, it was rare to see someone (Shanghai in November) suffering from a cold and I never got any hint of food poisoning.

But maybe this isn’t interesting because the effect will be small and swamped by increased transmission of disease due to increasing population density (from (a) population growth, (b) migration and urbanization).

Related:

Full post, including comments

What’s happening on the Turkey/Syria border?

Just a few months ago, Americans couldn’t live without news about Turkey, Syria, and the Kurds, e.g., “Kurds say Turkey is violating hours-old ‘ceasefire’ in northern Syria” (CNN, October 18, 2019)

Our media is now silent on this topic. Did whatever the problem was resolve itself? Or Americans stopped caring? Or what?

Full post, including comments