#dev 2024-02-08

2024-02-08 UTC
#
[tantek]
for anyone thinking of building a Mastodon or AP-based business, I still think "The Federated Group" is a good name a nice 1980s throwback for a certain set
#
[tantek]
just be sure to avoid this ironic outcome: https://en.wikipedia.org/wiki/Federated_Group#Silo
angelo_, pharalia, AramZS, [tw2113], mahboubine, tPoltergeist, gxt, jjuran, Maxpm, Guest4898, rubenwardy, BinarySavior, srushe, ancarda, jan6, GWG, capjamesg, rhiaro, ludovicchabant, oodani, ramsey, streety, joshproehl, Saphire, Xe, chimo, vikanezrimaya_, roxwize, eb, alecjonathon, jonnybarnes, voxpelli, mooff, oxtyped, dustinm`, nsh, alephalpha0, rrix, Kaja, omz13, sandra, lagomorph_, saptaks, rocto, hacdias, sknebel, mretka, oenone, vikanezrimaya, tbbrown, [capjamesg], DusteD, [timothy_chambe], [Jo], [The_Frederatio], [aciccarello], fury999io, bret, [Joe_Crawford], kleb, [KevinMarks], IWSlackGateway, moose333, aaronpk, geoffo, jeremycherfas, Virtual, [0x3b0b], sebbu, srijan, chee, superkuh, barnaby, sivoais, bacardi55[m], sebsel, wagle, strugee-, lanodan, lockywolf, benji, gerben, chenghiz_, Soni, petermolnar, Guest1350, Zegnat, trwnh, kushal, lazcorp, gRegor, Guest6, handcode, dominik1, [Murray] and nertzy joined the channel
#
_tommys
would love to hear more capjamesg[d] !
#
capjamesg
emerges from a PokΓ©ball.
#
_tommys
my limitations are: no server-side processing, can use the Neocities CLI to upload/push, do know a bit about python and happy to run py scripts on a task scheduler etc. - would like the final outcome to be: i just edit a very simple text document, and it will appear in the <html> of the /journal page
#
capjamesg
I use this library: https://pypi.org/project/Markdown/. It takes in a markdown file or text and turns it into HTML.
#
capjamesg
It should be a few lines of code to get everything set up and working.
#
_tommys
amazing, thank you
#
capjamesg
πŸŽ‰
#
_tommys
do you have an example of your workflow with this? just trying to picture how i'd use it
#
bacardi55[m]
_tommys: If you don't want to code too much, you can use static site generator that takes markdown files as input and generate a full sites, easy to automate with a few line of bash / python too.
#
capjamesg
I don't, sorry! My code has a lot going on and it's not the easiest to read 😒
#
_tommys
thank bacardi πŸ™‚ i'll check that next if i get stuck
#
_tommys
so i've got something up and running: https://tsxyz.neocities.org/journal
#
_tommys
i'd like to be able to add a css style - having trouble finding that in the Markdown Py docs
#
_tommys
i suppose i can define it in the py script, and make the markdown do it's thing after the fact
#
_tommys
OK, i got it working how i like πŸ™‚
#
_tommys
thanks for your help!
#
capjamesg
Oooh! That looks great!
#
capjamesg
_tommys[d]++
#
Loqi
_tommys[d] has 1 karma in this channel over the last year (2 in all channels)
ben_thatmustbeme, tPoltergeist, [snarfed] and [tantek] joined the channel
#
[Jo]
I also like it!
AramZS joined the channel
#
[tantek]
[snarfed] the use-case is "I am posting several photos however I want *this* photo to show up in any preview of my post" for multiphoto and album/collection posts
#
[tantek]
for putting u-featured on a u-photo
#
[tantek]
also as a hint to any POSSE services that if the destination only supports one photo from a multiphoto post, use *this* photo
eitilt, Mandaris and gRegor joined the channel
#
[snarfed]
oh sure, I understand. I was thinking about when that collides with the idea to use u-featured to indicate a desired link to preview, https://indieweb.org/link-preview#which_link_to_preview
#
[snarfed]
for example, if a post has both content with links and photos, and the publisher has u-featured on a link and also on one of the photos
#
[snarfed]
we have heuristics to distinguish which is which, for these two different consuming use cases, but afaict nothing deterministic yet
[Joe_Crawford] joined the channel
#
[tantek]
maybe we need different names/terms for the two very different use-cases
#
[tantek]
and perhaps even with u-featured only on photos, we are overloading its usage (both for outside and inside)
jacky joined the channel
#
[snarfed]
I always love parsing mf2 in the wild. u-url localhost:8080, what could go wrong :zany_face: https://www.tiffwhite.me/blog/real-genius
#
[tantek]
hah! should we place additional filters on URL parsing?
#
[tantek]
suggestions welcome! (though perhaps for #microformats mf2 parsing or issues on the mf2 spec if you have a specific thing we should filter out)
#
sknebel
personally I feel that's more on later stages. its not like you can trust URLs you receive/parse in other ways any more
#
[tantek]
yeah it's a spectrum between syntax errors and semantic errors and just bad resources at the other end
#
[tantek]
I think there's room in a parser to handle at least syntax errors and maybe some semantic errors, though yes, any consuming code should itself be hardened against "bad" URLs anyway
[KevinMarks], [Jo], [Al_Abut] and AramZS joined the channel
#
[tantek]
DusteD, RSS, as merely a file format, has nothing to do with realtime notifications, which requires a protocol
#
DusteD
[tantek], I'm terribly ignorant when it comes to realtime notifications outside of dedicated sockets like raw tcp or udp sockets, or websockets, and I suppose none of those are practical for this, so in a way, I don't know if you're suggesting a new protocol, or http2/push or what you mean, nevertheless, the message that someone went live should still be encapsulated into some format, maybe rss is a bad one for it, though it seems to have the fields
#
DusteD
we'd need, "who, when, where" basically ?
#
DusteD
unless we'd want to describe a protocol so specific to "going live" that there's no formats on top of the protocol, that seems maybe overkill ?
#
gRegor
what is websub
#
Loqi
WebSub is an open standard (W3C Recommendation) notification-based protocol for web publishing and subscribing to streams and legacy feed files in real time, previously known as PubSubHubbub or PuSH, and briefly PubSub https://indieweb.org/WebSub
#
aaronpk
websub is certainly enough to trigger a realtime notification about going live
#
aaronpk
of course you'd need something to get a notification to the end user, like web push API from that
jacky joined the channel
#
[tantek]
^ DusteD these are some of the possible answers. Note that various notification APIs, like Web Notifications have plain text
#
[tantek]
No need for RSS semantics
#
DusteD
I guess if you prefer plain text, but does that help the user navigate to the stream more than a semantic like "here's the url for the stream if you wanna watch" or to decide whether they want to watch by for example considering the time of it ?
#
aaronpk
not sure how that's relevant to RSS
#
aaronpk
what is the actual end user notification you want to see? probably something on a phone or in a OS notification tab. those certainly don't speak RSS.
#
Loqi
It looks like we don't have a page for "actual end user notification you want to see" yet. Would you like to create it? (Or just say "actual end user notification you want to see is ____", a sentence describing the term)
#
aaronpk
no Loqi
#
DusteD
I probably totally misunderstood the premise of the question; I tried (naively, as it were) to answer the question of how one might reasonably provide others with information that one has gone "live", and saw that well, you can encapsulate that information in an RSS feed, so that it's easy for any user of existing readers to discover that you've gone "live" and they can even click the link to be taken to the stream and watch it, but yeah, I have lost
#
DusteD
the premise, no idea what the actual question was.
[aciccarello] joined the channel
#
aaronpk
you could put that info in an RSS feed, but that doesn't answer how someone would actually see the notification
#
aaronpk
something would have to take the RSS feed update and convert it to a platform push notification or webpush for example
#
DusteD
aaronpk, well, I guess they'd see it in their RSS reader, the software that's running on their PC or phone, that they use to consume RSS feeds ?
#
aaronpk
so i have to check my RSS reader to see the notification that I am supposed to get in real time then :)
#
DusteD
on my pc at least, thunderbird will do a notification when there's a new item on a feed I'm following ?
#
DusteD
like, a little thing the OS overlays on top of my existing view
#
aaronpk
see that's the missing step i was tryign to get you to explain
#
DusteD
it does this when I get mail too
#
DusteD
but that's existing functionlity, it's working right now today, it's been working the past 20 years ?
#
aaronpk
it's an assumption that was not spelled out
#
gRegor
An overlay for every new notification in a reader?
#
DusteD
I'm out :) I obviously have missed the problem to far I can't even see the way back.
#
aaronpk
in any case, receiving a realtime notification about a livestream starting isn't really any different than a realtime notification about any other post, so I don't really know what this discussion is about in the first place
#
[snarfed]
an indieweb-native straw man end to end here could be something like
#
[snarfed]
β€’ user A follows user B in a websub-enabled microsub-based reader
#
[snarfed]
β€’ B goes live by posting a new post with some "I'm live" mf2, either a u-category with specific text, or new class, etc
#
[snarfed]
β€’ B's server notifies websub subscribers, including A's microsub server
#
[snarfed]
β€’ A enables notifs for B going live. either opt in, or the reader defaults these to on, etc
#
[snarfed]
β€’ A's microsub server detects the "live" mf2 and sends a push notif to A's reader client out of band
#
[snarfed]
ideally we want all this to be possible for any posts. maybe the only new thing here could be that social readers have a new notif category for going live
#
aaronpk
or skip the whole dance and do it the way owncast does, where you visit the site and your browser asks if you want notifications, then the owncast server uses the browser's push API directly
#
[snarfed]
(once we agree on the u-category or whatever it is)
#
_tommys
33
#
_tommys
sorry, cat
#
[snarfed]
true. kind of feels better to integrate with the "standard" notif stack described above, but per-site custom like that is doable
#
aaronpk
the main downside to the direct notification version is that each device is treated independently, so you'd have to click notify on your computer and phone if you wanted it on both
#
aaronpk
whereas the other approach can be smarter about how to deliver the notification since it ends up tied to your domain
#
[snarfed]
and more unified notif config for users in general, in their reader for all sites as opposed to one-offs
eitilt joined the channel
#
gRegor
!tell jamietanna, Have you written about how you post your podcast listens?
#
Loqi
Ok, I'll tell them that when I see them next
#
gRegor
I'm poking around PocketCasts for an option, unfortunately I think they only have OPML export/import currently
#
gRegor
There is a history page on the web app, so could scrape it I guess
eitilt joined the channel