Tuesday, September 29, 2015

Hating on Physics

Ugh -- two hiccups in one morning.  (Mercifully, there was just enough coffee left in the thermos for them both.)

Firstly, a rough head-count of wires suggests that we may not be able to get away with a mini-breadboard for the MPL's robot -- at least, not for the "brains" part up top.  Which means more weight.  And, more annoyingly, a chassis redesign.

Secondly, a client asked me to verify that data had been imported by a scheduled job.  Alas, when I peeked into the database, I found that only one record from roughly 800 had made it over.  Going back to the original data dump (like y'do), I quickly realised that the code was fine, but all but one record was seriously hosed thanks to a freaky Excel export.  (In programming, the shorthand for this type of situation is "GIGO":  Garbage In, Garbage Out.)

The fact that the code is, technically, doing what it's supposed to do is cold comfort.  The fact remains that we have another edge-case to take into account (and gracefully handle, natch'erly) in the next release.   Which means time and budget that doesn't go into what we want to accomplish.  Booyah, legacy code.

So, as a human -- particularly a human who works from home -- I'm allowed to say a few unprintable things.  But I'm not allowed to resent the newly-discovered edge-case.  That would be as ridiculous as hating the physics of not enough breadboard wires for all the robot-widgets.  And I'm certainly not allowed to carry on as if those problems didn't exist.  Or worse, go solve the problems that interest me.

See, that's what bugs me so much about wanna-be "leaders" like The Donald or Carly Fiorina.  Forget the incendiary rhetoric.  It's when the former responds to a hard, documentable fact (e.g. that 40+% of illegal immigrants arrive in the U.S. via plane, not sneaking through the desert) with "I don't believe it."  Go pound sand, Trump:  Reality doesn't care what you believe. 

Likewise, the latter doubling down on her claims about the breitbarted "Center for Medical Progress" video, inventing footage that never existed in the original scam.  (I thought that fanfic had reached its nadir when Twilight fan E.L. James penned the 50 Shades trilogy, but...daaaaaaaaang.  That's a whole 'nuther level of gaslighting your own gender, Ms. Fiorina.)

Gosh, I can't imagine how one's been in bankruptcy (at least) four times, and the latter very nearly led her company off a cliff... [insert uber-sarcastic eyeroll]

Look.  I don't get to ignore reality--much less hate on it.  That would lead to solving the wrong problems...assuming they're even problems in the first place.  At best, that's a waste of time and money.  In the middle, the real problems are neglected.  And in the worst-case, that additionally creates new problems.

I assume that, like me, my Gentle Reader is paid to solve real problems within the constraints of the real world.  We should accept nothing less of ourselves.  And expect even better from those who want to have the power to declare war, spend our tax dollars, etc.  Values can be debated; facts cannot.  Anyone who cannot accept that should have their "adult card" taken away and be given a Sims account so they can live in their own reality without bothering anyone else's.

Wednesday, September 23, 2015

An experiment in learning by teaching

Originally, my contribution the geeky "potluck" that is the 2015-2016 season's Moncton Developer User Group presentations was supposed to be the Laravel PHP framework.  But then I volunteered to help the Moncton Public Library as an Arduino coder on a robot project and found myself having to learn 3D modeling for the parts that Thingiverse doesn't have.

Sadly, my attempts at drawing anything (in two dimensions) almost make xkcd look like Rembrandt.   Okay maybe you'd have to go to The Oatmeal or Hyperbole and a Half for that comparison.  But still.  Then I discovered that the OpenSCAD software was based on describing a 3D object mathematically, rather than drawing it (e.g. with SketchUp, AutoCAD, or Blender).  Believe-you-me, my pointy ears perked up and my spider-senses quivered.

Most software packages, unless they truly suck (or you hate having to work with them for other reasons) come with an infatuation period.  As with people, it lasts until you expect one behaviour and get something different.   But in the headlong rush of dewy eyes peering through rose-tinted spectacles, I pinged the MUG illuminati with the idea that OpenSCAD might perhaps be more interesting/useful to our crowd.  (For those outside I/T, PHP is a workhorse of a programming language, which makes it boring...except for the people who live to hate on it.)

So I spent the better part of a week's bedtime reading on the official documentation.  To help myself structure the information, I started outlining the information as I understood it.  Essentially, it was the nucleus of the outline for my presentation.  Unsurprisingly, the outline has since been re-arranged, split up, re-grouped, etc. as my understanding has become more completed.  And the obligatory "Gotchas" section has grown.  And moved up in priority as I've actually used OpenSCAD to model robot parts...among other things useful to the household of a budding evil mad inventor.

As auto-didactic techniques go, I'm going to hang onto this one.  For me, it's useful structure.  For the eventual recipients of the presentation, at least they can rest assured that it hasn't been thrown together the hour before.  Win-win, right?

Tuesday, September 22, 2015

Shaving the zebra

(Not the same thing as yak-shaving--not at all.)

Because I have to work in two different worlds (namely, Linux and occasionally Windows, although not yet Apple's walled garden), I've saved myself a lot of cranium-brusing by investing in a KVM switch.  This device allows you to toggle between multiple computers using the same monitor, keyboard, and mouse.

I had originally pulled apart my office for painting, then had to re-connect my main programming PC (Linux) to do some troubleshooting.  The monitor remained blank.  Due to the urgency, I bypassed the KVM switch for the duration, figuring I'd debug later.  "Later" came tonight, when the monitor was still unresponsive.  After verifying the spaghetti of cabling (and switching to another port, and testing another monitor), I hollered for Dennis to sanity-check for me.  He did some poking and prodding, but couldn't find anything amiss.

So I dissembled the KVM wiring and again hooked the peripherals directly into the PC.  Again, everything but the monitor seemed to come online.   So back under the desk I dove, and discovered what both of us had missed--namely, that this particular model has not one, but two DVI (i.e. monitor ports).  We'd been plugging things into the top one (supposedly interfaced with the motherboard, but not really) rather than bottom the one attached to a big, honkin' (like, early 1990s size) video card.

There's a folksy adage that goes, "When you find a dead man with hoof marks across him, look for a horse before you go looking for a zebra."  I'd like to report that I learned this at my Grandma's knee.  But the fact is that I picked it up from the only episode of Doogie Howser I can ever remember watching.   Anyway, the logic is merely a variation on Occam's Razor.  Problem is, we tend to scan for things top to bottom, and, well, why would you continue to look for something you've already found?

The experience illustrates why, despite it being more or less the foundational to scientific reasoning, we can still cut ourselves on Occam's Razor through laziness or over-confidence.  Because if the afore-mentioned dead guy is found on the plains in Africa, the familiar assumptions become useless--even counter-productive. 

I suppose that's the point of the celebrated "Five Whys" of the Toyota Production System:  It forces debugging beyond the immediate and superficial. 

As it turns out, the KVM switch is still hosed.  Naturally, I only learned this only after hooking up everything through it again.  #mumblegrumblemumblegrumble  But at least there was more certainty in the debugging this time around (verifying with a laptop whose video output the monitor likewise ignored).  I'll ping Matt at BJW Electronics tomorrow to see whether repairs are even an option in this case.  I fervently hope so, and not just because I dislike adding to the landfill:  KVM switches are bloody expensive.

Monday, September 21, 2015

Back from "staycation"

Shocking precisely no one (except a rookie developer or rookie developer's client -- which we are not), the limited Beta had rough edges.  Those were filed off while I've been racing the calendar with painting (most notably my office).  And learning 3D modeling (more on that later) by the tried-and-true method of figuring out why my code blew up.

But the office is going back into shape this evening (assuming I can gang-press The Other Programmer In Residence's longer, stronger arms for fifteen minutes)

Blog resumes tomorrow.

Monday, August 24, 2015

Innovation iconoclasm: Beyond the cult of the start-up

I stalled out about a quarter of the way through Geoffrey Moore's Dealing With Darwin, which has nothing to do with the quality of the book (which is excellent), and everything to do with my ability to be distracted.  Now I'm picking it up again as my "nightcap" reading. 

It kind of hit a nerve when I learned that the office where I spent the best years of my career has been broken up into functional "pods" (for lack of a better term).  That's on the heels of a shake-up that saw a spike in my LinkedIn social circle.  Zo wellz--the silver lining is that it spares me the risk of nostalgia.  I mean, yeah, I can be nostalgic about the days when 20 or so of us were proudly referred to by the boss as "The Island of Misfit Toys."  But we were also working on a scrappy new bet-the-branch-office product then.  That takes a particular alchemy--not mere chemistry, which is far too predictable--of personalities to pull off.

And then at some point, you wake up and find youself and your product find yourself in a more mature market--which is a whole 'nuther game.  That's what Dealing With Darwin is about.  And probably why it's overlooked on most business reading lists.  After all, Moore (and his colleagues) are known for the consulting work that preceded and spun out of Crossing the Chasm.  The latter focuses entirely on growing a product market from the adventurous early adopters to the more sceptical mainstream (by bridging the gap between their very divergent needs).

That early stage company bringing something brand-new to a market with no mental map for what they're making/selling is what (nearly) everyone associates with "innovation," right?

Darwin, however, hammers home the much-neglected truth that there are more species of innovation than the brand-new product.  Things like the following require "innovation":
  • Adding new features to an existing product (e.g., a camera to a phone)
  • Making an existing product do more with fewer resources (e.g., lower-power computer chips)
  • Tapping a new (unexpected) market for an existing product (e.g., Viagra was originally a failed treatment for high blood pressure)
  • Up-scaling an existing product/market for higher profit-margins (Starbucks, Apple Computer, Whole Foods)
  • Streamlining and standardising supply chains and work-flow (e.g., Ford Motor Company, McDonald's, Dell Computer, etc.)
  • Re-tooling work-flows and supply-chains to emphasise quality and reduce the cost of mistakes (e.g. Toyota Motor Corporation)
  • Reducing transaction friction/overhead with the end-consumer (e.g., Zipcar, Netflix)
  • Abdicating responsibility for labour and safety laws by declaring your employees "contractors" and yourself a "technology platform" (e.g. Uber, TaskRabbit)
  • Itemising core services and adding surcharges for them (e.g., airlines, banks)
Okay, so maybe those last two are a little bitey, but that doesn't change the fact that there's a certain level of (ahem!) "creativity" in them, not to mention a relentlessness in execution that has--regrettably--made them the new normal.

The point is that established companies can't rest on their proverbial laurels.  Any good idea will have copycats--some better and faster than others--and the "first to market" advantage has a limited shelf life.  After that, it takes management discipline (and probably no small amount of luck) to stay ahead.  Which will yield higher returns--investing R&D dollars into making a better product, or into reducing costs?  Or maybe (just maybe) is it time to start exiting the race to the bottom and bring that skunkworks project into the light of day?

Those are not easy questions to tackle, particularly with all the baggage and politics of an established money-making track-record.  While individuals may too often throw away tangible good in pursuit of phantoms, organisations are not so often guilty.  Maybe it would easier if we'd more readily recognise  innovation when it wears business casual in Toronto instead of just a Red Bull-stained hoodie in Silicon Valley. 

Friday, August 21, 2015

Frivolous Friday, 2015.08.21: Do it for Darwin

There are currently two categories of Darwin Awards.  There's the kind where the recipient has removed himself or herself (but mostly himself, as it turns out) from the gene pool.  And there's the Honourable Mention--a.k.a. still dog-paddling in the gene pool. In the midst of the huffing and--let's face it, pure schadenfreudish glee--of the Ashley Madison hack/leak, I can't help but see a Darwinian window of opportunity.  Humour me for a minute and hear me out, because I'm sorta-kinda-maybe serious here.

The thing that struck me the most about the news--okay, okay...the thing that struck me after I stopped smirking over the completely unsurprising revelations about Josh Duggar, Jason Doré, and Ottawa, Ontario--was how many blithering, mouth-breathing, knuckle-dragging idiots used "real" email addresses to register an AM account.  Like, email addresses that their spouses would recognise.  Or, more stupefyingly, their work email addresses.  Seriously, this is the level of stupid that warrants having one’s email privileges revoked.  Possibly for life.

Attention, I/T Managers of the world:  This is your moment.  

Having clocked in two years of desktop support and babysitting servers, I feel your pain.  And I was one of the lucky ones--we only had one virus on my watch, and that (mercifully) not even a Zero Day.  But I've heard your war-stories.  And I think we all intuitively recognise that the Ashley Madison species of idiot shares the majority of their DNA with the type of co-worker who's habitually guilty of:
  • Installing malware (e.g. Napster, browser widgets, fake “virus scanners,” etc.) on their workstation #truestoryaboutnapsterbythebye
  • Double-clicking any (and every) email attachment that lands in their Inbox
  • Leaving files open (and thereby read-only to everyone else) on the shared drive
  • Forwarding chain-email
  • Adding misspelled words to the spell-check dictionary because they’re convinced that they’re right and Microsoft is wrong
  • The Dreaded Reply-All ('Nuff said, amirite?)
  • Font crimes (Again, ‘nuff said.)
  • Being congenitally incapable of grokking the difference between CC: and BCC:
  • Likewise, being congenitally incapable of printing double-sided copies of anything...or even switching their default printer during repairs
  • Storing Every. Single. File. (and program shortcut) on the Windows desktop
  • Using the same password for every system...and storing it on a Post-it taped to their monitor
  • Insisting on access to systems/reports they never actually use
  • Calling support because their workstation is "slow," only to have support arrive to find Facebook open and the browser scrollbar a millimetre tall
  • Passive-aggressively weaponising the issue-tracking and/or project management system
I'm sure other SysAdmin veterans could expand the list in hilarious and/or toe-curling ways, but I think that I've established my point.  That point being that I/T folks now hold in their hands the power to effectively chlorinate the office gene pool--perhaps even for a generation.

I/T comrades, for the love of those of us who don't drag you away in the middle of critical system rebuilds (or at least playing FPSes for hours on end to, uh, "gather performance metrics" on said systems), get ye to the darkwebs! And bring thy RegExp A-game with thee!  Scan those lists!  I can (almost) guarantee that if you find your company domain(s) among them, the correlation between those AM sneaks and your laziest Luddites, your most slovenly sociopaths, your most vapidly venal office-critters will be statistically perfect.

In which case, you know what to do.  Take screenshots.  (Bonus points for correlating them with router logs.)  Send them to every single printer in the building and "forget" to pick them up.  Then wait for the radiation fallout to stop glowing, and you'll find that many of your work-day problems have taken care of themselves.  And, more importantly, you will have done everyone who can be trusted with a computer a huge solid.

My I/T brothers and sisters, it's time to step up to the plate.  This kind of opportunity doesn't surface often.  Personal codes of ethics aside, I think we can all agree that using your work email account to cheat on your spouse or significant other shows a breathtaking lack of professionalism--quite apart from the sheer sleaziness of it all.  Yeah, I don't want to work alongside that, either.

Monday, August 10, 2015

All networks are not created equal

I'm not knocking La Crosse, WI (more accurately, French Island), but we had pretty sorry luck in neighbour relations.  On one side, the summer weekend evenings were spiced by the Four Letter Badmitten Olympics.  On the other, a couple who couldn't wrap their brains around how anyone could find their beagle's 30+-minute barking jags annoying.

I figured that the lack of camaraderie was largely our karma:  We tend to keep ourselves to ourselves, and my West Coast work schedule probably didn't help with those random encounters that cement those relationships bit by bit.

Grande-Digue has been rather different, pretty much from the get-go.  The residential lots in these parts tend to run larger than the quarter-acre of our French Island subdivision.  Yet, almost counter-intuitively, the bonds tend to run a lot stronger.  Part of it is the Acadian nature of the place--generations of Poirers, Fougères, Bourgeoises, Legers, LeBlancs, Robichauds, Melansons, Gallants, Cormiers, et. al. growing up like an extended family.  But apparently, not so tribal as to shun arrivistes like ourselves.

But even after three years and change, I'm still sometimes caught out by how tight-knit the place is.  Today was one of those days.  For instance, Post Canada left a delivery notice for a package that required a signature...which I promptly left at home.  I rarely see the lady who takes care of late-afternoon customers, so I pulled out my driver's license to prove that I indeed matched the addressee on the pack.  She waved it away with a smile:  "I know who you are."

An hour or so later, the neighbours for whom we've been cat-/chicken-sitting stopped by with a thank-you gift from their weekend in Quebec.  In the context of chatting about their travels, I casually mentioned that we're considering a jaunt to Newfoundland.  Turns out that because we also mentioned it to another neighbour, it was already old news.

I should have known.  In both cases.

And so, while the social media mavens obsess over the magic n-squared-minus-n-all-divided-by-two formula, it's wise to remember that the strength of connections trumps the number of nodes.  At least when you're actually interested in making more than a superficial impression.  That's the way most folks around here seem to want to roll.  That's cool by me.