#dev 2023-03-28

2023-03-28 UTC
#
benatkin
I had an idea for a decentralized code sandbox without storage where I could send friends a link to something I create encoded in the URL - I could create sandbox.benatkin.com and make it only show stuff that the client-side code which has the public key confirms to be signed with my private key
#
benatkin
and it could be embedded in an iframe - this exists but they can just show anything and I wouldn't want my website to host code from other people - especially if it didn't show a split view of the code
#
benatkin
with svelte and vue playgrounds anyone can have their code appear on those sites
#
benatkin
but to prevent people from pretending to be vue, it shows the code on one side and the output on the other side
#
benatkin
jsfiddle has direct links to the output but it shows a big warning
#
benatkin
I can't find it, maybe that's an old thing
#
benatkin
And this could be a variation on private content on your website - it wouldn't be on your website but passed around with any communication medium
#
benatkin
wouldn't be stored on it but would appear on it
#
benatkin
really this is already possible but maybe people will like having a private sandbox more than a public sandbox
geoffo joined the channel
#
benatkin
This is related to what I've been working on. This is public but doesn't support embedding code in links and I'm not sure I want to support embedding just any code in links - that is I don't want it to be a public sandbox that lets you have any code appear on my website - just code by someone who has access to the website.
#
benatkin
https://macchiato.codeberg.page/#/ it saves pages in localstorage as they're edited and shows in the hamburger menu - codeberg pages is like github pages if anyone wants to look at the source but for codeberg.org if anyone wants to look at the source - and it's for mobile and I find the simple textarea currently works better than other code editors like monaco and even codemirror at the moment :/
#
benatkin
can create other pages by going to different urls like https://macchiato.codeberg.page/#/20230327/notes
#
benatkin
<[KevinMarks]> "timezone << new tz problem..." <- has fewer time zones than Arizona :) but the same number of different ones
#
Loqi
Sorry, I couldn't find a page named "<[KevinMarks]> "timezone" or similar
lagash and angelo joined the channel
#
GWG
aaronpk: Any chance it gets taken more widestream?
#
prologic
Nice!
lagash and geoffo joined the channel
#
[tantek]
IndieAuth++ yay
#
Loqi
IndieAuth has 2 karma over the last year
lagash, IWSlackGateway and oodani joined the channel
#
IWDiscordRelay
<L​unarequest#0122> I wanted to write my own webmetions end point, but I don't understand beyond the first bit where the end point has a post form with `source` & `target`, what happens next?
pharalia joined the channel
#
aaronpk
you'll need to fetch the `source` page to verify that it has a link to `target` https://www.w3.org/TR/webmention/#webmention-verification
#
aaronpk
then you can parse the page for microformats to figure out if it's a reply, like, etc
#
aaronpk
you can use this tool to have it send you a webmention to test with https://webmention.rocks/receive/1
#
Loqi
[preview] [Webmention Rocks!] Receiver Test #1
#
IWDiscordRelay
<L​unarequest#0122> is there a good library for parsing microformats in rust? also by asynchronously do the docs mean we just have to reply with ACCEPTED and then figure out if it really is a valid webmentions?
#
aaronpk
yeah, generally people will put it onto some sort of job queue in order to respond to the http request right away. you can also put that off to later to just get things working at first
#
IWDiscordRelay
<L​unarequest#0122> is https://gitlab.com/maxburon/microformats-parser on crates?
#
aaronpk
i don't know what crates is
#
IWDiscordRelay
<L​unarequest#0122> crates.io its where libraries n stuff live
#
aaronpk
🤷‍♂️
#
IWDiscordRelay
<L​unarequest#0122> Ah I found it
#
IWDiscordRelay
<L​unarequest#0122> I have no idea how it works but its there
lagash, [jeremycherfas], Xe, mro, ^ilhalmer, pmlnr, omz13-, rubenwardy, alecjonathon, jeremycherfas, vladimyr, cellular, [0x3b0b], pmlnr1, aynish, micheledm[m], starrwulfe[m], Gorro_Rojo[m], benatkin, kandr3s, Seirdy_, JaeSheHer[m], mambang[m], Gorro_Rojo[theyi, JaeSheHerBeep[m] and IWSlackGateway joined the channel
#
IWDiscordRelay
<c​apjamesg#4492> aaronpk Crates is a package manager for Rust.
#
IWDiscordRelay
<L​unarequest#0122> crates isn't a package manager. its the repo. cargo is the package manager
#
IWDiscordRelay
<c​apjamesg#4492> 🤦
#
IWDiscordRelay
<c​apjamesg#4492> Perhaps you can tell I'm not a Rust developer.
#
IWDiscordRelay
<c​apjamesg#4492> Lunarequest[d] ++
#
IWDiscordRelay
<c​apjamesg#4492> Lunarequest[d]++
#
Loqi
Lunarequest[d] has 1 karma over the last year
geoffo joined the channel
#
IWDiscordRelay
<L​unarequest#0122> capjamesg[d]: is cool
#
IWDiscordRelay
<L​unarequest#0122> [edit] capjamesg[d]: is cool, cargo isn't everyone's cup of tea
#
IWDiscordRelay
<L​unarequest#0122> btw the examples use microformats v0.2.0 but the latest version is v0.3.0 it might be a good idea to upgrade to it
lagash and IWSlackGateway1 joined the channel
#
IWDiscordRelay
<L​unarequest#0122> would anyone know if theres a better example of using the microformats rust lib? the website just parses the html and spits it into serde which turns it into json. doesn't really tell you how to extract certain values eg the content or the author
[snarfed] joined the channel
#
IWDiscordRelay
<L​unarequest#0122> Thanks
mro and [tantek] joined the channel
#
[tantek]
what is authorship algorithm?
#
Loqi
It looks like we don't have a page for "authorship algorithm" yet. Would you like to create it? (Or just say "authorship algorithm is ____", a sentence describing the term)
#
[tantek]
what is authorship
#
Loqi
authorship is how to indicate who the author is for a post, and an algorithm that determines the author of a post https://indieweb.org/authorship
#
[tantek]
authorship algorithm is /authorship-spec
[KevinMarks], lagash, mro, [schmarty] and gRegor joined the channel
lagash and mro joined the channel
#
[tantek]
capjamesg capturing of The Guardian and BBC embed consent practices have made me rethink how I should do YouTube and other site specific embeds in my auto-linker
#
[tantek]
Is anyone else embedding external site media iframes in this way? I’m also wondering if there's a way to do it without JS
#
[tantek]
Wondering if a click on a fragment link could perhaps with :visited be used to display a subsequent iframe?
#
[tantek]
Need to test whether a display:none iframe loads pre-emptively or only when turned into display:inline (or block)
#
[tantek]
Curious if anyone has experimented with this
#
[schmarty]
i've used the `<iframe srcdoc>` for this.
#
[tantek]
ok I probably need to RTFMDN
#
[schmarty]
the srcdoc contains a preview of the embed (e.g. youtube thumbnail and play button along with video title). all of it links to the actual embed `src` URL for the iframe, which will load within the iframe when clicked.
#
[tantek]
So the SRCDOC could be the consent warning in HTML? Like with a data: URL?
#
[schmarty]
pretty much! it's kind of gross to work with but got the job done for the usecase i had.
mro and lagash joined the channel
#
[KevinMarks]
Srcdoc is html, no data url needed
lagash, [dave] and superkuh joined the channel
#
[tantek]
hence the DOC, got it.
[chrisbergr] and lagash joined the channel