From static frames to animation – JavaScript, Java & Processing; coding Art ….

As part of my research, I endeavored to build a frame and tile itevenly…as you would a column in a upscale restaurant, or as Billy-Buster tiled his lesser-known below-ground pool in the hilltop paradise above San Simeon. Drawing squares, keeping track of their quantity, position and spacing proved unweildy. So back to the drawing board I turned. The first task was to completely fill a window with squares, evenly spaced, uniformed – no holes. My first breakthrough was a rectangular grid – from the drawing board I found that instead of looping to keep track of the squares (their origins in CGI coordinates space, their quantity, when to drop down a row, when to stop building them…) oy! I located a KISS-simple solution in the following functions and abstract data types:

Click to see it transform.
Some tweaks to a nested-for loop, appropriate “pops” nee popMatrix(); and the careful application of a “random” number generator to produce cool-colored tiles —but not TOO cool — experiment yielded a random range in Green and Blue to give the tiles a watery sheen, sans magenta, indigo, dark purple and the like. For personal intersest and further research I added a mouse event that slows down the animation, eliminates the thin black borders on each tile and zooms in on the whole operation.
At long last “Random dynamic & cool tiles” is up for public consumption:
I could see a pool in Laguna, LA, Vegas or Laughlin with swanky, swarthy, light-up tiles in a pool or on a wall of it’s club …. Bill R. Hearst would be pleased…I like to think so.
Next – I thought about Neil Degrasse Tyson. He says that the “snow” we see on the “TV channels in-between TV channels,” (something our Millennial friends may never fully appreciate…) is ACTUALLY a visual representation of the background radiation that’s permeated the Universe since the Big Bang. UHF & VHF cathode-ray displays pick up this noise and spit out the “ssshhhhhhhh” and the black, white & gray snow we may’ve found on Channel 1 or 3. Mostly, it was annoying and caused us to quickly dial up to CBS, PBS, NBC, FOX or ABC to see what was cookin’….but in the context of nostalgia, the scientific implication of looking back seven trillion years; this “snow” is worth an emulation. Using similar logic I fashioned version 1. The snow doesn’t dance around the screen, but the small circular “flakes” and the way they appear to move based on random gray-scale shadings is a nice start. It looks like they move – kinda.
^^^^I slowed the frame rate down to avoid headaches.
After random “cool” I had to attempt random “warm” –this graphic reminds me of a HollyWood or Vegas marquee. Bright lights seize attention; underscoring the glitz and glamour purported to be found within. The difference is that I think the bulbs this animation emulates are controlled in strict, looping sequences as opposed to my random flashes of “bright” colors controlled by logic.
This animation reminds me of the “Sushi”scene from “Defending Your Life” — Albert Brooks’ barmate proudly states that his life accomplishment was coining the phrase “All Nude. (You know those strip clubs out by LAX? ….“) You needn’t be a fan of his quirky brand of humor to get huge kick out this classic.
That said, I FINALLY got the computer graphic programs to not only display but animate! The “random- (random number generators are not TRULY random, but they are close)-ness” of the algorithms give the displays a kind of innate ability for the computers to create something of THEIR OWN — MY LOGIC & Design—> the computers’ brushstrokes.
All of the “sketches” (as they call them) on my new OpenProcessing Profile are completely original – designed, built, tested, tweaked and deployed by this writer. If you visit my new page & graphics, the source code is easily visible. Feel free to reproduce it yourself, or make changes/improvements to it. You will find that all of them are optimized –nee “code-golfed.” I designed these algorithms to use the fewest lines of code, fewest commands and simplest logic to add a layer of mathematical elegance to the aesthetic of each sketch. Please feel free to download my source code…just plz note that all of them are intellectual property- if you plan to use them in a public/educational or commercial setting…just ask! chris@tapper7.com
More coming soon….plus a litany of fresh podcasts – “I swear it by the old gods & the new.” -t []

LMGTFY script, win8.1 jpeg snip embed and OODraw test….

Snapshot of Google affinity categories on tapper7.com...the top 10 for december 2014

^^^I’m POWERLESS!….I’m addicted to Shopahol!^^^

And why do I have to Google LMGTFY to script it into a WordPress Post?
Why do powerdrills always lead to jokes about gay blowjobs?
//test LMGTFY script:

//HTML5 img class test:
variation on a variation on a gag strip from the New Yorker
//asynchrounous advertest:

//end tests
//end post

Cal Poly San Luis Obispo News Archive Part 3: Genius Abuse

Let’s take a break from murder and rape for a bit…I want to relate a unique anecdote….this was not a news item but another thing that happened that indicated massive corruption to me early on….

It’s February, a brand new millennium. I have a great professor who had the ability to help me understand object-oriented-design. without his help, I would’ve flunked out of my computer science classes, placed on probation and booted. He’s a good guy, a great teacher. He saved my ass.

He’s also a genius. Unquestionably. with that normally comes w/ quirkiness – strange behavior. This associate professor had worked at IBM, JPL (and subsequently NASA)…most Cal Poly professors have PhD’s…it’s likely required. Let’s call him “Carl” (in honor of Carl Sagan). Carl graduated from CalTech – with the only doctorate they offer: (clinical science and medical science programs are avail, but the MD is granted via UCLA or USC)

From CalTech’s Graduate Program online reference:
   
    Doctor of Philosophy

The degree of Doctor of Philosophy is conferred by the Institute primarily in recognition of breadth of scholarship, depth of research, and the power to investigate       problems independently and efficiently, rather than for the completion of definite courses of study through a stated period of residence. The work for the degree         must consist of research and the preparation of a thesis describing it, and of systematic studies of an advanced character, primarily in science or engineering.

Translation: there is no program….you present a comprehensive study and solution for a real world scientific problem with NO HELP OR ADVICE, all by yourself. Carl never said what it was …considering he worked for JPL it is probably classified.

Carl ended up at IBM because he was head-hunted away from JPL/NASA….they offered him a LOT of money…by the 90s IBM’s market share was being erroded by Compaq, Dell, HP and Gateway. We’ll never know what they paid him but I assure you it was probably triple his salary at JPL.

The problem with IBM is that Carl’s a genius, he doesn’t want to design a better processor to run Windows on….he also doesn’t like the corporate environment-a cubicle? HR seminars? Politics? 25 bosses? deadlines? performance reviews? this doesn’t work for a creative mind that is incomprehensibly intelligent – the right and left brain both firing on all cylinders. Carl was either fired or quit….he didn’t want all that money, but he still needed a job.

So he took one at Cal Poly. Why not? For all the bad things I’ve said about Cal Poly, w/o our Computer Science, Computer Engineering and Electrical Engineering alumni there is no Silicon Valley. No Intel. No Oracle. Graduates can build an operating system; they can create a new programming language AND a compiler for it. For CSC majors, after a brutal 101-103 freshman program, sophomores get the 205-206 brutality slave-labor program (if you don’t LOVE building software, you will quit after 205 or during 206 (Teams of 5 or 6 “get to” build an enterprise system for the university or the city. I had a choice between rebuilding the Cal Poly Computer Science Web Site OR build a card-reader system for the bus-system in SLO (Like a day-pass for OCTA) – YES it has to work and yes it actually gets used.

So the city or the college can farm out every upgrade, problem or project to subsequent students who do it for free! “Learn by Doing” Right?

I’m off-topic, back to Carl.

The two classes Carl taught me were concerned with Object Oriented Design; an abstract way of writing code and structuring it in more of a human way and less of a machine way.* He never demanded outrageous workloads like the other engineering professors, these were lab classes so had to verify our theoretical understanding by assigning real world problems and testing the solutions we designed.  A lab project could take 2 hours, 2 days, 2 weeks, or some (I have one) never get solved.

Carl’s way of teaching (he wasn’t a teacher….as I said) always made it so the complex problems were easy to “divide and conquer” that is, to break a large problem down into x sub-problems, then separate each down into x(squared) easy problems, solve those, which will solve x and assemble the x to solve the original problem. I had to bash my head against the wall for 100 hours a week sometimes just to finish 1 dumb project that someone who “got it” could finish in an afternoon. He gave me confidence, made me feel like “not an idiot” as all the other profs and CSC students had…

I even made a friend in his classes, we had mutual respect for each other cuz we were both getting B’s (that’s a big deal a 2.0 is considered just fine, even though a 1.9 in one 10-week qtr puts you on probation, a 2.0 the next qtr takes you off of it – I graduated with 2.8 – a C+) We also weren’t people who had been programming since they were 5 yrs old. It made me wonder why CP accepted me into the major? I qualified for the Engineering College, but from day 1 it was clear that expertise in math and a love for video games did NOT qualify me to compete with anyone. Had he not taught me QUICK…I’d never made it past sophomore year.

Carl comes in one day. Late for class. He looks REALLY PISSED. This was not uncommon. He was always friendly, but he never seemed happy….he had this blank stare sometimes and I detected something(s) personal or tragic were still bothering him or ongoing. He was red-faced and sweating….he just sort-of paced around the room while we sat there, maybe 5 or 10 minutes.

He was about to say something. He was trying to decide whether or not to say it….most likely HOW to say it

Carl was probably the first to ever come right out and say what I was already feeling at the time about the college: greed, lies, perception – common themes so far.

Finally he relaxed and walked up front.

“How much money do you guys think I make?“——I was stunned. Everyone was. What the FUCK…is he talking anout?

“Seriously…I want you guys to think and as soon as you have a guess call it out.”

Nobody raised their hand or said shit….but I was definitely thinking about it. WE all knew he had a PhD from CalTech, that he’d spent about a decade at JPL/NASA and that he’d come from IBM as a Sr. R&D project manager at IBM….in 1999 his salary at IBM couldn’t have been less that 100k. I knew he’d taken a pay cut….prob a big one to be here…he wasn’t tenured, but this Cal Poly – Engineering – Computer Science. You can’t apply for a job like that. IF they ever need someone….they’ll find an established, possibly world-renowned software theorist. Someone famous among software engineers at minimum.

It was in-between 40k and 60k… it HAD to be. when he started asking us individually, most were guessing between 50k and 80k. That was a bit high, but he was full-time this was his only job.

“Chris – how much?”

“uhhh….you probably get like $50,000 a year?”

Polling the whole class indicated we thought he made about $60,000+. Then he projected the over head on the white-board. It was a copy of his paycheck for the previous month, he’d blacked out his SSN, but everything else was there….more personal info I’d want a classroom full of software engineers to have, that’s for sure. He was payed by the College of Engineering by a payroll clerk, monthly….and it said that he’d been paid $1200 for the previous month.

Ok, wait, what? That’s $300 a week. I knew he was putting in 50 hours easy….that’s SIX DOLLARS an hour. My first real job was at Starbucks…I started in 1997 and entry-level was $6.50 PLUS I got an extra 3-4 bucks per hour in tips. He broke it down that way too.

“I make less than minimum wage….[he went on to explain because he’d been there less than year there was some provision that made him an associate professor but somehow he wasn’t accredited, or some rule change had come through and his monthly check had dropped significantly] …My rent is $1000, this isn’t enough for me to EAT!”

He said he had some money saved up from IBM and that without that and barring a significant change to “What they promised me…” He’d quit. and they he went on at length about how he’d “been cheated,” and “lied to” that “he had offers from other universities when he left IBM but Cal Poly  offered the best incentives to him.”

They said he’d only work about 20-30 hours a week, that most of it would just be office hours, where he could do whatever he wanted plus have access to all the same research tools he’d had at IBM (If anything we probably had better). To become tenured you HAVE to conduct research AND publish…for most it’s commentary in professional or academic journals. If there’s anyone I wish published a book on software design, it’s him. His software runs on the Hubble Space Telescope. He was told he’d make about $45,000 a year with bonuses for student performance, peer-review, admin-review and publishing papers and books. He’d been conducting research and publishing results in professional journals for 20 years, he was still doing so.

Most journals are like online forums, you establish credibility by working and publishing, but the I don’t that JAMA gives any money to doctors for publishing research….it’s just a major honor to have the most respected publication in your profession print YOUR work.

One thing every company or contractor or client I’ve ever worked for either explicitly states- to NOT tell co-workers, supervisors, customers associates what you make. It’s a firable offense at many companies.

This was the first time I’d ever had the inkling that professors were being scammed. Whatever the power structure was…the associate professors are definitely not part of it.

Companies like Sun Microsystems (now Oracle), HP, Intel, Silicon Graphics, Applied Materials, Cisco Systems POURED money into computer science and computer engineering at Poly. Carl left sometime in 2001…the dotcom bubble blew up, but so did the WTC…so whatever $ Cal Poly lost out on from all the big companies that were laying off 1000s of tech workers, most pulled the plug on donations I’m sure, but the DoD, the CIA, DARPA, DIA, FBI and the newly-formed Dept. of Homeland Security MORE than picked up the slack to keep churning out 1st class engineers from 1st class Engineering Colleges….so Cal Poly didn’t lose a cent.

As for Carl…if he had any trouble finding a diff. job when he left…it’s almost guaranteed he was folded back into government software research or a contractor like TRW, KBR or Raytheon.

I’m sure he’s fine. Better off w/o Cal Poly….

*****COMING SOON****** ill mention the professor “acquired” as depy. chairman post 9/11. He worked for AT&T….sort of. During the cold war the DoD got a big security project approved…..In the event of pre-emptive nuclear strike….how would communication lines stay open? The project required that land-lines have multi-tiered failsafes…ever notice that your land-line works when the power goes out? No? cuz of your cell phone…well it does. It was a project that took 20 years. this particular maniac was the project manager. That means reworking the land-line system to withstand hydrogen-bombs landing across the continent would not effect your ability to call Washington from Sunnyvale….that was HIS RESPONSIBILITY. I’ll mention that and a few other changes made post 9/11 coming soon.

*It is still the gold standard for every program used today. Major OOD languages are listed in order:  Smalltalk and LISP, Eiffel, C++, Java, .NET, Python and C#. Java was the the most cutting-edge language, so Carl taught me to write both in C++ and Java. This theory of design is evidenced by the browser you are using to read this, the operating system your iPhone, tablet or console runs on (OS X, ios7, Windows 8, Android KitKat) all of these were designed using objects and implemented using one of these languages or non-object languages that have since been re-designed to BE object-oriented (COBOL, Pascal, VB, Ada and C)