The unreasonable effectiveness of simple HTML
I've told this story at conferences - but due to the general situation I thought I'd retell it here.
A few years ago I was doing policy research in a housing benefits office in London. They are singularly unlovely places. The walls are brightened up with posters offering helpful services for people fleeing domestic violen
https://shkspr.mobi/blog/2021/01/the-unreasonable-effectiveness-of-simple-html/
#/etc/ #html5 #web #weeknotes #work
Gonna poke at the federated social reading app #Bookwyrm a bit, doing a little livecoding at https://stream.cincodenada.com - we'll see how much focus I have this afternoon 😄
If you don't have time to read "Manufacturing Consent", this will do in a pinch (uspol)
Stolen from birdsite: https://twitter.com/ryanhoover/status/1353144572298354688
This went great, one visitor pointed out my Mastodon link on my Owncast profile was broken, thanks!
And gamewise, I stumbled across another secret area that I hadn't discovered in my main playthrough, which led to the final charm, which I've been searching for for ages!! Very exciting 🎉
Not counting the Hall of Gods, I think that leaves only The Radiance and the Nightmare King Grimm to truly 100%+ my main playthrough. We may get there yet!
Gonna hang out and play a little #HollowKnight. Currently on my exploratory run to plan out another speed run attempt: https://stream.cincodenada.com
Another layer of misdirection on top of that was that this code depended on localStorage state that we're not clearing before tests, so it "worked" in the in-browser test runner, but not the CLI one, because there was state left over from running the webapp that made it work when it shouldn't.
All of that just pops one problem on my yak stack by confirming this test never should have passed in the first place, but fortunately on the way down I gained a pretty good understanding of _why_ it's not passing as well.
Now the fun part, figuring out how to actually test what we want to test. But first, lunch.
At the point in debugging unit tests where I've been muttering "how is this even working AT ALL" for the last hour and just discovered the answer is "it isn't, actually" which is vindicating and also frustrating.
Today's lesson: if your test hinges on counting `element.childNodes`...don't. This div with literally only an HTML comment in it nonetheless has no fewer than SEVEN child nodes, all text nodes (six whitespace plus one for the comment).
The property you're looking for is `element.children`, which only counts child _elements_, and indeed is length zero for said div: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children
So, remember about a month ago when stuff about the Linux Fox Girl went around? Someone reportedly tracked down Alan Mackey, and got his blessing on giving her a name (Xenia), and accidentally confirmed the character to be trans.
Source: https://twitter.com/cathodegaytube/status/1269405917700710400
annoying articles, pandemic, rant, environmental bullshit, car culture
So I read this CNN article about people doing "fake commutes", which I'm all for when they involve, like, going on a walk or a bike ride that's the duration of your commute to give you the same sorta-occupied space between sleep and work.
But then it cited instances of people driving their cars to their workplace, sitting there, and then driving back in time to log in from home???
I get that routines are important but fuck are they "spew literally worse than useless hydrocarbons into the air" important?
A car commute is distinct in significant ways - it's a private bubble of non-home space. And I haven't had a car commute since college, and I'll rent a car to drive out to see stars and spew my hydrocarbons...but to make a trip whose sole purpose is to sit outside your office?
I just can't grasp the mindframe that would get you there. I think it's a combination of attachment to your workplace and car culture that is just way foreign.
Here's her poem in full. If you watch one thing from the inauguration today, this is a better five minutes than most, I think: https://twitter.com/staceyabrams/status/1351948067872894979
uspol, inauguration, asl, ++
I'm, uh, certainly not a fan of the pledge of allegiance in general. That said, it was really rad to see the speaker themselves also doing the ASL. I don't know that I've ever seen that at a public event before, even for such a short bit.
It's not even translation at that point, it's just communicating in two languages at once!
The Ilikai (Waikīkī - 1964) by John Graham (who designed the space needle) looking sexy in a red carnation lei.
From: the Hawaii Modernism Library. A semi-failed #digitalhumanities #archive I put together.
The #OpenStreetMap Foundation is running a survey (in 13 languages!) to find out more about the #OSM community. It should only take a few minutes, and we'd greatly appreciate as many responses as possible., 🙂 (pls boost)
https://blog.openstreetmap.org/2021/01/18/community-survey/
explanation, or at least my theory
My guess is I flipped the switch fast enough that my timing was right on the edge of how long the bulbs need to be powered off to reset. So one of the bulbs sensed a power cycle and reset to on, while the other didn't notice the power cut and stayed in its off state.
It was rather amusing in practice, and I probably couldn't do it again if I tried (...I'll try anyway, of course)
Engineer, humanist, mostly a lurker.
Also, I get really excited about emoji as a Unicode standard sometimes.
Originally at mastodon.social before settling here