#dev 2016-07-26

2016-07-26 UTC
ben_thatmust, tantek, chrisaldrich, KevinMarks_ and KevinMarks joined the channel
#
aaronparecki.com
edited /Monocle (+635) "Brainstorming"
(view diff)
chrisaldrich, chrisaldrich1, chrisaldrich_, tantek, cweiske, KevinMarks and KevinMarks_ joined the channel
rMdes, loicm, cweiske and singpolyma joined the channel
#
petermolnar
cweiske, are you around?
#
petermolnar
I think I've made my decision to move my webmention handler out of wordpress
#
petermolnar
and I was looking at already existing solutions
#
petermolnar
are you actively using this lib?
#
cweiske
yes, in stapibas
#
cweiske
and in phubb and in phinde
#
petermolnar
ok, thanks
#
cweiske
(and the constructor)
#
petermolnar
I was thinking to do the same, but instead of putting the received mentions in a db, output them into text files
#
cweiske
you'd just have to provide a different callback instead of DbStorage
chrisaldrich, KevinMarks and tantek joined the channel
#
aaronpk
darn, tantek, now i'm questioning my photo album implementation and it's pointed out a limitation of micropub
#
tantek
huh really?
#
tantek
what's the limitation?
#
aaronpk
if my photo album posts are an h-entry that have several h-entry children which are the individual photos, then...
#
aaronpk
in order to add photos to the album, it would follow that a micropub request would need to say "add this URL to the children of this h-entry"
#
aaronpk
but there's no place to add children, since the micropub request normally manipulates properties of the h-entry
#
tantek
right, we have used h-entry children as an implicit list, rather than having each one be a p-item or u-item inside the parent h-entry
#
tantek
note that we do explicitly list nested comments as their own property values
#
aaronpk
that's true. that's in order to differentiate them from the list of "likes" and "reposts" etc
#
tantek
right
#
aaronpk
just thinking about twitter's multi-photo posts
#
aaronpk
the equivalent h-entry post would be an h-entry with several values for the "photo" property that are URLs to the jpg directly
#
tantek
what is a multi-photo?
#
Loqi
A multi-photo is like a photo post, except just with multiple adjacent photos, either in a series, or tiled / arranged in some layout https://indieweb.org/multi-photo
#
aaronpk
so another way to represent the photo album post would be to have the photo property contain a bunch of h-entry objects instead of just a jpg URL
#
tantek
aaronpk: no need to hypothesize, we have examples :D https://indieweb.org/multi-photo#IndieWeb_Examples
#
tantek
that seems like overloading "photo"
#
aaronpk
it kind of does yeah
#
tantek
though I suppose that raises a different question, which is how is an album qualitatively different from a multi-photo post?
#
tantek
(to be clear I do think they are different)
#
aaronpk
well, if I didn't have to first solve the mf2 representation of this I would post an example on my site :P
#
aaronpk
but my site uses mf2 as storage so...
#
aaronpk
an album is a specific ordering of photo posts, where each photo in the album can stand alone and have its own properties such as name, tags, etc
#
tantek
how did you jump from "qualitatively" to "mf2 representation"?
#
aaronpk
well i wanted to point to an example
#
tantek
so an album is a special case of a collection post?
#
tantek
could always point to a silo example too
#
aaronpk
well here's the kind of thing i'm thinking of from my flickr account https://www.flickr.com/photos/aaronpk/sets/72157634420147440
#
aaronpk
albums have cover photos too!
#
tantek
what is an album?
#
Loqi
An album is another name for a collection of photos or songs https://indieweb.org/album
#
tantek
sounds like that definition could be expanded a bit with a few more specifics beyond "collection"
#
tantek
and clearly needs a "Silo Examples" section with those links!
#
aaronpk
side note, I really like how the flickr API handles specifying the order of photos within an album
#
tantek
interesting - also worth capturing
#
tantek
is that something you think applies to micropub?
#
aaronpk
it certainly could. what's particularly interesting about it to me is that it doesn't require using integers or IDs to make the ordering, and also works on just a subset of items in a collection
#
aaronpk
it would actually work with micropub right now on any property that contains multiple values
#
aaronpk
right now the h-entry vocabulary doesn't really talk about what the ordering of values means, so we haven't had this come up yet
#
tantek
because that's generic to all mf2
#
tantek
which reflects document order
#
tantek
in general, specific vocabularies should minimize what they "talk about"
#
tantek
can you capture that bit of "would actually work with micropub" as brainstorming or how-to on the /album page along with the silo examples and expansion of what an album is?
#
aaronpk
yeah, but we don't even really talk about document order
#
aaronpk
like, does the ordering of the category values mean anything? probably not
#
tantek
the parsing spec does because it works in document order, and adds to item / property arrays accordingly, which are ordered
#
tantek
"mean anything" is completely different
#
tantek
order is preserved from document to JSON representation, that's the point
#
aaronpk
yeah, i just mean that i've never heard any talk about what ordering of those items means, regardless of the json representation
#
tantek
by default implementations seem to preserve that kind of thing for display order
#
tantek
which I think makes sense
#
tantek
I'm not sure what else you mean by "what ordering ... means"
#
aaronpk
the order of photos in an album is significant, since it changes the way someone interacts with the album
#
aaronpk
the ordering of tags is less significant, and i certainly have not used the ordering of tags to mean anything
#
tantek
sure, like the order of paragraphs is signficant :)
#
tantek
anyway, at least capture what you figured out above already.
#
aaronparecki.com
edited /album (+867) "add silo example, expand on flickr albums"
(view diff)
#
aaronpk
back to my current challenge. is an album best represented by having the photos be "children" of the album h-entry? if so, how do I translate that to micropub? if not, is there an h-entry property that makes sense to list the photos?
#
tantek
the larger question there is, would it be generally beneficial for micropub to be able to add/remove from the children of a microformat?
#
tantek
my instinct says yes, in general if there's a capability in microformats, that it would make sense to reflect that in micropub
#
tantek
I think I got that from ben_thatmustbeme
#
aaronpk
yes that's also true
chrisaldrich joined the channel
cweiske joined the channel
#
tantek.com
edited /GitHub (+290) "Criticism Downtime"
(view diff)
#
tantek
^^^ that's what happened when I tried to lookup docs on respec. Yet another silo with random outages.
#
GWG
This may be crazy, but what about using h-feed for a collection of photo posts?
#
Loqi
GWG: tantek left you a message 1 day, 1 hour ago: could you go through previous (incl 2014) IWC NYC FB events (all linked from our wiki pages) and invite the people you met there to IWC NYC2: https://www.facebook.com/events/1219906251394239/ ? Thanks!
#
tantek
GWG feed != collection
#
GWG
Will try tonight
#
tantek
very different semantics
#
GWG
Thus, crazy
#
GWG
But I figured I would point out that it is an assembly of h-entrys
#
tantek
what is an assembly?
#
Loqi
It looks like we don't have a page for "assembly" yet. Would you like to create it?
#
GWG
I didn't want to overuse collection
#
GWG
Series?
#
GWG
What is a feed?
#
Loqi
A feed is a dynamic set of posts, typically listed in reverse-chronological order, often only the most recent n (like 10) of them https://indieweb.org/feed
#
GWG
What is a collection?
#
tantek
GWG a tautaulogy is not a point
#
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
#
GWG
I think the tern I was looking for was set.
#
GWG
term.
#
tantek
in that case then no because collection posts do often have an order semantic, and sets are not ordered
#
GWG
Point taken
#
GWG
I feel that figuring out how to group things together is something that I care about though
#
GWG
But I am nowhere near building them
#
GWG
For example, I would like to get to linking geographical data to notes and photos from a trip create a trip report.
#
GWG
But I haven't gotten the building blocks to be close.
rMdes_ joined the channel
#
GWG
How many people use Bridgy Publish? Silo.pub? Etc.
#
tantek
perhaps ask snarfed via !tell ?
#
tantek
and kylewm too
#
GWG
My immediate plans involve enhancing my workflow to make posting smoother.
#
tantek
that's a really good priority
#
GWG
So that involves a combination of improving my POSSE support, and linking Bridgy Publish to Micropub to expand my ability to have alternative posting UIs.
#
GWG
I wanted to overcome my second thoughts about posting notes.
#
aaronpk
totally
#
tantek
GWG, I greatly sympathize. I would love to hear what kinds of second thoughts you have, as I wonder if I have similar hesitations.
#
GWG
tantek, to quote 1776, "Is anybody there? Does anybody care?"
#
tantek
GWG, perhaps add your thoughts / opinion on that to /publics
#
aaronpk
I'm pretty happy with my posting flow, but I still need to do some work to improve my ability to quickly reply to people
#
GWG
My Twitter POSSE is almost always off on presentation, as is my Facebook.
#
tantek
GWG, I spent A LOT (way too much?) time worrying about my Twitter POSSE presentation
#
tantek
hence the lengthy writeup on /Twitter#POSSE
#
GWG
And if I switch fully to Bridgy Publish, I create an external dependency and I need to migrate my data.
#
tantek
I'm pretty happy with where I ended up
#
tantek
but it did/does mean I wrote/write a lot of custom code to POSSE to Twitter
#
tantek
notes that is. I do my own note POSSEing. I let Bridgy Publish POSSE photos & videos
#
GWG
I am thinking that I need to update my Bridgy Publish code to better understand WordPress
loicm and tantek joined the channel
#
KevinMarks
An example of ordering being preserved being useful is the h-recipe markup
#
KevinMarks
Ordering within a field type is preserved, but not between types
#
KevinMarks
Because key order is not defined, you can't preserve ingredients being before instructions except by convention
#
aaronpk
that's true, the key order does not reflect document order
#
aaronpk
it's also not that important since normally things that consume the JSON know what they're looking for and do things in their own order
#
KevinMarks
And if you interleave ingredients and instructions, they'll get pulled out into their own key list, unless you make them sub recipes
#
KevinMarks
Also, php does preserve key addition order, so if you are working in php you may not see the issues
#
aaronpk
the parser doesn't preserve the document order of the keys though, it adds keys in its own order
#
tantek
kevinmarks how does php preserve property order across properties when there are multiple instances?
#
tantek
makes no sense how that could be possible
#
tantek
also s/field/property please - even if the intent is the same, using the precise terms will help make it clear
#
aaronpk
no he means that an array in php like ['foo'=>'bar','zoo'=>'zar'] will always have the key 'foo' first. that's not true in other languages
#
tantek
s/clear/clearer
#
aaronpk
in particular, Go intentionally returns the properties in random order each time they're accessed to ensure people don't make assumptions about property order
#
KevinMarks
Sorry, mixed up 2 issues there
#
aaronpk
IMO it's not super interesting to talk about mf2 JSON in the abstract anyway.
#
tantek
agreed
#
tantek
at least not here
#
tantek
maybe ok for #microformats
#
KevinMarks
I had this with using Html5lib to parse and fix html, and the property order gets juggled
#
aaronpk
things that consume h-entry comments are expecting a handful of properties and they're going to insert the values into their own HTML templates. so it doesn't matter what order the properties are returned in.
#
KevinMarks
Which makes the diffs noisy as I add more fixes
#
aaronpk
we don't have a lot of examples of things consuming h-recipe so we don't have a lot to talk about there yet
#
tantek
kevinmarks what diffs what fixes? this is too abstract a conversation
#
j4y.co
edited /User:J4y_funabashi (+51) "/* Aruna */"
(view diff)
#
j4y.co
edited /User:J4y_funabashi (+6) "/* Itches */"
(view diff)
Loqi and aaronpk joined the channel
#
tantek
what is RelMeAuth?
#
Loqi
relmeauth is an open source PHP library implementation of the RelMeAuth protocol https://indieweb.org/relmeauth
#
tantek.com
edited /relmeauth (+26) "/* Twitter returning 401 error */ blockquote"
(view diff)
#
tantek
hmm that's not right either
#
tantek
gets lost in the latest rewrite of Twitter's docs
#
tantek.com
edited /relmeauth (+253) "/* Troubleshooting */ update specifics of what Twitter calls things, link to the page to check for a Callback URL, link to more docs"
(view diff)
Loqi, gRegorLove and singpolyma joined the channel
#
gRegorLove
I think that indiewebify.me rel-me verification might be from https://github.com/indieweb/rel-me/blob/master/RelMe.php#L123
#
gRegorLove
Wait, why is a t.co url returning 200? Is that just me? https://t.co/UiRIJnHUfG
#
Loqi
Johan Sundin
#
aaronpk
looks like 301 to me
#
gRegorLove
It redirects for me but inspector is showing 200 and no Location: header. odd.
#
aaronpk
is the "preserve history" checkbox checked?
#
aaronpk
if not it only shows the last request
#
gRegorLove
preserve log, yes
#
gRegorLove
curl shows 301, Chrome and Firefox shows 200. Cache disabled and logging is on.
#
aaronpk
does your address bar show the t.co URL?
#
aaronpk
ah it's user agent sniffing
#
gRegorLove
No, it's going to the destination page, address bar is correct.
#
aaronpk
lol they really mean it. both a <meta> refresh tag, and a javascript redirect.
#
gRegorLove
That's...really weird.
#
aaronpk
oh i know why
#
gRegorLove
Like are there UAs that don't understand 301? Haha
#
aaronpk
it's so your browser doesn't cache the redirect
#
Loqi
nice
#
aaronpk
so that if they want to disable the redirect, they can return a different body
#
aaronpk
the anti-phishing thing that t.co lets them do
#
gRegorLove
If only there were an HTTP status code for a Temporary Redirect
#
aaronpk
maybe browsers cache that too aggressively?
#
gRegorLove
Glad I'm not going crazy, though. Interesting.
#
gRegorLove
So I suspect that's what's happening with the indiewebify.me. It's getting the 200 response from the rel-me lib
#
aaronpk
that seems likely