#dev 2023-06-06

2023-06-06 UTC
#
Soni
something like rss feed combiners but for fedi and with a nice html webpage as output
#
Soni
(we guess we could just use an rss combiner...?)
#
Soni
(we feel like that wouldn't look quite right tho)
mretka left the channel
#
vladimyr
[tantek]: I guess you are right and might be that I still haven't got rid of all the bitterness I accumulated during my last development for (mobile) Safari ordeal 8 yrs ago 🥲 No promises made but I'll try exercising the benefit of the doubt
#
[tantek]
vladimyr, you're in the right place. skepticism (accumulated or not) is quite welcome here in the #indieweb-dev channel 🙂
#
vladimyr
I finally found my place under the Sun!
#
[snarfed]
Soni careful, fediverse people get very unhappy when you scrape/download fediverse data in bulk
#
Soni
[snarfed]: they can copium and seethium tbh, they can't close the peering agreements we explicitly make with ppl.
#
Soni
the simple fact that a lot of indieweb folks already run their own servers means they can trivially make a client that mirrors their own posts privately, and then share *those* mirrors, using indieauth or something, with us. instance admins can't do anything about that.
#
Soni
the simplest solution to getting away with it is to not use fedi at all :p
#
epoch
do you want only the public posts, or the things that would be followers only too?
#
Soni
only public yeah
#
Soni
only public, original posts (and threads we guess)
#
epoch
as long as the "scrapes" are for personal use, it'd be pretty hard to argue against doing it
#
Soni
they're meant to be public
#
epoch
so are messages in IRC
#
Soni
we wanna have that "cool fedi ppl" page on our website where we show our friends' recent posts
#
epoch
I think I remember some flag that can appear in actors that might be relevant
#
epoch
"discoverable"
#
epoch
I can tell you what I'd be fine with, but asking permission from each person you wish to have on that page would probably be best
#
Soni
yes, that is the point
#
Soni
asking ppl if we may scrape their recent public, original posts for our cool fedi ppl page
#
epoch
then I don't hear any problem :P
#
epoch
(except ofc, such a thing not existing yet)
#
Soni
yeah that is the problem
#
Soni
and we're too burnt out to deal with it >.<
#
epoch
you /could/ poll their outbox
#
epoch
if you cbf to setup the ap plumbing needed to get them pushed to you
#
Soni
we've been burnt out from programming ever since the rust bullshit happened
#
Soni
like, at all
#
Soni
(this is definitely making college somewhat... difficult. if not impossible. but anyway.)
#
Soni
so we just, kinda can't
#
Soni
can't do anything, barely keeping up with college, etc
#
Soni
sorry
#
epoch
no worries, I might write this scraper.
#
epoch
could come in handy
#
epoch
making code to convert the json to html might be a bit annoying
#
[snarfed]
probably as a library if you're doing this in bulk, not the REST API
#
[snarfed]
but either is ok
#
epoch
I already have code for doing individual activities and objects to html conversion, but the annoying part is that just because I think it looks good
#
epoch
doesn't mean anyone else thinks it doesn't look like dog shit on the sidewalk
#
epoch
curl -sH 'Accept: application/ld+json' https://mastodon.social/@gargron | jq -r .outbox | xargs -r curl -sH 'Accept: application/ld+json' | jq -r .first | xargs -r curl -sH 'Accept: application/ld+json' | jq -r '.orderedItems[] | .id'
#
Loqi
[preview] Eugen Rochko
#
epoch
wonder what the CORS headers are for mastodon and if I could just do all of that in javascript from a webbrowser
#
epoch
checks
#
epoch
kind of looks like I can
#
vladimyr
I read somewhere that it is actually recommend to make that cors friendly but it was mastodon specific if I remember correctly
#
epoch
eh, nevermind, the outbox has CORS problems
#
epoch
and trying no-cors mode in fetch prevent the javascript from getting the response body
#
epoch
https://github.com/mastodon/mastodon/issues/10400 looks like trying to get better CORS headers for the endpoints I was trying to use is an open issue
#
epoch
btw, o/ vladimyr, been a while.
#
Loqi
[preview] [wiktor-k] #10400 Enable CORS for statuses and inboxes (ActivityPub API)
eitilt, [jacky], [tw2113_Slack_], KMF, btrem and sebbu joined the channel
#
vladimyr
epoch: \o
#
vladimyr
Yeah, haven't been /e-live/ for quite some time but it is always nice to come back and see familiar faces ;)
#
bkil
SPA << Use-case: PeerTube - a video sharing portal where you seed back content that you consume to make it scale without the operator being Big Tech. If it reloaded the page after every search, play or comment, it would need to rebuild all of its peer connections and flush all of its caches from RAM. Various web applications could be implemented similarly that mandate hosting either huge items or a vast amount of items: wiki, photo sharing, social networking
#
bkil
(SSB, RetroShare, etc).
#
Loqi
ok, I added "Use-case: PeerTube - a video sharing portal where you seed back content that you consume to make it scale without the operator being Big Tech. If it reloaded the page after every search, play or comment, it would need to rebuild all of its peer connections and flush all of its caches from RAM. Various web applications could be implemented similarly that mandate hosting either huge items or a vast amount of items: wiki, photo sharing, social networking" to the "See Also" section of /single-page_application https://indieweb.org/wiki/index.php?diff=88156&oldid=88140
#
bkil
aaronpk: Perhaps consider this for choosing slugs, perhaps reducing the weight of basic dictionary words: https://en.wikipedia.org/wiki/Tf%E2%80%93idf
#
[KevinMarks]
@bkil the webtorrent library does that well. https://webtorrent.io/
#
bkil
[KevinMarks]: It can't do that **efficiently** when you force a full page reload.
#
[KevinMarks]
I'd have to double check but I think it works with service workers too, so you can maintain the thread across refreshes
#
vladimyr
FWIW, all nostr web clients are also required to be SPAs to keep those websockets open
#
vladimyr
Service worker might be an interesting escape hatch but marshalling large chunks of data in and out of worker can be really tricky unless some sort of shared memory is supported
holiday_medley, gxt__ and geoffo joined the channel
#
Soni
meanwhile we just wish browsers had link sharing technology
#
Soni
like so
cambridgeport90 joined the channel
#
bkil
Soni: Maybe I'm missing the point, but wasn't this the main reason why bookmarklets were invented in 1995? I.e., when you visit an interesting news article, you click on the bookmarklet on your bookmark bar that says "share on fedi", and it opens up the sharing dialog on your native instance. Better Fediverse servers already provide you with such a bookmarklet
#
vladimyr
^ same
#
bkil
vladimyr [KevinMarks] I think you were thinking background Web Workers? But also, trying side step having to implement an SPA with a PWA + background workers sounds like a lot of work for what benefit exactly? (Note that I haven't researched whether your recommended alternative would work at all) At the same time, could you please share an example of when an SPA needs to transfer more data than MPA? I've only seen counterexamples up to now (orders of magnitudes
#
bkil
of savings in most cases).
cambridgeport90 joined the channel
#
Soni
bkil: the old javascript injection bookmarklets aren't compatible with the modern so-called "feed" or "timeline", nor are they server-side
#
Soni
they're often broken/unsupported in modern browsers and websites anyway
#
Soni
so a way to sidestep that would be nice
#
Soni
but maybe the sharing web is long gone and we're in the age of the siloing web
bret joined the channel
#
vladimyr
Wdym incompatible with feed and timeline? You cannot share feed, share target is particular item located on it instead?
#
vladimyr
Also bookmarklets being broken or unsupported in modern browsers sounds even more confusing. I've never seen /modern/ browser that lacks bookmarklet support
#
[KevinMarks]
I use bookmarklets on chrome android still - I give them a short name and they autocomplete into the url bar.
#
vladimyr
One could argue they are clumsy to use inside mobile browsers but on mobile OSes share functionality is part of the OS itself
#
vladimyr
Or you use trick that [KevinMarks] just described
#
[schmarty]
is there a way to use bookmarklets with mobile safari (iOS/iPad)? i have one or two Shortcuts that i use for that purpose but I find them harder to work with.
#
aaronpk
i've never tried in safari but my chrome bookmarklets work in iOS chrome
#
[schmarty]
interesting
#
Soni
we'd rather see a more secure alternative
#
Soni
vladimyr: yeah can't easily share item
#
Soni
mobile sharing on desktop would be nice
#
Soni
websites as apps for sharing to would be nice
#
Soni
and bookmarks could use more love
#
c​apjamesg
Really? Interesting!
#
c​apjamesg
I don’t think you can use bookmarklets with iOS Safari.
cambridgeport90, ShoesNSocks, jeremycherfas, lockywolf and rrix joined the channel
#
epoch
Soni: have you seen https://www.w3.org/TR/web-share/ and might it help with that you're wanting?
#
Soni
epoch: that seems to be built around letting the website control sharing
#
Soni
why are we building APIs to let websites control users
#
Soni
that seems mildly abusive
#
Soni
and besides, using referer would expose shit sites that leak your privacy, which makes it much better than any alternative you could possibly propose
#
epoch
what did you mean about bookmarklets not being server-side?
#
epoch
I figure the webshare api would be to put "share" buttons along each post so the browser has some handle on where individual posts can be seen without having to load the permalink into a new tab or something
#
epoch
I'd have probably gone with a rel attribute or something..
#
epoch
would have been interesting if frames had been used in feed-like sites, each post in a feed being its own iframe
#
epoch
rel="bookmark" would be a nifty thing to get a "share" bookmarklet (or, probably a userscript) to look for and maybe hijack
#
epoch
what would be a good emoji to use for "share"?
#
[tantek]
None really. It's kind of an anathema of ambiguous UI across platforms
#
[tantek]
Better to have specific buttons/links for specific actions
#
[tantek]
What is share?
#
Loqi
share is a watered down verb that's used on the "social web" (and other platforms like Google's Android) to mean pretty much any action https://indieweb.org/share
#
[tantek]
^ lots more in there
#
epoch
inb4 <a href="share:[permalink-uri]">share</a>
#
[tantek]
Like if you mean "repost" then use a button for that.
#
epoch
(can I self inb4?)
#
epoch
they have a nice table that shows a lot of symbols
#
[tantek]
Yeah it's a pretty horrible UI. You really want to put that on your posts?
#
rubenwardy
<a href="url" share> would make more sense and would match download
#
rubenwardy
Feels like a browser thing really. Mobile browsers come with share actions, doesn't make as much sense on desktop browsers
#
epoch
links insisting on being downloaded is really annoying sometimes.
bret joined the channel
#
[KevinMarks]
I use click and hold on a link to copy and share, but on mobile I'm spoilt by my keyboard having 10 copy buffers so I can copy links and text separately
#
rubenwardy
lol, font awesome supports a load of options https://rwdy.uk/xyD9bHcu.png
#
epoch
would a speech baloon make sense to use as a "share" icon?
#
rubenwardy
I'd see that as comment
#
epoch
hrmm... yeah
#
epoch
heh. bread?
#
epoch
if I can't think of something that actually makes sense, I might just use some random emoji that makes the least amount of sense
[aciccarello] joined the channel
#
[aciccarello]
Text also works
#
epoch
the bread thing is like "breaking bread"
#
epoch
boo text, who wants text? :P
#
epoch
sitting on IRC.. full of text
#
epoch
I'd be using text too.
gRegor joined the channel
#
capjamesg
The word "bread" has me curious.
#
capjamesg
loves text.
#
capjamesg
is also using IRC!
#
epoch
I was thinking, since sharing stuff spreads it, if it'd make sense to use something like a virus emoji
#
epoch
probably bad taste...
#
epoch
do people still use "viral" when referring to internet memes spreading quickly?
#
gRegor
loves bread
#
[tantek]
Yeah viral has negative connotations
#
[tantek]
And yes it's still used as a metaphor unironically
#
epoch
then I won't bother go in that direction for a metaphor
#
[tantek]
I thought bread emoji like 🍞 was used on some social network as a kudos type reaction
#
epoch
I don't know.
#
capjamesg
What is happening with bread?
#
Loqi
It looks like we don't have a page for "happening with bread" yet. Would you like to create it? (Or just say "happening with bread is ____", a sentence describing the term)
#
epoch
I was thinking bread might be an alright icon for "sharing"
#
epoch
based on the idea of breaking bread with someone
#
capjamesg
[tantek] Erase isn't good.
#
capjamesg
It implies full removal, which is almost impossible on the web.
#
[tantek]
Lol out of context
#
[tantek]
Let's see if we can set some better context
#
[tantek]
We need a table of the features/verbs across various acronyms for storage protocols like CRUD, CRURU, BREAD, etc and which features each has and lacks
geoffo joined the channel
#
capjamesg
Is CROISSANT in "etc"?
#
[tantek]
No because it doesn't have a single mapping for verb to letter (it used many letters to mean the same verb with synonyms which is inefficient and potentially confusing)
#
capjamesg
I see CRURU presenting a pronunciation issue.
#
capjamesg
(Although I am not well versed in the technicalities of what constitutes hard-to-pronounce syllables; would love to learn more!)
[campegg], geoffo and sebbu2 joined the channel
#
vladimyr
I said I'm gonna try to exercise the benefit of the doubt so I did and went reading WebKit team's latest blog post about new WebKit features including dockable webapps
#
vladimyr
So far so good
#
vladimyr
It happens to be that your /favorite/ irc ranter is in fact native speaker of non-existent Serbo-Croatian language
#
vladimyr
Non existent in a sense that it was primarily political construction made by both royal and later communist Yugoslavia and due to the fact that neither one of former entities that once were part of it recognize it as official language
#
vladimyr
In fact if you ever find yourself wandering through Balkans here is a friendly advice, never ever mention lexical or any other cultural amalgamations unless you really want to piss off folks around you
#
vladimyr
But using weird example of essentially dead and made up language isn't even the best part of it
#
vladimyr
They could simply remove Croatian part, call it Serbian and continue showcasing css counter featuring (Serbian) Cyrillic script
#
vladimyr
And now for the best part
#
shreyanjain[m]
<vladimyr> "I said I'm gonna try to exercise..." <- I'm impressed with how they handled dockable webapps though
#
vladimyr
They failed to list letters in correct order!
#
vladimyr
This is NOT Cyrillic alphabet
#
vladimyr
Like they took shotgun and gleefully decided they'll shoot themselves in the foot but then paused and decided it is not enough and jumped on the landmine just in case - that's how stupid that example reads and looks like...
#
vladimyr
And yes, webapps section is indeed nice and descriptive and basically nullified my stupid predictions about them trying to ignore or go against app manifests or service workers
Zegnat joined the channel
#
vladimyr
Turns out I was wrong. Thing is Serbian Cyrillic can be transliterated to Latin script in one to one manner which works in both directions
#
vladimyr
But I forgot that Serbian alphabet has different order of letters
#
[KevinMarks]
it was up an hour ago
#
c​apjamesg
Will review in a few hours and bring back up.