#dev 2024-08-07

2024-08-07 UTC
refica, geoffo, Kaguneh, [jeremycherfas], capjamesg[d], [tantek], [Joe_Crawford], [schmarty] and kimo joined the channel
#
catgirlin.space
[snarfed] any ideas on why following my bridgy fed account from indieweb.social doesnt work (and same in the other direction)?
[snarfed] joined the channel
#
catgirlin.space
@catgirl@indieweb.social
#
Loqi
[preview] rosalina saige
#
[snarfed]
oh, no, what's your "bridgy fed account" ?
#
catgirlin.space
oh, catgirlin.space :3
#
[snarfed]
will look
#
catgirlin.space
also should mention it seems to be every bridgy fed account? like following @snarfed.org@snarfed.org shows "Cancel follow", like your bridgy fed account does follow requests (but tmk bridgy fed doesnt do those?)
#
[snarfed]
hmm ok! odd
#
[snarfed]
ah you don't have a profile picture
#
[snarfed]
BF currently requires those as a spam filter
#
catgirlin.space
oh, never added one because the only thing i rlly plan to use that account for is testing if my bridgy fed and webmentions stuff works...
[jeremycherfas] joined the channel
#
catgirlin.space
hm, seems like trying to follow my indieweb.social account from fed.brid.gy doesnt work though still :( unless if its just cached or something...
#
[snarfed]
you'll need to add a profile picture first
#
catgirlin.space
i did
[Scout] and jimw5 joined the channel
#
Zegnat
Such a mix of words. It is not an OpenGraph tag. (OGP uses property, not name.) Instead they should have said they followed the Twitter card standard, but then unlike Twitter they did not add it to the extensions list https://wiki.whatwg.org/wiki/MetaExtensions
jimw4 and gRegorLove_ joined the channel
#
[tantek]
Zegnat, see prior discussions here in the channel on fedi:creator and using rel-author instead, including most recently, the discussion and resolutions at the SocialCG meeting last Friday
#
[tantek]
Start here and read subsequent messages and links: https://chat.indieweb.org/dev/2024-08-02#t1722627402626800
#
Loqi
[preview] [[tantek]] [snarfed] (who was there) [manton] j12t [aaronpk] good news from this morning's SocialCG meeting, proposal to the CG to recommend adopting that proposal from a GH comment to use link rel=author and type=application/activity+json for linking to author...
#
Zegnat
I thought I scrolled up and caught up on the backlog. But apparently not. Thanks [tantek]!
ttybitnik joined the channel
#
Zegnat
I see nothing about `fediverse:creator` there, except for the link to the Mastodon PR in the SocialCG notes?
barnaby joined the channel
#
[tantek]
Which is a follow-up from the previous month's SocialCG notes where I raised the issue
#
[tantek]
point being, no one was advocating for fedi:creator and there was fairly universal agreement that we should be using and advocating for rel=author instead, with the type attribute, as proposed in a comment on that Mastodon PR
#
[tantek]
the entire discussion about rel-author is "about `fediverse:creator` there"
#
Zegnat
I was mainly looking to see if there were any actual examples of implementations. I found at least one IndieWeb Example, Matthias.
#
Zegnat
Implementations for publishing that is, consumers I don’t know
barnaby joined the channel
#
Zegnat
Looks like pfefferle also implemented it for WordPress
barnaby joined the channel
#
[tantek]
a bunch of people started publishing it just because Mastodon implemented it, it's same "big implementer" effect we see with any random Google Search markup proposal and SEO people going nuts over it
#
[tantek]
ironically it won't do anything unless you get on Mastodon's centrally controlled "approved journalist" allow list, so it's not really worth publishing unless you think you have a chance at being recognized as an "approved journalist"
#
Zegnat
Moved it to /Mastodon#Link_Previews now, and expanded a little with publishers vs consumers
#
[tantek]
Zegnat++ thank you! Also good to capture the current state of what Mastodon is supporting, and hopefully we can update that there's clear implementation documentation for how to use rel-author instead.
#
Loqi
Zegnat has 9 karma in this channel over the last year (18 in all channels)
Guest6_ and AramZS joined the channel
#
[tantek]
more a critique of the 'title' attribute but yeah
sebbu2, sadome, sadomei, [snarfed]1 and [Scout]1 joined the channel
#
[tantek]
I wonder if there is an opportunity for an 'expand' IDREF attribute on <abbr> so you could do something like:
#
[tantek]
> This article is about <i><abbr expand=e>HTML</abbr></i> (<i id=e>Hypertext Markup Languge</i>). The presentation of <i><abbr expand=e>HTML</abbr></i> pages…
#
[tantek]
aside, per https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i one "valid" use of the <i> element is for "Technical terms"
GuestZero, jjuran, [Jo], [tantek], [Joe_Crawford], ttybitnik, AramZS, flambop, _fluffy and Kaguneh joined the channel
#
capjamesg[d]
What is the best way to detect character encodings in Python
#
Loqi
It looks like we don't have a page for "best way to detect character encodings in Python" yet. Would you like to create it? (Or just say "best way to detect character encodings in Python is ____", a sentence describing the term)
#
capjamesg[d]
(in a file)
#
capjamesg[d]
I got a report that someone using my static site generator is getting a UnicodeDecodeError in Python.
barnaby joined the channel
#
capjamesg[d]
Python's open() call assumes your system default encoding.
#
capjamesg[d]
So I need to figure out what the encoding is?
#
jimw
chardet?
#
capjamesg[d]
Also: what is the best way to test a Python file on Windows?
#
capjamesg[d]
I don't have a Windows computer, but I got a bug report for Windows.
#
capjamesg[d]
jimw Does chardet mean I need to read the file twice?
to2ds joined the channel
#
to2ds
Chardet almost sounds like it could be a wine :D
#
[snarfed]
capjamesg beyond chardet, historically the other effective answer has been https://www.crummy.com/software/BeautifulSoup/bs4/doc/#unicode-dammit
#
capjamesg[d]
[snarfed] What would the code look like? The user is getting the error on the .read() call on the file pointer.
#
capjamesg[d]
I really need to figure out a Windows environment to replicate this.
#
jimw
capjamesg[d]: potentially. what you could do is read it as you are now, catch UnicodeDecodeError and then fall back to using chardet to try again.
#
Loqi
jimw has 1 karma over the last year
#
capjamesg[d]
That sounds like a good approach.
#
[snarfed]
capjamesg got me, I haven't used it directly before
#
[KevinMarks]
If you have mojibake that isn't giving decode errors (because it has already been concatenated or been through more than one encode decode cycle) ftfy is handy
#
catgirlin.space
has anyone done custom emojis like there are on fedi?