Oops! Something went sideways.

Looks like the styling got goofed up. Sorry about that, unless it's what you wanted. If this isn't what you were looking for, try force refreshing your page. You can do that by pressing Shift + F5, or holding Shift and clicking on the "reload" icon. (It's the weird circle arrow thing "⟳" just above this page, usually next to where it says https://blog.unitedheroes.net...)

isn't quite ashamed enough to present

jr conlin's ink stained banana

:: Dear Graduates of the School I Will Never Give a Commencement Speech to

You, full of youth and vigor, with stars in your eyes and a cause in your hearts, are ready to change the world. i wish you the absolute best, and in many respects, you will absolutely change the world.

Just realize, that about half of you are assholes.

i’m not saying you are, since i don’t know you well enough to make that determination. Nor am i declaring any group of you are assholes, much for the same reason. Hell, every one of you in this auditorium/stadium/state could not be an asshole, nor ever be. That still means half of your peers are, because there’s a lot of you and y’all are everywhere.

i know this because i was horrified to discover that half of my generation were assholes. Same with every generation back to the time when two fish fought to get out of a pile of muck. For some generations, more than half were assholes, for others, less than half, but rest assured, the number is about half.

What’s worse is that the asshole half are fairly well organized. Because they’re organized, they’re influential. Because they’re influential, they tend to get their way. Once they get their way, they do everything they possibly can to keep it that way. Why do they do this? Because they’re assholes.

Fret not, they consider you assholes because you don’t doggedly share their beliefs without question. You ask too many questions they don’t want answers to. Even worse, you support those other groups. How the hell could you possibly do that, you asshole?

i’m telling this to you now so that later, when you realize that all the things you though would happen don’t, or that there was no way could happen do, you’ll understand. Stupid wars will be fought, and gleefully supported by assholes. Assholes will prevent us from intervening in horrible injustices. Assholes will vote in other assholes and those assholes will push for policies that clearly favor assholes.

All this will leave you wondering where the hell all these assholes came from. Truth be told, they were always here. Some are born assholes, some trained to be assholes, some even make the choice to be an asshole and work at it at every opportunity.

You are going to be surrounded by assholes. You’re going to be saddened by them, infuriated by them, and you’re going to want to get revenge against assholes.

Yeah, don’t do that last thing.

Instead, understand that some people are just assholes. There may be a good reason, and you should at least make an attempt to understand what that reason can be, but ultimately, the reason they’re an asshole is because they’re an asshole, and that’s probably not going to change.

Instead, focus on the fact that assholes survive because you’re not doing stuff against them. Have plans. Sometimes, defeating assholes means doing things that you may not like, or make you think you’re an asshole. Sometimes, you might even have to be an asshole to someone in order to not be an asshole to a larger group, or to stop them from being an asshole. Work together with others who oppose the assholes. Assholes hate that and will fight you about it. That’s ok, you should expect them to be assholes about it.

It’s also important to understand why you’re being an asshole to someone (since, after all, half of you are assholes). There’s nothing special that makes an asshole an asshole. Anyone can be an asshole, just like how anyone can not be an asshole. What makes an asshole an asshole is when they’re an asshole. When they’re being selfish, close-minded, greedy, dismissive, demanding, those are all pretty clear markings of an asshole. Heck, we’ve had at least a dozen religions that point that out. (The assholes tend to ignore those parts, though.)

i wish i could give you better advice. i wish i could tell you how to solve the fact that half of you are assholes. i can’t. Perhaps one of you can. Instead, i’ll leave you with a few rules i’ve found for myself.

Take care of others.
Listen more than talk.
Reflect on where you are and how you got there and why someone else isn’t.
Realize that most folks aren’t really comfortable where they are.
Help when you can.
Don’t look back with regret. At the time it was the best decision you could make. Instead learn from it for the next time.
If you have power, use it for others more than yourself.
Realize, even those with power, fame and glory, could still use an extra napkin or help finding the bathroom.
Leave it slightly better than you found it.
Realize you’re not always right and that even someone you might look down on has something to teach.
Everyone has a hard job, and no one is solely defined by what they get paid to do.
Nobody has all the knowledge or answers.
Be respectful and kind.
Pick up your trash and hold the door open.
A few have it better, many have it worse. Just like we can use some help, so can others.
Don’t be afraid to ask for help, directions, or just to say “hello”.
Your brain regularly lies to you, and your head is full of assholes.
Other cultures aren’t better or worse, they just have different ideas, and only about half of them are assholes.

But most importantly, try not to be an asshole.

:: Con-frigguration

If it’s a static value, it probably belongs in a configuration file.

That’s one of my golden rules of programming, and it’s generally saved my ass. Mostly because someone else sometime else decides that something isn’t quite as permanent as they said it was and it changes. (That was for the benefit of the two or three folk out there that don’t use config files.) Still, after nearly half a century of coding, we still have terrible ideas about configuration files.

The worst offender, by far, is the horrible programming language masquerading as a config file. These seem to be en vogue again. Such as “yaml” format:

  - alias: "Morning kitchen on"
    trigger:
        platform: time
        at: "06:45:00"
    condition:
        condition: and
        conditions:
          - condition: time
            weekday:
               - mon
               - tue
               - wed
               - thu
               - fri
          - condition: sun
            before: sunrise
    action:
        service: homeassistant.turn_on
        entity_id:
            - group.lights

That’s from my Home Assistant configuration file to turn the lights on in the morning if they need to. Home Assistant is written in Python, and i don’t really want to pick on it because it’s really good. If anything, the config system being bad just stands out that much more. i can’t tell you how much easier it would have been to just code up the python function.

import time
def MorningLight():
    now = time.localtime()
    if (now.tm_wday in range(1,6) and 
            (now.tm_hour == 6 and now.tm_min in range(45, 59)) and
            time.time() < homeassistant.sensor_state("sun.sunrise")):
        homeassistant.turn_on("group.lights")

Hell, make some convenience functions and it's shorter.

def MorningLight():
     homeassistant.set_state(
         "switch.OfficeLight",
         (homeassistant.time_between( 
             "06:45 AM",
             homeassistant.sensor_value("sun.sunrise")) and
          homeassistant.is_weekday()))

Yes, this proposes that the individual know python. They’re programming. It’s ok to use the same language you’re using. Forcing the user to learn some convoluted semi-language syntax that is even more alien, doesn’t have countless free tutorials and books, and a vibrant support system, isn’t helpful.

There is literally zero difference between the above yaml version and this:

♥️alias🍳"Morning kitchen on"
🐸trigger🍳
🐸🐸platform🍳time
🐸🐸🐸at🍳"06:45:00"
🐸condition🍳
🐸🐸condition🍳and
🐸🐸conditions🍳
🐸🐸🐸♥️condition🍳time
🐸🐸weekday🍳
🐸🐸🐸♥️mon
🐸🐸🐸♥️tue
🐸🐸🐸♥️wed
🐸🐸🐸♥️thu
🐸🐸🐸♥️fri
🐸🐸🐸♥️condition🍳sun
🐸🐸before🍳sunrise
🐸action🍳
🐸🐸service🍳homeassistant.turn_on
🐸🐸entity_id🍳
🐸🐸🐸♥️group.lights

Actually, i’d argue that it’s clearer because the “🐸” are visibly defined rather than just whitespace (tabs? spaces? tabs+spaces? 🤷‍♀)

We keep insisting on doing this. Sure, that wheel is pretty and all, but what we really need is to make something that rolls on the ground around an axis.

What’s frankly hilarious to me is that programmers have even beaten multiple paths to the “give the customer a simple programming language” route (Lua, Javascript, Visual Basic, etc.) and STILL we come up with crappier solutions. Hell, at one point i was writing a shopping site in a custom XML based language. Someone, quite possibly multiple people, not only thought that was a good idea, but took a significant amount of time to prototype, develop, implement, test, and document that.

Stop it. Just, stop it.

Stop trying to shoe horn a horrible solution to an obvious problem.

If you’ve got static values you need to set, use a simple key-value config system. Maybe allow for sections if it’s super complicated, but also consider that perhaps divvying things up might also be a viable solution. Windows, Unix, and yeah, even Macs all do this, and they work pretty well for exceptionally complex systems. (i’ve got my complaints about Windows Registry tables cross references, but at least i’m not writing XML if statements.)

If you need templates, use an established template system. HTML is no party, but it works, and there’s library support for it. If you want to grant programmatic access to users, give them a damn programming language. And not one that you created in your Junior systems class and got a “C-“.

Granted, if you’re building a complex virtual machine like a web browser, then rules are quite different. Chances are exceptionally good, though, you’re not.

Yes, this means trusting your users. Yes, this also may mean giving up the dream of providing a configuration system safe for 6 year olds. Granted, you could also give them Scratch, so there’s that.

(Dammit, now this means i need to submit a patch to HomeAssistant that actually replaces the crappy config system with an actual programming system, doesn’t it?)

:: Land Line Lubber

It’s 2018, and i still have a land line.

Well, sorta.

So, growing up on the east coast where thunderstorms are a real thing, you learn pretty quickly that the phone lines are nearly magical. They run off of their own power and generally tended to continue to operate even in the event of significant disasters. So, having a land line was the techie equivalent of having a safety blanket.

Of course, in those days a disturbing amount of the phone system was still analog and the power was mostly due to banks of lead-acid battery bunkers, so you know, there was that.

40+ years later, things are more than a bit different. If you have a phone, you’re using VOIP. Doesn’t matter if it’s a 1950’s era princess dial-up that still uses cloth wrapped copper lines, once it gets to the central hub, it’s goin’ over the same lines that bring you cat videos and nazi screeds on twitter.

And that was the absurd bit about my “safety blanket”.

Up until a few years ago, i had a deal where my long distance was unlimited and cost $45. A year. This may be the reason that the company is no longer in business. Looking around for a replacement proved a few things, mostly that cell phones are REALLY popular for a reason. i did manage to find a service that provided unlimited long distance for a reasonable price (at least compared to other services), and that service was: Vonage.

Yeah, the “Telephone over the Internet” people.

It worked out fairly well, except for the near constant barrage of spammers that made my phone announce calls from “Sheboygan, WI” or “8058086:4803768” or “V4071151200013107835” (all of which i just pulled off my call history log). Vonage lets me block up to 25 callers, which gets full mighty fast when spoofers can just make up numbers. They don’t offer a way to whitelist numbers, so i’ve had my home number of “Do Not Disturb” 24/7 for about a month now. i’ve even changed my voice mail number to say “Hey, call my cellphone”.

Basically, i’d go from 4 numbers to 2. One cell number i’ve had since 1996, the other a Google Voice number i got when they rolled out the service.

Still, it’s funny how you hang onto some things mostly out of habit, rather than having a really good reason.

:: The Internet of Less Than Shit

i’ve been making my home a bit smarter.

Mind you, this is not what you’d expect me to say. i’m paranoid. The idea of opening up my house to a remote exploit because some company forgot to use encryption is very much unlike me. Hell, i put my cable box and guest devices on their own, isolated subnet. What the hell am i thinking?

i’m thinking that i don’t need to go out to the internet.

The guiding principle i have is to not require external connectivity where and when possible. While things can talk to the outside world, i discourage it. Enter Z-Wave.

Z-Wave is an interesting semi-proprietary protocol that allows devices to talk to each other. What makes it useful to me is that those devices can talk to a managing hub. What makes it REALLY interesting to me is that i can run an open source package on a Raspberry Pi that lets me control the devices. Data never leaves my local net.

What makes it super-duper interesting is that many of these devices are advertised as “works with Amazon Alexa”. i don’t have an Alexa in my house, but it’s becoming the clear winner in the “voice controller” market. This means that there will be a lot of controllers out there that will be talking Z-Wave, including light switches, outlets, thermostats, door sensors, and more that can integrate into my device network.

Again, and delightfully, none of that info needs to leave my LAN.

The very nice thing is that there are a few different open hubs i can use. Currently, i’m using Home Assistant. It’s nice, but absolutely not end user friendly. It’s a typical dev app and requires lots of weirdly formatted files, obscure naming conventions, reboots, and other fiddly bits. Mozilla is also working on a less fiddly version called IoT, which promises to be more noob friendly, but it’s still very much in pre-beta.

Still, i’ll admit that having control of my house (and remote control thanks to the glory of SSH tunnelling) is rather nice.

Now, if i can only figure out how to read directly from my solar panel controller and the SleepNumber bed, i’ll be all set.

:: Lunatic Debate Club

There are some things that i’m willing to say are “non-controversial”.

i don’t believe that the following need to be discussed, in long form, where dissenting ideas need to be heard out.

  • Humans require oxygen.
  • The moon exists.
  • High voltage electricity does not taste like candy.

There are lots of other things that can be proven readily and also do not need to be discussed and rationalized to a dissenting party.

  • JFK, Elvis and Tupac are all dead.
  • The earth is an oblate sphere (“round” also works).
  • Millions, mostly Jews, were killed in the Holocaust of WWII.

It is quite safe to consider anyone who does not hold those facts as true as a lunatic, someone willfully disassociated from reality, and not really worth having a discussion with.

This is not to say that there are some facts that are worth discussion, or that there’s not nuance that can be argued. We can spend hours or days discussing the finer points of how to best reduce global CO2 and other heat trapping gasses. Likewise there are areas that i gleefully state i have no knowledge that i’m happy to learn about, such as the horsepower differences between a hemi vs standard piston v6. Gravity, while undeniable and present for a mighty long time, is still very much an unknown force.

One thing that’s been pretty <Insert multiple expletives here> settled, however, is that brains are brains. i can’t, with any certainty predict your level of musical talent, pool acumen, or skill at balancing dual carburetors by knowing your sex or race. i can’t tell how well you’d solve for X by knowing your nationality. There may be other factors that contribute to your level of skill, including your background or even the way your brain happens to be wired, but none of those hinge on the configuration of your core chromosomes.

And things get even worse when it comes to programming computers.

i have colleagues who have studied computer science for decades who learn new techniques from folks who just started coding a few years ago. Coding is collaborative. If it wasn’t, sites like github or StackOverflow wouldn’t exist. To deny or somehow refute that fact is equivalent to saying that California doesn’t exist.

So here’s one more irrefutable truth along the lines of “Glowing red iron should not be licked”:

  • Race, gender, national origin, sexual preference, language, hair and eye color, number of useful limbs or anything else does not make you a better or worse problem solver. Solving problems makes you a good problem solver.

Everyone has the potential to write code. Should they find it worth while, some will go on to become great coders, and should they have true talent, a very select few will go on to become legendary. They will come from all walks and a few rolls of life. i work on internal plumbing which has zero glory. i kid that i do the digital version of a Dirty Job. If it works, you’ll never know, but when it doesn’t, i will.

And let’s face it; most of us are not writing code that cures cancer or delivers clean drinking water to 60% of the planet. Most of us are writing glorified string manipulators or adding machines. We make electrons and silicon do neat party tricks that turn a profit for someone else. i welcome anyone willing to dive in and help, particularly someone who doesn’t look or think like me for the same reason that i don’t live on only peanut butter and jelly sandwiches.

So, welcome all you weirdos that want to learn and write code. The days can be long, frustrating, and deeply annoying, but the bursts of pride and accomplishment once things are working are phenomenal. If you love learning and teaching, you will absolutely love this industry. Everyone in the industry started by not knowing how to code and got better. Many have been in that position multiple times as new tech, languages, and designs were created. Find someone who understands that and is willing to help you get better. They had someone do it for them, this is how they can pay that back.

And if you find someone who doesn’t think you could ever do what they do?

Ignore them.

They’re lunatics.

Blogs of note
personal Christopher Conlin USMC memoirs of hydrogen guy rhapsodic.org Henriette's Herbal Blog
geek ultramookie

Powered by WordPress
Hosted on Dreamhost.