Saturday, November 28, 2020

Dockerizing My BizMo

Given I have this whole other BizMo Diaries journal (chronofile, blog...), why am I posting this one here?  A mistake?  More a cross-filing. 

I don't want World Game Player (Grain of Sand) to be oblivious when it comes to "a life on wheels" we could call it (leaving room to keep it metaphoric, as usual).  "Grain of Sand" being me, or any one of us, but why not "as a member of a bizmo team" in some chapters?  I need my left brain to remember what my right brain is up to, and vice versa.

Let's get to BizMo now:

BizMo: you go into the garage, where the many plain vanilla models are arranged. They come in many shapes and sizes.  Once you're in the one you've been assigned, based on your selections, you're ready to download your familiar cubby, the personal workspace environment you're accustomed to using. This rig is outfitted for business but doesn't presume to tell you what that means, in terms of desktop layout, icons, favorite playlists and so on.  That's something you craft, and port from vehicle to vehicle.

FAQ:

Some of you are thinking: all very fun science fiction but what's this 'dockerizing' business in your title, makes no sense. 

That's likely a minority, but who knows, don't feel left out.  In my vocab a Docker container is something that comes to you over tcp/ip, and equips your local workspace with a bunch of versions of stuff, all tested to work by whomever designed this container in the first place.  So you sit in the cab of your vehicle, enter some codes, and you get the kinds of applications you need to do the kind of work that you do.

You might be thinking:  why go to all the trouble to install anything locally when your vehicle has full time access to the cloud?  

You see how I set that up to contain the answer:  your assumption about full time access to the cloud is not assumed.  The team needs to operate remotely, off grid, perhaps on battery, and there's no seeking for signal in all circumstances.  But then another reason is response times, ease of use and so on, even when cloud access is maintained.

I'm using Docker in the following way these days:  

I like using the Python language but it's always moving ahead to a next version.  Sometimes I want to play around with the next version without yet changing my everyday work bench, so I turn to Docker.  Thanks to one of those containers, I'm able to boot up the newest Python and work out in its shell, import its Standard Library modules, sometimes cutting and pasting to Quora, where I'm storing my answers to questions, as a way of giving back and working out.

I could be doing all this from within a wheeled BizMo, an actual van of some kind, in which case I might have given myself a Cascadia themed dashboard that talks a lot about geology as we're driving by (something designed by Patrick and Diane).

Saturday, November 21, 2020

Pythonic Polemics

jupyter_window

I've been circling the block, pounding the pavement, knocking on doors, none of that literally, to advance the just cause of (drum roll)... lets just call it: sharing the Pythonic ecosystem.  Yes, "python" sounds like a scary snake, eating up the everglades in Florida.  Monty Python is funnier, but is also esoteric.  But then geeks enjoy esoterica... 

I'm talking about Python the computer language, invented by a Dutchman named Guido, with a lot of help from his friends.  It's a gateway language, a grand central.  Get oriented in Python, then use it as your bridge to something else.  Take advantage of those added smarts.  Python fits your brain.

"Pythonic" means pithy, to the point, according to the principle of least action, optimized.  It doesn't mean densely clever or tricky, what the Djangonauts call "being an astronaut". 

When you code in Python, you're ideally not showing off so much as upholding standards.  You're aiming for readability, almost personability. Pythonic code is reader-friendly.

On Quora, I answer a lot of questions about Python, though I'm starting to branch out more.  Answering questions about Python helps me improve my writing and teaching ability, or to at least stay in shape.

This ecosystem includes more than just the one tool however.  We have that whole Anaconda business, with the flagship Jupyter, both Notebooks and Labs. 

I saw another thing calling itself Pluto out there.  Imitation = sincerest form of flattery. That's what they say.  We're not talking about planets here, but types of interactive "notebook". Know what I mean?

I'm the guy thinking it's a travesty to offer something called "high school", which is supposed to get to the median hard core of whatever the current culture has to offer.  Yes, that includes skills like:

cooking
supplying the cooks
cooking for groups
nutrition
programming
driving
playing sports
reading maps
making jewelry, other adornments, clothing
studying infrastructure (both global and local)
tilling the fields, planting
caring for animals
personal and public health... 

... and then, as usual, academics: PATH + STEM.  

Jupyter stuff would usually go under STEM but could just as much be Literature (silently between A and T, anthropology and theater) or natural language processing (NLP).

As a futurist, I work to keep pace with the Zeitgeist, not hang back and pretend like I still live in the past. 

Not having a command line, a shell, a place to store files, electronically, in the cloud and/or locally, is so forty years ago by now.  

I remember my gig with the police in Hillsboro, Oregon, who were pissed.  Why inspire fear among the youth, around the criminality of copying (piracy) -- Napster was new -- when the copyleft cultures exist?  

You don't need to pirate Windows when you can legally copy Debian, and distribute it to all your friends. This liberated media culture had legally free music tracks, as well as free executable programs.

These police, led by a second generation Chinese police chief, resolved to teach about that Copyleft World themselves, at the police station, if the schools were too cowardly to do so. I'd hazard most were more lazy than cowardly. 

The police hired a Linux + Python teaching duo, Jerritt Collard and myself.  Officer Heuston (since retired) was our man on the inside.

So yeah, if you went through high school in the last five to ten years, or make that twenty to thirty, and had no exposure to Python, or Jupyter Notebooks, then you live well below the poverty line in my book.  You've been oppressed.  

I'm not saying to therefore act like a victim.  

I'm saying it's your work to fight back.

The Zen of Python, by Tim Peters


Beautiful is better than ugly.

Explicit is better than implicit.

Simple is better than complex.

Complex is better than complicated.

Flat is better than nested.

Sparse is better than dense.

Readability counts.

Special cases aren't special enough to break the rules.

Although practicality beats purity.

Errors should never pass silently.

Unless explicitly silenced.

In the face of ambiguity, refuse the temptation to guess.

There should be one-- and preferably only one --obvious way to do it.

Although that way may not be obvious at first unless you're Dutch.

Now is better than never.

Although never is often better than *right* now.

If the implementation is hard to explain, it's a bad idea.

If the implementation is easy to explain, it may be a good idea.

Namespaces are one honking great idea -- let's do more of those!

Tuesday, November 10, 2020

Another Russiagate Postmortem

I think Trump is a lifelong real estate and casino owner crook (of the kind that do well in this country) and digging into his inner workings is definitely going to yield dirt, lots of dirt. Reminds me of vice president Johnson, in the sense of lurking scandal. Saved by the bell.

The Dems were diligently doing that digging, paying Steele, and enlisting the support of FBI operatives in going after Flynn, whom they feared might be a loose cannon (Obama considered him a nutcase).

Trump's assertion he could get along with the Russians was indeed alarming. Presidents don't get to say whatever comes into their heads like that, not when it comes to national security. Trump was a rank outsider with no District experience. "Spy upon him we must" was the sense around the FBI, according to testimony as recently as today's. The McCabe Cabal was getting grilled again, for abusing FISA.

As for the two main aspects of the Russiagate story:

(1) Russians have as much right to troll farms as anyone and Facebook users are not intrinsically protected against the PR / propaganda efforts of paying users. 

Lots of trolls use Facebook to influence public opinion, including Brit and Israeli IDF, so to single out Russians is just bigotry and part of that old timey "how we make money in the District is scare people about commies" (even if Russians aren't commies anymore -- doesn't matter that much, people aren't paying that much attention to begin with) and ...

(2) it wouldn't take a large crew to write the technical parts of the CrowdStrike report, wherein the GRU are depicted as hearing Trump publicly call for digging into Hillary's emails, and deciding to hop to and stay late, beginning phishing operations right then and there, eventually snagging Podesta perhaps.

It reads like a screenplay, complete with comical swear words, the cursing of Crowdstrike by Guccifer 2. I wonder how many government documents of such gravitas contain such silliness.

A few people with an intimidating level of internet jargon (plus omniscient author viewpoint, self conferred) will have no problem crafting a narrative that presumes to reenact what the perpetrators were up to. Really close readers will "discover for themselves" this date/time coincidence and draw their own conclusions (that Trump is secretly signaling the GRU in his speech, cue CNN).

It's like one of those Qanon puzzles: if the light goes on in the reader's head in a way that makes them feel like Sherlock Holmes, then you've scored. 

I put Russiagate on the same moral and intellectual level as Qanon, i.e. in the supermarket checkout tabloid lane, same place where Hillary has an ET love child.

I know the Russiagaters consider themselves intellectual overloads, obedient to Science, and oh so superior to those superstitious Trumpers, but I find this self perception largely unearned. 

This naive "do you really think intelligence services would lie to me?" (big eyes, quivering lip) after decades of being lied to (Vietnam, Central America, Iraq), just seems pathetic.

Thursday, November 05, 2020

EPCOT Revisited

Defunctland: Walt Disney's City of the Future, E.P.C.O.T.

I like that Kevin, the narrator, brings up the "science fiction meets reality" issues that EPCOT would have to grapple with. What about civil unrest, what about voting? What about democracy?

If you watched the Defunctland deep dive into the Robert Moses project: the New York World's Fair of 1964-65 (in which Disney was intimately involved), you might remember the worker slowdown.  In today's terms, one might say "the Black Lives Matter movement was not entirely happy with these white supremacist plans" -- which is how they came across on many levels.

I like to think the Old Man River City project was set afloat in the culture to grow organically.  There's no top down support for it, just as there isn't for Fuller type futurism, which I assume many still confuse with a kind of technocratic fascism.  I'll be addressing these topics on my Youtube channel, perhaps tomorrow.