#dev 2022-10-11

2022-10-11 UTC
tbbrown and geoffo joined the channel
#
aaronpk
speaking of autolinking, i've seen a lot of youtube comments accidentally autolink text because people don't include a space after the period at the end of a sentence
#
[snarfed]
twitter too
#
[tantek]
^ this, over and over and over
#
[tantek]
I see over-auto-linking as much more harmful than under-auto-linking
#
[tantek]
this is why it's a bad idea to base your design of UI things (hyperlinks are UI) on any sense of plumbing (someone's official list of TLDs somewhere) completionism--
#
Loqi
completionism has -2 karma over the last year
#
gRegor
A kind of tricky one, our chat logs include end of sentence periods in auto links, like https://chat.indieweb.org/meta/2022-10-07#t1665168034653100
#
Loqi
[cali-iwc] Created https://indieweb.org/events/2022-10-05-hwc-pacific. Please review the page to ensure the document is correctly formatted and remove any unnecessary text.
#
epoch
people used to put URLs beteen < and >
#
epoch
I over-auto-link in my terminal, but I chose my mess.
#
epoch
some method of presenting multiple choices if it is ambiguous might be handy
#
angelo
tmux ignores the period at the end of that link
#
epoch
I don't know why markdown decided to use url-allowed-characters to wrap around urls.
geoffo joined the channel
#
gRegor
When you visit from chat.indieweb.org? It's in the href
#
epoch
about:blank
#
epoch
guess it uses something that tries too hard for it to find /any/ valid URI.
#
epoch
hrm... looks like my link is broken.
#
gRegor
Template is a bit limited, should be domain only for that first part, because it links your name to the wiki page, User:domain.com
#
gRegor
Then the avatar gets linked to the domain.
#
gRegor
I have some updates I've played with in a sandbox template
#
epoch
right now I'm trying to get my cookie settings right for it to let me login to indieweb.org
#
epoch
yeah, I think I accidentally made a second one
#
gRegor
updated /chat-names, should be correct on the web in about 10 minutes I think
#
epoch
alright, I was just looking at that page's source and wondering why it had /s
#
epoch
the link at the top of the wiki that shows who I am logged in as goes to the page with a _
#
epoch
looks like the _ one is now redirecting to the / one
#
gRegor
Huh, that's odd. Are you using RelMeAuth? Or an IndieAuth endpoint on your site?
#
gRegor
Yeah I added the redirect
#
epoch
I'm using a PGP key for auth
#
epoch
through whatever the login button takes me to
#
epoch
indielogin.com
#
gRegor
Maybe it's a MediaWiki think, it's not expecting "/" as part of the logged in user when it creates the User: page
#
gRegor
Gotcha. Yeah, indielogin should end up responding with `me=thebackupbox.net/~epoch` after you auth, but MW probably has an issue with the slash. No biggie, though.
#
epoch
works now... except my httpd doesn't handle /~epoch properly and expects /~epoch/ XD
#
epoch
patches httpd
#
epoch
aaah. the link it makes is to http: instead of https:
#
[tantek]
gRegor, that's odd re: chat logs auto-linking the period "." at end. Pretty sure I coded auto_link in CASSIS to specifically omit trailing punctuation like that
barnaby, AramZS, gRegorLove_, geoffo and kandr3s[m] joined the channel
#
[snarfed]
auto-link overreach of the day: bpy.data.object.new https://twitter.com/tteneder/status/1579451702180474882
#
@tteneder
@aras_p `bpy.ops.object.add` might have some additional overhead compared to `http://bpy.data.object.new` + `link` though
(twitter.com/_/status/1579451702180474882)
#
[tantek]
Lol .new?!?
#
sknebel
googles "clever" domain hack for shortcut...
#
sknebel
so you can go to docs.new to create a new google doc, or story.new to make a new medium.com post
#
[schmarty]
glitch does this, too! glitch.new
#
capjamesg
gist.new is cool
#
barnaby
I suppose that’s one way of getting a nicer URL than docs.google.com/document/u/0/create
#
capjamesg
I use docs.new regularly
#
capjamesg
Thought: what would an indieweb.new do? :D
#
capjamesg
They are pricey.
#
barnaby
not that I’m advocating for that :P
#
capjamesg
That would be a $400 / annum redirect.
#
capjamesg
There seems to be a high base rate.
#
capjamesg
recursion.new is over $400 too.
#
barnaby
lol micro.blog’s URL for making an entire website is more concise than google’s URL for making a new dead tree simulation document xD
#
capjamesg
web.new is $400.
#
capjamesg
I'm surprised Google didn't take that one.
jjuran joined the channel
#
sknebel
I hope google has messenger.new for launching a new product :P
#
capjamesg
website.new takes you to Google Sites.
#
capjamesg
That's the sort of IndieWeb experience we need, sans Google Sites :D
[manton] joined the channel
#
[manton]
What registrar is good for .new domains? For some reason I thought they weren’t publicly available… That is tempting.
#
[manton]
I guess they’re all $400, or is it a tiered pricing system?
#
capjamesg
I think Google administers the TLD.
#
capjamesg
They all seem to be the same price.
#
[manton]
Google Domains is showing $500 for micro.new, which would be fun. Looks like WordPress owns blog.new.
#
barnaby
are they $400 to renew as well as to buy? a lot of the new gTLDs seem to have ludicrously high base prices but then renew for like 30$ a year
#
[manton]
Same to renew.
#
capjamesg
Yeah. 4k for 10 years. Eek.
#
barnaby
[manton]: you could get pretty close by just redirecting micro.blog/new or new.micro.blog to https://micro.blog/new/site
#
capjamesg
web.new is tempting.
#
[manton]
I’m not totally sold on the utility of these .new domains… It’s a neat idea, but is it really better in practice?
#
[manton]
@barnaby Right. I guess it’s not as clever or obvious if .new catches on… But I’m not sure .new _can_ catch on because by definition there will be some few good ones.
#
barnaby
IMO definitely not, especially for something which people don’t do very often (e.g. start a new blog)
#
[manton]
Well, I was thinking .new could also start a new blog post if you already have a blog. Dunno!
#
capjamesg
With web action handlers!
#
capjamesg
I don't know how that would work but it would be cool.
#
capjamesg
I suppose I could just edit my etc hosts though :D
#
barnaby
there are much cheaper and more interesting problems I’d rather work on ;)
#
[manton]
Good point. 🙂
#
sknebel
yeah, they feel like a weird gimmick to me
#
barnaby
the recent unexpected usefulness of QR codes has made me a little more open to accepting weird gimmicks… but it doesn’t cost $400 to make a QR code
#
barnaby
and all of the proprietary QR-code equivalents have failed miserably, at least in the consumer market
jacky joined the channel
#
Seirdy
is it worth making a webmention receiver listen over unencrypted HTTP to redirect to HTTPS, instead of just listening over HTTPS and leaving port 80 alone?
#
[schmarty]
only if you are advertising the webmention endpoint over HTTP somewhere.
#
Seirdy
like is anyone seeing 301 HTTP->HTTPS redirects for webmention receivers in their logs
#
Seirdy
[schmarty]: i don't, and i'm not sure why someone would
jacky joined the channel
#
Seirdy
[manton]: i'd stay away from google domains unless you use a separate google account just for buying domains. you don't want to get locked out of domain renewal because the algorithm thought your email activity was suspicious.
#
[schmarty]
Seirdy no mention in the webmention spec of senders following redirects. https://www.w3.org/TR/webmention/#h-sender-notifies-receiver
#
Seirdy
[schmarty]: wait im planning on moving menchies from a /path to a subdomain, and that might call for a re-direct.
#
Seirdy
if only temporary
#
[schmarty]
Seirdy: any webmention sender should only send to the advertised rel=webmention link on a given post.
#
Seirdy
yeah tru
#
Seirdy
my main goal is to get everything on seirdy.one to be static+idempotent so i can enable 0-RTT worry-free.
#
[schmarty]
a no-downtime approach would be to set up your new receiver endpoint, update the posts, then shut down your old receiver endpoint.
#
Seirdy
yeah that's what i planned on doing
#
[schmarty]
redirects from HTTP => HTTPS are more for user agents like browsers where someone might not know exactly which protocol to use. if you advertise an HTTPS url and a webmention sender uses HTTP, that's their error. if you advertise an HTTP url but don't accept webmentions there, that's your error. 😄
#
sknebel
hm... I think aaronpk had seen some issues around that with webmention.io. ping :D
#
sknebel
or [snarfed] in bridgy
#
sknebel
but the topic seems familiar
#
[snarfed]
also 301/302 will downgrade the POST to a GET, which won't work
#
[snarfed]
you'd need 307/308, which may not be as widely supported
#
Loqi
[aaronpk] #753 http redirect handling from webmention endpoint
#
Seirdy
also curious if anyone has a system that handles dead links by replacing them with archived snapshots, and how that fits into webmentions and microformats
#
Seirdy
like if you originally link an archived snapshot, you might send a menchie to the archive service. cool.
#
[snarfed]
menchie is mention?
#
Seirdy
but if you send a menchie to a "normal" (for lack of a better term) site, and later the page disappears, you might replace your link with an archived snapshot--either a self-hosted snapshot (perhaps powered by archivebox) or a third-party service (e.g. wayback machine)
#
Seirdy
[snarfed]: yes
#
Seirdy
then, would you re-send the webmention to the new archived snapshot?
#
[snarfed]
people have definitely thought about archiving linked pages in general before. eg https://indieweb.org/IndieArchive
#
Seirdy
aaronpk's solution is neat. download once, parse for webmention endpoint, but then save the downloaded snapshot as an archived copy.
#
Seirdy
then every page will need a unique ID that is not necessarily the same as the URL you include in the page
#
[snarfed]
people have also thought this through a bit for caching profile pictures, eg for displaying webmentions. haven't found that on the wiki much yet, but I think aaronpk's p3k does
#
Seirdy
since the displayed URL will change but internally will be linked to the original id of the page. so on your backend, a page could be represented with two urls: the "original" url and the "currently live" url. the currently live url could be a pointer to the current canonical or the archived snapshot.
#
Seirdy
[snarfed]: i'd just use max(document_cache-control_duration,7d) to cache a u-photo URL value, and use max(image_cache-control_duration,14d) to cache the actual image file. and if the former disappears, i could switch the image to grayscale.
jacky joined the channel
#
[snarfed]
for strict caching, sure! people were thinking and built more permanent solutions though
#
[snarfed]
switching to grayscale is an interesting UX idea. the goal would be to indicate that someone's site disappeared?
#
Seirdy
i'd probably post-process the image file too. shrink, zopflipng, next-gen image formats, a binary value set to "true" if the measured brightness is too high (so i can reduce the opacity for the image in my dark theme), nsfw-filter, possible manual review if it's visually distinct enough, etc. so i would probably want the min cache duration to be kinda long, since this isn't a dance i want to
#
Seirdy
do too often.
#
Seirdy
[snarfed]: well it's something i just thought of in like 5s. though after thinking about it for slightly more than 5s, i guess they might have actually wanted to remove their u-photo so i should fall back to a placeholder
#
Seirdy
or...libravatar...
#
Seirdy
ooh i just got the most awesome idea
#
Seirdy
make your u-photo a libravatar url hosted at your own domain
#
Seirdy
this is probably not worth it
#
Seirdy
but hey
#
Seirdy
it feels neat even though it actually isn't
jacky joined the channel
#
Seirdy
wait hang on this could actually work. if you use your own domain for libravatar (as opposed to a subdomain or different domain altogether) it won't be an additional DNS lookup; it'll be just like serving a plain old image. but the URL will be machine-discoverable from just your email address at the same domain as well. so you'll get the benefits of an indieweb u-photo *and* the benefits of
#
Seirdy
email-as-identity assuming you use the same domain for both. Ooh, make your BIMI icon have the same URL.
#
Seirdy
one url for all three profile images. perfect.
#
Seirdy
oh and make it your favicon too, because why the hell not
#
Seirdy
WAIT NO
#
Seirdy
this won't work
#
Seirdy
my BIMI, favicon, etc. are SVG
#
Seirdy
but my libravatar is a PNG
#
Seirdy
and nobody implements the "Accept" header correctly so content negotiation won't work
#
[snarfed]
conneg--
#
Loqi
conneg has -9 karma in this channel over the last year (-12 in all channels)
#
Seirdy
hang on, svg should work for libravar. nvm.
#
Seirdy
s/libravar/libravatar/
chenghiz_, jacky, mro and jacky_ joined the channel