Tuesday, April 20, 2021

Not Happening


A year ago in the first weeks of seclusion, I was astonished at the rabbit like proliferation of artful black and white commercials with somber piano music that were not commercials but public service announcements -- messages from our sponsor to remind us that whereas everything had changed, nothing had changed.   You might be rationing toilet paper but Charmin had your back in these unprecedented times.  In the first weeks of the crisis when everyone but front line workers were sealed inside their homes, their travel restricted, every car maker wanted you to know that they knew that what you needed now more than ever in these unprecedented times was new transportation and that they were there to make it happen for you.  

While most of us were trying to understand how a new disease on the other side of the world that had infected maybe a few thousand people was a threat, forces behind the scenes were at work on a plan to re-order society which in a matter of weeks they carried out.  While government's response was haphazard, catch as catch can, contradictory, the upheaval to society was swift, coordinated and uniform.  The thoroughness of the response from the owning class freed our elected officials to take whatever tack they fancied as events unfolded-- even unmerited credit for it.  With the crisis handled, the president, in keeping with his brand, was free to clown, to posture and to gaslight about the seriousness of the threat.  Congress meanwhile moved as rapidly as it ever does to ensure that trillions in aid was concocted out of thin air and distributed upward while banking that the crumbs cast to the masses would be met with gratitude.  Were the contradictions ever more heightened?   Your job and your healthcare may have disappeared; the doubtfulness of your future may have moved to the center of your consciousness.  Your sponsor wished you to know that whether you survived this or not, they would still be there at the end of it.  There was no channel you could change to that did not land on the same sad message that due to circumstances beyond anyone's control, we regret to inform you that any semblance of control of your own life is temporarily suspended.  The hand on the remote was still theirs.   

The neoliberal power structure that had ordered me into seclusion never let me forget who was in charge-- flooding the airwaves with propaganda, crushing any chance for universal healthcare to deal with the pandemic.  Suspiciously they preferred to rapidly assume ownership of the Black Lives Matter protests that erupted with the police murders of Breonna Taylor and George Floyd.  Closer to home, my firm provided free counseling, daily meditations, workshops on how to cope (i,e., remain productive) in the new environment.  The managerials devised clever email challenges and games, opportunities for us to remain engaged, cohered, on the hook.  

As vaccines continue to be made available and are administered to the arms of millions in this country, as Texas jumps the gun and re-opens completely, as my tasks at work in a more cautious part of the world become increasingly centered on the possibility of a return to the office-- not yet assigned a date or even spoken aloud but hinted at with activity requested by administrative departments-- as spirits everywhere around me begin to rise like the shining moon of the vernal equinox and a desire to shake off the confines of our year long winter of isolation begins to ripple through every corner of the continent, my heart sinks.  A year ago while I was coping with the death of my ambitions for Bernie Sanders' candidacy,  I was simultaneously struggling to comprehend how things had changed so quickly, and to wonder what future cataclysms were in store for the ordering of my days.  Not long ago, anything seemed possible.  The vacancy at the top of the executive branch has changed, thanks partly to the contrast the new president promised to be to the old president -- never mind what we have long known about him-- exhilarating contrasts that now that the office has been secured seem one by one to be getting pounded back down into the shape of the monotonous familiar.  Now that we are nearing the denouement of this crisis, are we really just to return to how it was?  

Thursday, April 8, 2021

Relativity, Apocalypse and Slapstick with the Fleischers

Some science, fun and prophecy from Max and Dave Fleischer:

The Einstein Theory of Relativity (Max Fleischer, 1923)


Finding his voice (1929)
 

Koko's Earth Control (1928)



Bonus: Ikuo Oishi's Fleischer inspired Ugokie kori no Tatehiki (Fox versus Racoon Dog ) (1933) 



Wednesday, March 31, 2021

Shout, Sister, Shout!


All the way from 1931, here are New Orleans' own Martha, Connie and Helvetia, The Boswell Sisters, testifying with Shout, Sister, Shout! by Clarence Williams, Alex Hill and Tim Brymn.


The spirit was observed to have resurfaced in Buenos Aires some decades later when the sisters were channeled by Miau Trío:


It's no sin to confuse the above with the altogether different song of the same name by Sister Rosetta Tharpe with Lucky Millinder and his Orchestra, although the effect on the soul will be different.


Saturday, March 27, 2021

How Random

A lagniappe of working remotely the past year has been a daily opportunity to ponder randomness for just a moment as I enter the transitory passcode generated on my phone from an authentication app in order to complete a VPN connection to my network, a required measure of security implemented by my workplace.  Over the course of the past few years of using the app, my intuition was that close to every 6-digit passcode generated by it included at least 1 repeated digit.  Daily use only intensified my suspicion.  It seemed that every time I thought to consider the number being generated for me, at least one pair, and frequently 2 were involved.  Something about this didn't sit right with me.  Were randomly generated 6 digit numbers almost guaranteed to repeat a digit?  Or was this app simply not generating random numbers?   

This wasn't just an idle concern.  Years ago, when I first developed some programming skills that were shallow in comparison to others but deep enough to make me dangerous, I spent some of my spare time trying to conceive of ways to devise a random number generator, usually in the service of primitive game design.  I discovered that writing an algorithm to try to produce actual randomness was a great deal more complex than it seemed at first blush to my fertile imagination.  Most self-contained algorithms that I tried lacked something in the production of verifiably random-like sequences of numbers.  I had the most success incorporating some unplanned element of the run-time environment into my calculation, e.g., the evenness or oddness of the thousandth of a second that the program was invoked or of the ascii value of the third letter of the verbal representation of the product of both the tenths and hundredths of a second of the timestamp.

Fast forward through years of American decline to the point of our present situation of isolation.  Facing the mystery each weekday morning, I daily started to daydream about ways to explore the question of how random my authentication app's random number generator was.  My first thought was that the question was something I could tackle through logic alone, perhaps with the help of Excel formulas.  Of course, the purpose of the app being to connect me to work, it never failed that my ambition to solve the problem would be supplanted by my desire to remain gainfully employed, by doing actual work instead. Consequently, my barely started efforts would sit in cobwebs for months before the cycle would repeat, the struggle between ambition and reality playing itself out each time with the same predictable results. 

Today for some reason, with the end of the month approaching and a whole weekend lying before me, it occurred to me that my ability to reason could use some help.  A lightbulb went off and I realized that all I needed to do was to count every possible 6 digit number between 000000 and 999999 that contained at least one pair and then compare it to the incidence of pairs in the passcodes proffered by the authentication app.  Having limited time, I needed a shortcut with the counting, so I dusted off some Python knowledge and built a program to assist with the task. 

Since it had been a while since I'd used Python, to warm myself up I wrote a function to pad an integer n with up to 5 leading 0s, (e.g., render 1 as '000001', 223 as '000223' and so forth) put the digits into a list and then sort the list numerically*:

def AnalNum(n):
a = f"{n:06}"
l = [int(x) for x in str(a)]
l.sort()
return l

The sorting turned out not to be necessary but served mostly as acknowledgement of my realization that using this brute force method and thinking of each number as one of a million possible "hands" that could be "dealt" by the authenticator, I could abandon the complexities of factoring in the location in the string of each member of the pair that played havoc with my ADD when I was attempting to use logic alone.  

My next challenge was to count the instances of pairs, and while I was at it of triples, quadruples, quintuples and sextuples in a given 6-digit number n:

def AnalList(n):
l=AnalNum(n)
Ze,Si,Pr,Tr,Qr,Qt,Sx=0,0,0,0,0,0,0
item=0
while item<10:
Ct=l.count(item)
if Ct==1:
Si+=1
elif Ct==2:
Pr+=1
elif Ct==3:
Tr+=1
elif Ct==4:
Qr+=1
elif Ct==5:
Qt+=1
elif Ct==6:
Sx+=1
else:
Ze+=1
item+=1
L=[Si,Pr,Tr,Qr,Qt,Sx]
return L

Lastly, I needed a function to sequentially feed each digit from 000000 to 999999 into the above and then analyze the output as a means of categorizing each by the instance of tuples (pairs, triples, quadruples, etc.) in the string of digits. Writing the program I realized there were a finite number of exclusive possibilities for a 6-digit number.  To wit, it could have:

  • One and only one pair: e.g., 113456
  • One pair and a triple: 121216
  • One pair and a quadruple:121211
  • Two pairs: 121256
  • Three pairs: 121233
  • One and only one triple: 123226
  • Two triples:  121212
  • One quadruple: 123222
  • One quintuple: 122222
  • One sextuple: 222222
  • Six unique digits: 123456


In light of this, I realized I could get all the data I needed for my probability analysis with the population of 11 counts:

def AnalIsis(N):
OnePair, OnePairOneTriple, OnePairOneQuad, TwoPair, ThreePair, OneTriple, TwoTriple, OneQuadruple, OneQuintuple, OneSextuple, SixUnique = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
q=0
while q<=N and q<1000000:
L=AnalList(q)
if L[0]==6:
SixUnique+=1
elif L[1]==3:
ThreePair+=1
elif L[1]==2:
TwoPair+=1
elif L[1]==1 and L[2]==1:
OnePairOneTriple+=1
elif L[1]==1 and L[3]==1:
OnePairOneQuad+=1
elif L[1]==1:
OnePair+=1
elif L[2]==2:
TwoTriple+=1
elif L[2]==1:
OneTriple+=1
elif L[3]==1:
OneQuadruple+=1
elif L[4]==1:
OneQuintuple+=1
elif L[5]==1:
OneSextuple+=1
q+=1
X=[SixUnique, OnePair, OnePairOneTriple, OnePairOneQuad, TwoPair, ThreePair, OneTriple, TwoTriple, OneQuadruple, OneQuintuple, OneSextuple]
return X

Miraculously, once my syntax errors and indents were worked out, I only needed to run the third function once with a parameter of 999999 to get the numbers I was looking for within seconds.  I compiled the results into a chart which gave me the probabilities for each category.  I now needed some data from the authentication app.  I prompted it 100 times to generate a sample of 100 of its randomly generated numbers† and plotted the results into my graph to compare with the actual probabilities (click to enlarge):

Counts of instances of specific repetitions of digits in 6-digit numbers between 000000 and 999999 compared with those of 100 passcodes generated by a VPN authentication app

Unsurprisingly none of the more exotic possibilities turned up in my sample.  But the actual probabilities to be found among the million 6-digit possibilities were in fact amply demonstrated to strongly favor at least one pair or other tuple among the digits; in fact, it could be expected to occur 85% of the time.   In my test, due to a particularly high number of cases with no repeated digits, it had occurred in only 76% of the numbers generated-- much less than my prediction of closer to 99%-- but otherwise across the board, my sample of 100 hewed remarkably closely to the demonstrated probabilities, an indication to my mind that the randomizer used by the app is pretty good, and proving once again that our intuition and aesthetic notions about what is random are not always correct (at least mine aren't).  

This exercise has also demonstrated to my mind a strange paradox.  Sure, for 100 attempts, the results reasonably agreed with the distribution of tuples across the million 6-digit numbers between 000000 and 999999.  You could imagine however a program designed to dole out each of the members of  the 11 categories in frequencies that clung deceptively closely to the probabilities in the above chart and that never repeated a number once in a million generations. What you would wind up with would be a guaranteed sequence of 1 million 6-digit numbers that fell perfectly into the probability percentages determined by brute force analysis of each in turn.  Curiously, after 1 million iterations assuming the application kept track of the precise sequence of its previous million, the sequence would repeat, and would do so indefinitely by virtue of the algorithm.  In short, it would be the opposite of random! My exercise with a sample of only 100 numbers would be unable to detect this!  In fact, it could be the case that my authentication app is simply repeating a carefully constructed sequence of 1 million 6 digit numbers that only appear to be random, but to an obsessive compulsive too perfect degree.  The only way to prove whether this is the case would be to keep track of my next million passcodes.

I think I can live with the mystery.

~~~~~~~~~~

* Note: It will be best to think of the python contained in this post as not so much exemplary of programming virtue as confessional of programming sin.

† Do not try at home.  As I discovered Monday morning, the consequence of treating an authentication app as a random number generator for a sample of significant size is being locked out of the network for too many attempts.


Sunday, March 21, 2021

Feeling Peevish

 I'm the soul of accommodation, but I do have some peeves.  I will tell you a few of mine (if you will keep yours to yourself.)  (I kid.)

A peeve is not a principle or a matter of morality.  It's a dislike, usually against one's better judgment.  For example, while in principle I will defend to the death your right to pronounce mischievous "miss-CHEE-vee-yuss" instead of "MISS-chih-vuss", that will not prevent me from docking you several points inside my head when you do.*  The word peeve was invented to permit us the space, if you will, to vent our most petty disgusts† and prejudices with an unspoken wall surrounding them, admitting no judgment, admonition or disagreement from the peanut gallery.  It's just a peeve!  Lighten up!   Of course some of us take them more seriously than we perhaps should and use the term to mean personal edict.  These people should be destroyed.  Or at least introduced to Valium.  Peeves should not dictate how we live our lives or what kind of society we want to live in.  Slavery, imperialism, murder, thievery, rape, exploitation of others, the destruction of the environment, cruelty to animals-- these are wrong and should be legislated against because they are criminal ways to behave, not because they rub me the wrong way.

The correct way to have a peeve is to feel a tiny bit ashamed about it. I can't conceal my annoyance at insipid YouTube comments -- why does the comment section of every video that has the faintest whiff of diversion from the  dominant culture and gender degenerate into acrimonious battles drawn along gender, ethnic or national lines? Why does every video from 20 or more years ago invite commentary pissing on the artists of today?  Why do people who enjoy a song feel compelled to take a dump in the comments on every musician they dislike?  The correct answer to these questions is because I'm not the boss of them.

That said, there are a few irritations that I've put off enumerating long enough :

  • Talkative barbers.  Just shut up and get cutting.  I'm not paying you for information.
  • Incorrectly opened and closed packaging.  Whatever's inside can wait until you read the directions about how to properly get to it.  You're not going to starve. On the other hand you probably deserve the stale crackers you'll get the next time you feel like a snack.
  • Family sitcoms.  Is this why you went to film school?  To repeat the same asinine plot week after week, show after show until you get to syndication?  Kids don't talk like that.  Nobody talks like that. 
  • Happy talking newscasters.  Who asked for this? If I want to feel happy about the news I'll shoot heroin at 11:00.
  • Speaking of news, nothing is more distracting than anchors and reporters who end every verb with -ing.  "Plane crashing in Andes.  Survivors waiting for rescue, eating non-survivors."  Is conjugation not journalistic?
  • Multiple endings in movies. You've got my twenty bucks, now please let me leave the movie theater.
  • Sports humor.  I know the mere sight of a quarterback in an insurance commercial is supposed to make me laugh, but I don't know who you are.  And the gimmick itself is flawed: I'm sorry I just don't find thick-necked millionaires funny.
  • The close cousin of sports humor, corporate humor.  Wisecracking spokespeople, cutesy menus,  "clever" slogans.  As funny as a hernia.


This doesn't mean anything.

~~~~~~~~~~

* And if you think you have "another thing coming", you have another think coming.  The "thing" that you need another of is a "think" not a "thing"-- which is to say you're not done thinking, in spite of what you thought.   "Another thing coming" misses the mark of what you're trying to express by a mile. Got that?  Now cut it out!  (And it's not "lip singing"; it's "lip synching"!  Synchronizing your lips to a recorded song.)  (Not that there's anything wrong with how you speak your own language!!)

† Spanish has a word-- grima -- that describes the common unpleasant response to high pitched irregular scratchy sounds like fingernails on a blackboard.  English does as well, but although the response is widespread, the word -- misophonia -- is not. 

Sunday, March 7, 2021

Pinch Me

Jean Lecomte du Nouÿ - A Eunuch's Dream, 1874

I assume I dream.  Virtually everybody does.  But like many, I don't know I dream because I never remember dreams in the morning. The ones I do remember once in a while are for the most part mundane: I make my boss cry at work by asking for a day off; I take my time descending stairs in my home to a party I don't want to attend.  On the more exotic side, I think I've time traveled back to 1962 but I can't confirm it.   I've never (to my waking knowledge) had the classic dream that everyone has of taking a final exam with absolutely no preparation.  I suspect this could be because I have actually lived through that experience several times.  As for lucid dreaming, forget about it.

I remember dreams I had as a child.  Some were epic.  My favorites were always those that involved finding a door in a house that leads to a fully furnished labyrinthine wing that hasn't been entered in years, that's been forgotten about, or just neglected.  Sometimes, it's an ordeal to get from the familiar part of the house to the newly discovered but the effort is rewarded. Things are better in this part of the house-- more beautiful, more drenched in light and hope.  The views out the window are spectacular.  There's a hint that I could choose to stay here and maybe close the door on the part of the house I'd leave behind if I weren't being called back to it.  Happening upon this extra living space that was there all along seems to represent an opportunity for reconciliation with an alternate past, yet while I'm exploring,  I sense a growing anxiety that this could be a dream and if so it could be the very last time I set eyes on this discovery.  As it turns out the anxiety is well-founded.  I think about those dreams for days after I've had them.   While they were common when I was younger, it's been years since I've had one.

There are of course many notions about why we dream.  There's evidence that they have a role to play in the maintenance of memory-- either solidifying those details of the day's experience that we could need later on or sloughing off the dead weight to make room for some more.  Nightmares may be the stuff of anxiety but they might also be rehearsals that prepare you for the ordeals that make you anxious in the first place.  They may provide a nightly exercise in sense-making.  Freud of course thought they were a way for the brain to work through the personal traumas and issues that screw each of us up in our own way. Many a work of art or literature has been inspired by dream-life.  You may not be wrong to interpret them as omens.   But if you don't remember them, what good are they?

We dream during Stage 5 sleep, aka REM or Rapid-Eye-Movement sleep, so called because a person observing the sleeper can see movement of the eyes behind the sealed lids while this deepest phase of the sleep cycle is going on.  We remember dreams because we wake up during REM, while in the middle of dreaming them.  Typically, we have 2 or more cycles of REM a night, in the deepest part of the night and also toward morning, conveniently when we are set to rise. In light of this, I think I could be forgiven for concluding that I rarely wake up in the throes of Stage 5.  

Those who study sleep say that unless the reason for this is poor sleep, there's nothing for me to worry about.  I think I sleep pretty well, but if I have a concern, it's not about health.  It's fear of inadequacy.  Others I know-- my wife, daughter and brother-- have incredible dreams, rich, novelistic, cinematic, deep.  They wake up a little changed each day.  How has sleep become such a desert for me? Did I piss Morpheus off?  Am I so uptight that I can't even dream? 

Still, short of convincing (or paying) someone to watch my eyelids while I sleep each night and give me a poke when they detect movement, I'll have to content myself with day dreams.  And while I might be missing out on the profound and awesome landscape of nocturnal unconsciousness, it's not like I can't appreciate surreality when I come across it every waking day.

Saturday, February 27, 2021

Salomé's Dance

Aubrey Beardsley, 1894

The death of John the Baptist is treated twice in the New Testament: in Mark and in Matthew.  The passage from Matthew (14:3-10) is by a small margin the more succinct:

For Herod had laid hold on John, and bound him, and put him in prison for Herodias' sake, his brother Philip's wife. For John said unto him, It is not lawful for thee to have her. And when he would have put him to death, he feared the multitude, because they counted him as a prophet. But when Herod's birthday was kept, the daughter of Herodias danced before them, and pleased Herod. Whereupon he promised with an oath to give her whatsoever she would ask. And she, being before instructed of her mother, said, Give me here John Baptist's head in a charger. And the king was sorry: nevertheless for the oath's sake, and them which sat with him at meat, he commanded it to be given her. And he sent, and beheaded John in the prison.
The daughter is not named in the bible, but she is, as Shalomit or Salomé, in the writings of Josephus, whose history of the Jews was written within a century of when the events described in Mark and Matthew were said to have occurred. I'm not a biblical scholar or a historian, so I can't speak to the historical accuracy of the passage above, but as with so much of the bible, as literature, it ain't bad.  From the bare bones of the biblical account, with an assist from Josephus, the story was fleshed out to portray the eternal tension between the worldly, the lusty, the decadent and profane represented by Salomé, and the heavenly, abstemious, pure and spiritual represented by John the wild eyed prophet, whom the unrequited desire of Salomé destroys, thanks to the lust that her dance enflames in the heart of his captor.

Oscar Wilde, who encountered and derived inspiration from the story outside the bible in writings of Gustave Flaubert and paintings of Gustave Moreau set about dramatizing it for the London Stage.  Before it got there, production (which was possibly to include the participation of Sarah Bernhardt) was halted on the basis that it was to depict biblical characters-- a no no in British law at the time.  Wilde had long wanted to write a French play anyway, so in 1893, Salomé was published in French in Paris.  An English translation appeared in 1894.  Wilde was in Newgate Prison in London serving 2 years of hard labor for "gross indecency"-- a charge for homosexuality that authorities could get to stick when sodomy could not be proven-- when the play premiered in Paris in February 1896.  Richard Strauss produced a German opera version of Wilde's play in 1905.  The original Salomé from that production was reluctant to dance the Dance of the 7 Veils so a stand-in did it for her in what has become the tradition for performances of the opera.

An epic movie version starring Theda Bara premiered in 1918.  It caused a major ruckus in the US and had to be edited to suit the standards of the provinces.  For whatever reason, it did not stand the test of time and is now considered lost.  

In 1923, Alla Nazimova, a Russian emigrée already with a storied Broadway career behind her and now head of her own movie production company in Hollywood developed a new film adapation of Wilde's Salomé with herself in the title role.  In her design, Nazimova hewed closely to the visualizations of Aubrey Beardsley whose famous illustrations graced the first English language edition of the play in 1894.  Nazimova (also the founder of the legendary Hollywood hotel dubbed the Garden of Alla) was the original Anna Biller: she wrote, directed, produced, edited, did lighting and costumes for her films.  Commercial failures though they were, they were outstanding pieces of work nevertheless.  Her Salomé is considered among the first art films in the US.  For this reason it was selected for preservation in the National Film Registry by the Library of Congress in 2000. 

British composer Charlie Barber created an outstanding score for the film which was released as an album in 2009.  The Dance sequence is below:


Barber's score appears to have been matched to the film in snippets, but to see the whole thing in one go, you can fortunately avail yourself of this version featuring another original soundtrack by another contemporary British composer, Mike Frank.  (If you'd like to imagine your own soundtrack you could always mute it, I suppose.)