#dev 2019-02-18

2019-02-18 UTC
#
aaronpk
Pixelfed is like mastodon where you shouldn't need a new account for it. In theory if yo user up bridgy fed on your site then people can follow your photos from pixelfed. I'm not sure how well this works in practice yet tho.
[kevinmarks] joined the channel
#
[kevinmarks]
!tell kartikprabhu https://kartikprabhu.com/articles/marginalia is giving me no text in chrome
#
Loqi
Ok, I'll tell them that when I see them next
#
KartikPrabhu
[kevinmarks]: happens with my entire site once I switched to using CSS grid
#
[kevinmarks]
that seems unfortunate
#
KartikPrabhu
if you click around a bunch of times so it selects some text, or press F12 to bring up dev tools it will appear!
#
[kevinmarks]
I toggled Mercury Reader and now I have it without CSS, which is amusing
#
KartikPrabhu
Chrome's CSS grid is very borken
#
[jgmac1106]
Yeah finding Chrome doing weirdest things with Grid
#
KartikPrabhu
well I'll fix it when all borwsers switch to the Blink engine ;)
#
KartikPrabhu
Firefox++
#
Loqi
Firefox has 1 karma in this channel over the last year (2 in all channels)
#
[kevinmarks]
I've been using simple grids with the grid-template-areas: map thing
KartikPrabhu and snarfed joined the channel
#
@alexbuzzbee
I've set up #IndieAuth on my personal site. Now on the two sites that support it I can log in using myself as an IDP.
(twitter.com/_/status/1097325846988292098)
oodani joined the channel
#
@jgmac1106
There isn't an easy way for all the blogs of #OER to talk. We can build really cool classroom spaces using post types like read, listen, watch, reply and bookmark. can credential using webmention badges. can export xAPI with a tiny bit of work (https://quickthoughts.jgregorymcverry.com/s/1fMvvN)
(twitter.com/_/status/1097365437136990211)
[tantek], tomasparks, KartikPrabhu, [dave], [eddie], astrojuanlu[m], [kevinmarks], [Vincent], [adam], swentel, Dhewya and [dhewya16] joined the channel
#
[dhewya16]
[dhewya16] set the channel topic: IndieWeb development-focused chat - logs at https://chat.indieweb.org/dev/today - bridged with #indieweb-dev in IRC
#
@jgmac1106
↩️ bunch of of us working on #IndieWeb suite tools for activist crowd. I can publish events, RSVP, and connect with webmentions not on Facebook. (https://quickthoughts.jgregorymcverry.com/s/Pnxpz)
(twitter.com/_/status/1097461627216113666)
Yeshu, barpthewire, nloadholtes_, jgmac1106, nloadholtes, [kevinmarks] and [adam] joined the channel
#
[adam]
Can I ask how some people model webmentions in their platforms / sites? In particular I’m thinking about being able to build threads
#
[adam]
I reply to someone on Twitter -> I can show their tweet and my reply. if someone replies to me, Bridgy sends me that, I display that, all good. but I reply to _that_, that’s going in a separate note
#
[kevinmarks]
several people show a reply context above so you can see what the in-reply-to is pointing at
#
[kevinmarks]
others show a full thread, but that requires more notification cooperation
#
[kevinmarks]
the mastodon markup for it is pretty good
#
[kevinmarks]
what is reply context?
#
Loqi
A reply context is the display of what a reply post is in reply to, including linking to that original post with in-reply-to markup, showing some amount of that original post like author name, icon, summary / ellipsed content, and datetime published https://indieweb.org/reply-context
#
[kevinmarks]
what is salmention?
#
Loqi
Salmention is a protocol extension to Webmention to propagate comments and other interactions upstream by sending a webmention from a response to the original post when the response itself receives a response (comment, like, etc.) https://indieweb.org/Salmention
#
[kevinmarks]
not sure if people are still actively working on that
[Rose] joined the channel
#
@tomcritchlow
↩️ Yeah - tough to build and manage though. Next I want to build webmention into the wiki for a slightly social experience. http://Are.na does a pretty good job here but it makes me nervous not being self hosted
(twitter.com/_/status/1097495991278845953)
#
[adam]
It should be possible by chaining in-reply-tos in theory. Bridgy is already doing the original post discovery for me
#
[adam]
It’s really just about showing the replies underneath replies - more of a display issue than a functional one
[Vincent] joined the channel
#
@jgmac1106
↩️ We can send webmention badges from the #IndieWeb wiki. Sometimes a little recognition goes a long way in supporting gardeners.Might be something to fool around with. (https://quickthoughts.jgregorymcverry.com/s/1plbgB)
(twitter.com/_/status/1097497448006725632)
[jgmac1106] joined the channel
#
[jgmac1106]
[adam] yes my Known site during in educational twitter chat
#
[jgmac1106]
also have some WordPress examples...ohh crapppp.forgot I need to fix my redirects....
#
[jgmac1106]
that nav aint perfect could benefit from rel prev and next: https://quickthoughts.jgregorymcverry.com/2019/02/16/story-of-jamaican-music
#
Loqi
[Greg McVerry] Probably the best four disc box set in history. Tells the story of a music, movement, and people over a four album set.
#
[jgmac1106]
but if you click through the comment permalinks all the webmentions are changed. Wish the genesis post displayed them and they stacked
#
[jgmac1106]
no it would be first post with all threaded webmentions down to to the last one
#
[adam]
I suppose that’s a challenge, how do you find the first post? And also filter replies that branch out
#
[adam]
I guess first post is the either the one you’ve viewing or the the one that you’re viewing is in reply to... people can climb further if needed
#
[adam]
It’d be nice to solve this in a way that others could copy. If I do something arbitrary it’s only so helpful
#
[jgmac1106]
It does thread on Twitter perfectly though
#
[jgmac1106]
...if I remember...takes 7 clicks to accomplish, want it down to one
#
Zegnat
That is where salmentions would come in: when you get a comment and add it to your page, you send a new webmention to the thing you were replying to so they can also come and fetch it
#
[jgmac1106]
and this solves discover first post issue
#
[jgmac1106]
its a different button]
nloadholtes_ joined the channel
#
[jgmac1106]
zegnat or any php wizards would love an eye on this https://gist.github.com/jgmac1106/fc680e2bf6436a37a3fce699b81e9a9b its really my first attempt with php
#
[jgmac1106]
I always edited around it not the php itself
#
@tomcritchlow
↩️ @jgmac1106 Thanks - been trying to get my head around webmentions for a while and still haven't figured it out....
(twitter.com/_/status/1097500872224002048)
#
Zegnat
The PHP there seems fine, it really doesn’t do a whole lot other than write whatever got posted into HTML.
[kevinmarks] joined the channel
#
@jgmac1106
I need to play Battleship with my son but here is an example of a webmention badge form the wiki back to my blog: https://indieweb.org/toolbuilder-badge-jgmac1106 and then displayed: https://archive.jgregorymcverry.com/badges/ think there is mad potential for community and wikis with webmention… https://quickthoughts.jgregorymcverry.com/2019/02/18/i-need-to-play-battleship-with-my
(twitter.com/_/status/1097501944774569991)
#
jgmac1106
so how do I put that into an HTML page?
#
GWG
Morning all
#
GWG
I am thinking of making an unexpected change in my lineup
#
Zegnat
jgmac1106: you are putting it in HTML, but I am guessing you mean something different.
#
Zegnat
Do you mean saving it as a separate HTML document?
swentie joined the channel
#
jgmac1106
no that is what I mean, just didn’t know if it worked. I can just drop that in do I make <form action="guestbook.php" match the hml page it would be on?
#
jgmac1106
I want both the forms and all the entries on the same page
#
jgmac1106
a basic single page guestbook, maybe I should just do this in javascript
#
jgmac1106
today’s mission was to try and just write the files, sounds like I got that part done
#
jgmac1106
so thanks for looking at it for me
swentel joined the channel
#
Zegnat
I am still not clear what you want to do. Neither PHP nor JavaScript is going to automatically store any data. If you want the form to be submitted and then stored on the server, you will need to have server-side storage code
#
[jgmac1106]
I see thank you, now I have tomorrow's task to learn. Thx for looking at the templates
#
[jgmac1106]
and now i have to give up my computer for Carmen San Diego...PESOS DOS save files somehow
eli_oat, [schmarty], tomasparks, nloadholtes_, [tantek] and nloadholtes joined the channel
#
[tantek]
We really should add some sort of size reporting to IndieWebify.me tests of home page, post permalink etc
#
aaronpk
Interesting idea
dougbeal|mb1, [Rose], [schmarty], [davidmead] and eduardm joined the channel
#
GWG
I had to change one line in my location code, and I felt bad about sending out an update just for that to everyone, so I'm building a feature.
#
[tantek]
also for IndieWebify.me, # of first-level additional HTTP requests (i.e. requests you can discern by mere source inspection, e.g. all link rel-stylesheet, img src, object data, iframe src etc.)
[Rose], KartikPrabhu and gRegorLove joined the channel
#
GWG
Am I better off, I wonder, finally building venues or building anonymous zones?
leg, snarfed, swentel, eli_oat and [kevinmarks] joined the channel
#
Zegnat
Hmm, this CMS looks interesting. The page suggests to me the CMS pages are generated based on the HTML rather than the other way around. https://www.vapid.com/
ichoquo0Aigh9ie joined the channel
#
[tantek]
what is an anonymous zone?
#
Loqi
It looks like we don't have a page for "anonymous zone" yet. Would you like to create it? (Or just say "anonymous zone is ____", a sentence describing the term)
#
jacky
another CMS option https://www.sanity.io/
#
jacky
(I really like the site's use of space)
[asuh] joined the channel
#
dougbeal
GWG: I really want venues ;)
[davidmead] and [schmarty] joined the channel
#
GWG
Hides actual location automatically if within a radius
#
[tantek]
what is a geofence
#
Loqi
It looks like we don't have a page for "geofence" yet. Would you like to create it? (Or just say "geofence is ____", a sentence describing the term)
[Rose] and [jgmac1106] joined the channel
#
[jgmac1106]
!tell eddie what am I missing to be able to post images with Indigenous iOS on Known https://blog.kevo.glass, the image icon greyed out
#
Loqi
Ok, I'll tell them that when I see them next
#
GWG
tantek, yes. It is geofencing I was talking about earlier.
#
[tantek]
what is geofencing
#
Loqi
It looks like we don't have a page for "geofencing" yet. Would you like to create it? (Or just say "geofencing is ____", a sentence describing the term)
#
GWG
Geofencing is a virtual geographic boundary that triggers actions when entering/leaving it.
#
GWG
So, I want my site to automatically hide my exact location when I post from Home and just show the word Home
#
GWG
So, I can implement that either as a geofence around a single point... I would call that a zone
#
GWG
Simple implementation
#
aaronpk
Flickr has this
#
GWG
Or the more complex venue...
#
GWG
I have been avoiding writing venues
#
GWG
But if I write these geofenced zones, they would conflict with venues later the way I designed the features in my head
#
GWG
One would be an option/setting, the other a data structure
#
GWG
So that is my dilemma
#
GWG
Do I build the simple feature or not?
#
GWG
Especially since I have been to talking about the more complex one for a while.
#
aaronpk
I don't really see why those conflict
jgmac1106 and [eddie] joined the channel
#
[eddie]
!tell jgmac1106 if the image icon is grayed out that probably means you don’t have a Media Endpoint. That reminds me I need to add non-media endpoint functionality in the near-ish future
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[eddie]: [jgmac1106] left you a message 1 hour ago: what am I missing to be able to post images with Indigenous iOS on Known https://blog.kevo.glass, the image icon greyed out
#
GWG
aaronpk, so, you'd implement two features that work differently that track locations?
#
donpdonp
as an aside, id really like it if there were an open database for 'venues'.
#
aaronpk
openstreetmap?
#
donpdonp
yea thats prob the best option. i get the feeling its not particularly complete, but usable.
#
aaronpk
GWG I just mean that it sounds like you can do both, I dont see why they have to be mutually exclusive or two separate features
#
GWG
aaronpk, they don't need to be
#
GWG
That's the problem. If I build the geofencing into the venue concept, then it is neater, but if I build it separately, it is simpler to implement just the geofencing
#
aaronpk
I think I have a fix for the aperture bug that I created last week
#
aaronpk
probably should not deploy this from the plane again tho
jgmac1106 and KartikPrabhu joined the channel
#
aaronpk
on to a different project
#
aaronpk
css is so hard
#
aaronpk
I also keep running into this problem with author h-cards
#
aaronpk
I often want the photo to be a sibling element of the name in order to get the CSS to work right
#
aaronpk
I can usually pull it off with some "clever" floats and negative margins but that feels fragile and wrong
#
[tantek]
I hear JS makes CSS easier 😉
#
[tantek]
aaronpk do you have a rough sketch of what you're trying to do?
#
[tantek]
like what aspects are you trying size / align across?
#
aaronpk
KartikPrabhu: I think flexbox is exactly what doesn't work in this case
[keithjgrant] joined the channel
#
aaronpk
obvs the date shouldn't be inside the h-card, but a flexbox solution would cause that
#
[tantek]
where should the date go?
#
aaronpk
I got this to work with float:left and a negative margin on the image
#
aaronpk
the date is the dt-published so it needs to be a child of the h-entry not the h-card
#
KartikPrabhu
aaronpk: so you want the positioning to be as in the screeshot but not have the dt-published inside the h-card?
#
aaronpk
correct
#
[tantek]
ahhh interesting
#
KartikPrabhu
aaronpk: this is probably from your site yes?
#
aaronpk
the same pattern applies on my "like" posts which I am now trying to recreate for all my posts, where the author photo hangs off the left of the text https://aaronparecki.com/2019/01/21/4/
#
aaronpk
it seems like a flexbox layout would make more sense but I need the photo and name to be in the same h-card element
#
KartikPrabhu
CS grid with display:contents on the h-card should work
#
KartikPrabhu
but that depends on how much nesting you are doing with <div>s
#
[tantek]
"photo hangs off the left of the text" I think needs float. or grid with some negative bottom margin
#
aaronpk
if I describe it that way yeah but if you look at it it's really a two column layout
#
KartikPrabhu
[tantek]: I think grid has the ability to hang without negative margins
#
[tantek]
so maybe grid then
#
[tantek]
I thought you could put grid-items inside a grid at different "levels" of the markup nested inside the grid
#
KartikPrabhu
[tantek]: oh no!
#
aaronpk
I do really need to get better at cssgrid. I don't really have a good understanding of it
#
KartikPrabhu
Grid only lays out direct children in the Grid layout
#
[tantek]
maybe I am thinking of subgrid
#
KartikPrabhu
yes, which is not a thing yet :P
#
KartikPrabhu
I work around it using display:contents but that has some side-effects with nesting and fragments
#
aaronpk
now let's see if I can cram a full h-card into just an img tag
#
aaronpk
er, <a><img></a>
[grantcodes] joined the channel
#
[grantcodes]
Oh, new version of the postrchild bot is up. Not sure how well it works, but it is a bit smarter now 😄
#
[tantek]
aaronpk you can definitely do that
#
aaronpk
oh dear, I think the php parser is swapping the order of things
#
aaronpk
lemme make a small test case
#
aaronpk
the h-card gets put after the plain URL value
#
gRegorLove
I think there's an issue for that
#
aaronpk
I will fix my markup to not include the redundant h-card anyway
#
Loqi
[sknebel] #212 wrong order of property values (if nested object is present?)
#
KartikPrabhu
wait when did that plain url become a thing!?
#
KartikPrabhu
oh wait nvm
#
KartikPrabhu
has forgotten parsing rules now
#
swentel
Hmm, do we have a service somewhere that would return me the author of a url ? specifically, I need the author main image. I don't want to write a mf2 parser in java :(
#
aaronpk
ah cool
#
[tantek]
what is xray
#
Loqi
XRay is an open source API that returns structured data for a URL by parsing microformats and following other indieweb algorithms, and is part of the p3k suite of applications https://indieweb.org/XRay
[kevinmarks] joined the channel
#
swentel
hmm that would give me a feed, but, to be me more specific, I need the h-card for the owner of the site/url
#
swentel
I guess I could loop over that json, but not ideal
#
GWG
swentel, what for?
#
swentel
GWG, revamping the Indigenous UI. With a drawer, which shows the author info at the top (a bit like gmail)
#
[tantek]
swentel pretty sure XRay will give you authorship info
#
GWG
swentel, the new Gmail for Android?
#
aaronpk
swentel: is the microsub server not giving you enough info?
#
aaronpk
that kind of thing was supposed to be left up to the microsub server to avoid exactly the problem you said "I don't want to write a mf2 parser in java"
#
GWG
I wasn't, but I fixed that on the back end
#
swentel
aaronpk, that's totally fine. See the screenshot. I want to display more information about the account/url you are authenticated with (name, author, image)
#
aaronpk
ah sorry slow internet here
#
swentel
heh no worries :)
#
aaronpk
omg this is worse than medium
#
aaronpk
why does an image sharing website need to send me notifications
#
KartikPrabhu
I asked the same thing
#
GWG
swentel, why can't you query the backend for that?
#
aaronpk
ah I see what you're doing! that should actually be part of the indieauth flow
#
aaronpk
the indieauth server should be able to give you that info
#
swentel
mm yeah, makes sense
#
GWG
aaronpk, how?
#
aaronpk
there are two places I would add this in the flow. the step that returns you the token currently also returns the "me" url, and that's a good place to also return a full h-card
#
aaronpk
second, the token endpoint can return the h-card when it's queried using a token, since it also currently returns the "me" url given a token
[asuh] joined the channel
#
aaronpk
this is basically equivalent to openid connect's "userinfo" endpoint so there's precedent here
#
GWG
I am happy to implement that
#
swentel
mm yeah, that would help, and it makes sense to ask the indieauth server indeed
#
GWG
Is it best in both places or just one?
#
aaronpk
I think both, not sure yet
#
aaronpk
apps that are doing purely login, not getting a token, will only talk to the authorization endpoint, so they'd need it from there
#
aaronpk
or actually
#
aaronpk
this is more like the "profile" scope in openid connect
#
aaronpk
needs some more thought
#
aaronpk
but basically the two use cases (login only, vs getting a token for micropub/microsub stuff) need to be able to get that info somehow
#
GWG
aaronpk, need to look up the profile scope then
#
aaronpk
yeah that might be the way to go
#
GWG
A scope?
#
GWG
I would imagine you don't always want to share as much
#
aaronpk
yeah, depends on whether name + photo are considered something people may not want to share with the site they're logging in to
#
aaronpk
(additional profile fields are treated separately in openid connect, like email and address info, so should also be separate here too)
#
GWG
aaronpk, varies doesn't it?
#
aaronpk
well it's only important if someone wants to be able to choose on an app-by-app basis which apps get to see that info
#
aaronpk
if you never want to share that with any apps then your server can just never return the info
#
aaronpk
(e.g. it becomes a server config issue not a spec issue)
#
GWG
aaronpk, seems easy enough to implement
#
aaronpk
yes should be
#
aaronpk
i'll have to add a microformats parser and h-card finder to tokens.indieauth.com so that it can do it for people's arbitrary sites, but when a site has a built-in indieauth provider it should be straightforward
#
GWG
aaronpk, will you have a profile scope?
#
aaronpk
probably not since my name and photo are public