#dev 2018-07-26

2018-07-26 UTC
[eddie] joined the channel
#
[eddie]
Oh wow, NASA blogs support Microformats https://blogs.nasa.gov/insight/
#
[eddie]
nasa++
#
Loqi
nasa has 1 karma
#
aaronpk
What whoa
#
aaronpk
mf2 or 1?
#
[eddie]
Hmmm not sure but it looks good in Indigenius
#
[eddie]
NASA feed in Indigenous https://files.slack.com/files-pri/T03QR2B2T-FBX53HM0S/image_from_ios.png?pub_secret=e4fac47f22&name=Image from iOS.png I added the url to Aperture and it offered a microformats option
#
tantek__
looks like pretty good mf1 - hAtom
#
tantek__
in WordPress
[colinwalker] joined the channel
#
GWG
Anyone with write access willing to approve a review for a PR?
#
tantek__
see if you can get them to support Webmentions eddie :)
#
[eddie]
That would be awesome! Haha
#
Loqi
[dshanske] #89 Fix scope encoding
#
snarfed
GWG! hi!
#
GWG
snarfed: Hi
#
snarfed
we keep seeing more people hit the
#
snarfed
...er, the "no Location header" bug with the wordpress micropub (and maybe indieauth?) plugins
#
snarfed
any chance you could prioritize that before more refactoring work?
#
GWG
snarfed: I'm trying to fix one now
#
snarfed
that one?
#
GWG
I need someone to approve a PR so I can push it
#
snarfed
before that, maybe confirm with someone who hit the bug that it fixes it?
#
snarfed
jhsheridan was here earlier today, hit it, and seemed very technical, offered to help debug
#
GWG
snarfed: I know.
#
Loqi
[jhsheridan] This is the error I'm getting: "There was an error posting the photo to your website. Please check that you're handling the expected parameters and returning the "Location" header and try again."
#
GWG
snarfed: I sent him a message.
#
snarfed
ah, great! ok. sounds like you're already working on that above refactoring. thank you!
#
GWG
snarfed: This bug is generating an error. It looks like the state changes pushed last time introduced it
#
snarfed
bugs generally do generate errors :P
#
GWG
snarfed: I'm troubleshooting a problem right now.
#
snarfed
thank you!
#
GWG
snarfed: This individual gave me access to their site. But this issue is tricky.
[manton], dougbeal|mb1, [jgmac1106], [tantek], mblaney, [kim_landwehr], [chrisaldrich] and [snarfed] joined the channel
#
dougbeal
aaronpk: will Quill request a media scope even if there is no media endpoint?
tantek__ and KevinMarks joined the channel
#
dougbeal
aaronpk: Ah, the wp scope fix fixed everything
[ryan339] joined the channel
#
[ryan339]
whoa I just realized i’ve been using ngrok like a chump this whole time… i didn’t know anything about config files and not having to reboot every 8 hours with their free plan
#
GWG
dougbeal: I need someone with write access to approve.
renem and iambismark joined the channel
#
iambismark
aaronpk: question about quill, its correctly posting the image to my media endpoint, but then once i post the note, it just does a multipart post with the image...
jgmac1106 joined the channel
#
GWG
dougbeal: Are you running the dev version of Micropub?
[dougbeal] joined the channel
#
[dougbeal]
dougbeal: nope
#
GWG
[dougbeal]: Because that has a media endpoint.
[kim_landwehr], [cleverdevil] and [chrisaldrich] joined the channel
#
aaronpk
iambismark: is your media endpoint returning the location header?
#
aaronpk
Try it with Micropub.rocks
#
aaronpk
dougbeal: possibly yes, since there shouldn't be a problem requesting a scope the server doesn't recognize since the server should just ignore it
[matpacker] joined the channel
[jsorge] joined the channel
#
[jsorge]
```
#
[jsorge]
```
#
[jsorge]
var response = HTTPResponse(status: .created) response.headers.replaceOrAdd(name: "Location", value: location) return req.makeResponse(http: response)
#
[jsorge]
Are you using Vapor too?
#
[jsorge]
I got it figured out. In the Vapor response, I’m using the `replaceOrAdd` method on its headers property.
dougbeal|mb1 joined the channel
#
boffosocko.com
edited /on_this_day (+1213) "Chris Aldrich, Colin Walker examples; CMS support for; WordPress plugins"
(view diff)
[chrisaldrich] and tantek__ joined the channel
#
matpacker.com
created /DreamPress (+96) "prompted by gRegorLove"
(view diff)
[xavierroy] and [cleverdevil] joined the channel
#
[cleverdevil]
Turns out the Facebook JSON export is better than the HTML version, and the photos are much higher resolution now in the exports.
#
[cleverdevil]
The bad news is, its not *great*.
#
[cleverdevil]
There isn't much in the way of metadata to determine if a "post" is a status update or a photo or an event, etc.
#
[cleverdevil]
I've written a quick script that uses some heuristics in the form of regex against the "title" property to determine what I am looking at.
#
[cleverdevil]
With that, I've been able to convert like ~70% of the content into workable MF2 JSON.
#
[cleverdevil]
(Mind, this is only for *my wife's* Facebook export... not any arbitrary export).
#
[cleverdevil]
Weaponized regular expressions 😛
#
[cleverdevil]
The "FILTERS" represent content I plan on ignoring, basically. Not content that is worth migrating.
#
[cleverdevil]
Anyway with that, I am going to veg out and then hit the sack. Good night indieweb 🙂
[snarfed] joined the channel
#
tantek__
snarfed, but those phrases seem like useful special post type detectors!
#
[snarfed]
maybe! not my use case there though
#
[snarfed]
or, actually, i guess it is. [cleverdevil]'s too. we just then remove those post types
#
tantek__
the relationship stuff is interesting because it's shared with another profile, joint posts, or perhaps the result of a confirmation
[ryan339] joined the channel
#
[ryan339]
aaronpk: just double checked against micropub.rocks, all the media endpoint tests pass. when I use https://quill.p3k.io/editor, I get the upload to the media endpoint but then it sends the image as a data url upon publish. https://quill.p3k.io/new uploads to the media endpoint but then posts a multipart/form-data
#
[ryan339]
i do see some requests to `GET /path/to/media/enpoint?q=last` that i’m just returning a 400 to…
#
aaronpk
Hm I don't think the editor cares about that
#
aaronpk
The note interface does that query to preload an image like if you post something to your media endpoint from your phone, it's a handy trick
#
[ryan339]
the location urls i’m returning from `POST /path/to/media/endpoint` do resolve (they weren’t before but i patched that up to pass micropub.rocks), but i never see any GET requests for them from quill so i dont see how that would make a difference…
cweiske and leg1 joined the channel
#
www.marcozehe.de
edited /chat-names (+125) "Added myself."
(view diff)
#
@vhendetta
Webmentions: Enabling Better Communication on the Internet #webmentions http://rviv.ly/ARJkKY
(twitter.com/_/status/1022390069691396097)
#
@aamanatullah
Webmentions: Enabling Better Communication on the Internet · An A List Apart Article https://ift.tt/2O3PqXd
(twitter.com/_/status/1022400674129211392)
KevinMarks, [jgmac1106] and jgmac1106 joined the channel
#
@jgmac1106
↩️ Homebrew Website Club Badge _( http://jgregorymcverry.com)_ > This badge celebrates those who attend a Homebrew Website Club. Criteria: Send a webmention and include a link to a photo or chatlog of your attendance at your first Homebrew Website Club. (This… https://www.brid.gy/publish/twitter
(twitter.com/_/status/1022423818541981696)
eli_oat, donblanco, [xavierroy], jeremycherfas and [kevinmarks] joined the channel
#
jgmac1106
If I want to style something and include CSS do I do it after the mf2 or is better to use span and leave mf2 alone? <a class="p-author h-card" href="https://jgregorymcverry.com" style="display:none">J. Gregory McVerry</a>
#
Loqi
Greg McVerry
#
jgmac1106
used a span
#
sknebel
doesn't really matter, mf2 doesn't look at anything outside its class names and contents
#
sknebel
only mportant thing is that it's a bad idea to apply styling directly to mf2 classes
#
jgmac1106
okay I remember [gRegorLove] Sharing how to mf2 and css at same time post, just can’t remeber what wiki it lives on
#
jgmac1106
I think I may stick with using spans in case people copy/paste hoping just to grab the mf2…not like anything is consuming learning events yet…..
jeremych_, KevinMarks_, wagle, [snarfed] and jeremycherfas joined the channel
#
sknebel
[snarfed]: any bridgy CPU stats yet?
[eddie], jackjamieson, [kim_landwehr], donblanco and [cleverdevil] joined the channel
#
gregorlove.com
edited /DreamPress (+41) "dfn, links"
(view diff)
#
gRegorLove
!tell jgmac1106 I don't recall the post you're referring to, but if you're asking about mixing mf2 classes with CSS classes, that's fine. Recommended to put CSS classes first in the space-separated list, to discourage styling based on the mf2 classes.
#
Loqi
Ok, I'll tell them that when I see them next
#
aaronpk
I hadn't thought about putting the css classes first, good idea
jgmac1106, snarfed and jgmac1106_ joined the channel
#
[cleverdevil]
So, interesting question. Trying to figure out how to transform some Facebook export data, specifically for photo albums, to MF2 JSON.
#
[cleverdevil]
Photos in Facebook can have some metadata associated, such as a caption/title.
#
[cleverdevil]
My understanding is that the 'photo' property in MF2 just contains a list of URLs to photos on an h-entry.
#
KartikPrabhu
what is photo post?
#
[cleverdevil]
How might one go about capturing the photo metadata in the MF2 JSON?
#
Loqi
It looks like we don't have a page for "photo post" yet. Would you like to create it? (Or just say "photo post is ____", a sentence describing the term)
#
KartikPrabhu
what is photo
#
Loqi
A photo is a post whose primary content is a photograph or other image, with an optional caption. With multiple photographs it becomes a multi-photo post https://indieweb.org/photo
#
KartikPrabhu
so each photo is its own h-entry with "content" as the caption/title
#
[cleverdevil]
Hmm... seems pretty heavy.
#
[cleverdevil]
And I doubt that, say, Micro.blog would actually support bundling of photos together into a single album in this way.
#
KartikPrabhu
then each photo is its own h-entry with no album structure
#
KartikPrabhu
so each photo is a h-entry, if you want an album structure then the album is its own h-entry with the photo property having nested photo h-entry s
#
[cleverdevil]
It'd be nice if elements in the 'photo' properties array could be JSON dictionaries with a URI and a comment.
#
KartikPrabhu
that is what the above does
#
KartikPrabhu
the photo property of the album is a JSON dictionary of the individual photos as h-entry
#
snarfed
alternatively put the caption in the alt text
#
KartikPrabhu
no! alt text is to describe the images
#
snarfed
not a general recommendation, just a hack for [cleverdevil]'s internal use case here
#
[cleverdevil]
Yeah mostly concerned about getting High-fidelity migration to Micro.blog here.
#
[cleverdevil]
So, I’d really want to do something that Micro.blog actually supports.
[jgmac1106] and [ryan339] joined the channel
#
[ryan339]
does anyone know of a library/tool for “baking” embedded tweets? i.e. running a tweet through a headless browser so their javascript does all of its formatting, etc so that you can then dump the final html in to a static page without loading their javascript?
#
[cleverdevil]
Ah that’s super helpful KartikPrabhu! Now I just need to see if Micro.blog will actually support that.
#
[cleverdevil]
I’m guessing I could ask [manton] 😉
#
KartikPrabhu
[cleverdevil]: also if you use "u-photo h-entry" then the "value" becomes the URL which you might want
[manton] joined the channel
#
[manton]
Micro.blog won't support that kind of structure inside the photo element. I think your best bet is to generate HTML with all the captions and photos. You lose some metadata but you could include MF2 class names in the HTML as well.
[eddie] joined the channel
#
snarfed
[ryan339]: starting with a tweet url or id?
#
snarfed
aww hey KevinMarks_ looks like http://www.unmung.org/ is down?
#
[ryan339]
[snarfed]: either one. my basic goal is to stop loading twitter’s javascript on my site and just do everything at build time…
#
snarfed
yeah feel free to use granary
#
[ryan339]
cool, i’ll poke around with it!
#
aaronpk
yeah i'd say your best bet right now is to treat the album as a "blog post" (article), include html img tags in the contents of the article, and also include mf2 classes so that you can still extract the original info in a machine readable way
#
[manton]
Yep, that will work. Later if Micro.blog or other Micropub servers supported more structured albums, they could be converted. But I think just using HTML is pretty good for this because it's compatible with everything.
#
[manton]
You'll end up with something similar to what Sunlit does for story posts, maybe.
#
aaronpk
there's a couple experiments with collections/albums right now, but none of that is very thoroughly developed yet, so "html+microformats" in a blog post is probably the best/most compatible
jeremych_, gRegorLove, jgmac1106_ and KevinMarks joined the channel
#
[cleverdevil]
I'll likely do a first pass that converts everything to more "standard" and "correct" MF2 JSON, and then have a second pass that takes that, and does formatting and such that makes it publishable to Micro.blog.
#
[cleverdevil]
So, I can use the basic structure here - http://pin13.net/mf2-dev/?id=20180726173429605
#
[cleverdevil]
Then, on second pass, use the media endpoint to upload photos, generate the HTML for the h-entry album post, and then publish that.
#
aaronpk
I would look at the experiments at albums and collections first
#
aaronpk
instead of overloading "photo" like that
#
aaronpk
making "photo" an h-entry is a pretty drastic change
#
aaronpk
if you do insist on that, make sure the "value" of that object is the plain photo URL since "value" is intended to be used as a fallback when the consumer doesn't recognize the nested object
#
[cleverdevil]
Ah, I thought it was something standard-ish based upon the earlier conversation.
#
aaronpk
i've never heard of anyone setting the value of "photo" to an h-entry
#
[cleverdevil]
I hadn't either 🙂
#
KartikPrabhu
totally allowed in mf2 afaik
#
aaronpk
depend on what you mean by "allowed"
#
aaronpk
from the syntax side of course that's fine
#
aaronpk
from the vocab side, there is currently no proposed property of "photo" that is an object
#
KartikPrabhu
in mf2 any property can be a object
#
aaronpk
syntactically yes
#
[cleverdevil]
Is there something on the wiki that captures the collections/albums?
#
KartikPrabhu
what is album
#
Loqi
An album is another name for a collection of photos or songs https://indieweb.org/album
#
aaronpk
but if you look at h-entry, that defines particular properties and values
#
KartikPrabhu
what is collection
#
Loqi
A collection is a type of post that explicitly lists and/or embeds multiple other posts chosen by the author https://indieweb.org/collection
#
[cleverdevil]
Sadly, none of the examples cited on the wiki are really capturing what I'd like...
#
[cleverdevil]
So, that leaves two options that I can think of:
#
[cleverdevil]
1. KartikPrabhu's approach of overloading the photo property with an array of h-entries.
jgmac1106_ joined the channel
#
[cleverdevil]
2. Exporting to an array of MF2 "items": one for each photo, and then a last one that refers to the photos and bundles them together into an album.
#
KartikPrabhu
they are both "overloading"
#
[cleverdevil]
In either case, I'll have to do post-processing to generate a single album "article" so I am not sure it really matters that much.
#
KartikPrabhu
at least my overloading is allowed by the spec
tantek__ joined the channel
#
gRegorLove
micro.blog has albums?
#
aaronpk
you can also have child entries of an entry
#
aaronpk
so you can have an h-entry that is your post, and then a bunch of child h-entrys for each photo
#
aaronpk
that would be the smaller amount of changes to the vocab
#
aaronpk
also that is what would happen if you just put a bunch of h-entrys in your blog post HTML
#
aaronpk
so that seems natural
[manton] joined the channel
#
[manton]
[gregorlove] Nope. Apps like Sunlit that have album-like collections ("stories") just publish as HTML with img thumbnails and surrounding text.
#
[cleverdevil]
Hm, I like that [aaronpk]
#
[cleverdevil]
I could generate it *without* the "content" on the album in the first pass.
#
[cleverdevil]
Then, loop through the "children" in pass two to upload the photos to the media endpoint, and generate the content in that phase, before publishing the album post.
#
[cleverdevil]
(I won't have the URL to each photo until after I've uploaded them to the media endpoint... sort of the biggest chicken/egg challenge here).
#
[cleverdevil]
One question I have is time zone related. In the export from Facebook, everything just has a timestamp (in seconds), but there is no data about the time zone.
#
[cleverdevil]
Should I assume its in UTC, or should I assume its in local time for where the post was created?
#
[cleverdevil]
(I hate time zones...)
#
snarfed
[cleverdevil]: hrm, disappointing. graph api lets you ask for timezone
#
[cleverdevil]
I am not positive, but I am relatively certain that the timestamps are all in local time for wherever the post was made.
#
[cleverdevil]
Which is irritating.
#
[cleverdevil]
Because you have to know where it was made to decode the proper time!
#
[manton]
I think the Instagram export is similar. Really annoying.
#
@ITXcorp
"So what are #Webmentions and why should we care?" #mentions #wordpress #googleplus http://ow.ly/bZwa30l8rdE
(twitter.com/_/status/1022562225071042560)
#
[cleverdevil]
[manton] does Micro.blog support uploading videos to the media endpoint?
#
[cleverdevil]
My wife's Facebook export has a few dozen MP4 videos.
#
[manton]
[cleverdevil] Nope, not yet. Photos or MP3s for now.
#
[manton]
How long are the videos? Videos are the next step, but want to have some limits and I'm not sure what they should be yet. (Not trying to recreate YouTube.)
#
[cleverdevil]
Let me see.
#
[cleverdevil]
She has 140 videos, all less than 2 M
#
[cleverdevil]
So, small 🙂
#
aaronpk
Usually if it's an int it's seconds since UTC
#
[cleverdevil]
I think I am going to assume that, [aaronpk].
#
[cleverdevil]
But, I'll double check.
#
gRegorLove
Is .tube a tld? micro.tube ;)
#
gRegorLove
It could be a Vine replacement
#
dougbeal
What is Vine
#
Loqi
Vine was a service for sharing six-second-long looping videos https://indieweb.org/Vine
#
jgmac1106_
[manton] research on learning says optimal video time <6 min
#
Loqi
jgmac1106_: gRegorLove left you a message 3 hours, 36 minutes ago: I don't recall the post you're referring to, but if you're asking about mixing mf2 classes with CSS classes, that's fine. Recommended to put CSS classes first in the space-separated list, to discourage styling based on the mf2 classes.
#
jgmac1106_
i mean <7 min
#
jgmac1106_
but on YouTube most videos <2 min get the most engagemenet
snarfed joined the channel
#
jgmac1106_
either way if shooting h.264 1080p that still can put you at a over a gig if you split difference and end up at 5 minutes
[kim_landwehr] joined the channel
#
[kim_landwehr]
[manton] is there any update on getting micro.blog to work with Monocle. I am still getting the following error when I try to log in using my micro.blog connected website.
#
[manton]
[kim_landwehr] To be honest I'm still not sure I understand how all of this is connected or what is trying to verify the token.
#
[manton]
You can sign in to Monocle just fine, right, and then it discovers your Microsub endpoint and then Aperture is trying to verify the token...? ([aaronpk] can hopefully jump in here too.)
#
aaronpk
I though that got sorted out before? The problem was a few extra link tags in the micro.blog filter
#
aaronpk
footer
#
[kim_landwehr]
[aaronpk] [manton], the only thing that is in the footer is some webring info and the microsub link to aperature
#
[kim_landwehr]
at least that I can see
#
aaronpk
Okay, what's the error now?
#
[manton]
I think that's all you need. The Microsub link looks good to me.
#
aaronpk
ah sorry, screenshot didn't make it into IRC for some reason
#
aaronpk
so this looks like micro.blog's token endpoint is rejecting the request that aperture makes to verify the token
#
aaronpk
[manton]: did you implement this part of the indieauth spec? https://indieauth.spec.indieweb.org/#access-token-verification basically making a GET request with a token to the micro.blog token endpoint
#
[kim_landwehr]
still getting this error. Monocle appears stuck on loading the channels and when I try Together it comes up but no channels load. So the problem appears to be loading the channels
#
[manton]
[aaronpk] Nope. That must be it. There's no GET for verification. Let me add that and then we can re-test, I guess.
[asuh] joined the channel
[ryan339], leg1, tantek__, jjuran, KevinMarks, gRegorLove and [chrisaldrich] joined the channel
#
@eicker
„#Webmentions: Enabling Better #Communication on the #Internet. Over 1 million Webmentions will have been sent across the internet since the #specification was made a full #recommendation by the #W3C ... in early January 2017.“ http://j.mp/2LaGsJC
(twitter.com/_/status/1022590131230912513)
#
@eickerBEratung
RT eicker: „#Webmentions: Enabling Better #Communication on the #Internet. Over 1 million Webmentions will have been sent across the internet since the #specification was made a full #recommendation by the #W3C ... in early January 2017.“ http://j.mp/2LaGsJC #eicker
(twitter.com/_/status/1022590232183689216)
tantek, KevinMarks and [kim_landwehr] joined the channel
#
[kim_landwehr]
sorry it was time for dinner, [manton] should I retry it
donblanco and [manton] joined the channel
#
[manton]
[kim_landwehr] Not yet. I'm going to try to update this later tonight.
#
[manton]
You can try later or to be safe maybe in the morning. Sorry about the delay! Glad we found out it's my fault, though.
#
[kim_landwehr]
ok no problem, thanks for working on it [manton]. I know how busy you must be
#
[manton]
No problem, thanks for testing this.
[kevinmarks] joined the channel
#
Loqi
https has -1 karma in this channel (3 overall)
[jgmac1106] joined the channel
#
KartikPrabhu
https++ it is good
#
Loqi
https has 0 karma in this channel (4 overall)
#
[jgmac1106]
KarmaFight++
#
Loqi
karmafight has 1 karma
#
KartikPrabhu
karmafight-- no one needs this
#
Loqi
karmafight has 0 karma
[ryan339] joined the channel
#
gRegorLove
incremental++
#
Loqi
incremental has 4 karma in this channel (9 overall)
[miklb] joined the channel
#
[jgmac1106]
Makes sense @kartikPrabhu a true conflict in Karma can only end in balance
KevinMarks, strugee, [matpacker] and [kevinmarks] joined the channel
#
[kevinmarks]
I have spent all day wrangling https for a client. I suppose at least it is billable.
Margo1, [chrisaldrich], phildini1 and jgmac1106_ joined the channel