#dev 2021-03-09

2021-03-09 UTC
really2 joined the channel
#
[eddie]
My pleasure! 😁
#
[scojjac]
Thanks [eddie]!
#
[scojjac]
[tantek] Wasn't it a discussion about the BBC doing something like that - no idea which IRC channel, though
[chrisaldrich] joined the channel
#
[chrisaldrich]
tantek, it was Jacob Hall who had asked about publicly showing aggregator "content" from someone else's site at the HWC last week. Not sure if he's in chat though.
really2 and really21 joined the channel
#
[eddie]
[scojjac] my pleasure. Also, great sleuthing! One can use an http(s) Url or a custom app scheme, but in practice either through IndieAuth best practice or Apple’s OAuth 2 implementation (I don’t remember which), essentially made the case that it was best to redirect to the server and have that redirect back to the custom scheme. So both are being used
#
[eddie]
So the indigenous.abode.pub url, redirects to the indigenous://auth/callback which triggers the app
#
[tantek]
Also regarding "respectful responses", has anyone heard of Positivius? https://twitter.com/Currofile/status/1368568320920797184
#
[tantek]
Er, Positivus apparently
lelman and anon_jasrjfbq joined the channel
#
anon_jasrjfbq
hi devs
#
anon_jasrjfbq
Looking for a second opinion how to structure my atom/rss feed.
#
anon_jasrjfbq
Anyone here?
#
[tantek]
what's your question? 🙂
#
anon_jasrjfbq
So I'm looking at adding metadata for the feed author.
#
anon_jasrjfbq
I've read through: https://tools.ietf.org/html/rfc3986
#
anon_jasrjfbq
And it seems additional data should be added using the <content> tag
#
anon_jasrjfbq
Here's what I have.
#
anon_jasrjfbq
  <author>
#
anon_jasrjfbq
      <name>Mark Pilgrim</name>
#
anon_jasrjfbq
      <content type="application/bitcoin-paymentrequest">bitcoin:abcd84faj</content>
#
anon_jasrjfbq
  </author>
#
anon_jasrjfbq
Is this correct?
maxwelljoslyn joined the channel
#
[tantek]
I didn't know the <content> element was allowed in <author>
#
[tantek]
I certainly don't know of any consuming examples of that
#
[tantek]
I'd say don't bother with (extra) markup unless you know there is an actual supported consuming example of it
#
[tantek]
checks his atom feed
#
anon_jasrjfbq
I'm writing the code that will consume it.
#
[tantek]
interesting. I don't know of anyone publishing it either
#
[tantek]
I checked and mine is pretty minimal:
#
[tantek]
<author>
#
[tantek]
<name>Tantek</name>
#
[tantek]
</author>
#
Loqi
Tantek Çelik
#
[tantek]
I'd say there's a better chance with rel=payment publishing and discovery
#
[tantek]
if you're looking to write consuming code
#
[tantek]
what is rel-payment
#
Loqi
payment in the context of the indieweb refers to a feature on an indie web site that provides a way for the visitor to that website to pay (currency, gift card credit, etc.) the person represented by that indie web site https://indieweb.org/rel-payment
anon_jasrjfbq and [Forest_Johnson] joined the channel
#
[Forest_Johnson]
@Saphire
#
[Forest_Johnson]
> btw, are you aware of `async function() {...}`?
#
[Forest_Johnson]
Yes, it was a mixture of old code from before async/await was widely supported, example code that uses `.then()`, and just general laziness and familiarity with JS promise `.then()` API
#
[Forest_Johnson]
[KevinMarks]
#
[Forest_Johnson]
> Why use 200 for a failure? Wouldn't picking a more suitable error code make sense?
#
[Forest_Johnson]
Because serviceworker wont accept & cache a non-success response. I tried 500 1st, but it did not work
#
Saphire
[Forest_Johnson]: oh, okay! It is difficult to guess people's knowledge of JS and I didn't really look too much into it >.>
#
[Forest_Johnson]
Part of me prefers `.then()` too because it doesn't `throw` and rip all the way up the stack until it hits `try` . I guess its technically the same thing since I think the new standard is gonna be that rejected unhandled promises will completely blow up the app
#
[Forest_Johnson]
instead of failing silently
#
[Forest_Johnson]
failing silently and halting both very poor compared to compile time error 🙂 that's why I like golang where you have to explicitly state that you want to ignore an error, otherwise its a compile time error
#
Ruxton
3 cheers for golang
#
[Forest_Johnson]
* the very possibility of an unhandled error will cause the compile to fail, is what i meant
#
Ruxton
yah i know, just being a fan boy :P Regardless it's still possible to have a massive error that panics out that isnt caught at compile time
#
[Forest_Johnson]
Yeah, but I appreciate the effort they made to push "truely exceptional" errors into their place and prefer to simply return a "result" whether success or failure, rather than blowing the stack
gRegorLove joined the channel
#
[Forest_Johnson]
and, to be fair, you are still free to use something like try/catch in golang, with `recover`.
#
Ruxton
yeah, lots of people complain about it when I'm reading discussion, but making you explicitly handle them is such a better scenario.
#
Ruxton
wrap whole app in try/catch/recover and make recover reboot the appp >:)
#
[Forest_Johnson]
yeah... or at the request-scope or even more granular level. I ended up doing that once for a relatively complex go app, having the thing log panics without crashing was very helpful to debug
#
[Forest_Johnson]
sometimes you really don't know until you hit prod. this thing was a bit of a research expedition 😄
#
Ruxton
yeah I have a few 24/7 API's connected to hospital result processing, they have things like that. It's more important they're online and doing their thing.
#
lahacker
uh... anon_jasrjfbq why did you use Mark Pilgrim for the example?
lelman1 joined the channel
#
Ruxton
lahacker: be pretty wow if he was THE mark pilgrim
jacky_ and KartikPrabhu1 joined the channel
#
lahacker
what is 410 Gone can be 302 Found
#
Loqi
It looks like we don't have a page for "410 Gone can be 302 Found" yet. Would you like to create it? (Or just say "410 Gone can be 302 Found is ____", a sentence describing the term)
oodani_, kiero_, leo60228-, deltab_, rhiaro_, treora_, strugee, cjav_dev, [chrisaldrich], really2, [scojjac], shoesNsocks, gRegorLove and [tantek] joined the channel
#
anon_jasrjfbq
I used Mark Pilgrim for fun.
#
anon_jasrjfbq
I don't see https://indieweb.org/rel-payment as the solution
#
anon_jasrjfbq
I want both humans and non-humans to be able to parse the payment data. And I also don't want each participant to host an app or anything for their wallet.
#
anon_jasrjfbq
I read more about extensions I think this one is better, but again not sure.
#
anon_jasrjfbq
 <author>
#
anon_jasrjfbq
      <name>Mark Pilgrim</name>
#
anon_jasrjfbq
      <pr:paymentrequest type="application/bitcoin-paymentrequest" uri="bitcoin:abc7askjdfg"/>
#
anon_jasrjfbq
</author>
maxwelljoslyn joined the channel
#
Ruxton
"don't want each participant to host an app or anything for their wallet." <-- soo how do you bitcoin?
#
anon_jasrjfbq
use someone elses node. Let's not dive into the minutia. More focused on how an extension should be added to an atom feed.
#
Ruxton
sure but your reasoning applies to the atom feed too
#
Ruxton
and I guess I don't understand how using rel=payment in your feed, is not a good solution vs. what you're proposing?
samwilson, Seirdy and gRegorLove joined the channel
#
gRegorLove
rel-payment can be parsed by software. There's a couple implementations documented so far https://indieweb.org/payment#Implementations
samwilson1 and theshawe joined the channel
#
@ambrwlsn90
Am soon gonna update my webmentions along the lines of how @zachleat and @adactio handle theirs. See a post here… https://twitter.com/i/web/status/1369231305196642304
(twitter.com/_/status/1369231305196642304)
samwilson1, [Murray] and [tantek] joined the channel
samwilson1, unrelentingtech and [fluffy] joined the channel; ShadowKyogre left the channel
#
@fluffy
↩️ Oh dang I should add this to webmention.js (especially the save data pref)
(twitter.com/_/status/1369287917080735744)
#
Loqi
[fluffy-critter] #17 Add demand loading of avatar images
ShadowKyogre and anon_jasrjfbq joined the channel
#
anon_jasrjfbq
Thanks everyone, I understand now :)
#
anon_jasrjfbq
<atom:link rel="payment" type="application/monero-paymentrequest" href="monero:abc7askjdfg"/>
ShadowKyogre, [scojjac], [chrisaldrich] and [tantek] joined the channel; ShadowKyogre left the channel
#
[tantek]
that would be one way to do it yes
#
[tantek]
what is Monero?
#
Loqi
It looks like we don't have a page for "Monero" yet. Would you like to create it? (Or just say "Monero is ____", a sentence describing the term)
#
jacky
Monero's that crypto thing no?
#
jacky
oh zach's approach to rendering replies is _very_ nice
gxt joined the channel
#
[tantek]
recipes chat in #indieweb was almost turning dev so forking off a thread here...
#
[tantek]
"what would happen if you wrote a recipe as a series of steps to execute in JS?"
#
[tantek]
or the obvious one, define a makefile for a "sandwich" so you can
#
[tantek]
sudo make sandwich
#
[tantek]
someone must have already done this
#
[chrisaldrich]
tantek++ for "forking" 😆
#
Loqi
tantek has 18 karma in this channel over the last year (83 in all channels)
#
[tantek]
😄 thanks [chrisaldrich] was hoping someone would sniff that out 😉
[jeremycherfas] joined the channel
#
[jeremycherfas]
I agree that a lot of cooking is indeed subroutines. But cooking is a lot more forgiving than programming.
#
[tantek]
cooking yes. baking is less forgiving in my experience (per previous pie comments)
#
[tantek]
still more forgiving than procedural programming for sure
#
[tantek]
lol [Rose]
[Rose] joined the channel
#
[Rose]
Too much salt? Just add more of all the other ingredients 😆
#
[jeremycherfas]
I’d hate to have to write a docstring for any of it.
#
[chrisaldrich]
Somehow I always find recipes feel more daunting when they say "make a portion of X, see recipe on page Y". It always makes the process feel like twice as much work somehow.
#
[tantek]
hmm I wonder if a CSS recipe would be possible, using transitions
#
[tantek]
& animations
#
@ilpeach
http://Webmention.io is a hosted service created to easily receive webmentions on any web page. - https://webmention.io/
(twitter.com/_/status/1369357777781596175)
#
[chrisaldrich]
sounds like you want recipes as "stories" tantek. 😁
#
[tantek]
hahahaha no
#
Loqi
rofl
#
[jeremycherfas]
Oh no, I fundamentally disagree [chrisaldrich] I hate books that don’t do that.
#
[tantek]
unsurprising that we have different prefs on recipe denormalization
#
[Rose]
Repetition in books is annoying.
#
[tantek]
[Rose] are you saying you prefer DRY recipes? 😉
#
[Rose]
Only when appropriate. A glass of chocolate milk often helps.
#
[chrisaldrich]
Jeremy Cherfas, I'm just saying that it makes them feel like more work. I also hate books that don't do it. Usually the sub-recipes are far more important things to know than what's in the main recipe. Like IndieWeb, cooking is really all about having a strong foundation of multiple /building-blocks
#
[jeremycherfas]
The DRY point gets back to Peter Hertzmann’s book. Learn the technique and apply it anywhere.
#
[chrisaldrich]
Escoffier is a clear leader in that building blocks space too.
#
[jeremycherfas]
Seem like more work, ok, but they aren’t really.
#
[jeremycherfas]
Anyway, got to go and mushroom.sauté()
#
[chrisaldrich]
(the impression of more work is always on me being lazy and not doing the proper prep/mise en place, particularly when doing new dishes)
#
[tantek]
oh boy here come the HN webmention mentions 🙂
#
[tantek]
aaronpk I'm wondering what the traffic to webmention.io looks like today 😂
#
jacky
oh that's not the right thing
#
jacky
but it is currently showing that the main site is getting a lot of traffic re: Webmentions
[KevinMarks] joined the channel
#
@donk_enby
"very confident this will not happen again" CHALLENGE ACCEPTED?! https://pbs.twimg.com/media/EwDh9XVWEAQ6UGO.png
(twitter.com/_/status/1369343211081236487)
#
@someone10987507
↩️ They will: http://webmention.io It's an official Web Consortium standard.
(twitter.com/_/status/1369369461984215043)
#
aaronpk
oh boy
#
aaronpk
i don't think i have analytics on that actually
[scojjac] joined the channel
#
aaronpk
petermolnar: i suppose if i wrote it in go then i can make it even easier to deploy?
#
aaronpk
i wish there was a way to pack php apps like that though. i don't really want to learn enough go to do that
#
petermolnar
aaronpk: if you provide binaries for everything, most probably yes, but even if they have to compile it, it's usually painless with go. Emphasis on usually.
#
petermolnar
alternatively write it in java without any platform dependent code, and distribute a single jar file :)
#
@simevidas
Webmention service at the top of Hacker News right now
(twitter.com/_/status/1369380175201308674)
#
@Dreamseer
http://Webmention.io ist an die Spitze von Hacker News geklettert. Ich denke, jetzt solltet Ihr da auch mal mitmachen!
(twitter.com/_/status/1369383122169704448)
[KevinMarks]1 joined the channel
#
@eay
↩️ Mir eh unverständlich, warum nicht viel mehr Blogs Webmentions unterstützen.
(twitter.com/_/status/1369383899575500800)
#
[KevinMarks]1
Lol at #3 should we post webmention libraries too?
KartikPrabhu joined the channel
[manton] joined the channel
#
[manton]
Any idea why Webmention.io got so much attention all of a sudden?
#
Loqi
[manton]: lahacker left you a message on 2020-12-16 at 6:14am UTC: the example.bar in https://www.manton.org/2017/11/24/blog-archive-format.html can't be found
#
aaronpk
shrug... hackernews gonna hack
#
@lcptuk
Webmention W3C protocol for notifying a URL when a website links to it https://en.wikipedia.org/wiki/Webmention
(twitter.com/_/status/1369394172483039238)
ShadowKyogre joined the channel; ShadowKyogre left the channel
[Murray] joined the channel
[scojjac] and [snarfed] joined the channel
#
Loqi
[aaron-em] #165 Use Fetch API instead of jQuery in examples
#
Loqi
[aaronpk] I'd happily accept a PR to the docs! I launched this service in... 2012
ShadowKyogre joined the channel; ShadowKyogre left the channel
[fluffy] and samwilson joined the channel
#
@hail2u_
Webmentionの集計他を代替してくれるサービス。rel=meを使ったIndieAuthでログインし、集計されたデータはfetch()を使って受け取る。 https://webmention.io/
(twitter.com/_/status/1369426218559434765)
#
jacky
I wish there's a list of RSS readers that support handling WWW-Authenticate for things