#dev 2022-11-02

2022-11-02 UTC
pharalia, sp1ff`` and geoffo joined the channel
#
Loqi
xeiaso has 1 karma over the last year
pharalia, AramZS_, geoffo, Gabe and sciamp[m] joined the channel
#
@nezirzahirovic
A Ruby gem for sending Webmention notifications. (from 28/05/2020) #ruby #rubyonrails #programming #gem #webmention https://www.rubyonrails.ba/single/a-ruby-gem-for-sending-webmention-notifications
(twitter.com/_/status/1587686054030721025)
AramZS, gerben, petermolnar, mro, lanodan, [marksuth], [marksuth]1, IWDiscordGateway, barnaby and pharalia joined the channel
#
Saphire
Xe/Cadey is nice, yeah
mro and [KevinMarks] joined the channel
#
@VicVijayakumar
1995: PHP is dead, learn ColdFusion 2002: PHP is dead, learn ASP​.net 2003: PHP is dead, learn Django 2004: PHP is dead, learn Ruby on Rails 2010: PHP is dead, learn Flask 2011: PHP is dead, learn AngularJS 2016: PHP is dead, learn Next.js 2022: okay this is awkward
(twitter.com/_/status/1587462991955591168)
#
@megarush1024
I love it when I go to like or reply to something on the plain old semantic web from my own website and I see the little badge letting me know the site supports webmentions. Brick by brick. #indieweb (https://arush.io/?p=237690)
(twitter.com/_/status/1587763622889005056)
[KevinMarks]1, mro_ and pharalia joined the channel
#
Xe
[schmarty]: I understand that it was a stressful time but like holy crap as a user that did not go well in my eyes
mro, saptaks, omz13, gxt, chenghiz_ and [campegg] joined the channel
#
[schmarty]
Xe: i very much agree and very much appreciate you putting it into words. not to mention your extremely good post with concrete steps for getting prepped for the release! thank you for both!!
#
Xe
[schmarty]: no problem! I've been thinking about doing a "SRE 101" online class and most of it would have things like that
geoffo joined the channel
#
Xe
how to prepare for these kinds of vulnerabilities, writing down instructions on how to deploy custom software, etc
#
Xe
keeping a work log and a weekly/monthly summary of what you got done so you can use that when review time comes around
#
Xe
oh and a surprising amount of philosophy
#
Xe
like the pager that cried wolf
#
[schmarty]
love some ops fables! 😀
#
Xe
[schmarty]: damnit you inspired me: https://pony.social/@cadey/109274801835937645
#
Loqi
[Xe] I want to make 2023 be the year that I work on and publish that online course about #sre/#devops essentials. Going to have a lot of philosophy, useful advice for navigating corporate structures, how to avoid "I told you so"s, handle catastrophic vuln...
#
barnaby
sounds like an interesting course, I’d definitely be interested in reading it. Never published anthing similar myself but video+blog posts on your site after some period of being only available to patrons sounds like a good model to me
mro and pharalia joined the channel
#
[schmarty]
Xe: haha, o no. exciting, though! i have recently enjoyed Chris Ferdinandi's courses at gomakethings.com. He rolled his own platform that is a blend of video (private vimeo in his case) and sort-of-like-transcripts versions in HTML, ebook formats, etc.
#
[schmarty]
i forget where i read this but if i recall correctly the site structured so all the public stuff is static HTML and all the requires-payment stuff is fetched through an auth wall and cached via serviceworker.
#
[Murray]
Heh, weird community crossovers 😄 Chris was talking about that earlier today on the Frontend Horse Discord, as to whether it might be better using fully static (SSG) HTML and redirects, but yeah that's how I understood it to work currently 🙂
#
barnaby
https://fasterthanli.me has a patreon login which presumably makes extra content available to pateons
#
Loqi
ok, I added "https://twitter.com/VicVijayakumar/status/1587462991955591168" to the "See Also" section of /PHP https://indieweb.org/wiki/index.php?diff=84133&oldid=72894
[manton] joined the channel
#
[manton]
[tantek] Delayed reply… Thanks for that 404 heads-up, I looked into it and Hover reorganized their help pages… I found one that seems pretty much the same and updated the link to it.
[manton]1, Zagura[m] and jacky joined the channel
#
barnaby
Zagura[m]: regarding webmentions vs activitypub posts, they’re technically quite different even if they can be used to create similar UX and interactions (replying, liking etc)
#
barnaby
the main difference is that (afaik) activitypub posts contain a copy of the activity or “object” they’re about, whereas a webmention is just a ping which tells one page that another page has linked to it
#
jacky
a thin payload versus a thick one
#
barnaby
so with webmentions, it’s up to the receiver to fetch the sending page and do something with it — for example parse it, see if there’s a valid reply there, and if so, display it under the original post
#
barnaby
exactly jacky
#
jacky
b/c even things like signing messages, embedding verbiage are all done out of band of the actual sending of the webmention (whereas you gotta do that on each message sent)
#
barnaby
the main trade-off is that webmentions are easier to send but a little more complicated to parse, whereas provided you can verify an activitypub message’s signature then you can trust that its data is valid
#
barnaby
hope that’s useful, feel free to ask if you have further questions!
#
Zagura[m]
idk how i found it, but how webmentions.io work then?
#
barnaby
what is webmention.io
#
Loqi
webmention.io is an open-source project and hosted service for receiving webmentions and pingbacks on behalf of your indieweb site https://indieweb.org/webmention.io
#
barnaby
^ that’s the tl;dr, it’s a hosted service which can do all the hard parts of receiving webmentions for you
#
Zagura[m]
hosting a dynamic website seems like a lot of work (& not free), so i was hoping it could work with a static site
#
barnaby
you direct potential webmention senders there instead of to an endpoint on your site, and it parses+verifies the sender, and gives you a simple JSON API you can fetch to show responses
#
barnaby
yep, webmention.io is a good method for handling responses on a static site
#
Zagura[m]
neat, thanks a lot
#
barnaby
Zagura[m]: in case you haven’t seen it already, lots of resources for making static indieweb sites here https://indieweb.org/static_site
#
[KevinMarks]1
There is also webmention.herokuapp.com that creates the webmention html inline for your static pages
rubenwardy joined the channel
#
rubenwardy
<a class="d-none p-author h-card" rel="author" href="http://rubenwardy.com">rubenwardy</a>
#
rubenwardy
Ok, so the docs led me to believe that I can add a h-card to my homepage and then reference that as rel=author from other pages. But the IndieWebify.me tool doesn't seem to be picking that up.
#
Loqi
Andrew Ward
#
Loqi
[rubenwardy] Developing ContentDB
#
@voxpelli
↩️ Even more important: Do not use the same code base. That was what killed StatusNet / Identica – the precursors to Mastodon which defined the OStatus protocol which Mastodon started out on. Compare itto eg Webmention which has heaps of implementations: https://indieweb.org/Webmention
(twitter.com/_/status/1587911238331248640)
#
barnaby
rubenwardy: which page are you trying to validate on indiewebify.me? it finds your homepage h-card fine, and seems to find some author information on that post https://indiewebify.me/validate-h-entry/?url=https%3A%2F%2Fblog.rubenwardy.com%2F2022%2F03%2F24%2Fcontentdb%2F
#
rubenwardy
the blog URL
#
rubenwardy
It says "Add a photo!" despite there being a photo on rubenwardy.com
#
rubenwardy
on a post page
#
Loqi
Andrew Ward
#
barnaby
afaik indiewebify.me doesn’t always follow and parse external pages, it works mostly with the microformats markup on one particular page
#
rubenwardy
Ok. Is it fine then, or should I duplicate the info? The getting started guide says:
#
rubenwardy
> Why? When you publish content, you can link back to your home page using rel-author and your authorship information can be retrieved from the h-card.
#
[KevinMarks]1
In general, mf2 parsers don't follow links to other pages (unless they're explicitly doing xfn style rel=me link graphs)
#
barnaby
your homepage h-card looks fine to me, whether you want to duplicate the info is up to you — it mostly depends on what authorship info you want to make visible on the blog subdomain
#
barnaby
a lot of people have a “full” profile h-card on their domain, and additionally have simple name+photo+url authorship h-cards on individual post or feed pages
#
aaronpk
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
#
aaronpk
more info there ^^
#
barnaby
because very often it makes sense to have that data human-readable anyway
#
barnaby
and that way, parsers which are looking at an individual post get basic author information for free, and can follow the link to parse a more detailed h-card if they want
#
rubenwardy
that makes sense, thanks
#
barnaby
so IMO the next logical step for you would be adding h-feed and h-entry markup to https://blog.rubenwardy.com/
#
barnaby
and if you don’t want to have a small author profile on indvidual post pages, then a rel=author will be sufficient for any implementations which follow the authorship algorithm
#
barnaby
just be aware that it might not show up on indiewebify.me
#
@voxpelli
↩️ And with eg https://fed.brid.gy/ one can even interact across ecosystems: https://tantek.com/2022/301/t1/twittermigration-bridgyfed-mastodon-indieweb Personally I don’t want to host some WordPress:esque service. I want it to be my generated static site so that I don’t have to worry about hosting that much.
(twitter.com/_/status/1587914427009228800)
#
rubenwardy
should h-feed also be on tag pages, such as https://blog.rubenwardy.com/tags/projects/ ? Should the u-url be the tag page or the blog homepage?
[snarfed] joined the channel
#
barnaby
h-feed is for whenever you have a collection of posts which belong together and could be subscribed to, so yep, tag pages are ideal for that
#
barnaby
and the u-url of an h-feed is the canonical URL for that feed specifically
#
barnaby
https://monocle.p3k.io/preview is a good tool for previewing how a feed reader might interpret your feed
moose333 joined the channel
#
rubenwardy
will h-feed understand pagination? I have rel=next / prev on the links. Although they're outside the h-feed, should maybe change that
#
barnaby
rel next/prev is used for pagination, and they cover the entire page, so you don’t need to have them inside the element with class=h-feed
sivoais joined the channel
#
gRegor
Note in https://indieweb.org/authorship-spec#Algorithm we recommend against rel-author for new sites/posts (mentioned in step 6)
#
rubenwardy
what's the difference between u-author and p-author?
#
gRegor
Thought I was just reminded of https://indieweb.org/rel-author#Questions, which I'm not sure how applicable that still is
#
gRegor
The prefix tells parsers how to find the value, more on https://microformats.org/wiki/microformats2-prefixes
#
gRegor
u- for URL properties, p- for plaintext, etc.
#
barnaby
the difference between u-author and p-author is extremely minimal if its nesting an embedded h-card, which should almost always be the case for the author property
#
barnaby
it changes how the value of the “value” key in the embedded h-card is parsed (as plain text or as a URL)
#
barnaby
you can play around with some markup and see the parsed results in real time here to get a sense for exactly what happens https://waterpigs.co.uk/php-mf2/
[timothy_chambe] joined the channel
#
[timothy_chambe]
Agree with everything he's saying, except the idea that Subtack is anything but marginally better than Twitter at helping you "own your own platform." https://twitter.com/hamishmckenzie/status/1587849734181425152
#
@hamishmckenzie
The problem isn’t that Elon Musk owns Twitter – it’s that you don’t. We shouldn’t have to freak out about a dictator taking over a vast digital empire. People should control platforms rather than the other way round.
(twitter.com/_/status/1587849734181425152)
#
[tantek]
[benatwork] why consider self-hosting a Mastodon instance instead of Withknown + Bridgy Fed?
#
[tantek]
the latter is A LOT less /admintax
#
[tantek]
plenty of "smart people" have attempted solo hosted Mastodon instances and given up after months.
#
[tantek]
(if not days/weeks)
#
[tantek]
and yes we're having this conversation in #indieweb-dev because no non-dev should be even remotely considering self-hosting a Mastodon instance
#
[tantek]
or even bothered with the noise about discussing the possibility thereof
#
[tantek]
I mean it's your discretionary hobby time if you feel like spending it on Mastodon /admintax
[manton] joined the channel
#
AramZ-S[m]
I think also... it's not really what Mastodon is for? I've been talking to a bunch of folks and generally what I'm starting to get a sense of is that the best reason to start up a Masto instance is because you have a community that can have a unified set of rules and build a useful and mutrually engaging Local. I don't think it makes sense from a project perspective to self-host Masto unless you've got a plan for it. Solo
#
AramZ-S[m]
self-hosted Mastos seem just wasteful.
#
barnaby
yeah, something like microblog.pub seems like the better alternative for single-user instances who want indieweb and AP support built in
#
barnaby
mastodon doesn’t send webmentions natively, right? did anyone make a bridge to send them already?
#
barnaby
seems like all you’d need would be to set up an AP identity which people can follow, and whenever it receives a new post, it goes and sends the relevant webmentions for it