Show newer

dreamt that gwyneth paltrow showed up to gift us a tshirt for a baby to try to passive aggro us into having kids

everyone decided to build operating systems around C code and a portable shell and then they standardized that, but everyone agreed on a whole lot of other things also and they decided that wasn’t worth the bother

Show thread

Posix be like, “ok but suppose someone is developing an operating system which never has to process XML” 🙄

Show thread

this might be the easiest portableish way of doing this and that is a condemnation of the current state of computing on Posix

Show thread

here is a shell command you can run to test whether the value of MAYBE_NCNAME is an ncname or not; returns exit status 0 if it is and 1 otherwise

printf '%s\n' '<transform xmlns="w3.org/1999/XSL/Transform" xmlns:exsldyn="exslt.org/dynamic" version="1.0"><param name="thing"/><template match="/"><choose><when test="/self::node()[translate(normalize-space($thing), &quot; /([,*&quot;, &quot;&quot;)=string($thing) and exsldyn:evaluate(concat(&quot;not(self::exsldyn:&quot;, $thing, &quot;)&quot;))]">ok</when><otherwise>ng</otherwise></choose></template></transform>' | xsltproc --stringparam thing "${MAYBE_NCNAME}" --html --novalid - /dev/null 2>/dev/null | grep -F -q -x 'ok'

Show thread

/self::node()[translate(normalize-space($thing), ' /([,*', '')=string($thing) and exsldyn:evaluate(concat('not(self::exsldyn:', $thing, ')'))]

i think is safe

Show thread

this probably actually needs a touch of hardening (making sure $thing does not contain a '[' or '/', or else you could run into serious issues) but

Show thread

XSLT 1.0 + EXSLT is a constant exercise in things you probably weren’t intended to be able to do but nevertheless can

Show thread

want to know if something is a valid NCName? easy! just do

/self::node()[exsldyn:evaluate(concat('not(self::exsldyn:', $thing, ')'))]

u·s federal government current events 

feel like just this morning i was reading takes saying there was no way the federal government could actually start deporting citizens and now tonight i’m reading headlines saying they have indeed deported at least one citizen; those sure aged fast

best super smash bros game ?

all my friends post on social media instead of having blogs

it sure would be nice if we had a culture of having people live a few years with somebody who had paid off their mortgage and didn’t need to charge rent while they worked so they could build up their savings before moving out and buying a house wait that is just apprenticeship huh

one white liberal line of argument is that if people get used to treating robots that interface using human language as tools, then they might extend that and also start treating humans themselves as tools. but bitch they already do. bitch they already do

Show thread

they argue that language processing robots are like dolls, and obviously it is good to treat dolls like humans even though they are in fact inanimate objects

i would counter that the whole FUNCTION of dolls is to be human standins. in this sense they are endowed with a certain human spirit so treating them like humans is appropriate

however, the function of language processing robots is not to be human standins but (only) to complete tasks using human language as an interface. endowing them with a human spirit does not make them more effective at this aim and in fact only makes it more difficult to critically analyse their outputs. so i disagree that there is a comparison to be had between robots and dolls

Show thread

should you say thank you to inanimate tools after you use them to complete tasks

Show thread

new york times currently out here telling us we should be saying thank you to robots even though it wastes huge amounts of money and energy

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.