#dev 2018-09-07

2018-09-07 UTC
renem, benwerd_, [tantek], bradenslen, tbbrown, mblaney, mblaney1 and iasai joined the channel; mblaney1 left the channel
#
unicyclic.com mal
edited /block_list (+210) "/* How to */"
(view diff)
#
unicyclic.com mal
edited /block_list (+79) "/* IndieWeb Examples */"
(view diff)
mblaney1, mblaney, [manton], benwerd, cweiske, Vyoma1, tantek__, barpthewire and swentel joined the channel
#
swentel
morning
#
swentel
morning
[pfefferle] joined the channel
#
petermolnar
morning all
#
petermolnar
I've tried the new chrome, jesus, the url thing is absolute insanity
#
petermolnar
I have no idea how this feature got into an actual release
eli_oat, benwerd, bradenslen and barpthewire joined the channel
#
@khurtwilliams
↩️ @kickscondor I was wondering that out of the blue Webmention was about. :-)
(twitter.com/_/status/1038080998737629189)
#
sknebel
https://runbook.cloud/blog/posts/how-we-massively-reduced-our-aws-lambda-bill-with-go/ <- when the advertised program style conflicts with the billing model
[xavierroy] and [keithjgrant] joined the channel; Jeena left the channel
#
[keithjgrant]
well crap. Looks like I just found a Chrome bug that's gonna delay the release of Omnibear
#
[keithjgrant]
I was hoping to get it out today. But I think you'll kind of need to be able to scroll the window if the content is long. Seems like an important feature
TripFandango, benwerd, tantek__, swentel, jackjamieson, snarfed and [kevinmarks] joined the channel
#
GWG
swentel, media endpoint support. On a roll
#
GWG
Really makes me want to get Micropub with media endpoint out the door
#
jackjamieson
GWG, BTW I finally reproduced the timeout error I had mentioned before. Turns out it wasn't with the parse-mf2 class directly, but rather a timeout in masterminds/html5...
#
GWG
Interesting
#
GWG
If you saw, I reduced the number of calls to generate a domdocument
#
jackjamieson
Yeah, it seems quite snappy now
#
jackjamieson
Am I right that parse-this will work just fine without masterminds/html5 installed? Looks to me like it should fall back reasonably, so I thought removing it would be an option
#
GWG
I used the fallback code from php-mf2, so yes
#
GWG
I have a bunch more I want to do before I merge
#
jackjamieson
Nice, in that case I'll omit it for now I guess
#
GWG
And likely in at a future time, I will spin the parse this directory off into a new repository
#
GWG
It includes some fun features, like an endpoint
#
jackjamieson
Well, I'll keep testing as much as possible - so far it's working quite well for me
#
GWG
It doesn't do h-feed yet
#
GWG
I will get it to where it needs to be to merge into master, work on a new Post Kinds release before coming back
#
sknebel
jackjamieson: could you please share details about the issue with the html parser? php-mf2 relies on it if it is available, if there's a problematic bug that'd be important to know
#
GWG
By the way, re post type Discovery, it was always there in a different part of Post Kinds, I moved/rewrote it to fit into the new package
#
jackjamieson
GWG: Ah, I thought it was new, but I must have just missed it before
#
jackjamieson
sknebel, of course! I've been getting an error intermittently so I'll add some more detailed logging so I can try to narrow it down. I can do that today
#
GWG
Better integrated
#
sknebel
jackjamieson thanks!
#
jackjamieson
GWG: Did you see my notes on github about the post type discovery?
#
GWG
Yes
#
jackjamieson
Thanks, hope it's helpful - really the only issue I noticed
#
GWG
You inspired this re
#
GWG
rewrite
#
jackjamieson
Well, I appreciate it very much. Hopefully it's useful to others too, but I'll make good use of it regardless :)
#
jackjamieson
sknebel - the error I've been having with masterminds is "PHP Fatal error: Maximum execution time of 30 seconds exceeded in /.../wp-content/plugins/yarns-microsub-server/vendor/masterminds/html5/src/HTML5/Parser/Scanner.php on line 82"
#
sknebel
ah, so it just surfaces running out of time there
#
jackjamieson
I've added some extra logging so next time it occurs I'll be able to find out which url triggered it, and if it happens consistently
#
jackjamieson
Scanner.php line 82 is part of public function current(), which gets the current character, but I'm not sure in what situation this leads to that error
#
jackjamieson
Maybe just a result of polling several urls in a row (e.g. when checking for new posts among several sites at once)
#
sknebel
I'd guess that's just randomly where it stops when it runs out of time, nothing specific to the code
#
jackjamieson
Hmmm... when I get those timeouts it's always at line 82 of scanner.php - so it's consistent that way, but unless I can reproduce it more reliably I think you're probably right
#
jackjamieson
At any rate, I'll just keep an eye on it for now - might just be a sign to better optimize my polling
Amgine and [grantcodes] joined the channel
#
[grantcodes]
Big update to https://microsub-notifier.tpxl.io it's a proper app now!
#
[grantcodes]
I can send emails now and sort of works with kindles! For [eddie] [cleverdevil] and aaronpk
#
[grantcodes]
Html formatting is still quite janky though
#
[grantcodes]
And if anyone wants more notification methods it is quite easily extendable now
[cleverdevil] joined the channel
[eddie] joined the channel
#
[eddie]
It says it couldn’t get my token 🙂
#
[eddie]
Strangely I didn’t see any scopes being requested
#
[grantcodes]
Says your site timed out [eddie]
#
[grantcodes]
Only needs the read scope
#
[eddie]
Hmmm but it doesn’t request the read scope?
#
[grantcodes]
Hmm should be at the end of the url
#
[eddie]
Oh wait response type I’d
#
[eddie]
That’s the problem. It needs to be response type code
#
[eddie]
My site is ignoring the scopes because it’s only requesting authentication not authorization
#
[grantcodes]
I am using martys fork of my micropub library, which is not meant for getting tokens really 😩
[kiai] joined the channel
#
[grantcodes]
Give me 2 minutes and I'll try and fix that
#
[eddie]
That’s interesting that no one else’s IndieAuth has had issues with that 😕
KartikPrabhu joined the channel
#
[grantcodes]
[eddie] you should be able to log in now
#
[grantcodes]
I think I know what is wrong with the html formatting in the emails now, so going to try to fix that too
#
[eddie]
:thumbsup: It worked
#
[grantcodes]
See if you can figure out how to use it 😛 May be a bit confusing
#
[eddie]
I think I’ve got it all set up. Now I just need to add something to my saved channel and see if it gets delivered to my Kindle 🙂
#
[grantcodes]
Wait one second
#
[grantcodes]
Ok html formatting should work now
#
[grantcodes]
You need to make sure to add the email address to your allowed list on amazon too
#
[eddie]
Yep :thumbsup:
#
[grantcodes]
Ok good to try now
#
[eddie]
:crossed_fingers:
#
[grantcodes]
Awesome! It works for me!
#
[eddie]
I see it in the amazon.com log, fetching my Kindle now
#
[grantcodes]
Only problem is they are all just going to be called "article" at the moment
#
[eddie]
Haha, I noticed that in the log 🙂 MVP 😉
KevinMarks joined the channel
#
[eddie]
It worked
#
[eddie]
There are some minor issues around special characters primarily the '
#
[eddie]
But not bad for an MVP
#
[grantcodes]
The other thing I want to do is append a link to the end of the article so you can click it to mark read, but that requires generating secret links
#
[eddie]
Yeah that’s something I have thought about in the version I had thought about developing
#
[eddie]
I thought about having a “mark as read” and a “like” and “bookmark”
#
[eddie]
This is super awesome grantcodes!
#
[eddie]
grantcodes++
#
Loqi
grantcodes has 24 karma in this channel over the last year (32 in all channels)
#
[grantcodes]
Special characters I am not sure about, I don't know if I should handle them or not. It should be valid html
#
[eddie]
Instapaper had always sent it as a daily or weekly digest and I always through that was the best, but now that I’ve seen them come in as single articles that actually might be better, because when its a digest you have to dig in to each “Edition” to find out what articles are in it
#
[grantcodes]
Also way more complicated to build 😛
#
[eddie]
haha yeah that was one thing I was struggling with in the version I had tried to build
#
[grantcodes]
I'm going to set the attachment file name to be the same as the subject line. So you can set it to {{post.name}} and it will work better
#
[eddie]
Ohhh yeah that sounds great
#
[grantcodes]
Also happy to have contributions if you want to add more types of notifications / improve them. Collections / Editions would be difficult with how it's currently set up though
[tantek] joined the channel
#
[eddie]
Yeah, I’m not as concerned about collections now that I’ve seen individual articles. Especially if the article has the subject. I’m thinking that will actually be a better experience
#
[eddie]
Sounds good :thumbsup:
#
[eddie]
Is it node.js or something else?
#
[grantcodes]
Node & react
#
[eddie]
:thumbsup:
#
[grantcodes]
I wonder if amazon uses some meta tags or something to create the preview images. That would be awesome, but probably not supported. I was hoping title tags would work for the filename
benwerd and swentel joined the channel
#
[eddie]
Cool, I might look into potentially adding some hooks for “mark as read” later. I’ve forked the project so I can look into it deeper later 🙂
#
[eddie]
hmm, grantcodes: I saw you updated the code to use the subject for the html file name. Did you deploy that code to the server?
#
[eddie]
I noticed the article I just saved was still called “article” on Kindle
#
[grantcodes]
Yeah I thought I did, but maybe didn't restart the service or misspelled something
#
swentel
[grantcodes], android indigenous client now has media endpoint support, feel free to test :)
#
swentel
works fine here on my end with the drupal plugin, curious how it works for others
#
[grantcodes]
swentel: can I test it without making a post? I added an image to a note and haven't got an error. But not posted it
#
swentel
[grantcodes], there should be a 'Media' post type now - you will have hit the 'Refresh configuration' button in the top menu to see that appearing
[gregorlove] joined the channel
#
swentel
that will discover the media endpoint then
#
[grantcodes]
Oh yeah. Got it now
#
[grantcodes]
I got a 500 error so that's probably my fault
[cleverdevil] joined the channel
#
[cleverdevil]
Been thinking more about this.
#
swentel
ah, but it's cool to see the endpoint is found already
#
[cleverdevil]
When I get a reply to a post on Micro.blog, I get a push notification, which I can tap, and am immediately put into a position where I can type out a reply and press "send." So, I do that all the time.
#
[cleverdevil]
Even if I did get push notifications set up through something like Pushover, I wouldn't have the fully integrated experience.
#
[cleverdevil]
Ultimately, I am thinking that Indigenous for iOS is my best hope for a fully integrated experience.
Amgine joined the channel
#
[grantcodes]
[eddie] Proper names working now for kindle
#
[eddie]
[cleverdevil] I agree. That’s why I’ve started working on the Amazon serverless Push Notifications for Indigenous. For Kindle posts the Microsub notifier definitely works for me, but I haven’t set up anything like Pushover because I want to be able to force press on a notification and instantly either “like” or “reply”
#
[eddie]
Just like I can an iMessage conversation through notifications
#
[eddie]
[grantcodes] Woo!! 🙌
#
[cleverdevil]
Yes yes, that's what I want too 🙂
#
aaronparecki.com
edited /Special:Log/upload () "uploaded a new version of "[[File:2018-pdx-hwc.jpg]]""
(view diff)
#
[eddie]
🙂 It should be on it’s way before too long
mattl and tantek__ joined the channel
#
[eddie]
I have Amazon SNS support set up, I’m working on adding the toggles to turn notifications on/off into the iOS app. Then I just have to build out the serverless API that needs to be able to receive commands from the iOS app, fetch Microsub posts and send the push data to Amazon SNS
#
[eddie]
It’s not nothing, but it’s also nothing crazy. The biggest variable is how much my son sleeps and how much he cries. 😆
#
[eddie]
It has a profound impact on programming hours. haha
doubleloop1 joined the channel
#
doubleloop1
I'm trying to set up microsub with Aperture and Monocle - my site is running Wordpress and I've used the Wordpress Aperture plugin
#
tantek__
welcome doubleloop1!
#
[eddie]
Hey doubleloop1. Great to hear that you’re using the Aperture plugin. When you try to log in to Monocle, does it present an error? If so, what does the error say?
#
doubleloop1
That's created me an account on Aperture and added <link rel="microsub" href="https://aperture.p3k.io/microsub/114"> in my head
#
doubleloop1
When I log in to Monocle, I get the error: "error_description": "The token endpoint could not verify this access token", with a bit more detail - "response": "{\"error\":\"parameter_absent\",\"error_description\":\"Bearer Token Not Supplied\"}"
#
doubleloop1
I'll paste the whole response into a pastie somewhere, one sec...
#
[eddie]
Ahhh this has been a common error. Let me look through some recent logs to see what the solution was
#
Zegnat
“Bearer Token Not Supplied” ... don’t tell me its that Authorization header again
#
[eddie]
Yep, I think so
#
[eddie]
doubleloop1 I believe this was the fix https://wordpress.org/plugins/micropub/#faq-header
#
Zegnat
But, huh, the headers say nginx :o
#
Zegnat
doubleloop1, are you hosting WordPress on nginx or Apache?
#
Zegnat
Never mind, looks like apache when I curl it. I am not sure what those headers in that debug are about
#
doubleloop1
Cor blimey guvnor, that fixed it!
#
doubleloop1
Thanks so much
#
doubleloop1
It's running in Apache, yes
#
doubleloop1
I might have nginx as a reverse proxy although I honestly don't remember setting it up as such... :/
#
Zegnat
I got confused because the pastebin had all sorts of nginx headers. But those are actually the headers from aperture seems like.
#
Zegnat
When I curl your token endpoint it reports Apache, so the fix [eddie] gave was the right thing
#
Zegnat
Just scared we had run into nginx also dropping authorization headers :P
#
[eddie]
🙌 Great to hear that it fixed it for you doubleloop1
#
doubleloop1
That's great, thank you very much
#
swentel
doubleloop1, so that get that show up in indigenous, you'll have to remove the account and add it again, I don't have a refresh endpoints button yet :/ (coming very soon though)
#
doubleloop1
swentel - thank you, I did that already, and it is totally awesome
#
swentel
cool :)
#
doubleloop1
mind blown by being able to publish to my site from command line with shpub, mobile with indigenous, and now a reader on my mobile too, good times indeed
#
swentel
hehe, yeah, it's all very exciting
[tantek] joined the channel
#
doubleloop1
swentel: oh just to mention, in case someone else reports similar, the error message from indigenous when the microsub client wasnt working because (i assume) the same issue that monocle reported, the error was (something like) 'No channels found, please check your internet connection'
#
swentel
doubleloop1, oh right, good point
benwerd and [keithjgrant] joined the channel