#dev 2021-05-03

2021-05-03 UTC
#
aaronpk
agreed
[tw2113_Slack_] joined the channel
#
[KevinMarks]
I am a fan of the kinds of js hacking that involve wasm and a c library like https://feross.org/bitmidi/
#
vilhalmer
cpython for wasm when
#
Loqi
[wapm-packages] python: Python ported to Wasm + WASI
nsh and sparseMatrix joined the channel
#
sparseMatrix
that is some dive esoterica right there, I tell ya whut...
#
sparseMatrix
*devine
#
sparseMatrix
cancels the typing and spelling lessons
#
sknebel
I feel like I've seen a sqlite thing like that based on webtorrent(?) in the past, which is also a fun variation
dckc joined the channel
#
jacky
oh that's clever
#
jacky
ha I almost want to use that for my own site
KartikPrabhu and [tantek] joined the channel
#
lahacker
https://github.com/bittorrent/sqltorrent .. linked from above, similarly uses a VFS but crucially, uses libtorrent, signed off by arvid himself .. https://feross.org/libtorrent-webtorrent/ "libtorrent adds support for the WebTorrent protocol" .. mind blown from last three links .. didn't know i needed midi queen in this late hour
[KevinMarks], minoru_shiraeesh, [fluffy], nertzy_, nsh and tomlarkworthy joined the channel
#
tomlarkworthy
just got it working in a notebook https://observablehq.com/@tomlarkworthy/phiresky-sqlite-query
#
tomlarkworthy
pretty damn cool
shoesNsocks, nertzy__, [grantcodes], shoesNsocks1 and [pfefferle] joined the channel
#
@indigitalcolor
↩️ Some of the technologies I used on my personal site include: Gatsby, GraphQL, MDX and Webmention. https://aboutmonica.com
(twitter.com/_/status/1389220703971446793)
sparseMatrix joined the channel
#
sparseMatrix
anybody around
#
sparseMatrix
I need to do some public thinking
#
sparseMatrix
here's' the deal, for good or ill....my whole approach has been to leverage the hell out of markdown
#
sparseMatrix
there's a couple reasons
#
sparseMatrix
- semantic web
#
sparseMatrix
simplicity in authoring workflow
#
sparseMatrix
and similar simplicity searching/indexing
#
sparseMatrix
I present it as web content 'just in time' when a browser requests a post.
#
sparseMatrix
I do this by converting the markdown to html using markdown2, and sandwiching the result between an html 'prologue' and an html 'epilogue'
#
sparseMatrix
those are more or less generic, and ripe with possibilites involving headers, footers, etc.
#
sparseMatrix
it's where I set CSS, for instance
#
sparseMatrix
the thing is, the those are not stored in the document.
#
sparseMatrix
so making an h-entry of the markdown (for practical purposes) doesn't really seem like it will work
#
sparseMatrix
first, I solicit critique. I suspect that the way I am doing this may run afoul of what is considered to be good sense in this context
#
sparseMatrix
second, I solicit suggestions
#
sparseMatrix
Ah well, I at least got all that off my chest :)
#
sparseMatrix
an idea is taking shape heh
#
sparseMatrix
it's going something like this:
#
sparseMatrix
there is no reason I have to use the pre/post html hardcoded in the software, and no reason I can't write them into files. I just can't write them into the markdown.
[manton] joined the channel
#
[manton]
sparseMatrix: I’m curious what problems specifically you’re running into with the h-entry? Is it that you don’t have enough metadata (like post title and date) when you’re generating the HTML, or something else?
#
sparseMatrix
so use the hardcoded in the event no file exists. if the file exists, use it and potentially update it. The key is to name it with the post name as a component of the name
#
[manton]
I run into similar issues sometimes in Micro.blog where my MF2 is not as “complete” as I would like, but all the basics are still there.
#
sparseMatrix
then the html pre/post could contain per-post hentry information
#
sparseMatrix
[manton] the problem is largely with updating a post
#
sparseMatrix
I don't want to have the h-entry/h-card metadata in the editor with the post author's content
#
sparseMatrix
it's kind of like the separation of content concern
#
sparseMatrix
even though python's markdown2 doesn't mind it being there
#
sparseMatrix
Basically, I want the tool to be used for *writing*, without a lot of fussing about with the presentation
#
sparseMatrix
even if I did include the h-entry metadata, it would be awkward to figure out if it were already present when the file is (re)written
#
sparseMatrix
but I think I just designed my way around the problem :)
#
[manton]
Sometimes just talking through a problem leads to the solution. Good luck. 🙂
[tw2113_Slack_] joined the channel
#
jacky
[manton]: have you considered having some sort of a 'headless' sign up for micro.blog? I could see this being put behind a paid service to combat spam / malignant use but I'm thinking about ways to make it easy to 'start' from a social reader and was considering doing that _from_ the reader
#
jacky
granted, a legit solution would do something like "Sign in with Micro.blog" or another provider and that could doubly serve as a way to sign up for that service
#
jacky
has a bunch of musings from the weekend
#
sparseMatrix
Thanks [manton] you can bet when I cross the finish line with it you'll hear me crowin' :D
#
sparseMatrix
jacky: I made a thing once that created a crypto key by signing the browser signature with a type1 uuid, which I then set in a cookie on that browser
#
sparseMatrix
from that point forward, the user could use my file service, who's files were stored in a folder named after his key, to access his files
#
sparseMatrix
0 credentials, in a sense
#
sparseMatrix
the granularity of the type I url made it stupid impractical to try to guess a user's hash
#
sparseMatrix
err, type I UUID
#
sparseMatrix
it could only be used *from that browser* though, and god forbid you should clear your cookies :p
[fluffy] joined the channel
#
[manton]
[jacky] I haven’t thought much about it, but I think it’s a really interesting idea. Definitely would like to explore it.
#
jacky
I'm thinking on it more mainly from a social reader standpoint - sign in is solid but signing up (or really, either getting your site compatible with the social reader _or_ getting a site from a service) is an implementation detail that needs research
[kimberlyhirsh] and [chrisaldrich] joined the channel
#
[manton]
[jacky] Can you expand on that a little? Are you thinking of the use-case of e.g. launching Monocle and pointing it at Microsub on Micro.blog without needing to go out and create an account separately?
#
jacky
precisely
#
[manton]
Gotcha. That could be a really nice way to get started.
#
jacky
I think it'd require a bit of knowledge of some internals for each platform but I _think_ we could maybe lean into some sort of standard for provisioning people here
#
jacky
people/accounts/etc
#
jacky
another win here is that someone on a phone or a native app could potentially never leave the app (outside of some external verification)
#
jacky
I could also be looking at this from the wrong angle (do we want more people or more high-quality tools?)
[arush] joined the channel
#
[manton]
Both! 🙂
#
jacky
then yeah I think that could help some clients
[snarfed] joined the channel
#
[snarfed]
we did this for Bridgy too, lots of discussion when it happened, feel free to see if any is useful: https://github.com/snarfed/bridgy/issues/240
#
Loqi
[snarfed] #240 signup API for @idno
#
jacky
oh this is good prior art
#
Loqi
[kylewm] deployed! logs look good so far. the only thing I haven't been able to figure out is on the redirect from facebook I always get a fragment `#_=_`, even though I explicitly try to avoid this by using super.redirect here https://github.com/snarfed/brid...
#
[manton]
One way I think we could solve this in Micro.blog is to expand on our domain name usernames. For example, when Micro.blog receives a Webmention from yourblog.com, currently it creates a special “user” for that domain name, but there’s no way to sign in as that user. If there was a way to associate an email address or something, you could sign in with your domain name and skip most of the other parts of registration.
#
[manton]
Some kind of verification is nice to cut down on spammers. Although we still get people registering with obviously computer-generated email addresses.
#
[manton]
In related news, I noticed today that we didn’t have our “Discover” channel available via Microsub, so fixed that.
#
jacky
oh nice re: Discover feed
#
jacky
I'm guessing one could subscribe to that without being in Micro.blog?
#
[manton]
Yes, there’s at least a JSON Feed for it: https://micro.blog/posts/discover
#
[manton]
Maybe it’s time to pencil in some dates for that Microsub pop-up session.
#
jacky
and yeah, I think that one way to handle that is maybe looking for an e-mail in the h-card of the sender of that Webmention (but that's hoping for both authorship and e-mail info)
#
jacky
yeah indeed
[schmarty], [tantek], sp1ff, [manton]1, __minoru__shirae and Ruxton joined the channel
#
@bnijenhuis
I wrote a note about adding clientside webmentions to your website: https://bnijenhuis.nl/notes/2021-05-03-implementing-clientside-webmentions/ Thanks to @mxbck and @swyx for paving the way :)
(twitter.com/_/status/1389309649363644427)
Seirdy, [fluffy] and [KevinMarks] joined the channel
#
jacky
is there a format in which one can expect transcriptions for audio files to be in?
#
jacky
hopes it's a format that's text so it can be simple to implement a parser on the client-side for it
#
aaronpk
there's the subtitle formats with timing info, webvtt and srt
#
jacky
ah yes, srt
#
jacky
need to look into this webvtt
#
jacky
oh webvtt looks like the _way_
#
jacky
oh yeah this is it
#
jacky
thanks
#
jacky
b/c then I can even parse it (someone must have done this) to render it inline
#
aaronpk
the <video> tag supports it directly too IIRC
#
jacky
yeah that'll be doubly handy for people
#
jacky
I figure that something like that would be ideal for linking - if you can link to the statement said at a timestamp then it'd be enough to reference it
#
jacky
something I've wanted and am drafting out for a potential idea
[schmarty] joined the channel
#
[schmarty]
I've done some experiments with this!
#
jacky
oh nice
#
jacky
I was just going to come back because my actual goal/itch/spark was being able to like a statement in a video or audio that I post on my site
#
jacky
thinks he might put the notes he has on the Wiki
#
[schmarty]
Basically: use <video> with an <source> that's actually an audio file so you can use <track> for the captions
#
[schmarty]
Chrome spectacularly effed this up for a while by putting the default player chrome right over the subtitle display but I thiiiink it's fixed?
#
jacky
oh one thing, this link to the audiogram thing is broken: https://bbcnewslabs.co.uk/projects/audiogram/
#
jacky
found that canonical link tho
#
[schmarty]
oh thanks! I feel like a lot of projects like that have gone stale
#
jacky
I can imagine
#
jacky
dang this doesn't seem to work on Firefox 89 :(
#
jacky
waves in anger
#
[schmarty]
Oh hmmmm
shoesNsocks1 joined the channel