#dev 2017-05-27

2017-05-27 UTC
KevinMarks and [eli_oat] joined the channel
#
[eli_oat]
Works fine on Quill, and indieweb.org
#
[eli_oat]
When I try to log in using indieauth I often get stuck at the redirect step. Is this something i’m doing wrong, or am I just trying to log in places where indieauth isn’t completely implemented?
#
[eli_oat]
I get hung with a URL like this:
#
[eli_oat]
jM1AR3hS3Jqch_e3_q0zupKISmZlVkn.OUFuhAR4wWo2cH7lnxC8QA%3D%3D&me=https%3A%2F%2Feli.li%2F
#
[eli_oat]
is it my domain name? eli.li
#
KartikPrabhu
[eli_oat]: where are you trying to login?
#
[eli_oat]
I’ve noticed it in a few places, most recently https://waterpigs.co.uk/notes/new/
#
KartikPrabhu
[eli_oat]: it is possible that indieauth is broken on that site. In any case I don't think that will help you post notes
#
[eli_oat]
I’m able to post notes from quill, mostly I’m just playing — wanting to check out other options (also see if I can figure out why I can’t post notes with titles from quill (I mean, it is probably my janky-micropub-endpoint :P))
#
KartikPrabhu
notes don't have titles
#
[eli_oat]
Word, yeah, sorry — I guess I don’t know what to call them…articles?
#
[eli_oat]
Longer form content
#
KartikPrabhu
yeah articles
#
[eli_oat]
Awesome, thanks!
#
KartikPrabhu
[eli_oat]: you could some othe rmicropub clients from https://indieweb.org/Micropub/Clients
KevinMarks_ and mblaney joined the channel
#
mblaney
^ I just noticed the call for screenshots on that page.
leg and [eli_oat] joined the channel
#
[eli_oat]
does anyone know how I handle that in PHP as a _POST?
#
[eli_oat]
potentially super stupid question: Quill sends article content as a content[html]
#
[eli_oat]
$_POST[‘blahblah’] is failing me here, because I don’t know how to handle the internal brackets.
#
sknebel
[eli_oat]: it only should do that in requests that are JSON-encoded, which you'd access differently anyways?
#
[eli_oat]
Hmmm, okay. Good to know. I guess I’m confused about what the documentation is saying, here: https://quill.p3k.io/docs/editor
#
sknebel
hm. could be that this was allowed in earlier revisions of the spec. I think it wouldn't work with my site if quill still did that, so I assume it does JSON, and only the docs are outdated?
#
[eli_oat]
ah, that would explain the issues I’ve been seeing!
#
[eli_oat]
I’m going to give that a shot…and/or fall asleep ?
#
sknebel
[eli_oat]: have you seen https://micropub.rocks?
#
sknebel
it has nice small test cases for different parts of the spec
#
[eli_oat]
I have! I should walk through the entire thing
#
[eli_oat]
Actually — this was perfect, thanks @sknebel
#
sknebel
no problem
#
[eli_oat]
I think my issue is defo that I’m expecting form encoded stuff, but receiving JSON
#
mblaney
eli_oat: in PHP you want to use json_decode(file_get_contents('php://input')) for JSON.
#
mblaney
and if you set the second parameter of json_decode to true, you can use the variable you put the data into as an associative array, so the cognitive difference between that and $_POST becomes less...
#
@WendyandCharles
ReadersGazette: BLOG Indie Author Answers by Jim Heskett http://www.thejugglingauthor.com/indieauth/ Get help writing your book #bookbloggers 32
(twitter.com/_/status/868327245655535616)
[shaners], gRegorLove and [colinwalker] joined the channel
#
Zegnat
HTTP headers do not support HTML entities right? Or did I miss something?
#
Zegnat
Just ran into this code: header('Link: <'.$rcvr_url.'>; rel="webmention"', false);
#
Loqi
misses something too
KevinMarks and jeremycherfas joined the channel
#
Loqi
jeremycherfas: Zegnat left you a message 11 hours, 48 minutes ago: thanks for raising the issue and talking me through it! PR sent! https://github.com/Perlkonig/grav-plugin-webmention/pull/6
#
Loqi
[Zegnat] [jeremycherfas], new diff if you want to try: https://gist.github.com/Zegnat/0f724b03f02efafa9f52ab3f20456e67
#
jeremycherfas
I certainly don’t deserve any of the credit.
#
jeremycherfas
About to install and test now.
#
jeremycherfas
Oh, and Good Morning Indieweb
#
Zegnat
I am about to extend my PR, bringing the same logic to the header method
#
jeremycherfas
So, should I wait?
#
Zegnat
If you are never going to use the http header method it doesn't matter
#
jeremycherfas
I can see now why you said you didn’t like the Grav url object!
#
Zegnat
Maybe there is a better method available on it, jeremycherfas. I just couldn’t find it. I am still not fluent in Grav with just this ;)
#
jeremycherfas
You have done wonders as far as I am concerned.
#
Zegnat
You also deserve the credit. I for one would never have found templateFormat() without your pointers.
#
jeremycherfas
Grav does give you separate access to individual bits of the final url, but this works very well.
#
Zegnat
Grav really doesn’t like file extensions. And asking for ->extension() would often give me 'html' even when the URL didn’t have an extension at all.
#
jeremycherfas
With that clear I am going to see whether I can find my way around voxpelli’s tool for sending webmentions.
#
Zegnat
Just pushed my refactoring, so now both header and link methods should work: https://github.com/Perlkonig/grav-plugin-webmention/pull/6
#
Loqi
[Zegnat] #6 Limit LINK element insertion to the right pages
#
Zegnat
I am always happy to explain code and to teach, so if you are left with any questions: poke me!
#
jeremycherfas
You know I will.
#
jeremycherfas
I suppose we should also give cweiske some credit for finding the problem in the first place.
KevinMarks joined the channel
#
Zegnat
jeremycherfas, when did you start with PHP coding?
#
jeremycherfas
I started a long time ago, maybe 2002? But then I stopped until about 3 months ago.
#
jeremycherfas
But all I ewver do is tweak and tinker. I’ve bnever built anything from the start.
#
Zegnat
If tinkering includes integrating XRay into a CMS plugin, you are doing just fine! Haha
#
Loqi
Zegnat: lol
#
jeremycherfas
Yeah, well. Aaronpk did that for me.
#
jeremycherfas
And right now I am struggling to get node installed. For some reason it added the path to zshrc, which I don’t use. So adding to bash.
#
jeremycherfas
I did this PATH=/Users/jeremycherfas/.nvm:$PATH
#
jeremycherfas
Which shows /Users/jeremycherfas/.nvm at the top of PATH
#
jeremycherfas
But when I do nvm install node I get -bash: nvm: command not found
#
jeremycherfas
I think I’ll try with homebrew instead
#
Zegnat
Ah, sorry, I can’t assist there. I do not use nvm, just straight node from homebrew
#
jeremycherfas
Going that route now.
#
myfreeweb
jeremycherfas: you need "export PATH=/Users/jeremycherfas/.nvm:$PATH". without the "export" part you're setting the variable locally in the rc and it disappears after its execution
[kevinmarks] joined the channel
#
jeremycherfas
Thanks myfreeweb.
#
jeremycherfas
Brew is doing its thing now, cleaning up and all that.
#
jeremycherfas
And so now node is present. Time for lunch, I think.
jeremycherfas and KevinMarks joined the channel
#
jeremycherfas
OK, back to the fray.
#
jeremycherfas
Where can I find errors from voxpelli webmention test pinger?
#
jeremycherfas
All 14 are failing, but I have no clue why.
[eli_oat] joined the channel
#
[eli_oat]
Thanks! This is super helpful. My biggest hurdle was not realizing the response was JSON, I think I can crack this nut, yet!
#
Zegnat
!tell jeremycherfas how was the test pinger failing? I try to run it and get 404s back. So either some setting is missing or my local clone of your set-up is incomplete.
#
Loqi
Ok, I'll tell them that when I see them next
#
aaronpk
good morning! I'm going to release a new php-mf2 shortly with some fixes :)
KevinMarks joined the channel
#
Zegnat
!tell jeremycherfas If you are getting 404s back, it might be a misconfiguration somewhere. I seem to be getting a 404 back from the Grav Webmention endpoint even when it internally calls the throw_400 method. Error reporting might be bust.
#
Loqi
Ok, I'll tell them that when I see them next
GWG joined the channel
#
davidized.com
created /Template:davidized (+167) "Created page with "<span class="h-card">{{sparkline|https://davidized.com/wp-content/uploads/2017/05/79cf0571184900dfaa3d7d3cd63ae26b.jpeg}}[[User:Davidized.com|David Williamson" target="_blank">User:Davidized.com|David" target="_blank">https://davidized.com/wp-content/uploads/2017/05/79cf0571184900dfaa3d7d3cd63ae26b.jpeg}}[[User:Davidized.com|David Williamson]]</span>""
(view diff)
KevinMarks joined the channel
#
aaronpk
shaners++ for a visual update for https://pin13.net/mf2/ !
#
Loqi
shaners has 1 karma in this channel (69 overall)
KevinMarks and KartikPrabhu joined the channel
#
aaronpk
and XRay is updated with the new php-mf2 as well
#
Zegnat
aaronpk++
#
Loqi
aaronpk has 54 karma in this channel (1329 overall)
#
KartikPrabhu
aaronpk: pin13 gives an error on parsing a URL for microformats "SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 57 column 29050 of the JSON data"
#
KartikPrabhu
some JSON seems to be malformed or something
#
aaronpk
what URL?
#
aaronpk
that seems to load fine
#
KartikPrabhu
this is on FF 53 on Ubuntu
#
KartikPrabhu
oh it worked now!
#
KartikPrabhu
possibly something temporary
#
aaronpk
JSON.parse doesn't look like PHP
#
aaronpk
i think that's FF trying to parse it
#
KartikPrabhu
yeah since it displays theJSON tree now. But reloading worked so <shrug>
[shaners], [jeremycherfas] and KartikPrabhu joined the channel
#
[jeremycherfas]
!tell Zegnat maybe we could think about this at virtual HWC
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[jeremycherfas]: Zegnat left you a message 4 hours, 49 minutes ago: how was the test pinger failing? I try to run it and get 404s back. So either some setting is missing or my local clone of your set-up is incomplete.
#
Loqi
[jeremycherfas]: Zegnat left you a message 4 hours, 9 minutes ago: If you are getting 404s back, it might be a misconfiguration somewhere. I seem to be getting a 404 back from the Grav Webmention endpoint even when it internally calls the throw_400 method. Error reporting might be bust.
[tamaracks] and [eddie] joined the channel
#
aaronpk
hm I can't figure out a clean way to create a p-name property for my checkin that doesn't have text i wrote
#
aaronpk
I can't use the "at Bushwhacker Cider" because that's already inside the "u-checkin h-card" object
#
sknebel
aaronpk: are you posting from the grocery store, or is your "left this location" radius to large?
#
sknebel
(posting = writing here)
#
aaronpk
heh yeah i need to tighten that radius
#
aaronpk
tho the grocery store is across the street so i'm not sure how small i should go
#
sknebel
oh, tricky
#
aaronpk
if i checked in to my house this wouldn't be a problem but i don't normally do that
#
aaronpk
i am apparently 113 meters away from the grocery store. i'll shrink it down to 100m, but that won't solve it for when i go to the bar on the other side of my apt because that's even closer
[jeremycherfas] joined the channel
#
GWG
You are in between a grocery store and a bar? Convenient
#
Zegnat
aaronpk, any way to geofence just your apartment? Basically creating a standard “checkout” function: when you are there, you aren’t anywhere else by definition
#
Loqi
Zegnat: [jeremycherfas] left you a message 1 hour, 37 minutes ago: maybe we could think about this at virtual HWC
#
aaronpk
it's a pretty nice neighborhood :) within 3 blocks there's 2 hardware stores, 3 grocery stores, several bars, a fedex, a post office, and a public transit stop
#
aaronpk
Zegnat: that's not a bad idea
#
aaronpk
at least that way i can make that check super small and leave the radius a little larger for normal "checkouts"
gRegorLove and [eli_oat] joined the channel
#
[eli_oat]
aaronpk! Thanks for updating the docs to quill aaronpk++
[eddie], leg, petermolnar, [shaners], KevinMarks_ and [eli_oat] joined the channel