#dev 2025-03-11

2025-03-11 UTC
thegreekgeek, GuestZero_, Toxicogenic, shrewd, grufwub, paotsaq, thegreekgeek_ and MyNetAz joined the channel
#
[tantek]
!tell snarfed odd new quirk from a BridgyFed federated post: https://mastodon.social/@tantek.com@tantek.com/114142108146212059 seems to show [email protected] for what should be a plain / normal @-@ profile link. Wondering if that also means that @-@ link didn't show up as a @-mention notification either
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[preview] [Tantek Çelik] Ten years ago today I coined the shorthand “js;dr” for “JavaScript required; Didn’t Read” * https://tantek.com/2015/069/t1/js-dr-...
#
doesnm
[tantek]: looks like related to Cloudflare or something like this
nemonical joined the channel
#
[tantek]
fascinating
nemonical, ttybitnik and Xander joined the channel
#
Loqi
[snarfed]: [tantek] left you a message 6 hours, 26 minutes ago: odd new quirk from a BridgyFed federated post: https://mastodon.social/@tantek.com@tantek.com/114142108146212059 seems to show [email protected] for what should be a plain / normal @-@ profile link. Wondering if that also means that @-@ link didn't show up as a @-mention notification either
MyNetAz joined the channel
#
sknebel
(it injects some JS to replace the placeholder later, but ofc that doesnt work with non-browser or JS-blocking clients)
#
[snarfed]
hah ok, so a casualty of Tantek's recent migration there
#
Loqi
[preview] [Tantek Çelik] Ten years ago today I coined the shorthand “js;dr” for “JavaScript required; Didn’t Read” * https://tantek.com/2015/069/t1/js-dr-javascript-required-dead in reference to (primarily content) pages that were empty (or nearly so) without scr...
theokiwi and thegreekgeek joined the channel
#
theokiwi
do you guys think its possible to create some sort of api that would retrieve google or other search engines results, and then refilter them trying to exclude ai generated garbage?
#
theokiwi
i was wondering if there was anything that could be done to make the normal web usable again
#
theokiwi
thank you!! thats second time you saved me! i appreciate it
#
capjamesg[d]
Happy to help ✨
#
[tantek]
Thanks sknebel++
#
Loqi
sknebel has 9 karma in this channel over the last year (17 in all channels)
#
[tantek]
The irony of injected JS screwing up my jsdr post I can't even 😂 😂 😂
#
[tantek]
also hilarity that that the @-@ fedi address syntax gets tripped up by Cloudflare's (presumably) email address detection regex and corrupted despite linking to an https: link
#
[artlung]
It is better to deployed and gotten bugs than to have never deployed before.
#
[tantek]
Cloudflare << Troubleshooting: if you see "(@[email protected])" in your web page content or especially when federated (e.g. via [[BridgyFed]]), this is likely due to Cloudflare's Scrape Shield email address detection and obfuscation feature being overzealous (perhaps too broad of a regex) and seeing the [[@-@]] fedi-address as an email address. The solution is to turn off Scrape Shield in your Cloudflare dashboard for your site:
#
Loqi
ok, I added "Troubleshooting: if you see "(@[email protected])" in your web page content or especially when federated (e.g. via [[BridgyFed]]), this is likely due to Cloudflare's Scrape Shield email address detection and obfuscation feature being overzealous (perhaps too broad of a regex) and seeing the [[@-@]] fedi-address as an email address. The solution is to turn off Scrape Shield in your Cloudflare dashboard for your site:" to the "See Also" section of /Cloudflare https://indieweb.org/wiki/index.php?diff=100372&oldid=100027
neatnik joined the channel
#
[tantek]
[artlung]++ perfect is the enemy of the good, and ob testinprod++
#
Loqi
[artlung] has 3 karma in this channel over the last year (16 in all channels)
#
Loqi
testinprod has 1 karma over the last year
#
[tantek]
thanks again sknebel, snarfed. Now documented so hopefully the next person can troubleshoot faster: https://indieweb.org/Cloudflare#Unwanted_email_protected_in_content
#
[artlung]
Yes, all true. ... Unrelated completely. This morning I'm reading specs for WAP/WML and XHTML2. XHTML2 documents in particular have ambition reminding me of "_My name is Oxymandias, look on my works ye mighty and despair"_
#
[artlung]
I've not participated in spec writing for public consumption but it sure seems like reading specs for things that never caught on would be as useful to read as specs for things that got incredibly well-used.
[davidmead] joined the channel
#
[tantek]
[artlung] you might find the first citation in the Wikipedia section on XHTML2 to be humorous 🙂 https://en.wikipedia.org/wiki/XHTML#XHTML_2.0
#
[tantek]
(I just noticed this myself for the first time)
#
[artlung]
MARK PILGRIM HAS A POSSE
#
[artlung]
[tantek]++ and yes I do. And I miss Mark Pilgrim's voice though I well understand why he went 410 Gone.
#
Loqi
[tantek] has 34 karma in this channel over the last year (157 in all channels)
MyNetAz joined the channel
#
[tantek]
at the time I admit I was a bit miffed for actively participating in the WG and helping improve XHTML2 drafts for many years (with contributions like that blog post, and of course showing up to meetings to advocate for changes for web developers etc.), and then never being mentioned in the acknowledgments (all of the WDs had empty acks sections) but in hindsight, I think I'm quite ok with not having my name attached to any of those drafts
#
[KevinMarks]
I still have a backup of his Wordpress DB - sadly the known- hosted version Ben and I stood up is no more. I should render a static version
#
[tantek]
^ there's a lesson there about setting up a site archive.
#
[artlung]
I don't mean to kick or insult folks in the past doing their best. Hindsight can make us pretend we can know the future.
#
[artlung]
But the XHTML2 spec - the intro stands out - makes some broad claims about what's good and what's possible that contain hubris.
#
[tantek]
[artlung] a bit of doing their best, but also in all honesty some weird mix between being too far "out ahead" or idealistic, and perhaps a bit of spec-first arrogance (that sometimes happens in web standards) of "if we draft it, they will build it"
#
[tantek]
also a personally humbling lesson, in that one person bringing feedback in "from the real world" is insufficient to fix a group effort
#
[tantek]
XHTML2 as an effort and failure kinda had to happen though, to really put the nail in the "XML will replace HTML" coffin.
#
[KevinMarks]
404 or 410 imply that something is missing, but it's not the endpoint that is missing
#
[KevinMarks]
Odd dev question from dayjob - I have a service that depends on receiving emails to update the current state. For monitoring purposes I am making an endpoint that returns how long it is since we last received an email. I want this to sow as an error in the monitoring service if the delay is too long. What HTTP error should I use to signal this state?
#
[KevinMarks]
503 Service Unavailable is kinda close, in that I suspect something is down
#
[KevinMarks]
504 Gateway Timeout also kinda makes sense if receiving email is a gateway
#
[KevinMarks]
any thoughts?
#
[artlung]
503 with a header to indicate when good to try again.
#
[artlung]
"temporarily unavailable" is the message. until it's known to be permanently unavailable. which would make it 400 class error.
#
[aciccarello]
Don't 400 class errors typically indicate an issue with the request?
#
[aciccarello]
I like 504 for this
#
[KevinMarks]
Yes, I think I want a 500 class error
#
[artlung]
Is it... _500 - we f*cked up; 400 - you f*cked up; 300 - f*ck off; 200 cool._
#
[KevinMarks]
I want a "whoever's in charge of emailing us fucked up" signal
#
doesnm
[artlung]: what about 100?
#
[tantek]
[snarfed] I changed the setting on Cloudflare to not obfuscate email address, the view source on my own site looks good, then tried webmentioning Bridgy Fed again but it didn't seem to pick it up as a content update / refederate. Am I doing something wrong?
#
[tantek]
https://mention.tech/ even said the updated webmention was accepted (202) for reprocessing
GuestZero joined the channel
#
[artlung]
_100: later._
#
[mattl]
artist photo from Wikipedia now: https://libre.fm/artist/Engine+Down/
#
[artlung]
[mattl]++ nice! How do you set which artists are queued to get wikipedia photos?
#
Loqi
[mattl] has 23 karma in this channel over the last year (57 in all channels)
#
[mattl]
[artlung] queued? Just grabbing it when you go to the Artist page.
#
[mattl]
queuing would imply I know what I'm doing 😉
#
[artlung]
It seems to be working which implies you do!
gRegor, GuestZero, balintm and [Jo] joined the channel
#
[snarfed]
[KevinMarks] if the endpoint is returning monitoring data, "it's been too long" seems like part of the data, not the metadata about the HTTP request to fetch the monitoring data
#
[snarfed]
personally I'd return 200 and put it in the content, not the HTTP status code
ttybitnik joined the channel
#
[aciccarello]
That's what we do with most of our monitoring endpoints
nemonical, [schmarty] and Guest6 joined the channel
#
[snarfed]
[tantek] looks like BF was a few minutes behind, I'm seeing the update now, eg https://indieweb.social/@tantek.com@tantek.com/114142107366833997
#
[snarfed]
AP Updates started going out at 9:33:27
#
[snarfed]
(am PT)
#
[tantek]
looking. thanks for checking [snarfed]++
#
Loqi
[snarfed] has 43 karma in this channel over the last year (77 in all channels)
#
[tantek]
curious if this will update past "boosts" of others
#
[tantek]
ah yes it did! excellent, e.g. https://front-end.social/@heydon who boosted my post BEFORE I sent the update to BridgyFed, has now been updated and shows the correct @-mention instead of "email protected"
#
[tantek]
BridgyFed++
#
Loqi
BridgyFed has 4 karma in this channel over the last year (8 in all channels)
#
[tantek]
excellent, this has now verified that the Solution documented in https://indieweb.org/Cloudflare#Unwanted_email_protected_in_content actually works
[benatwork] and sp1ff` joined the channel
#
[KevinMarks]
[snarfed] in this case it's integrated with a broader monitoring system that polls regularly and logs timeouts, slowness and errors, so returning an error is the right way for it to be escalated
#
sknebel
[KevinMarks]: I'd go with 400 personally, or some made-up 5xx number if your monitoring system handles that. reason being that then any failure of your system produces a different error code. e.g. 500 might lead to confusion if ever something makes your software crash
#
[mattl]
use a different error code each time, keep people on their toes
#
Kolev
I think I'll use Nginx + WordPress.
#
[tantek]
highly recommend asking if anyone has thoughts on that choice in #indieweb-wordpress and see what folks there say
#
Kolev
[tantek]: Thanks. Asked.
Toxicogenic, ttybitnik and [Sophia_wood] joined the channel
#
[Sophia_wood]
Started building the skeleton of a svelte 5 blog today. I think it's going to work for me.
[Sophia_wood]1 joined the channel
#
capjamesg[d]
[Sophia_wood]++ Nice!
#
Loqi
[Sophia_wood] has 1 karma in this channel over the last year (7 in all channels)
#
capjamesg[d]
That is exciting!
#
[Sophia_wood]1
I can’t wait to share. I hoped to post lots of birds and flowers.
balintm joined the channel
#
capjamesg[d]
I'm excited to see what you make.
#
[Sophia_wood]1
I should probably include coffee
#
Loqi
yea!
#
balintm
hey all, do you know of any sort of convention around adding permashortlinks as a <link> tag with rel=alternate, or any similar way of establishing a relation between a canonical page URL and a shortlink?
#
balintm
hmm that might be misuse of rel=alternate so maybe a bad example
#
[tantek]
What is rel shortlink
#
Loqi
rel-shortlink is a microformats standard for a page to link to a shortlink URL for itself https://indieweb.org/rel-shortlink
#
balintm
ohh wonderful
#
balintm
thanks tantek++
#
Loqi
tantek has 35 karma in this channel over the last year (159 in all channels)
#
balintm
i don't think i'm able to implement the Link header but the tag is _something_ i guess
#
balintm
there. ahh that feels nice *sips imaginary coffee*
#
Loqi
coffee has 2 karma in this channel over the last year (15 in all channels)
balintm, [Sophie_Young] and sebbu joined the channel