#dev 2018-05-18
2018-05-18 UTC
[Khurt_Williams], strugee, eli_oat, [xavierroy], renem and ben_thatmustbeme joined the channel
[Natris1979], snarfed, cweiske, jjuran, [mrkrndvs] and jgmac1106 joined the channel
# jgmac1106 Am I reading this correctly: https://brid.gy/log?start_time=1526506363&key=aglzfmJyaWQtZ3lyNQsSCFJlc3BvbnNlIid0YWc6dHdpdHRlci5jb20sMjAxMzo5OTY4NjI0MjUwMjk3NTQ4ODAM that the webmention endpoint failed on jgregorymcverry.com
# jgmac1106 Makes sense the other urls I list on Twitter fail but going through my bridgy logs this one worked: https://brid.gy/log?start_time=1526437333&key=aglzfmJyaWQtZ3lyTQsSCFJlc3BvbnNlIj90YWc6dHdpdHRlci5jb20sMjAxMzo5OTY1NTk0NjExMjM4MDUxODlfZmF2b3JpdGVkX2J5XzQ4NDgyOTE3MzEM
# Zegnat Bridgy wants to send a webmention with `https://jgregorymcverry.com/` as the target, and then your WordPress endpoint tells it that isn’t a valid post. Even when I try it manually using the form at https://jgregorymcverry.com/wp-json/webmention/1.0/endpoint
# jgmac1106 what is strange is this was the post.https://jgregorymcverry.com/join-us-for-an-edtech-and-edtechchat-flavored-virtual-homebrew-website-club/
# Zegnat Because the source of the webmention (https://brid-gy.appspot.com/post/twitter/jgmac1106/996862425029754880) doesn’t mention that post at all. So it can’t be sending the webmention there.
# jgmac1106 My Known webmentions don’t even make a log: https://brid.gy/log?start_time=1526556141&key=aglzfmJyaWQtZ3lyTAsSCFJlc3BvbnNlIj50YWc6dHdpdHRlci5jb20sMjAxMzo5OTY1MjY4MDE3NTYxMTA4NDhfZmF2b3JpdGVkX2J5XzIyMjQwNTY0Ngw
# jgmac1106 If anyone has a twitter account and wants to send me a webmention to: https://twitter.com/jgmac1106/status/996564108366540800
# @jgmac1106 I added learner personas to the course template we will use #edtechchat.: https://jgregorymcverry.com/i-added-learner-personas-to-the-course-template-we-will-use-edtechchat/ (twitter.com/_/status/996564108366540800)
jeremycherfas joined the channel
# jgmac1106 would love a webmention test of: It is day five of #IndieWeb WordPress experiment: https://jgregorymcverry.com/it-is-day-five-of-indieweb-wordpress-experiment/ (http://twtr.io/1dyUjY0boRb)
# @jgmac1106 It is day five of #IndieWeb WordPress experiment: https://jgregorymcverry.com/it-is-day-five-of-indieweb-wordpress-experiment/ (twitter.com/_/status/997436440635150336)
[pfefferle] joined the channel
barpthewire joined the channel; mblaney left the channel
# jeremycherfas !tell zegnat I am also not using your `sed` commands but doing it by hand.
# jeremycherfas OK. All done, Ihope.
# jeremycherfas crosses fingers and launches Chrome
# jeremycherfas Ahoy skippy
# cweiske curl -X POST -H 'User-Agent: shpub' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer asdf' -d 'h=entry' -d 'bookmark-of=http://example.org' 'https://commentpara.de/micropub.php'
# jeremycherfas Zegnat There seems to be something very odd about the address I give to Omnibear. I give it http://localhost:8888/offlinepub.test but the browser shows offlinepub.test and says it cannot be reached.
# jeremycherfas err name not resolved
# jeremycherfas Yes. Pretty sure.
# jeremycherfas I'll recheck.
# jeremycherfas Yes. Also in index.html
# jeremycherfas Anyway, I can manually add it. And then I get this error
# jeremycherfas error fetching token
{message: "Error requesting token endpoint", status: null, error: TypeError: Failed to fetch}
# jeremycherfas The POST?
# jeremycherfas I can try.
# jeremycherfas But it doesn't show when I open the background page in Chrome.
# jeremycherfas Huh? I tried without the http://localhost and everything SEEMS to have worked. Omnibear now has the correct token.
# jeremycherfas Let me see what happens when I try to post something.
# jeremycherfas Note posted successfully!
# jeremycherfas I'm astonished.
# jeremycherfas And there it is, under /content/micro/
# jeremycherfas With about 8 minutes to go on my time limit. Seems a good time to stop.
# jeremycherfas Oh, I'm not nearly ready to online yet.
[grantcodes] joined the channel
# [grantcodes] Yay!
# [grantcodes] Those omnibear issues were likely related to my micropub library
# jeremycherfas I liked the way skippy was handling creating the files in his micropub, and I need to adjust that to work with Grav. But at least I now know that I can use your chain to send stuff to the endpoint. The work now will be to make the endpoint add the YAML etc I need for Grav.
# [grantcodes] It does generate some mildly useful errors, but could be improved
# jeremycherfas Everyone++ for their help.
# [grantcodes] I think it's more to do with it being in an extension and it's access to read headers
[keithjgrant] joined the channel
# [keithjgrant] Yeah, I'd love to improve debugging feedback in Omnibear. There's an issue in for it, but I haven't had the time in a while
# jeremycherfas Tomorrow I have to bake bagels. But I may find an hour.
# [keithjgrant] It doesn't help that opening the console & seeing logs there is really complicated in an extension, and varies between browsers
# [keithjgrant] So I'll need to create my own log screen of some sort
# jeremycherfas The worst is that the pop-up inspector closes on success.
# [grantcodes] Ha yeah that is a pain I've run into while debugging
# jeremycherfas So not easy to see what was sent.
# [keithjgrant] There is an option to disable auto-closing
# jeremycherfas There is?
# [keithjgrant] Settings screen 😎
# jeremycherfas How? Where? Why wasn't it obvious?
# [keithjgrant] 3rd checkbox
# [keithjgrant] "close Omnibear window after posting"
# jeremycherfas Yeah, I saw that, but had no idea it applied to the pop-up inspector.
# [keithjgrant] Yeah. The inspector window closes if the page it's inspecting gets closed
# jeremycherfas Well, now we know. Thanks [keithjgrant]
# [grantcodes] Also I think Firefox doesn't do that. I think if you debug an extension in Firefox it opens one console that watches all scripts in the extension and doesn't close. Might be wrong on my understanding of that though
# [keithjgrant] Yeah. Debugging in FF is much easier
# [keithjgrant] All the scripts log to the same window
# [keithjgrant] In chrome, you've got the page script, bg page, and the Omnibear popup, each logging to their own console
# [grantcodes] [keithjgrant] did you also run into the issue of indieauth won't redirect to an extension url, hence the use of the omnibear domain?
# [keithjgrant] That sounds familiar
# [keithjgrant] So what's your extension do? Is it something worth merging into Omnibear?
# [grantcodes] I'm not sure what the end goal is yet to be honest.
# [grantcodes] At the moment it is for inline creating / editing posts
# [grantcodes] But I also want to include bookmark syncing
# [grantcodes] And maybe some more experimental stuff
# [grantcodes] Perhaps merging the inline editing stuff with omnibear would make sense but then it feels quite different, in my opinion it would completely replace the posting UI as have one in the pop-up and one on your site is muddled
# [keithjgrant] @skippy I've merged a PR that I think will fix it. I'll see if I can get a release it with that change soon
renem joined the channel
# @jgmac1106 Hey #edtechchat #digiuri #literacies #digped friends I need your help. Can you read this and then define “webmention?”: https://jgregorymcverry.com/hey-edtechchat-digiuri-literacies-digped-friends-i-need-your-help-can-you-read-this-and-then-define-webmention/ (twitter.com/_/status/997470649818939393)
leg joined the channel
# jeremycherfas is giving himself another hour.
# jeremycherfas And wondering whether to adapt nanopub or micropub to suit his bizarro needs.
# jeremycherfas What is the meaning of the integers in `json_encode($array, 32 | 64 | 128 | 256);`?
# Loqi It looks like we don't have a page for "meaning of the integers in `json_encode($array, 32 | 64 | 128 | 256);`" yet. Would you like to create it? (Or just say "meaning of the integers in `json_encode($array, 32 | 64 | 128 | 256);` is ____", a sentence describing the term)
# jeremycherfas Really appreciating comments in code by dgold
# jeremycherfas OK. So things like JSON_HEX etc etc.
# jeremycherfas Thanks. That bit wasn't making sense to me.
# jeremycherfas No worries. I'm just trying to get a feel for what's going on.
# jeremycherfas Dgold Your nanopub handles all webmention actions as well? I didn't reallse that.
eli_oat joined the channel
# dgold PHP Warning: json_encode() expects parameter 2 to be integer, string given in /Users/aidenmac/play/arraydisp.php on line 87
[pfefferle] joined the channel
# jeremycherfas And you can keep him.
# jeremycherfas Dgold++ for a really intelligible nanopub.
# jeremycherfas Chilean?
# jeremycherfas My goal, for now, is very limited: post Asides (status updates, notes, whatevers) to my Grav site from a client.
petermolnar joined the channel
# jeremycherfas I don't follow the news, as you can tell.
snarfed, maingo and [jgmac1106] joined the channel
# jeremycherfas Grav expects each post to be within a folder. I can create a properly named folder, based on modifying dgold's $udate. But I don't seem to be able to write the file into that directory by changing $fn. Am I better off to try and move the file after it has been written?
# jeremycherfas To put it another way, how do I pass the path as part of the filename? I've tried everything I can think of.
# jeremycherfas Permissions is 755 on the folder
# jeremycherfas Owner is rwe so should be OK
# jeremycherfas I am doing that. Folder gets created just fine, and file gets written to $fn as per your nanopub dgold. But when I try to set $fn = ($path . $frontmatter['slug']) . "item.md"; it borks. But mkdir ($path . $frontmatter['slug']); works just fine
# jeremycherfas $path being hard-coded, for now.
# jeremycherfas Maybe. I'll try some of that.
[Natris1979] joined the channel
# jeremycherfas Well, I'm baffled, so I think I will give up and have a beer.
# jeremycherfas Good night all.
sebsel joined the channel
[cleverdevil] joined the channel
# [cleverdevil] Icro's latest beta supports Micropub.
# [cleverdevil] Though, it requires you to manually paste in endpoint and token.
# [cleverdevil] It'd be great if someone like [eddie] could take their individual components for things like Micropub, Indieauth, and Microsub client libraries, and make them available to iOS developers.
# [cleverdevil] Make it as easy as possible for iOS developers to support the Indieweb.
# [cleverdevil] Awesome.
[eddie] joined the channel
snarfed and renem joined the channel
# KartikPrabhu what is icro?
# Loqi It looks like we don't have a page for "icro" yet. Would you like to create it? (Or just say "icro is ____", a sentence describing the term)
[manton] joined the channel
# [manton] I need to update the docs to better explain the posting APIs. XML-RPC is really just a legacy API to solve 2 things: letting apps like MarsEdit post to M.b-hosted blogs, and letting the M.b app post to WordPress blogs. New clients like Icro can mostly ignore XML-RPC unless they need out-of-the-box WordPress posting.
# [manton] I put Micropub at the top of the "Posting API" help documentation, with XML-RPC at the end. But it's kind of confusing. Room for improvement here. http://help.micro.blog/2017/api-posting/
# @MadTJ84 I was looking at IndieAuth and ran across a nice read -
https://medium.com/samsung-internet-dev/raindrops-on-roses-whiskers-on-kittens-declarative-web-apis-and-truly-serverless-web-endpoints-50d733e6d867 (twitter.com/_/status/997555758966296576)
# loqi.me created /scuttlebutt (+113) "prompted by KartikPrabhu and dfn added by skippy" (view diff)
# aaronpk okay, just read https://www.computerworld.com/article/3244128/security/how-blockchain-makes-self-sovereign-identities-possible.html and I'm pretty sure indieauth would also check all those boxes of "self-soverign identity"
snarfed joined the channel
KartikPrabhu, snarfed, eli_oat and AngeloGladding joined the channel