#dev 2022-10-10

2022-10-10 UTC
gRegorLove__, tbbrown, jeremycherfas, gRegorLove_, geoffo, angelo, gxt and mro joined the channel
#
capjamesg
v0.3.1 of IndieWeb Utils is out. This release has been worked on since February: https://pypi.org/project/indieweb-utils/
#
capjamesg
[James_Van_Dyne]++
#
Loqi
[James_Van_Dyne] has 5 karma in this channel over the last year (7 in all channels)
#
capjamesg
angelo++
#
Loqi
angelo has 13 karma in this channel over the last year (18 in all channels)
#
capjamesg
tantek++
#
Loqi
tantek has 23 karma in this channel over the last year (72 in all channels)
tetov-irc, [campegg], brennan, barnaby, gRegorLove_, geoffo, mro, gRegorLove__, gRegor, AramZ-S[m] and [tantek] joined the channel
#
capjamesg
[KevinMarks] Can I submit a PR that prepares your cassis autolink function as a Python library w/ docs?
#
[KevinMarks]
Sounds good
barnaby and nertzy joined the channel
#
angelo
capjamesg wouldn't it be best integrated into indieweb-utils?
#
capjamesg
angelo I was thinking about that.
#
capjamesg
But there might be a licensing issue.
#
capjamesg
assis-autolink-py is licensed under CC BY-SA 3.0
#
capjamesg
*cassis
#
h4kor[m]
I'm currently adding author information to my h-entries. Is there a rule when to use u-photo or u-logo?
AramZS joined the channel
#
capjamesg
u-logo is not for a h-entry I don't think.
#
capjamesg
u-photo represents the "main" image in a post. This is a draft property.
#
h4kor[m]
sorry, I'm talking about the p-author h-card.
#
capjamesg
Ah! I made a mistake.
#
capjamesg
u-featured is for the main image in a post.
#
capjamesg
I'm not sure re: u-logo vs u-photo.
#
capjamesg
The spec says u-logo is "a logo representing the person or organization (e.g. a face icon)" and u-photo is "a photo of the person or organization".
#
capjamesg
I add u-photo and u-logo to my image in my h-card.
#
h4kor[m]
So, no harm in adding both tags if you don't have a logo and a photo for an author?
#
capjamesg
If you have a photo of yourself (or some icon that applies), I think that can be a logo and a photo.
#
capjamesg
[tantek] GWG?
#
barnaby
I don’t know of any implementations which do anything with u-logo other than perhaps using it as a fallback if there’s no u-photo, but I don’t see any reason not to use both for the same image if you consider it both a photo and a logo
#
h4kor[m]
barnaby: Got the same impression, I'll just add both. Thanks everybody :)
#
capjamesg
Happy to help!
#
capjamesg
h4kor[m]++ for working on your h-card!
#
capjamesg
h4kor[m]++
#
barnaby
u-logo is used in h-(x-)app, where it’s definitely more appropriate than photo
#
capjamesg
Loqi, are you lost in the matrix?
#
barnaby
so there are implementations which consume that property, just not on h-card afaik
#
capjamesg
I suppose it could also be used in a p-org with a nested h-card representing an organisation?
mro_ joined the channel
#
barnaby
it could be sensibly used in a variety of places, but that’s the only use-case for which I’m aware of actively-maintained consuming implementations
mro joined the channel
#
angelo
capjamesg that CC license being a hinderance for adopting a small utility function is precisely the reason why i'd like indieweb-utils to be public-domain-equivalent
#
capjamesg
I'm in support too.
#
[tantek]
capjamesg, as an h-card publisher, you can use either u-photo or u-logo if either seems to fit what you're publishing. using both shouldn't be necessary, because any consuming code that requires one should fall back to using the other
#
angelo
but practically speaking a cassis.py port to indieweb-utils would likely be sufficiently different in structure that i believe the license would no longer apply. you could still attribute the original authors. curious what they think.
#
[tantek]
angelo, I put the CC license on CASSIS precisely to slow down adoption while it was still "in development" to reduce the chance that bad/buggy versions spread & propagated
#
[tantek]
something like a rewrite in a different language is less likely to propagate bugs so that seems less of a concern
#
[tantek]
are there parts of cassis.js that you want to re-use whole like the regex for auto-linking? I could wrap those in a more re-use friendly license like BSD0
#
capjamesg
[tantek] Did you contribute to indieweb-utils?
#
capjamesg
I remember you chiming in on some PRs / issues.
#
capjamesg
We're trying to decide on a new license. BSD-0 is the frontrunner.
#
barnaby
afaik it’s fine to reuse code under a different license with written permission without the original author having to relicense their project. I do exactly that in taproot/indieauth, using indieweb chat logs as the record of permission https://github.com/Taproot/indieauth/blob/main/src/functions.php#L155
#
angelo
capjamesg i interpreted our back and forth as MIT0 being the frontrunner https://github.com/capjamesg/indieweb-utils/issues/73 but i couldn't find any arguments in favor of one over the other..
#
Loqi
[capjamesg] #73 Transition license to CC0
#
capjamesg
Yep. Sorry.
#
[tantek]
BSD0++ 🙂
#
Loqi
BSD0 has 1 karma over the last year
#
angelo
i don't believe we'd need the regex but i would like to carry over the embeds, especially fragmentions
#
[tantek]
or should I say 0BSD++
#
[KevinMarks]
That regex does fell like it needs it's own repo in some ways, so you can have a multiline version that explains it and a compact on that you can include.
#
angelo
i can go for 0BSD++
#
angelo
KevinMarks that's the same regex ^
#
[KevinMarks]
I thought Tantek was adding TLDs when indieweb people used them
#
[tantek]
pretty much yes
#
capjamesg
Ah so it's not all TLDs?
#
[tantek]
nah, because there's a signal to noise issue
#
[tantek]
if the noise of accidental auto-linking text that wasn't intended as a link is greater than the actual real world use of links to such domains, makes no sense to include it in the regex
#
[tantek]
i.e. completionism--
#
Loqi
completionism has -1 karma over the last year
[snarfed] joined the channel
#
[snarfed]
yup, witness Twitter auto-linking *.app in tweets
#
[tantek]
user-centered-design++
#
Loqi
user-centered-design has 1 karma over the last year
#
[snarfed]
and *.py, and others
#
[tantek]
"all TLDs" makes very little sense as a design constraint for anything except deep plumbing code and UI for registering domains IMO
#
angelo
i was going to test the regex against all TLDs, see which it didn't have and go from there..
#
capjamesg
[James_Van_Dyne] [tantek] I tagged you both in a comment about relicensing indieweb-utils.
#
[tantek]
IMO it's not only not worth it to test "against all the TLDs" but would result in a worse quality function
#
[tantek]
capjamesg, a new comment? didn't see anything in https://github.com/capjamesg/indieweb-utils/issues/73
#
Loqi
[capjamesg] #73 Transition license to CC0
#
[tantek]
angelo, I believe for each new TLD I've added to the regex, for many years in the change comment, I put the use-case of the specific domain being linked to, or post linking to it, either way from an IndieWeb person as justification for adding the TLD
#
[tantek]
I think testing all ccTLDs would be reasonable as that's an i18n issue
#
[tantek]
but testing all rando new domains? nah, I'd expect them to be mostly garbage and have no desire to support auto-linking to mostly garbage
#
angelo
by "test against all TLDs" i meant i'll just run the test for myself so i can see a list of the unsupported links to figure out which ones a) are being supported by your regex and b) which are not but need to be (eg. gdn)
#
[tantek]
why "but need to be"? for what use-case?
#
angelo
eg. any new ccTLDs? do some research on any new three-letters (eg. lol, gdn)
#
angelo
i guess i don't fully appreciate the uniqueness of that list. yes, we'll probably want to leverage the work contained in that regex.
#
[tantek]
re: new ccTLDs yes that's what I said above as an exception for i18n
mro joined the channel
#
angelo
.ngo/.ong .organic .technology .house .camp .rocks .wtf; i intend to use this auto_link functionality in an editor with automatic preview so i can see solving the issue of false positives with some kind of "cancel" button that escapes the dots in the source
#
angelo
i just learned that you can search google for eg "site:wtf" and get results for only that suffix
#
sknebel
most false positives I see are typos, so preview/review/ability to edit also helps already :D
#
angelo
i'm all for a default mode and then a conservative/exhaustive flag for the other approach. agree that the problem is mostly typos which should be avoided in other ways. but there's also being.able.to.write.like.this sometimes?
#
capjamesg
chat.sr.ht autolinked being.able.to.write.like
#
capjamesg
But left of the .this
#
angelo
omg.lol
#
barnaby
I have a .wien domain if that’s worth anything :P
#
angelo
developer of microblog.pub hexa.ninja links to .fyi, .website and .social just above the fold
#
angelo
there isn't a .this so that false positive is the naive case.
#
[tantek]
preview doesn't solve the problem of noise / false positives
#
[tantek]
quite often folks apply auto_link to *past* content, in which case retro-linking text of the past is very likely to introduce noise especially with thing like .dev .app etc.
#
[tantek]
e.g. any (all?) gTLDs that are three letters that happen to match a file extension
#
[tantek]
angelo, is ".ngo/.ong .organic .technology .house .camp .rocks .wtf" a list you personally care about or ... ? because I know auto_link has supported .rocks and .wtf for quite some time.
#
angelo
i can see conservative mode when batch processing and exhaustive mode during real-time processing
gxt joined the channel
#
[tantek]
"conservative" could mean anything is the problem with that kind of label
#
[tantek]
if you want to really go that deep, you could offer something like the TZ database and a mode where you pass in a date and only TLDs as of that date are linked
#
angelo
i'm going off the regex in cassis.py which has clearly become outdated. first thing i'd do is redefine that regex more explicitly so we can see which are ccTLD. then, of the remaining domains, the list can be short (based on some criteria ie. popularity) or long (based on the "full" TLD list).
tetov-irc joined the channel
#
[snarfed]
but still needs human judgment even after TLD launch dates, because the ones [tantek] is thinking of (app dev py etc) seem to have way more false positives than true positives
#
[snarfed]
(anecdotal, based on watching Bridgy Twitter wms for many many years)
#
[tantek]
true [snarfed]
#
[tantek]
I'm against any framing of "full" or "complete" as more "correct" because the *result* is arguably *not* more correct again because of more noise than signal
#
angelo
you could also go in the opposite direction; support all tlds but skip a short list of known false positives
#
[tantek]
a lot of what I tried to encode into the design of auto_link is a sense of safety, that you won't "screw up" content by using it, e.g. the whole thing where it won't auto_link "twice" if you happen to run it on the same thing twice
#
[tantek]
false positives was only one noise source as an example.
#
[tantek]
the default is the new domains themselves will be used for noise, spam, grift, phishing etc.
#
[tantek]
new non-cc gTLDs should be considered harmful until proven otherwise
#
[tantek]
payment << Beware of the "acceptable use policy" of payment silos / handlers / processors that may or may not impede use of them, e.g. [[PayPal]] briefly had [https://web.archive.org/web/20221008011421/https://www.paypalobjects.com/marketing/ua/pdf/US/en/acceptableuse-full-110322.pdf a policy in 2022] that would fine user for spreading misinformation which resulted in a
#
Loqi
I couldn't get an edit token for the wiki
#
[tantek]
^ oops, new wiki problem?
#
gRegor
gives Loqi an edit token
#
Loqi
Thanks, gRegor!
#
[snarfed]
^ oh man I gotta try this now, this changes everything
#
[snarfed]
high fives Loqi
#
gRegor
[Oprah meme] you get a token! and you get a token!
#
aaronpk
uhoh, did i break something in the upgrade?
chenghiz_ joined the channel
#
[tantek]
does Loqi automatically get an edit token upon server restart?
tbbrown joined the channel
#
aaronpk
i don't even remember how it works tbh
#
aaronpk
ah right edit tokens are a per-edit thing
jeremy, [schmarty] and tbbrown joined the channel