#LoqiIt looks like we don't have a page for "well_known" yet. Would you like to create it? (Or just say "well_known is ____", a sentence describing the term)
#LoqiIt looks like we don't have a page for "well known" yet. Would you like to create it? (Or just say "well known is ____", a sentence describing the term)
#[schmarty]so the uses listed there mostly seem to do with looking up some info about a domain or user on a domain. that "discovery" aspect of Webmention is already covered by the spec - any page that accepts webmentions will have an HTTP header or HTML <link> header indicating where to send webmentions.
rrix joined the channel
#mikeputnammy incomplete thought was owing to me wanting to do my first webmention, on my static site. so my first action was "hmm... i'll need a directory to house these webmention files separate from my blog posts." then i wondered if a convention existed. then i recalled /.well_known/.
alex11 joined the channel
#[schmarty]ah, so you're looking for a place to store received webmention data for your posts?
#mikeputnamperhaps the best /.well-known/ could do would be to declare "HERE is the subdirectory of webmentions". but as webmentions are POSTed elsewhere explicitly, having a convention for where to keep them is probably irrelevant.
#[schmarty]yep, where webmentions are "kept" after receiving is kind of treated like an "implementation detail" since the needs of any given site might be very specific.
#mikeputnami hadn't yet considered RECEIVING a mention. was just thinking about POSTing one and how to organize my files.
#[schmarty]when you say "POSTing" a webmention - do mean notifying another site that one of your posts linked to theirs?
#mikeputnami was going to RSVP to a "Homebrew Website Club - The Americas" meetup by authoring a webmention then submitting(POST) the form back to the event.
#[schmarty]ah! i think i might understand. so the important thing is that you have a post on your site that links to the HWC Americas. the "webmention" is really the process of using that form to notify the event site that your post links to it.
#[schmarty]if you want to keep posts like RSVPs separate from your blog posts, etc., that's pretty much up to you. webmention doesn't specify how you design the URLs for your site.
KartikPrabhu, hendursaga and [tantek] joined the channel
#[tantek]Also, /.well-known/ is for *other folks* to lookup (discover) things on your site. There's zero reason to use (and plenty not to) /.well-known/ for your own site's storage or other relevant information for your implementation
#[tantek]Though due to the name and confusion (like your initial question mikeputnam) there's reasons to avoid any use of .well-known
#[tantek]That is, to use "follow your nose" methods of discovery instead
#[tantek]nothing in IndieWeb depends on, requires, or otherwise "takes advantage of" .well-known
KartikPrabhu joined the channel
#@lawikSo indie web things. I really have a hankering to get fancy with open web tech. I already do plenty of RSS.
What's next?
WebSub? (prev. PubSubHubbub) Does anything use it?
Notifications? (I know the nag sucks, it wouldn't be a default)
Microformats2? Webmentions? Is this in use? (twitter.com/_/status/1400692456568594438)
[capjamesg], hendursaga, gRegorLove, james, barnaby and bneils-ghost joined the channel
#petermolnarhow would one implement a "202 accepted" for micropub? All the clients I tried says it failed, but because it's a static site, I'd only want to queue them.
#sknebelthat seems wrong. are you returning a post URL? (which I realize can be tricky if you are not creating it at that moment, but is required per spec - returning a placeholder URL instead could work maybe)
[Murray], shoesNsocks and chenghiz_ joined the channel
#capjamesgI think you can give better context by writing about your blog / what you do versus just open sourcing.
#barnabyexample of my former point: the micropub adapter I’m working on is perhaps the first piece of software I’ve ever written which had 100% test coverage from day 1
#capjamesgI can explain microformats on my blog but someone seeing the raw Jekyll template for the first time would probably go: what is this? how does it work?
#barnabyI doubt my personal site software will ever reach that
#capjamesgConsidering blogs are supposed to be fun things to work on, maybe open-sourcing introduces a certain expectation of professionalism in code (i.e. test coverage, readme, whatever).
#sknebelI generally dislike arguments that opening code comes automatically with responsibility to maintain it to certain standards you haven't promised
#sknebelbecause a lot of maintainer burnout etc comes from expectations like that
#barnabyfor me, that threshold comes from when I publish something to a package manager
#capjamesgI like to publish code from / related to my personal site if I think it's going to be useful to someone else, or if I might need it in the future.
#barnabyooh always nice to see people talking about the categorical imperative
#sknebel(funnily enough wolfram alpha on the web manages to answer the first query, the api doesn't...)
#[KevinMarks]He was doing it in 10,000 page chunks so you could likely paralellise it more for more speed
bneils-ghost and capjamesg joined the channel
#capjamesgThis might be a basic HTML question but are <button> tags only for forms or can one use them outside of the form context?
#capjamesgI only ask because Lynx (text-based browser) points out that a button on my site does not have a form action. This got me thinking about whether buttons with onclick events are semantically correct.
[Murray] joined the channel
#[Murray]yep, they're fine, but to be on the safe side you should set `role='button'`
#[Murray]otherwise some browsers will _assume_ it's a submit button and try to find a form
#[Murray]and yeah, in terms of semantics `<button>` is one of the only things that _should_ have `onclick` events 🙂 (though there is a lot of grey area etc. etc., but rule of thumb 😄)
#barnaby<button> can be used “Where phrasing content is expected.”, and does nothing outside a form
#capjamesgFascinating. I'll look at the spec for more info, too.
#barnabycapjamesg: my rule-of-thumb for elements like that is “if an element *only* works with js is enabled, it should be added to the document with js, or at minimum, hidden by default and shown from js”
#[Murray]also, that's an interesting use-case, because before you press the button it's definitely a button, but the action it takes is technically a link 😄 I'd stick with `<button>` here personally, but there was a _whole thing_ on Twitter about a week ago around this 😅
#[Murray]looks good though, and cool idea :thumbsup:
#barnabyI’d say <button> is suitable here, as it’s not linking to a specific URL
#[tantek]The point of button being inside a form is so that it can "work" (perform whatever action is intended by clicking it), WITHOUT JS
#[tantek]i.e. without any onclick or any other JS, clicking the button is handled by a form submission to the site which then produces the page with changes expected when the button is pressed
reed joined the channel
#[tantek]What's the use case for using a button outside of a form?
calebjasik, nekr0z, Abhas[m], batkin[m], reed and gRegor joined the channel
#[Murray]Well, for example, when the button requires JS
#[Murray]i.e. it's just a trigger for a JS function
#[tantek]that's not a use case, that's implementation
#[tantek]use case = what visible action is it performing on behalf of the user
#[Murray]ah, well one I've just been working on is a tab interface; so it loads an entirely different section of content
#[Murray]the example capjamesg had was to load a random page
#[tantek]so for both of those, the button would submit the form to the server which would then render the different tab / section of content, or return a random page
#[Murray]sure, if you're using serverside rendering and languages. But if you're not, then that won't do anything
#[tantek]the expectation is that a well built site has that as a default, and then any JS version on the client is an enhancement for speed / responsiveness
#Loqiprogressive enhancement is the web development practice of building web pages, sites, apps so they are at least readable, and preferably allow for most if not all interactions, from any kind of browser, and optionally take advantage of additional capabilities (like various CSS & JS features) when available https://indieweb.org/progressive_enhancement
#[Murray]_eeeh_ I mean I'd love that to be true, don't get me wrong, but, well, React...
#barnabywell capjamesg linked to his site above, and it seems to be a static site, so client-side code is the only way of implementing a “random page” function
#[Murray]and I'd say the method barnaby detailed is progressive enhancement
#[tantek]yes, there are a lot of badly built React sites, though my understanding is that even with React there's ways to do serverside rendering as it were
#[Murray]Only if those dynamic features are critical. I'm working on a personal music collection microsite at the moment, and the main page has a sort function. I'm building in NextJS, so React. If you have JS enabled, the sort function works; if you don't, the page just falls back to being sorted in a specific way and doesn't render the sort toggle
#[tantek]that seems like a reasonable form of enhancement
#[Murray]As a point of interest, I've seen some people manage random page links on 11ty
#barnabygiven how difficult it is (enabling develop menu in safari, digging through the debugger in ff), I find the “Please disable JavaScript to view this site.”, with no hints as to how to do that or what the point is, a pretty bizarre barrier to entry
#GWGI'm wondering. I haven't tested this in a while. If I reply to https://micro.blog/odd/11536044 using the WordPress comment system, can micro.blog pick it up? We determined in the past that some webmention endpoints can do a fragment source
#Loqi[odd] @dshanske I read the Wikipedia article about him just now. So many shenanigans!
#Loqi[odd] @dshanske I read the Wikipedia article about him just now. So many shenanigans!
#GWGDo we have anywhere on the wiki where we document which webmention endpoints support query strings and fragments well?
#capjamesg!tell tantek progressive enhancement is interesting. The feature doesn't quite fall under that category because, ultimately, the button appears irrespective of whether you have JS enabled.
#@jensimmonsYou know how each browser used to have totally different technologies for making add-ons or extensions. (They weren’t even called the same thing.) And how more recently, several browsers totally changed their extensions to use a similar set of APIs as the others? Yeah. That. (twitter.com/_/status/1400863060617744387)
#@jensimmonsYou know how each browser used to have totally different technologies for making add-ons or extensions. (They weren’t even called the same thing.) And how more recently, several browsers totally changed their extensions to use a similar set of APIs as the others? Yeah. That. (twitter.com/_/status/1400863060617744387)
#Loqi[jalcine] #2 Defining the Retrieval Source for Webmentions
#barnabywell, now I know way more about letsencrypt and ACME than I ever wanted to
#barnabyI wrote a script which will automatically authorize all the domains on my shared hosting, then generate a single cert which covers them all, renewing it automatically if it’ll expire in less than two weeks
#barnabynow I just need to make it send the key and cert to me in an encrypted email, as I need to update them manually
bneils-ghost joined the channel
#barnabywe’ll see how long I end up doing this before deciding to pay the 14€ per subdomain one-time SSL set-up fee
#barnabyif it was 5€ I’d just do it, but I plan on having many subdomains, and 14€ each time stacks up very quickly
#barnabynope, the old one was a VPS which I managed myself with certbot
dianoetic, rrix, bneils-ghost, KartikPrabhu, jjuran, [schmarty], barnaby, [tantek], [fluffy], [Murray] and [KevinMarks] joined the channel
#@Lucid00↩️ And after you've paid it pops up with a Credential Management dialog to authenticate you without resorting to cookies (preferably powered by something like IndieAuth, but OpenID Connect and the many OAuth providers could work), so your payment will be associated with this account (twitter.com/_/status/1400964124406956036)