#dev 2021-11-30

2021-11-30 UTC
nertzy, jeremycherfas, KartikPrabhu1 and KartikPrabhu joined the channel
Darius_Dunlap[d], nertzy_ and Seirdy joined the channel
#
aaronpk
I seem to have for some reason stopped sending webmentions to myself
#
Ruxton
[tantek]1: continuing.. there's other interoperable implementations of bitcoin out there too, so why is that being seen differently?
#
[tantek]1
that's not my understanding, every implementation that interoperates with bitcoin depends on the same library / code / (actual) crypto.
#
Ruxton
the same methodologies but not the same libraries
#
[tantek]1
governance of that code (that manipulates the bitcoin blockchain) is itself a chokepoint
#
Ruxton
yeah ok, i see that
#
Ruxton
that's kinda what killed it
#
Ruxton
the people governing the code holding deals with the nodes with the ebalance of pwoer
#
Ruxton
cheers for the explain :)
#
[tantek]1
yeah it's several levels deep, which means it takes time to dismantle in contrast to the marketing and advocacy 😕
#
Ruxton
on paper it made sense.. in reality, people happened.
[KevinMarks] and kogepan joined the channel
#
[KevinMarks]
The 2013 accidental fork is the key demonstration of that
#
[KevinMarks]
It intrinsically needs a single code base.
#
[KevinMarks]
Tim Bray's series of blog posts on search are good
tetov-irc and gRegor joined the channel
#
petermolnar
capjamesg[d]: nice work on the static generator; one tipp regarding python and strings: https://docs.python.org/3/reference/lexical_analysis.html#f-strings are useful for readability.
kogepan joined the channel
#
capjamesg[d]
Thanks petermolnar!
#
capjamesg[d]
[KevinMarks] Yeah, they are great! The issue I'm having is figuring out how to weigh a "title" more than the TF-IDF count for a word.
#
aaronpk
That bitcoin article is fascinating
#
aaronpk
"Many Bitcoin users are not aware of the centralized ability in Bitcoin for a few developers to send out alert messages."
#
@lcptuk
Webmention W3C protocol for notifying a URL when a website links to it https://en.wikipedia.org/wiki/Webmention
(twitter.com/_/status/1465685297451184142)
akevinhuang, IWSlackGateway1, sp1ff`, IWSlackGateway2, joshproehl, GWG, [manton], aaronpk and sp1ff`` joined the channel
#
GWG
[manton]: Do you have any updated thoughts on Micropub extension issue 13?
#
[manton]
@GWG I haven’t looked at that recently… Currently Micro.blog returns JSON with “url” (and “poster” if it’s a video).
#
[manton]
I could pretty easily add width/height for images if there’s consensus about what that should look like.
#
[manton]
I don’t know how much I’d want to add beyond that… I feel like too much EXIF stuff included doesn’t add much value since it’s not likely to be widely implemeneted.
#
GWG
I want to figure out thumbnail sizes specifically
#
GWG
I was thinking a thumbnail property and if people want other sizes, a separate optional array
#
GWG
I really want an image picker
Wittgenstein[d] joined the channel
#
[manton]
Interesting. Micro.blog creates and caches its thumbnails when they’re requested, so it doesn’t really have a preset list of sizes currently. I can see how that might be useful for clients.
KartikPrabhu joined the channel
#
capjamesg[d]
Amazon in the 5g business?
#
[schmarty]
GWG: can you share a link to the micropub spec issue you're referring to?
#
sknebel
makes some sense
#
aaronpk
links++
#
Loqi
links has 1 karma in this channel over the last year (2 in all channels)
#
[schmarty]
i find it hard to keep track of where everything lives, so an oblique reference like "issue #13" is toooo hard 😂
#
sknebel
I suspect they work on that for their warehouses and turn it into a product at the same time
#
GWG
I cited it yesterday, sorry
#
[schmarty]
my scrollback finger is weak today i guess
#
[schmarty]
GWG++ thanks for the link++
#
Loqi
link has 1 karma over the last year
#
Loqi
GWG has 14 karma in this channel over the last year (76 in all channels)
#
[schmarty]
looks like this discussion is about an _extension_ to Micropub rather than something that would be in the core spec. i appreciate that because i have _other ideas_.
#
sknebel
thus "micropub extension issue 13" :D
#
GWG
My use case is wanting the ability to select from the last few items uploaded to the endpoint
#
GWG
So I want the endpoint to offer thumbnails if generated
#
[schmarty]
manton mentioned on-demand thumbnails, which sounds similar to how i use a CDN with image manipulation options to generate and cache thumbnails on request.
#
GWG
There's a similar use case in Microsub, https://github.com/indieweb/microsub/issues/36
#
Loqi
[grantcodes] #36 Photo and Video sizes
#
capjamesg[d]
Height / width would be useful. I like the idea of being able to retrieve thumbnails if available for building a front end source set.
#
GWG
capjamesg[d]: My thought was a thumbnail property and an optional alternate array for any other sizes
#
capjamesg[d]
jf2 used by Microsub does specify content type for video / audio so there is precedent for richer multimedia objects.
#
[schmarty]
i think i agree that making height/width metadata available for images and video is useful. i am much less sure about thumbnail properties with an optional alternate array for other sizes.
#
GWG
[schmarty]: What would you suggest for my desired use case?
#
[schmarty]
your use case is a micropub client seeking to display recent image(s) uploaded to a micropub endpoint?
#
[schmarty]
i think the client should maintain it's own caching thumbnail service, honestly.
#
GWG
To allow them to be selected for a post
#
[schmarty]
i think it'll be really hard to come to an agreement on what a "thumbails" property should look like in a response, since you're asking every micropub media endpoint implementation to agree.
#
[schmarty]
for example, check out the list of named image types in a GIPHY API response: https://developers.giphy.com/docs/api/schema/#image-object
#
aaronpk
in order to even consider that as an option, i would want to see a very thorough list documenting existing APIs that do this along with client software that consumes the data
#
aaronpk
outside of micropub obviously
#
GWG
The alternative is just the array of alternative sizes and the client can decide which to use.. effectively srcset, but will work on the analysis..any APIs that might be worth looking at?
#
aaronpk
i don't know, that's part of the research stage :)
#
[schmarty]
so the GIPHY API responds with a bunch of different options for very different use cases, and GIPHY has to support all of them. and your client needs to understand how to consume them.
#
GWG
WordPress generates 4 different sizes for all images on upload
#
[schmarty]
a similar collection of "whatever they think is useful for their consumers and they're willing to support" but with even less helpful stuff
#
[schmarty]
WordPress generates different sizes depending on what plugins and themes you have installed
#
[schmarty]
and importantly thumbnails are going to be different in different contexts. if i last uploaded a super-wide panoramic image, what thumbnails should my media endpoint support and how can a client be sure it can use them correctly?
#
GWG
Point taken, but that's why I wanted to restart the discussion
#
[schmarty]
as aaronpk mentioned, this sounds like a research project. you could start with: your own specific barriers in developing your client because of missing width/height metadata or thumbnail sizes, for example.
#
[schmarty]
what thumbnails do you _wish_ were available for your specific real world use case?
#
GWG
[schmarty]: I am also trying to work with marksuth so this could go in Indigenous.
#
[schmarty]
great! i suggest working with marksuth to figure out exactly what would be the dream metadata and thumbnail option(s).
#
[schmarty]
however this shakes out from the perspective of a micropub media endpoint extension to be handled on those servers - those clients will still need to handle cases where this information is not available!
#
GWG
[schmarty]: Agreed, this is meant to help, but not required support
#
[schmarty]
sounds suuuuuuper speculative for now 😂
#
GWG
Everything is speculative until someone tries to build it
#
[manton]
Loosely related, some of Micro.blog’s JSON Feeds include a single thumbnail URL (currently 400x400). You can see it here in the `_microblog` extension under each item: https://micro.blog/feeds/photos.json
#
[manton]
I generally think one thumbnail is enough. You’re never going to know exactly what sizes a client is going to need. 4 sizes is not necessarily any better than 1 if they’re all the wrong size.
#
[schmarty]
so true! i hold a strong belief that spec-talk is dangerous or wasted until someone tries to build it. 😅
#
[schmarty]
manton++ great example and feedback
#
Loqi
manton has 14 karma in this channel over the last year (15 in all channels)
#
GWG
I know what I'll be doing later
alex11 joined the channel
#
GWG
A lot of what I want to do will also be custom to my endpoint
kogepan and akevinhuang joined the channel
#
[schmarty]
does someone in chat maintain h2vx.com ? it no longer seems to work on my homepage h-feed of h-events... http://h2vx.com/ics/https://martymcgui.re/
#
[schmarty]
"no tidy :("
#
[schmarty]
looks like the example address doesn't work either 😐
#
aaronpk
whoops dang
#
[schmarty]
ponders writing an ics template in hugo so there's no external service needed.
#
aaronpk
if you only have one or two types of events, it's not outrageous
#
aaronpk
but plz don't go implement all of ics in hugo 😂
#
[schmarty]
haha absolutely not
#
[schmarty]
i might try and self-host the site to see if i can figure out the issue https://github.com/microformats/h2vx.com
#
Loqi
[microformats] h2vx.com: H2VX microformats to vCard/iCalendar converter, test dev.h2vx.com for issues
#
[schmarty]
(mostly so i could see what it's supposed to look like to do an extremely simple hugo template)
#
aaronpk
omg i forgot that it's XSLT
#
aaronpk
that's like implementing ical in hugo but worse
#
[KevinMarks]
at least the hugo template language makes some kind of sense
#
[KevinMarks]
( have implemented RSS feeds in jinja2 , I have previous foolishness here)
#
[tantek]1
oh dear yeah I've been keeping h2vx running when I can
#
[tantek]1
I haven't checked it since after porting it to Dreamhost so who know what broke
#
[schmarty]
The error it gave "No tidy :(" turns out so far to be unsearchable for me 😅
#
aaronpk
i'm guessing it's missing the tidy extension
#
[tantek]1
it was literally working when I deployed it on Dreamhost at IWC Austin in 2018 I think
#
[tantek]1
and I hadn't touched the configuration since, so *something* got updated/"upgraded" in the setup "automatically" (not by me) and broke it 😞
#
[tantek]1
[schmarty] it's also still only supporting classic microformats, so wouldn't have done anything with your h-event anyway :?
#
[tantek]1
😕
#
aaronpk
i think dreamhost recently force-upgraded PHP, you should have been getting emails about it for a while
#
aaronpk
by recently i mean like a year ago maybe?
#
aaronpk
oh, like 6 months ago
#
aaronpk
"On May 25, 2021, we’ll be making an attempt to upgrade each site’s version of PHP to v7.4."
#
[tantek]1
great so they did that and perhaps failed to also update the tidy-php module that was there before
#
[tantek]1
hmm, doing some digging and maybe I can fix this from the console
#
[tantek]1
puts on hacker music
#
[tantek]1
yes when they upgraded the PHP they did not carry over any custom phprc
#
[tantek]1
step 1 problem diagnosed
#
[tantek]1
looks like it needs a line like:
#
[tantek]1
extension = tidy.so
#
[tantek]1
[schmarty] retry! I get a .ics file now from that URL you gave (though with https version) https://h2vx.com/ics/https://martymcgui.re/
#
[tantek]1
what is h2vs
#
Loqi
It looks like we don't have a page for "h2vs" yet. Would you like to create it? (Or just say "h2vs is ____", a sentence describing the term)
#
[tantek]1
argh
tetov-irc joined the channel
#
[tantek]1
h2vx << Troubleshooting: if you get an error like "no tidy :(" then it is likely that the PHP version has been automatically upgraded without re-enabling the php-tidy extension. The fix is to ping an admin and ask them to check the phprc file on the server (likely in ~/.php/7.4/phprc) and see if it has "extension = tidy.so" at the top. If not, edit the file and add it. That should fix it.
#
Loqi
ok, I added "Troubleshooting: if you get an error like "no tidy :(" then it is likely that the PHP version has been automatically upgraded without re-enabling the php-tidy extension. The fix is to ping an admin and ask them to check the phprc file on the server (likely in ~/.php/7.4/phprc) and see if it has "extension = tidy.so" at the top. If not, edit the file and add it. That should fix it." to the "See Also" section of /H2VX https://indieweb.org/wiki/index.php?diff=78063&oldid=64760
#
[tantek]1
what is no tidy
#
Loqi
It looks like we don't have a page for "no tidy" yet. Would you like to create it? (Or just say "no tidy is ____", a sentence describing the term)
#
[tantek]1
no tidy is an error that you may see at the start of a page from a server using [[PHP]] that depends on the php-tidy extension (like [[H2VX]]) yet does not have the extension installed or enabled; the solution is to install/enable it, e.g. on [[DreamHost]] add "extension = tidy.so" to the server’s phprc file.
#
[tantek]1
maybe that will make it more findable