#dev 2017-08-10

2017-08-10 UTC
snarfed joined the channel
#
boffosocko.com
edited /Mastodon (+305) "changed primary dfn link to generic Mastodon entrance to choose particular instance; pagelogo; tool section; unmung tool; article section"
(view diff)
snarfed joined the channel
#
boffosocko.com
edited /bookmark (+218) "Sebastiaan Andeweg quote about subscribing to own bookmarks in a reader"
(view diff)
eli_oat joined the channel
#
aaronpk
reviews granary docs
#
aaronpk
is using a "borrowed" laptop at the moment so is challenged in making changes to his own website
snarfed joined the channel
#
snarfed
aaronpk: feel free to send feedback on https://granary.readthedocs.io/ if you have any!
#
aaronpk
snarfed: what's the reason granary doesn't include the u-photo inside the atom content?
#
Loqi
[aaronpk] #113 Include mf2 photo in Atom content?
#
aaronpk
has this really not come up before? anyone using granary who's publishing photos as a separate mf2 property and not including the image inside the html content would be hitting this case
KartikPrabhu joined the channel
#
snarfed
i guess it hasn't? honestly that's pretty specific
#
snarfed
again, i'm happy to make any change we decide on. it just sounded like consensus was still kinda weak
#
aaronpk
well i'm struggling to find a case when including the img inside the atom content is the wrong thing to do
#
aaronpk
i mean unless it's in the content already obviously
[miklb] joined the channel
#
aaronpk
RSS an Atom consumers don't currently look for a separate property for the image, so they will not show the image unless it's in the content
#
snarfed
i vaguely actually remember including it originally, and then omitting it for exactly that reason: it was in the content so it got duplicated
#
snarfed
(at least for many/most feeds)
#
snarfed
i'll look
#
aaronpk
i also remember dealing with this issue when writing Monocle
#
aaronpk
my alternate solution is looking really grim, which is to move the e-content class to encompass everything in the post including a lot of the metadata
#
aaronpk
i guess i have another solution which is to move the photo in my posts inside the div with e-content. although i'm not sure if that's going to have any effects on how my CSS is applied
#
snarfed
i'll look into how easily it would be to de-dupe
#
aaronpk
in related news, my HWC project tonight was a complete fail ?
#
KartikPrabhu
I put my u-photos inside <content> for Atom
#
snarfed
aaronpk: aww. what was the project?
leg, eli_oat, KartikPrabhu and [tantek] joined the channel
#
[tantek]
Effects on how CSS is applied? Um aaronpk you're not styling mf2 classes directly are you?
#
aaronpk
No but it has to do with which elements are nested in which containing elements
#
[tantek]
(We know from experience e.g. Wordpress to actively avoid styling mf class names)
#
[tantek]
Also minimize use of nesting in selectors
#
aaronpk
Its partly about wanting the photos to bleed to the edge
#
[tantek]
But yeah I get that there are other scenarios that weakly bind markup and style
#
[tantek]
Yeah I had to use negative margins iirc for that ?
jjuran joined the channel
#
aaronpk
Also it's made more complicate by the variety of kinds of content in my posts s
#
aaronpk
also im not actually sure I want the photo of a photo post to be in the e-content. That still seems wrong
#
[tantek]
Why? It's semantically orthogonal
[chrisaldrich] joined the channel
#
[tantek]
I mean what is the sense of wrongness coming from
#
aaronpk
consuming it
#
[tantek]
Are you writing another reader?
#
aaronpk
this was a huge annoyance when I was writing monocle
#
aaronpk
if the photo is in the content, then there shouldn't be a need to mark it up with u-photo, cause if you do then the photo appears twice in the h-entry
#
[tantek]
This "appears twice" makes lots of implementation assumptions
#
[tantek]
That was back before post type discovery was as advanced as it is now
#
[tantek]
Now there are more options for readers to be smarter in a predictable way
#
aaronpk
i mean it's literally duplicated in the parsed mf2
#
[tantek]
Which is not what users see
#
[tantek]
It's decomposed in the parsed mf2
#
aaronpk
deduplicating it involves parsing the HTML of the e-content which kind of defeats the purpose of mf2
#
[tantek]
And yeah, have you looked at how much duplication there is in your typical atom feed out there?
#
aaronpk
the whole reason Iike mf2 is I don't have to think about HTML anymore
#
[tantek]
Plumbing formats (xml, json, etc) nearly always end up duplicating stuff
#
aaronpk
this isn't about Atom tho, we're trying to do better than that
#
[tantek]
It's unavoidable
#
[tantek]
We're doing way better than atom in lots of ways
#
[tantek]
Avoiding duplication in decomposed dev plumbing formats is nearly impossible though
#
aaronpk
theres also a difference between duplicated properties vs needing to parse an additional format in order to deduce
#
aaronpk
dedupe
#
aaronpk
i don't think it's a good idea to require HTML parsing in order to consume mf2 data since the HTML should have all been converted to a data structure during the parsing stage
#
[tantek]
I don't understand that conclusion either
#
[tantek]
I think you need to write up what the actual problem is. This is getting super abstract with lots of implementation assumptions.
#
[tantek]
Actual problem meaning user facing problem
#
aaronpk
anyway it's bed time
#
[tantek]
I have a feeling one possible actual problem is trying to present photo plus caption consistently in a reader
#
[tantek]
For which we could look at combinations of prior art, e.g. Flickr atom feed plus rss/atom reader - how do they make that work?
#
[tantek]
(Why discussing / documenting "actual" user facing problems are a more effective way to solve this kind of thing, the specifics allow us to look for existing attempts to solve similar problems analyze them)
#
[tantek]
(From a UX / publishing & consuming user flow perspective, instead of being limited by reasoning about plumbing details)
snarfed, jjuran, loicm and j12t joined the channel
barpthewire, jjuran, j12t, [tantek], jeremycherfas, davidmead, [kevinmarks] and mblaney joined the channel
#
mblaney
aaronpk if it helps with your reasoning, you don't need to parse the HTML in this case, just check for the existence of the u-photo string in the e-content... not much of a loophole but maybe enough...
j12t joined the channel
#
mblaney
and I agree that u-photo should be 'flattened' into the content for RSS/Atom, my thinking is that microformats provides the richer vocabulary, and moving to older formats requires simplification. I have the same problem trying to fit h-card into available author fields in SimplePie.
#
sebsel
I have the same problem as aaronpk with u-photo's in e-content and CSS... But I am not going to put my u-photo inside the e-content for now. I agree that it feels wrong.
j12t joined the channel
#
mblaney
sebsel yes I agree but that's why RSS/Atom should be converting it.
#
petermolnar
mblaney u-photo should not be flattened that way
#
petermolnar
it should and an enclosure
#
petermolnar
in my opinion
#
mblaney
petermolnar that's the question I guess, do you try and keep semantics somehow related or just simplify it. The answer might also depend on how well enclosures are supported.
#
petermolnar
unless you're on some truly ancient feed reader, you shouldn't worry about that
#
sknebel
displays differently though, at least in some readers
#
sknebel
(and I'Ve even have examples of the exact same duplication issue: image added to post content and as an enclosure -> shows up twice)
#
mblaney
you might have to worry about the media type in the enclosure? I haven't heard of images in enclosures.
j12t joined the channel
#
mblaney
well I have now then :-)
#
mblaney
petermolnar I think that's a great way to go for converting u-photo to Atom then. (I notice RSS won't work as it requires one enclosure per item, but that's ok.)
#
Zegnat
mblaney where is it specified that you can only have 1 enclosure per item?
#
Zegnat
Is it assumed that you can only have 1 if they don’t specify it?
#
Zegnat
Asking mostly because I seem to recall back in the day Google Reader had no problems with RSS with multiple enclosures
eli_oat joined the channel
#
mblaney
yeah even that link says it's common to have more than one, then goes on to not recommend it...
#
mblaney
so I think it's more just dealing with history and providing minimal support.
#
Zegnat
Upon further reading, yeah, it seems enclosure is for just 1 thing. If you really MUST adhere to that, you can always go with something like http://www.rssboard.org/media-rss to have multiple images included
Defenestrate joined the channel
#
mblaney
this has given me a lot to think about. I'm now wondering how most readers would display images in an enclosure.
#
mblaney
I subscribed to your photo feed in feedly petermolnar, it put the photo at the top of the entry, looked fine. wouldn't know it wasn't part of the content.
#
sknebel
in inoreader it puts it below, but still fine
j12t joined the channel
#
Zegnat
Feedbin doesn’t show any photos from https://petermolnar.net/category/photo/feed/
[kevinmarks] joined the channel
#
[kevinmarks]
(I show audio and video enclosures)
j12t joined the channel
#
aaronpk
petermolnar: do you know of rss readers that show the photo in the enclosure? Manton was saying there weren't many/any that do
#
petermolnar
thunderbird
[miklb] joined the channel
#
sknebel
inoreader, feedly per discussion above
#
aaronpk
That's worth documenting somewhere
#
aaronpk
what is an enclosure?
#
Loqi
It looks like we don't have a page for "enclosure" yet. Would you like to create it?
#
petermolnar
the enclosure tells the mime, the size, and the url
#
petermolnar
I'm surprised it's not used for images widely
#
Zegnat
Maybe because people share a lot of posts with multiple images, and that goes against the 1-enclosure-only rule on RSS?
#
petermolnar
unless it's an 'image' post format, supported by wp and tumblr
#
petermolnar
which is one image
#
petermolnar
and I never had problem with multiple enclosures in the past
#
Zegnat
I seem to remember Google Reader handling multiple enclosures fine too
#
sknebel
An enclosure is a file attached to an entry in an Atom/RSS feed, used, among other things, for [[podcasts]].
#
sknebel
what is an enclosure?
#
Loqi
It looks like we don't have a page for "enclosure" yet. Would you like to create it?
#
sknebel
An enclosure is a file attached to an entry in an Atom/RSS feed, used, among other things, for [[podcasts]].
#
loqi.me
created /enclosure (+132) "prompted by sknebel and dfn added by sknebel"
(view diff)
j12t joined the channel
#
aaronpk
what is FitBit?
#
Loqi
It looks like we don't have a page for "FitBit" yet. Would you like to create it?
#
aaronpk
FitBit is a hardware device and service for tracking [[exercise]] and other physical activity
#
loqi.me
created /FitBit (+121) "prompted by aaronpk and dfn added by aaronpk"
(view diff)
eli_oat joined the channel
#
aaronparecki.com
edited /FitBit (+289) "add heart rate info"
(view diff)
#
aaronparecki.com
edited /sleep (+54) "/* Aaron Parecki */"
(view diff)
[kevinmarks] joined the channel
#
[kevinmarks]
People did pdf enclosures for a while
#
[kevinmarks]
Think that has died out mostly
#
sebsel
lol, I saw aaronpk's Spotify songlist, and it turns out their widget makes requests to 127.0.0.1:4388 to see if Spotify is running
#
aaronpk
i was wondering how that worked
#
sebsel
that could be a strategy for things like indieconfig: run a thing on your own computer under a standard port.
#
sebsel
not sure if that's the best strategy, but it could work
#
aaronpk
yeah the spotify website widgets can control playback on the desktop app, and get info about what song is playing and stuff
#
[kevinmarks]
Does that work on a phone too?
#
aaronpk
on the phone it looks like it just plays it in the browser
#
aaronpk
at least ios
#
sebsel
I don't see any requests to 127.0.0.1 if I open the page on my iPhone (using dev tools on Mac Safari to view)
#
sebsel
So they solve that differently
eli_oat, dgold, j12t, arush and gRegorLove joined the channel
#
www.svenknebel.de
edited /Virtual_HWC (+183) "Discord video/screen sharing beta"
(view diff)
snarfed, j12t, KartikPrabhu and [cleverdevil] joined the channel
#
@adam_baldwin
Update Git. ssh:// url can be abused to run cmds http://marc.info/?l=git&m=150238802328673&w=2 poc: git clone ssh://-oProxyCommand=touch%20foo/github.com
(twitter.com/_/status/895770936070201344)
#
bear
yea, it's a nasty one - v2.14.1 is available now via homebrew and OS package managers
#
bear
there is also one for PHP5 -- https://www.ubuntu.com/usn/usn-3382-1
[miklb] joined the channel
#
[miklb]
bear++
#
Loqi
bear has 17 karma in this channel (190 overall)
KartikPrabhu, gRegorLove, snarfed and mblaney joined the channel
#
gRegorLove
aaronpk: Atlas gives me a 500 when I try to get a map of an address. I used the example on the Static Maps API github. Did the syntax change? http://atlas.p3k.io/map/img?marker[]=location:920%20SW%203rd%20Ave,%20Portland,%20OR;icon:small-blue-cutout&basemap=gray&width=400&height=240&zoom=14