#dev 2019-05-07

2019-05-07 UTC
KartikPrabhu and treora joined the channel
#
@wikipediachain
↩️ HTML > Abaco (web browser) > Arena (web browser) > XSLT elements > Webmention > C-HTML > Sony Ericsson K550 > Sony Ericsson P900 > ARM9
(twitter.com/_/status/1125620672011689984)
[Rose] and [tantek] joined the channel
#
[tantek]
GWG ^^^
#
@marcoarment
@jsnell @JasperTootsi @imyke @_upgradefm Your instincts are correct. I never want to create a venue that can be used to harass people or spread hate or abuse. Any public commenting system requires constant moderation to avoid that, and I neither have nor want the resources to run that kind of moderation.
(twitter.com/_/status/1125543048950185984)
[frank], [cleverdevil], [calumryan] and [Rose] joined the channel
#
Zegnat
GWG, [manton], did anyone capture the big-icons-on-micro.blog? Would make for a good extra example on https://indieweb.org/Fatwigoo
swentel, [tantek], [frank] and cweiske joined the channel
#
[tantek]
Oooh, just saw this via annevk - for anyone who displays "time since" or "local time" on their post permalinks etc., perhaps consider Github's open source web components for this: https://github.com/github/time-elements
#
[tantek]
what is time
#
Loqi
[github] time-elements: Web component extensions to the standard <time> element.
#
Loqi
“Time is an illusion. Lunchtime doubly so.” — The Hitchhiker's Guide to the Galaxy https://indieweb.org/time
#
Loqi
ok, I added "https://github.com/github/time-elements" to a brand new "See Also" section of /time https://indieweb.org/wiki/index.php?diff=60735&oldid=30538
#
Loqi
[github] time-elements: Web component extensions to the standard <time> element.
[Joel], [jgmac1106] and [Sonny] joined the channel
#
[Sonny]
hey I'm a bit confused with microsub, I understand it is a reader server<-> reader client standard, what is the recommanded IndieWeb standard for blog <-> reader server ?
#
[Sonny]
as in atom/rss feeds?
#
cweiske
yes. you might count h-feeds in it, too
#
[jgmac1106]
survey on facebook and trust if there are any facebook users left here
#
Zegnat
It is up to the reader server to support what it wants, [Sonny]. But most people here would recommand atom/h-feed/rss.
#
Zegnat
microformats' h-feed is nice because it is inside the HTML (no side-files or extra copies of content) and can somewhat easier support different post types (for the social network feel). But has his own cons (cweiske blogged about that a bit, IIRC)
#
[Sonny]
I understand, I think I got confused because I was expecting a new "feed" protocol for serverless
#
Zegnat
Unlike what people think, we do like reusing parts that are already in use by many ;) There was little reason to reinvent the feed, I guess
jeremych_ joined the channel
#
[Sonny]
makes sense to me
[Rose] joined the channel
#
[Rose]
what is microsub
#
Loqi
Microsub provides a standardized way for reader apps to interact with feeds https://indieweb.org/microsub
#
[Rose]
Did you see this page before Sonny? If yes, could you tell us which part(s) weren't clear?
[tantek] joined the channel
#
[Sonny]
I did, I think linking "feeds" in the first sentence to https://indieweb.org/feed would clarify things for me, I'd do it but I don't have IndieAuth yet 🙂
#
[Rose]
Done 😄
#
[Sonny]
thanks!
#
[Rose]
It's always worth asking what confuses people 😛
[kevinmarks] joined the channel
#
[kevinmarks]
what do you mean by serverless in this context, Sonny?
#
[Sonny]
no need for "subscription" server (basically what microsub is)
#
[Sonny]
so my app <-> my blog
KartikPrabhu joined the channel
#
[Sonny]
but microsub totally makes sense, I'm just back from 12 years of absence in a time where micropub was xml-rpc and we only had one device 🙂
#
Zegnat
There are proposal extensions for Microsub to let it query posts from your blog. That way “my app <-> my blog” can be much closer to what people are used to where their own posts show up and can be editted.
#
Zegnat
*Micropub, not Microsub
#
Zegnat
That way you do not need a Microsub server for your editor app to get previous posts from your own site
#
[Sonny]
that's exactly what I expected from microsub due to its name
[frank], [jgmac1106] and [tantek] joined the channel
#
[tantek]
[Sonny] cweiske is correct. Plus WebSub for real-time updates (using any of those feed formats) instead of polling: https://tantek.com/2018/024/t4/websub-recommendation
#
[tantek]
Aww why no preview Loqi?
#
Zegnat
Hmm, content and author are all there in XRay (used by Loqi)... Maybe Loqi is moody
#
Zegnat
gives Loqi a cookie
#
Loqi
jumps on the cookie
#
Zegnat
Again?!
#
@t
#WebSub is now a @W3C Recommendation! https://www.w3.org/TR/2018/REC-websub-20180123/ Supported by @Google @WordPress etc. #implementnow Congrats @Julien51 @aaronpk! So stop polling so much, start SUBscribing to WEB pages for changes! #openweb #indieweb #webstandards… http://tantek.com/2018/024/t4/websub-recommendation https://pbs.twimg.com/media/DUWnl3wVoAA9-eF.jpg
(twitter.com/_/status/956354767596539904)
#
[tantek]
Yeah see like that
#
[tantek]
Folks using database backed websites, consider answering this: https://twitter.com/timbray/status/1125533782214303747
#
@timbray
What's the Rails of 2019? Say I wanna get a decent-looking database-backed website on the air double quick, am willing to code but less is better, what are my best choices? [I’m a little out of touch with the conventional wisdom.] [I’m sure that one answer is “Rails”.]
(twitter.com/_/status/1125533782214303747)
[eddie] joined the channel
#
[eddie]
Zegnat: maybe Loqi isn’t a morning bot. (Morning in it’s home timezone lol)
#
Loqi
[eddie]: [Rose] left you a message 1 day, 5 hours ago: you be open to a pull request to add colour theming to Indigenous? (I would love to be able to change that orange, and offering a few built in theme colours with a switcher and matching icons might be nice)
[Rose] joined the channel
#
[Rose]
^ Opened an issue for theming. Which we can get to in due course 😉
pd09041999, sonniesedge, dougbeal|mb1, [tantek] and dougbeal|iOS joined the channel
#
Zegnat
[tantek]: I found the indie-config iframe bug in Firefox and CC:ed you (if I understand Bugzilla right…)
#
Zegnat
Also made note that the original bug as described is still in effect as of today’s nightly
eli_oat and snarfed joined the channel
[stefp], [jgmac1106], [calumryan], callMeBaby, [cleverdevil], snarfed, [tantek], [frank] and [grantcodes] joined the channel
#
[grantcodes]
Eventually made some decent progress on the microsub (+micropub) graphql server. But now I am probably going to need to do mf2 -> jf2 conversion for some stuff and maybe the other direction too.
#
[grantcodes]
Anyone have any functions to do this yet that I can basically copy?
#
[grantcodes]
I'll get my current work on the server on github in the next few days 🙂 Would love some feedback if anyone understands graphql better than me 😛
#
Loqi
[Eddie Hinkle] nintendo-switch-importer.ts
#
[cleverdevil]
:thumbsup:
#
[cleverdevil]
Eddie's is more sophisticated than mine. He checks for participating players, etc.
#
[Rose]
I would love to see your code.
#
[Rose]
I am a fan of simple, and I never do multiplayer
#
[cleverdevil]
I'll see if I can find some time today 🙂
[Sonny] joined the channel
#
[Sonny]
interested too
#
Loqi
[cleverdevil] switchpub: Code that I use to publish my Nintendo Switch activity to my website via reverse engineering the Switch Parental Controls API.
#
[cleverdevil]
Again, very specific to me in places.
#
[cleverdevil]
But, definitely could be used as a starting point.
#
[cleverdevil]
I will write up a detailed blog post at some point soon as well 🙂
#
[Rose]
That's ok, it and Eddie's code are both logged under my project idea for this 🙂
#
[frank]
[cleverdevil] ++
#
Loqi
[cleverdevil] has 30 karma in this channel over the last year (77 in all channels)
#
[frank]
[eddie] ++
#
Loqi
[eddie] has 36 karma in this channel over the last year (95 in all channels)
[jgmac1106] joined the channel
[calumryan] and leg joined the channel
#
snarfed
jacky: everything bridgy fed knows is in that log...except maybe the response body, but i kind of doubt that had anything useful
#
snarfed
are you looking for something specific?
#
jacky
yeah like a header value, I tag all logs with a request ID
#
snarfed
oh yeah i don't log full http headers for every request, that would be too mujch
#
jacky
makes sense!
#
snarfed
hopefully timestamp can get you to it in your own logs?
#
jacky
yeah!
#
snarfed
looks like it's pretty consistent, eg two more at the top of https://fed.brid.gy/responses
#
[Rose]
Snarfed, while you're here. Am I reading the instructions to add a Silo correctly when I think I need to modify the oauth-dropins repo too?
#
snarfed
[Rose]: yup! that one first (generally), then granary, then bridgy
#
[Rose]
Gotcha, I was a bit stumped to start with, I didn't realise I'd have to edit multiple repos.
#
snarfed
reuse++, libraries, all that jazz
#
Loqi
reuse has 1 karma over the last year
#
snarfed
exciting! remind me which silo? i assume not linkedin
#
[Rose]
Reddit
#
[Rose]
Specifically, syndicating to Reddit profiles, and then I also want to work on backfeed,
#
snarfed
oh right!
#
[Rose]
Seems like a good one to start with,
#
snarfed
feel free to update https://github.com/snarfed/bridgy/issues/505 as you go with anything you learn about the API, progress, open questions, etc
#
Loqi
[singpolyma] #505 Reddit: publish comments and votes, backfeed replies
#
[Rose]
Will do.
snarfed and KartikPrabhu joined the channel
#
jacky
what is koype
#
Loqi
Koype is an open-source project that aims to provide a one-stop shop for those looking for a single-tenant Web service to own-your-data https://indieweb.org/Koype
snarfed, gxt, [kevinmarks], KartikPrabhu, leg and [frank] joined the channel
#
[frank]
I try to experiment with some of the API possibilities of Aperture (hosted version of [aaronpk]) but with every call to https://aperture.p3k.io/microsub I get a 404 not found. Is there anything wrong or should I use another URL?
#
aaronpk
every user gets a unique URL, it'll show yours on your dashboard
#
[frank]
Ah so I should use that one...
#
aaronpk
yep, https://aperture.p3k.io/microsub isn't valid. in fact where did you find that?
KartikPrabhu joined the channel
#
[frank]
Well...nowhere actually...To be honest the documentation at https://indieweb.org/Microsub-spec and https://aperture.p3k.io/docs to me is not that clear on what to use where. I am also struggling with Bearer tokens to get started with some get and post calls. I tried [sebsel]’s token generator but I am also stuck there with the proper URL's to use. For an average user like myself it's hard to get through all of it without the knowledge of where
#
[frank]
information like the token endpoint and auth endpoint for my WordPress blog...
#
[frank]
Sorry for the rant...
#
[frank]
But I am just trying URL's based on documentation I read
#
aaronpk
yeah the trick is the microsub URL will depend on each person's configuration. so it's hard to make docs that make it clear what URL to use
#
aaronpk
hm yeah [sebsel]'s token generator is entirely client side so it doesn't do the discovery parts that actual apps do.
#
aaronpk
i guess we need a debug tool that does more of the actual indieauth client parts and gives you a token to use at the end
#
[frank]
Well...you could refer to the dashboard to look it up. On the dashboard, you can add a text to the part "To use Aperture as your Microsub endpoint, add this HTML to your home page." like "You also need this URL as and endpoint if you want to make API calls" with a link back to the docs
#
aaronpk
quill kind of is that, since it shows your access token on the settings screen. tho it won't have the right scopes for microsub.
#
[frank]
I can make tokens in my WordPress Indieauth plugin and change the scopes in the database. Tried that one, but then I get an error at Aperture "bad_request"
#
aaronpk
that's progress
[tantek] joined the channel
#
aaronpk
ok made a small update on the docs page
[cleverdevil] joined the channel
#
[cleverdevil]
You know, it would be really useful to have a simple, web-based tool for getting IndieAuth tokens with specific scopes.
#
[cleverdevil]
For testing and use with CLI tools, or apps that support Micropub/Microsub, but haven't fully implemented IndieAuth.
#
[frank]
Update is an improvement!
#
aaronpk
[cleverdevil]: yeah the trick is that technically it's a bad idea to trust a tool like that that's generating tokens on the server side, which is why [sebsel] made one that is entirely client sifde
#
aaronpk
but i agree it would be useful. also would be very easy, most of the code is already written by every micropub app.
#
[cleverdevil]
Yup, client side makes sense.
#
[frank]
[cleverdevil] I think [sebsel]'s tool is already OK to use, but I now find out it misses a state-parameter to login to my WP-based Indieauth plugin
#
aaronpk
the trick with client side is finding the endpoints doesn't always work because of cross-domain restrictions
#
[cleverdevil]
What about a CLI?
#
aaronpk
which is why [sebsel]'s asks you to enter them all
#
aaronpk
CLI would totally work, but would kind of be a difficult experience
#
[cleverdevil]
Kind of defeats the purpose of the "simple" ideal 😉
#
[frank]
Yeah I already find the proper URL's but somehow WordPress (I think?) needs a state parameter?
#
aaronpk
yeah the state parameter is just a random string that you make up
#
aaronpk
i guess that tool should just make it up for you
#
[frank]
there we go
#
[frank]
will you look at that... I got me a token!
#
[frank]
But sad-face-emoji... When I enter it in Postman for the authorization with aperture, I still get ```{
#
[frank]
"error": "bad_request",
#
[frank]
"error_description": "This operation is not supported"
#
aaronpk
and this is to your unique microsub URL now?
#
aaronpk
is this a GET or a POST? one trick with Postman is it has different tabs for entering query params or post body params and is very confusing.
#
[frank]
I do a GET on my unique URL with query param action=channels
#
[frank]
and the bearer token ofcourse
#
[frank]
Sorry wait. I mean I used body params
#
aaronpk
i see that "bad_request" response if I make a request without any parameters
#
[frank]
When I use query params I get, as you call it, progress... ```The access token provided does not have the necessary scope for this action```
#
aaronpk
so i think in postman you were using the body param tab and making a GET request, so it's empty
#
aaronpk
i really don't like how postman works for that. it got more confusing.
#
[frank]
Yeah I am already on the param-tab
#
aaronpk
ok so for the scope issue, you'll need to request the microsub scopes when you get the token
#
aaronpk
or add them to the database if your wordpress works that way
#
[frank]
Now I need to find the scopes necessary
#
[frank]
right now I have "create delete update read follow mute block channels"
#
aaronpk
oh monocle can help you here
#
aaronpk
it will request the right scopes, so log in, then go to https://monocle.p3k.io/debug and your token will be at the bottom
#
[frank]
Can't I just use the Monocle token then?
#
[frank]
It seems to work. Awesome!
#
aaronpk
woohoo
#
Loqi
does a happy dance!
#
[frank]
Many moons ago I played around with some code from Dave Winer and his feedreader. I wonder if I can bootstrap some stuff to read out OPML files and put it in Aperture. That would make export/import pretty easy and transfer to microsub less a hassle....
#
aaronpk
should definitely be possible! you can use microsub requests to effectively import subscriptions into aperture
#
[frank]
Small pieces loosely joined together. That's how the internet has been working for the last 250 years so why not now? 😉
snarfed joined the channel
#
GWG
Re custom scopes on backend tokens...the PR is waiting on that
snarfed joined the channel
#
@bitworking
↩️ And here a screenshot of the webmentions on the page: https://t.co/iKNOxEImaF
(twitter.com/_/status/1125912454821814272)