Thursday, October 17, 2024

Trucking Algorithms


I don't think long haul truckers have much to fear from AI in the short term, in terms of job loss. However that doesn't mean that lifestyle is immune from overhaul in other dimensions. 

EV trucking might be a thing (Tesla testing) but probably only if cabs decouple from payloads more, i.e. it's super easy to drop a trailer and head to charging, while another cab takes the payload onward with very little downtime. 

Cabs queue and charge at a slower rate but there's always enough of them.

Trucking companies might choose a "driver stays with the payload" policy and have the driver hop from cab to cab, or the driver could stay with the cab and get hitched to different trailers going from A to B all day, not much rhyme or reason from the driver viewpoint but expertly routed by Mother (the company computers).

Tuesday, October 15, 2024

DS US

From Intro to Python slides

US track, Data Science

Tonight I was engaged in torch passing. No, not PyTorch (you know of it?) but moving in that direction. I told my students they were on like the Trans-Siberian railroad, from London to Beijing. I would be their tour guide from London to Berlin. Then I’d hand them off to a next instructor. They’re wending their way towards ML (Machine Learning) the domain of PyTorch, although from the slides I see it’s TensorFlow they get into, which makes sense too. Keras…

The part of the ML pipeline I have them look at is analogous to what I did in outcomes research, when David Lansky and company (MDRC to be precise) were harvesting data from heart procedures, diagnostic and interventional, and getting it statistically analyzed. David and Gary knew statistics. I was the computer guy who knew how to harvest on the front end, design a GUI for data entry and cleaning, while feeding a growing repository on the backend, what would, over time, become Big Data — provided PATS could handle the load.

Harvesting, merging and cleaning data: that was my bread and butter in that this hospital system became my biggest client. That I wasn’t an employee was to their advantage but also put limits on how long this particular configuration could last. Microsoft would end up pulling the plug on Visual FoxPro in 2015. Bigger players would be moving in, replacing my applications. We managed to launch a few careers. Outcomes research took off.

Merging is often overlooked but that’s where pandas in a Jupyter Notebook may prove its metal, pure gold for some company. Do you know about pandas? That’s like Excel in terms of providing tabular frameworks. Tabular data has to be as old as data gets. Rows and columns. Arrays. In the Python world, we have a stack for that, a suite of 3rd party packages. Download and import and you’re in business.

I’d get data from here and there (scannable forms played a role — forms I got to design) and it all needed to get neatly shuffled and interpolated, and placed in relational tables. You only want a specific patient detailed once, but then with multiple episodes, admits and discharges, with procedures in between. That’s one to many. 

Every patient has their own arteries (one to many), but they each have the same coronary suite, so many to one. Which of these arteries have become occluded if any? What cath and what stent were used, or was this a graft, a bypass? 

I had CLAIR for the cath labs and CORIS for the ORs. The doctor practice supporting my efforts, in addition to the hospital system itself, thought my applications were prototypical enough to be worth sharing with bigger companies. "See this stuff Kirby is doing? That's what we need. Why not learn something?" They learned, to a degree anyway. I was in a position to assess.

But I wasn’t using pandas or Jupyter Notebooks or any of that stuff back then. We were a Microsoft shop and I was using FoxPro for the intermediary holding tanks and the GUI. 

I’d learned to parse through cath lab text files coming from time-stamped chronologs made by Quintons, the cath lab machines, where techs chronicled all the details of a procedure. Patient goes under, doctor arrives… procedure over, another success (the success rate was high). Parse the logs, populate tables, let a data pro audit and revise.

Another workflow that gets overlooked, in addition to merging, is anonymizing. Creating these amazing data sets is only allowed if there’s HIPAA compliance. 

We were eager to amass heart procedure and long term outcomes data and to pool it with other hospitals, but not in such a way as to violate confidentiality in medical record keeping. 

My institution (a client) was pretty meticulous along those lines and a big part of my job was to help my coworkers keep all the sensitive identifying fields behind a security wall within the hospital. We suffered no data breaches on my watch, that I know of.

I make it sound like I was doing all this by myself, however the final repository of all this data was PATS, owned by a different company. Once the data my systems harvested was merged and cleaned through my FoxPro GUIs, it got batch imported into PATS, by people trained in that work especially, along with their other tasks.

As I was telling students tonight over Zoom, I had a long career before Python popped up on my radar and even then, it wasn’t as a replacement for the FoxPro applications development toolset. All seems more clear with hindsight.

What drew me to Python was computer graphics and my curriculum development work, more an outgrowth of the McGraw-Hill chapter, which had come before my moving back to Portland and diving in with the FoxPro. 

Graphics and animation. VPython. Hypertoons. 

But then I could backfill by leveraging the data science work just described, and become a guru of data pipelining the way that’s taught now. FoxPro was very SQL-savvy. Learning the Python DB API was not that big a deal. I could use SQL for my Polyhedrons.

Monday, October 14, 2024

Sculpting with Marble

 




Monday, October 07, 2024

Indian Gaming

world_game_room_2


Prompt: 

A Quaker who looks like the Quaker Oats guy is strolling through a huge room where native Americans in traditional dress are hunched over gaming consoles in an Indian Gaming context. Casino decor. War room. Psyops? Troll farm? Kind of mysterious.

X-REF:

Friday, October 04, 2024

Let Us Debate

Reporting for Duty

Posting to the Facebook Epistemology group:

It’s not “factually true” in any epistemological sense that political ideologies span a one dimensional spectrum from far right to far left.
 
These directions (relative to whom?) are arbitrary to begin with, and come with a built in bias. “Right” also means “correct” whereas “Left” inherits the historical stigma of “sinister”, from the Latin “sinistra”. So there’s a thumb on the scale right from the outset. Bad design from the get go.

Tangential aside: It’s like “positive” and “negative” in mathematics, hardly neutral terms. Only the positive three vectors in the XYZ system get to be “basis vectors” whereas the negatives are always secondary, even if you can’t tell them apart in terms of the work that they do.

Biased labeling aside, the idea that a simple linear spectrum is adequate for modeling political ideologies should be met with well-founded suspicion, especially in this golden age of data science (apparently). Who knew statistics would be overnight transformed into the sexiest of professions by the brilliant success machine learning?

In data science we have something called Principal Component Analysis (PCA) which adjudges, by mathematical techniques, what we might call the “rgb colors” or “fundamental properties” of any space. To each component corresponds a dimension, in some n-dimensional Hilbert Space.

PCA involves not necessarily knowing in advance how many dimensions we might really need. To specify in advance: only one dimension, is to prevent the PCA algorithm from optimizing.
 
In other words, “left versus right” is not only poor terminology (because biased), it’s bad science (data science). Too few dimensions to not a cogent model make. Even astrology had more dimensions, not forgetting the superseding Myers-Briggs.

And yet political scientists put up with it, do not fight back. That’s akin to the situation in anthropology, where the pros know we don’t have “five races of man” (black, white, red, yellow, brown), that’s so much bogus BS, and yet corporate sponsored pop culture is allowed to stay uncorrected. A great dumbing down is allowed to persist.

So what’s my ultimate conclusion, in light of this rant?
 
Resolved: that English, without major modifications, is a garbage language, not suited to logical or rational thought. Let’s debate.

So many of core English concepts are so obviously poorly conceived and corrupt (computer science: buggy). Should “good philosophy in English” be considered an oxymoron then?
 
I wouldn’t go that far. I think English in the right hands is still capable, as a language.
 
But by default, English left to its own devices, is not suitable for scientific communications. That’s why education in professional grade English is so important, right?



Sunday, September 29, 2024

Looking Back

A popular exercise in high school history could be to have students write a narrative they imagine in a future history book, about the recent past. Try to emulate the style of academic writing to some extent, but with an audience of people at their same reading level, which is high school to adult.

But of course that’s a broad assignment, which is part of the challenge. How does one pitch it at the right level of overview. The main thing is to emulate hindsight and tell the story differently, to signify the future perspective. What does the current time look like, from after the Singularity? We’re writing science fiction in that case. Martian Math.

Drawing from my own recent corpus and generating from that, a lot of us geeks were turned on by the global electrification trend, which president Johnson made his name in connection with, being a point man when it came to electrifying Texas, still with its own grid. We picked up on the HVDC trend and bought into the World Game plan to link up the hemispheres. On the other hand, a slower business-minded mindset could not conceive of such infrastructure minus its own ownership and control of it, and these delinquents sidetracked the project in order to prove who was calling the shots.

Something about “taking credit” is amiss in today’s cybersphere, where a lot of the content creeping in is recycled bot talk, but not flagged as such. Teen zeens, fan literature, vehicles for advertising, have found ways to amp up content using only half human-authored texts. Text generators abetted by editors, allowed to editorialize, compete with naked thinkers to using AI. The more phony stuff tends to come with telltale signs if one knows what to look for.

Martian Math opted for hydropower in conjoining the physics of power generation with synergetic volumetric accounting, a minor wrinkle, experimental, and a door-opener for curriculum developers, as now we’d have a stronger geometric vocabulary and concept set. Students from our academies would rocket ahead, not being burdened with the kinds of ethnocentrism that lead others to spin out of control, sometimes right out of the gate.

Thursday, September 26, 2024

Am I a Racist? (movie review)

Fox Tower Regal Theaters

As y'all might know, I'm a YouTube junkie. I've got it playing from when I feed the dog breakfast, before sunup, until sundown, off and on. 

And as YouTubers know, to tug on a video is to yank on a long chain of recommendations. "If you liked that one, what about this one?" And so on. I don't resent said algorithms; I use them as mirrors. I'm able to see how my interests change over time.

Anyway, a lot of my peeps have started reviewing that Matt Walsh movie, which broadcasts from the right on the political spectrum, which in snapshot, in today's lingo, means it's prone to pick on a lot of the more juvenile elements within the professoriate (e.g. the ones who haven't gone back, in later life, for those high school refresher courses per my School of Tomorrow).

The meme of "race" (not genetically based really, and yes, we all have a skin color, what's your rgb?) still besets American discourse, whereas most of the time what they really want to talk about is "ethnicity" but that word is hardly made available to them, given the weakness of the anthropology department. 

Teasing apart "race" from "ethnicity" is more where my training would go. There's not color blindness, but there might be some acknowledgment that "race" is more important in apartheid cultures than others.

I prefer the word "apartheid" to "systemic racism" and think it's useful, even essential, to speak freely about the US apartheid system that we succeeded in stamping out for the most part, starting with the anti-slavery movement and leading through a civil war to the civil rights movement.  People are still working hard on their phobias. Islamophobia and Russophobia are still prevalent as mental illnesses.

Those human rights gains were all hard won and we should thank our lucky stars we're not in the pit of hell like Israel is, for choosing apartheid as its moral compass (nothing to do with Judaism in my view, which is here to stay, by continuing to morph, as they all do, these world religions). Too bad women never got an Equal Rights Amendment though. Patriarchy triumphed, at least in the lagging political sphere.

Anthropology, the discipline, always had a hard time escaping ethnocentrism, but it least it had a name for it, and could therefore set up a program whereby individual students of anthropology could start to deprogram, to whatever extent they wished or could. 

Deprogramming means discovering one's own birth culture to be sufficiently alien as to no longer come across as the one obvious choice, even for oneself or one's family, going forward. Roll your own, from the wealth of great lineages made available.

You have to work on transcending your own ethnicity to have empathy and understanding of the others, and that work eventually becomes more about solo psycho-philosophy or "soulmaking" in the James Hillman tradition. You don't necessarily die with the ethnicity you're born with. That's partly what makes it less attractive to bureaucrats, who want to check a box that never changes.

The racists, on the other hand, that dwindling number who actually still believe the pseudo-science, find it convenient to corner a market they call "whites" (scoff scoff), who have no choice but to need endless deprogramming, given how deeply programmed (so-called "privileged") these buggy bots have become. 

"Ethnic whites" (invented for the purposes of this blog post) delude themselves into thinking it's all about them and their racist identity (ethnicity), and then they're supposed to suffer guilt about that, followed by transformative rebirth. As an ethnic Asian (self identified), I consider such "whiteness" rather callow and I'm glad to not be an ethnic white in that sense, although I won't deny my skin has a pale rgb value.

DEI trainers are or were a type of deprogrammer. 

Matt goes undercover, in the manner of a Borat (Sacha Baron Cohen) to infiltrate the DEI trainer universe, and mock it thoroughly. 

He concludes with his own over-the-top version of a training, which likely DiAngelo would call "weird", just as was her own lucrative interaction with the guy pretty "weird" (the $30 race reparations incident).

I'm on board with mockumentaries as a genre, however if I wanted to mock racism (and I do), I'd take a different tack. I'd bring up all those websites about Noah and his spreading family after the flood, and how encoded the racial talk becomes in Bible studies.

These different races really became more pronounced after the Tower of Babel incident though (we're still in Genesis here), when a lack of mutual understanding proved a godsend: peeps were no longer working lockstep on a fruitless, morally bankrupt project to "reach god" through the vertical dimension (the so-called 3rd dimension, i.e. depth). 

Humans have continued confusing themselves with the word "dimension" ever since.

God loves His little morons though, and wanted them to survive, and so confused their tongues this time (vs sending a flood). That started a clumping process whereby humans distilled into the five races we have today: black, white, red, yellow and brown. Everyone else is a mixture of these five. 

That's in the sapien branch of the hominid family. The Neanderthal and Denisovans were presumably racialized in different ways (we don't have all the data yet -- I'm looking forward to the AI art).

Perhaps I just don't sound mocking enough? 

The literal Genesis story has been a dead horse for centuries, such that its skeleton was long ago back to sand. Only the symbolic meanings, as hinted at above, have any ongoing ethical or aesthetic value. 

If we want literal history regarding a Great Flood, we should study Ballard et al and steer clear of theologically-minded spin doctors such as myself. 

I'm interested in the dharmas, but when I want science, the Bible is not the first book I think of.

Sunday, September 22, 2024

Another Journal Entry

I was sorry to learn of Lowen's passing; this was the first I'd heard. Now I see the announcement in the newsletter.

I've been somewhat peripheral to the life of the Meeting, as was driven home today during Peace and Justice committee meeting, in which I felt clueless about much of what was talked about. 

Which didn't keep me from opening my fat mouth a few times (I tried out another joke: one thumbs up one down). The joke: my pronouns are in the possessive tense: his and theirs. Hah hah?

Joking aside, the most insidious of all pronouns is "we" but people rarely talk about that one, especially "we white people" (guffaw... barf). What "we" whiteman, right?

Kepper, Lowen's partner, made a telling point when talking about filling out Lowen's death certificate info and having to specify race. The clerk just assumed "white" but Kepper added "he wasn't white until his twenties" which of course the clerk couldn't process. 

What she meant was: Lowen was born into the Jewish tradition and wasn't allowed even to caddy golf games except in Jewish clubs. The country club WASPs were that anti-semitic, even that recently. A good reminder.

Did we want an anti-racist trainer to come into the Meeting and catalyze a transformative experience for the attenders present? Friends have fallen a long way away from being leaders in the anti-racism campaign I gather. Now they need help, like any corporation (we are a corporation, not for profit). Color us IBM? 

I'm saddened to see booji well-off people spending money on themselves to deprogram. Yes, racism is insidious. But isn't our faith and practice all about self deprogramming, to make more room for God's will (to use the archaic language)? Sad that we have so little faith in our faith that we need to heavily rely on outsiders, is how I was taking it.

Speaking of my take on racism (old hat by now, with so much already here in my journals), here's the gist of my view, that a racist is someone who believes in races:

Screen Shot 2024-09-22 at 2.52.11 PM


Syllabus Author

Wednesday, September 18, 2024

An Apple Story

OCT / RU

Did I mention my Mac Pro died? I was typing mid-sentence when the whole computer froze, nothing I could do but hard reboot, at which point it went to a rectangular icon, not the Apple, and told me to contact Apple support. 

I tried the recovery utility options, downloading a RAM boot drive. It saw nothing to fix, meaning no storage. I was looking at a total loss of access, with no viable boot process. 

I was pretty demur (that word is going around) about it, not nonplussed, calm. 

After all, I was on a beautiful Oregon farm in a luxury trailer with a loyal and happy dog. I was learning tractor skills. 

And back home in Portland, I had the external drive TimeMachine on my desk. I didn't think it would help at all with the dead Mac, but if/when I got a new one, I'd have access to the old files. I was proud of myself for taking it in stride, although I did reach out to friends and family with snippets of what was happening.

One of the more positive results, and I need to tell Terry about this at the Equinox gathering, since he gave it to me, was the Apple iPad turned out to be more capable than I'd thought. No, I wouldn't use it to do my Python work, but in terms of telecommunications and staying organized, it held up under pressure. My skills improved. 

Secret: when the GUI seems bonkers, rotate the screen 90 degrees as in "long tall mode" the GUI improves, even if the keyboard is then at the wrong angle (relatively).

Once back in Portland, I resolved I'd need to visit the Apple Genius Bar downtown and get a read on whether the Mac was repairable. But I took my time, pondering my options. What if I could get by without a powerful Mac. I have older computers, including an older slow joe Mac Pro. I wouldn't wanna teach my Python classes on the slow ones, but what if I wasn't gonna be teaching any Python classes soon?

That was the question: was the course in question (Python + Data Analysis + Data Visualization), for Clarusway, still a go? We hadn't touched base in awhile. 

From the beginning, it was considered contingent, based on getting the peeps, the students. 

I have the workflow sketched out in a generic fashion in my Code School Blueprints album, developed after some years working for a startup code school (within a bigger company). I'll embed those slides here, why not?  

Faculty hangs out in a holding pattern, learning new skills, prepping, until a course is chartered (like a charter flight, instructor = pilot). I'm in a holding pattern with respect to that particular course, while working on other projects.

I've nudged the company with some queries and will likely hear back shortly, but then this happened: the dead Mac Pro sprang to life. 

I'd plugged it in upstairs, in my office (a real office, declared on taxes some years, not a bedroom, except for the snake), and walked away, knowing it'd get as far as the "contact Apple support" screen. 

I didn't check on it for at least two days. 

But then it was time to feed Barry (the python) a mouse, so I walked to and from Tropical Hut on Divsion, across Chavez, around noon, and at some point decided to hit the spacebar. The Mac sprang to life, at the usual login screen. It had booted! It lived!

The first thing I did was do another TimeMachine backup as the best I had was not entirely up to date. 

Ever since, I've been enjoying poking around in familiar territory, my working environment for the last two to three years. I feel like I'm reunited with a country I'd steeled myself to maybe never see again. She's been working ever since. 

I'm hoping she won't go into a coma again, of course. Probably next time I visit that farm, I'll leave her here and just use the iPad. It does Zoom. I still had my meetups. Coding in Python can wait, when tractors become the priority.

Thursday, September 12, 2024

Soap Opera Summary (satire)

The news says NATO is about to give itself permission to amp up its invasion of the Russian homeland. The idea is to keep Ukraine out of NATO on technicalities but “for all intents and purposes” to use it as a military base, as had been happening under President Blinken and Vice President Nuland for some time now. 

Wait, did I get the narrative wrong? Anyway, it’s time for NATO to get the show on the road.

Back in knee jerk legacy media land, there’s probably some sense that people are following the action and are ready to jump into their roles as nationalist loyalist troopers, happy to march march march like the old people tell ‘em is necessary. 

The NATO geezers expect the allegiance of a younger generation not necessarily cut out to play hero in such a tawdry low class drama. Who wants to die for the knuckle draggers? “Why let those dinos live through me?” your average coder is thinking. “They don’t even know Python, most of ‘em (OK, Ada maybe).”

I can’t think of anything more uncool than living in Virginia with parents slaved to Beltway Mafia politics. What an ugly childhood for so many. Shades of Laurel Canyon right? It’s the kids of privilege, like Washington and Jefferson, who are more likely to rebel against the parent company (East India in their case). The Doors.

The frenzied media, MSNBC especially, need to do way more to whip up Russophobia (aka dementia russogenica). Rachel Maddow, help us out here. The needle hasn’t really budged in a while, as attention turns to the “states are no solution” drama in the so-called “Middle East” (snicker). Is it time for another novychok bedtime story? What airplane is parked next to what airplane?

President Blinken needs to deliver some great oratory, before people forget the plot again. Help us remember how democracy is at stake. Tell us how authoritarians will never get a toehold in the USA at least. These people are just not psychologically ready yet. Not for Mafia brand theater. More snake oil kool-aid is needed. Pass the numbskull sauce.

Let me help y’all out. Um.. um.. “My fellow Americans…”. Something like that. And knock it off with the Zionista thing, that’s too radical for our middle of the roaders (pet lovers, cat ladies) by several orders of magnitude. No one thinks that’s cool anymore. Let the Brits take over that whole show. You know, the guys who started it. Lawrence of Arabia and all that.