#dev 2017-05-16
2017-05-16 UTC
# KartikPrabhu yes
# KartikPrabhu wait as in example of srcset usage?
# KartikPrabhu what is picture?
# Loqi It looks like we don't have a page for "picture" yet. Would you like to create it?
# KartikPrabhu yeah, was just seeing if there is something there
[kevinmarks] joined the channel
# [kevinmarks] I have used srcset for high res avatar images
# [kevinmarks] not sure if it's an indieweb example - it has mf2 but it's on a silo
# myfreeweb I use picture for showing WebP instead of JPEG on browsers that support it. I don't think multiple sizes is worth it for photos and such, I just use high resolution with less "quality" – "Compressive images"
# unrelenting.technology edited /srcset (+241) "/* IndieWeb Examples */ add unrelenting.technology" (view diff)
# [kevinmarks] I saw Ben, useful addition
tantek, KartikPrabhu, loicm, cweiske and [kevinmarks] joined the channel
# @WendyandCharles ReadersGazette: BLOG Indie Author Answers by Jim Heskett http://www.thejugglingauthor.com/indieauth/ Get help writing your book #bookbloggers 6 (twitter.com/_/status/864388560715214849)
[colinwalker] and [jeremycherfas] joined the channel
# schmarty Wow, cweiske wasn't kidding. tt-rss no longer supports websub in master https://tt-rss.org/fox/tt-rss/commit/5b6ea1ef914d0d33516ce59df69637576055ce66
# aaronpk Zegnat: this is the guide I followed for it: https://docs.travis-ci.com/user/deployment/google-app-engine/
rMdes1 and KevinMarks joined the channel
# aaronpk cweiske: btw I'm curious about your thoughts on this issue: https://github.com/w3c/websub/issues/106
KevinMarks, KevinMarks_ and singpolyma joined the channel
# ben_thatmustbeme feels like he is talking people down from the ledge when trying to stop people suggesting a distributed account backup / quarum must verify posts type of system
# ben_thatmustbeme a couple people in #mastodon were trying to suggest a system such as this for mastodon... i had to step in once they started to talk blockchain
# ben_thatmustbeme "if an instance goes down my conversation and network isn't lost"
# ben_thatmustbeme i basically said, start simple, like export import for toots / friend list
# ben_thatmustbeme yeah, only problem is if you start doing replication between instances, you are just going to make the load on all of them higher, and make it less likely to have small independant instances
# ben_thatmustbeme exactly
# ben_thatmustbeme they are talking constant communication to back up basically the entire network
KevinMarks and loicm joined the channel
# ben_thatmustbeme ahh, now he is revising it to 'register with multiple instances and it will only replicate those users that are registered'
# ben_thatmustbeme means instances with open sign-up will become half full with just back-up accounts
tantek and KevinMarks joined the channel
KevinMarks joined the channel
# myfreeweb hmm the indieweb plugins for wordpress parsed my reply's date as December 31, 1969 https://mmmicro.eli.li/2017/05/16/220/
# myfreeweb also i got a reply to my reply… that's a wordpress comment without its own permalink (webmention source was the original page with a hash fragment pointing to a comment). that was kinda unexpected :D
# myfreeweb my parser didn't recognize the webmention because the top level h-entry wasn't a reply to me
# myfreeweb I never expected to receive replies that don't have their own actual permalinks
# myfreeweb (actually it's also "h-as-note" without h-entry)
# KartikPrabhu i don't think h-as was meant to catch on
# myfreeweb it's just weird that there's no h-entry
# KartikPrabhu right ^
# myfreeweb https://mmmicro.eli.li/2017/05/16/220/
sknebel_ joined the channel
# myfreeweb supposedly the whole suite
loicm joined the channel
# Loqi h-as was an attempt to explicitly map ActivityStreams vocabulary 1:1 to microformats, and has been largely abandoned since it somewhat duplicates existing h-entry functionality, and also encourages explicit post typing which post creation UIs have largely abandoned in favor of more user-flexible optional properties, and post type discovery for any consuming code that claims to need explicit types https://indieweb.org/h-as
leg joined the channel
[jeremycherfas] and tantek joined the channel
# ben_thatmustbeme lol
# [jeremycherfas] And there was me thinking @zegnat had been helpful.
# ben_thatmustbeme is trying to understand what exactly is the use case
# [jeremycherfas] You certainly do.
# ben_thatmustbeme ah okay
# ben_thatmustbeme *usually* a reply is one single item on the page, which makes it simple
# [jeremycherfas] Yes it is. An on paper, very simple. [name] [mentioned/replied to] this item on [time]. With a link on [name]. And, if it is a reply, a copy of the content below.
# [jeremycherfas] The only tool currently at my disposal is Twig, unless I develop a plugin of my own, which is even more out of my depth.
# Loqi twig may refer to TWiG (This Week in Google), or the Twig (template engine) https://indieweb.org/twig
# [jeremycherfas] Twig template engine
# [jeremycherfas] You guys are going to regret this in Nurnberg
# ben_thatmustbeme but you do have access to a full parser?
# ben_thatmustbeme oh, you are talking publishing
# [jeremycherfas] I believe the file I get has been parsed.
# [jeremycherfas] Yes, I am talking publishing the webmentions I have received.
[shaners] joined the channel
# ben_thatmustbeme okay, so there are 2 pieces you really need, 1, is the author, and 2 is the actual reply correct?
# sknebel yeah, the grav plugin stores the mf2 parser result: https://github.com/Perlkonig/grav-plugin-webmention#receiverfile_data
# myfreeweb comments-presentation+reply-contexts can get pretty complex :D here's my horrible messy template https://github.com/myfreeweb/sweetroll/blob/450170478a074166c9f9a03702242b9bd69c32e4/sweetroll-fe/views/_layout.pug
# Loqi [Sebastiaan Andeweg] At one point yesterday, I understood the difference between IndieAuth, IndieAuth and IndieAuth. I believe I reached that point again, almost. https://seblog.nl/thumbs/2017/134/2/img_8431-1000x1000-blur.jpg
[tamaracks] joined the channel
# myfreeweb that's a pretty standard thing i think. i do this as well, yeah
# Zegnat That’s also another thing you can use me to test. See e.g. https://seblog.nl/2017/04/03/2/ben-je-homo where my photo links to http://vanderven.se/martijn/ while the icon links to the actual repost on https://licit.li ;)
# myfreeweb so it seems the thing you want right now is https://indieweb.org/authorship
# myfreeweb there is a php library mentioned there that finds the correct author of an entry
# myfreeweb (before that, to find the actual entry, just get the first microformat that includes h-entry in its type
# myfreeweb )
# [jeremycherfas] @Zegnat I’ll decide where things link when I can reliably access the data I need. ?
# [jeremycherfas] @sknebel I’m making progress with Twig, can do flow control and some data access.
# [jeremycherfas] Yes, I can easily show the source url, because it has it’s own key:value pair in the data_received file.
# [jeremycherfas] And I can find the author in each of the two examples, but the information is in completely different places.
# [jeremycherfas] Which is where this all strated.
KartikPrabhu joined the channel
# [jeremycherfas] started
# myfreeweb there are websites where finding the author is harder. so you should use the algorithm. and you're lucky because there are existing libraries to do it in your language :)
# myfreeweb before finding the author you need to find the entry itself, simply take the first h-entry in items
# myfreeweb look at https://github.com/barnabywalters/php-mf-cleaner it does that too
# myfreeweb $entry = Mf2\findMicroformatsByType($microformats, 'h-entry') and then $author = Mf2\getAuthor($hEntry) something like that
# [jeremycherfas] @myfreeweb I see what you’re saying, and I’m thinking I will need to develop a plugin to do that, because I cannot actually run PHP in Twig. But that may in the end be the best approach.
# myfreeweb you can extend twig itself https://twig.sensiolabs.org/doc/2.x/advanced.html but yeah extending your CMS might be the better idea
# [jeremycherfas] The dilemma is that the plugin author already has a switch that makes data_received for a specific Grav page available to that page. So if I could just work with that, from within Grav, that would be simplest. Otherwise, I first have to find all the instances in the general data_received file that are relevant to a specific page.
# [jeremycherfas] The plugin author may be willing to consider changes. I’ll just have to see how far I can get.
# myfreeweb in wordpress land, webmention and comments-presentation are different plugins, maybe a separate plugin would be fine
# myfreeweb ah i've heard they both parse mf2 or something, yeah
# [jeremycherfas] It is indeed. The data in the file, shared in the gists, come straight from the Grav plugin
# [jeremycherfas] That sounds like an improvement.
# myfreeweb can you make your plugin read the data after the webmention plugin did its job, pass source_mf2 to the mf-cleaner functions and put their results into new properties?
# [jeremycherfas] Just skimming through the plugin, I’m not actually seeing where source_mf2 gets set. But I’m getting really tired now, so will probably abandon this until tomorrow.
# [tamaracks] From the github project readme, it sounds like the author of the plugin might be open to updates. Looking at his site, I’m not sure he actually uses it.
# [jeremycherfas] I think I’ve roused him a bit.
# [jeremycherfas] I think that the idea of passing the data to that php-mf-cleaner might be an interesting approachy. But not now.
# [jeremycherfas] Thanks. To be continued …
singpolyma joined the channel
gRegorLove joined the channel
# sknebel question regarding /authorship: why is 7.4 the last on case 7? Is the idea that the h-card on the local page isn't necessarily complete, but is a viable fallback if the primary one isn't available for some reason?
jonnybarnes joined the channel
# www.svenknebel.de edited /Homebrew_Website_Club (+6) "claiming Berlin as "established"" (view diff)
[shaners], KartikPrabhu and tantek joined the channel
# Zegnat aaronpk, is the IRC log parsing broken here? https://chat.indieweb.org/2017-05-14#t1494788708633000
# Loqi [[shaners]] `[[http://example.com/photo.png " target="_blank"> http://example.com/photo.png " target="_blank">http://example.com/photo.png " target="_blank"> http://example.com/photo.png ]]` or `[[http://example.com/video.mp4 " target="_blank"> http://example.com/video.mp4 " target="_blank">http://example.com/video.mp4 " target="_blank"> http://example.com/video.mp4 ]]`
# KartikPrabhu yay! now using CSS to display square featured images instead of actually cropping them!
# KartikPrabhu tantek: since you js;dr could you verify that you see square images here https://kartikprabhu.com/articles ?
# KartikPrabhu cool, works without JS on my browser so must be correct :P
# KartikPrabhu now I have to figure out how to do srcset/sizes in article images
# KartikPrabhu thos still use JS for responsive image resizing stuff
[colinwalker], dougbeal|mb1, KevinMarks_, KartikPrabhu, KevinMarks, [chrisaldrich], leg and [kevinmarks] joined the channel