#dev 2018-11-02

2018-11-02 UTC
[cleverdevil] joined the channel
#
[cleverdevil]
Pass in any arbitrary domain, this will parse for relme links, and pull the person's name from their hcard, and generate a JSON output containing a mapping of that domain to all of their identities, and how to "mention" them in plain-text and HTML on that service.
#
snarfed
ooh cool!
#
snarfed
[cleverdevil]++
#
Loqi
[cleverdevil] has 40 karma in this channel over the last year (75 in all channels)
#
[cleverdevil]
(Only handles a few services at the moment... Twitter, Micro.blog, GitHub, Keybase, Instagram, and LinkedIn)
#
[cleverdevil]
Its in PHP, so I could merge this into Known as a helper class somewhere, and then use it to implement what I am wanting.
#
jacky
definitely useful for building a nickname cache
#
jacky
[cleverdevil]: do you even need the HTML if it's mostly the same? it seems like the text would be the more "dynamic" bit
[schmarty] joined the channel
#
snarfed
alternatively include a url field for the silo profile url
#
[cleverdevil]
Good ideas. Gotta run to a family thing. I’ll tinker more later πŸ˜€
[kevinmarks] joined the channel
#
[kevinmarks]
Gets confused by kevinmarks.com
snarfed joined the channel
[cleverdevil] joined the channel
#
[cleverdevil]
Added the "url" key.
#
[cleverdevil]
Looking at the two sites that it didn't pick anything up from.
#
[cleverdevil]
(Its using the version of php-mf2 bundled with Known)
#
[cleverdevil]
May be out of date.
#
[cleverdevil]
Fixed [gRegorLove]'s
#
[cleverdevil]
(My regex wasn't case insensitive... oops!)
KartikPrabhu joined the channel
#
[cleverdevil]
Now I've broken it again, haha... working on it.
[eddie] joined the channel
#
[eddie]
Regarding pet names and nicknames cache. My site recognizes and displays pet names. (See Mom, Dad and Ash pet names on this post: https://eddiehinkle.com/2017/12/07/16/checkin/) real names would be Sarah, Dean and Ashley.
#
[cleverdevil]
Yeah, kevinmarks.com totally explodes.
#
[eddie]
My site supports pet names both for @-mentions and person tags
#
[cleverdevil]
Not sure why.
#
[cleverdevil]
Hmm... Known can't even fetch the site.
#
[cleverdevil]
Works on every other site I try.
#
[cleverdevil]
Ah... "Connection timed out after 5000 milliseconds"
#
[cleverdevil]
Yup, can't even curl your site from my server [kevinmarks].
#
gRegorLove
Hehe, capital R strikes again :)
#
[cleverdevil]
I am able to get it to work if I use http://www.kevinmarks.com
#
[cleverdevil]
Of course, it improperly discovers your h-card then, assigning you the name "Chris Messina"
#
[kevinmarks]
it should redirect
#
[cleverdevil]
It looks like you're on S3, and I am fetching from an EC2 instance, so it may be somehow oddly related.
renem joined the channel
#
[kevinmarks]
is this like google appengine not being able to crawl itself?
#
[cleverdevil]
Feel free to provide feedback!
#
[kevinmarks]
my h-card is inside the h-feed, so you don't see it and get Messina from the bottom
#
[kevinmarks]
you'd have the same problem with an h-card on a post
#
[cleverdevil]
Shouldn't your h-card be up at the root level on your domain?
#
[cleverdevil]
How am I to know which h-card is yours?
#
[cleverdevil]
I suppose I could match the urls.
#
Loqi
[indieweb] representative-h-card-php: Given a parsed mf2 document, return the representative h-card for the page
#
[cleverdevil]
That fixed it.
#
[cleverdevil]
[kevinmarks]++
#
Loqi
[kevinmarks] has 8 karma in this channel over the last year (31 in all channels)
#
jacky
wait random
#
jacky
does quill not follow redirects?
#
jacky
er rather (and this is on my livestream atm lol)
#
jacky
like for micropub, I returned a 307 to upgrade a request to TLS and it considered that an error
snarfed, KartikPrabhu and [asuh] joined the channel
#
Zegnat
jacky it could be 3xx are unaccepted. Micropub standard doesn't specify having to follow redirects, so clients may treat those as non-conforming endpoints.
#
Zegnat
Not sure if there was an issue for it. You can file one so we can have a linkable discussion about it.
mblaney joined the channel
#
mblaney
oooh I didn't know firefox had a native json viewer... thanks for triggering that realisation cleverdevil!
#
mblaney
I'm going to switch my microformats query form to display that by default :-)
[tantek], [sebsel] and calumryan joined the channel
#
aaronpk
jacky: how’d you end up advertising an http url for your micropub endpoint? If you tell quill your endpoint is https then it won’t have to redirect
#
aaronpk
I don’t think asking clients to retry a post when they get a 307 is very nice as that’s a bit of additional code and logic to handle in the client
[schmarty] and swentel joined the channel
#
swentel
GWG, pushed a new release which includes the altitude, let me know how it goes
#
swentel
can't be at the camp unfortunately, had to cancel my trip :(
#
GWG
I won't be at altitude till I leave Berlin
#
GWG
swentel, was looking forward to seeing you. Sorry to miss you
#
swentel
hehe yeah berlin is pretty low I guess
cweiske joined the channel
#
GWG
swentel, it will store it, just not display it
#
GWG
I set it to only display over 500m
#
GWG
I should customize that
#
Loqi
it is probable
#
swentel
well, I'm not even storing it yet, but I think the format will be ok, let me know if I pass it along badly
#
GWG
swentel, will be testing a few things that I might need you for
#
swentel
ok, I'll be online the next days
#
swentel
working on the drupal side of things mostly (want indieauth in)
#
swentel
and finishing the microsub server
#
swentel
well, at least v1
#
GWG
I have to track down a timezone issue
#
GWG
I can only test those out of my zone
#
swentel
I've seen weird things in the timelines
#
swentel
especially with hour notation
#
swentel
things like 24:33
#
swentel
that's stupid haha
#
GWG
Not that, my code is supposed to recognize when the timezone doesn't match my default and change the display
#
GWG
swentel, how does Indigenous send in dates? does it add the offset?
#
GWG
I need to look at the raw data.
#
swentel
good question
#
swentel
let me check
#
swentel
mmm so dates are only on events right
#
swentel
so this is the format: yyyy-MM-dd'T'kk:mm:00Z
#
swentel
so basically zulu time
#
swentel
might need some revision I guess
#
swentel
hates dates
#
GWG
Could you localize?
#
GWG
I can open an issue
#
swentel
yeah, even the IDE tells me I should localize
#
Loqi
[swentel] #108 Prettify dates and also fix hour notation
#
swentel
that's related to the timeline
#
Zegnat
That's something I need to work on too. I want my client to send along my phone's local timezone.
#
swentel
but it more or less has the same problem
#
swentel
my ide also tells me there I should use the phone local timezone
#
swentel
which is a different function
#
swentel
so probably the same for input
#
Zegnat
What's the plan for this weekend, GWG, what is getting built?
#
GWG
Added, but that's a display issue
#
GWG
Not sure
#
swentel
yeah, it's a display issue in the timeline
#
swentel
yet still confusing at some times
#
swentel
I first thought it might have been something at the server level
#
swentel
but I have the same with my microsub server
#
swentel
so it's def indigenous
[tonz] joined the channel
#
GWG
swentel, my request is a post issue
#
GWG
I know Quill does that, as I tested originally with it
#
GWG
My code, if I use my post editor, does it if the location is somewhere else, but it isn't converting Micropub
#
GWG
I need to fix that
#
GWG
I have been manually fixing it
#
swentel
GWG, does quill send a date for every post type ?
#
GWG
Yes, I believe so
#
GWG
Publish date
#
GWG
Do you not?
#
GWG
If so, the backend figures it out based on current time
#
swentel
I only send dates on events (start and end)
#
swentel
so yeah, at drupal side, I also set it based on current time
#
swentel
however, interesting
#
swentel
you might want to anti-date of course
mblaney joined the channel
#
swentel
never thought about that
#
swentel
that's definitely a separate issue
#
GWG
Issue filed
#
GWG
It would allow for future dating posts
#
GWG
As well as past dating
#
GWG
Worth always sending
#
swentel
yep, makes sense
#
swentel
need to open issue at the drupal side too
#
swentel
it never ends :)
#
GWG
swentel, welcome to my world
#
swentel
I'm used to it working on drupal core and contrib hehe
[sebsel] joined the channel
#
Zegnat
goes to find a seat with outlet at the airport to make his client submit full localised timestamps.
#
Zegnat
I think I've found what I am working in this weekend. Ha!
#
GWG
What?
#
Zegnat
My micropub client
#
Zegnat
Though part of me wants to work in private feeds...
#
Zegnat
s/in/on/
#
Zegnat
I really believe the draft done in NΓΌrnberg could work well for private feeds. Want to do some initial implementing to see how it feels. But that also only makes sense if I can get multiple people onboard.
#
sknebel
Unless I get a better idea tomorrow, sure!
#
Zegnat
πŸ‘ two possible projects for me then.
[tonz], [kevinmarks], [tantek] and [jgmac1106] joined the channel
#
GWG
Finding a lot of bugfix opportunities as I travelogue
[tonz], [kevinmarks], KartikPrabhu, [sebsel], eli_oat, dougbeal|imac, [schmarty] and [frank] joined the channel
#
[frank]
[sknebel] You use Inoreader as well right? Do you have an idea what would be a frictionless way to post something from Inoreader to my Jekyll-based blog (via Github) both from the active searches, individual posts etc? Perhaps add some own thoughts etc.
calumryan and [jgmac1106] joined the channel
#
[jgmac1106]
[frank] I use inoreader and I never discovered away. Ended up starting to use [aaronpk]'s Aperture
#
[frank]
Hahaha... that sounds promising [jgmac1106] I know click through to the actual page and use Omnibear to bookmark/repost on my blog.
#
Loqi
hehe
[eddie], snarfed, calumryan and [tantek] joined the channel
#
[frank]
[jgmac1106] I've been thinking about using the Broadcast possibility. This builds an RSS feed I could use as input for some service to post to my site. But I get stuck in these moving parts...should I use micropub to post then? Something else? Build it or fork it? Which one? All these open ends!
#
[jgmac1106]
[frank] yeah all my class feeds are inoreader so I can embed feeds on my site
#
[jgmac1106]
try aperture and indigenous first, I need to try the broadcast, but yeah I click on link to web, copy url, and then use somethign to publish from inoreader
#
[jgmac1106]
[jackjamieson] working ion micrsub and Yarn for WordPress, @swentel has a Drupal implementation
#
[frank]
I don't really like the share-sheet from Indigenous. When I choose bookmark, it immediately sends the info to my site without a possibility to edit or anything else.
#
[jgmac1106]
file a a feature request issue...super responsive team
#
swentel
hmm yeah, that's an easy option to add
#
swentel
to expose the bookmark share
#
swentel
and not send it per direct
#
[frank]
I see Inoreader does support custom sites with some URL variables. I might want to look into that. As some sort of remote IWC Berlin project. Even though I have a family that needs some attention this weekend and there is a craftbeerfestival around the corner... πŸ™‚
#
[frank]
That would be cool
#
swentel
you could just turn it off and then use the indigenous share option
#
swentel
but then you need to select the right post type first too
#
swentel
which is an extra step of course
#
swentel
feel free to open a request, can go in soon that one
[schmarty] joined the channel
#
[frank]
How do you mean turn it off? In the iOS share sheet?
#
swentel
I maintain the Android version :)
#
swentel
[eddie] does the iOS version
KartikPrabhu and jgmac1106 joined the channel
#
[eddie]
Improving the bookmark is definitely something I need to do
#
[eddie]
I can increase the priority if you find bookmarks not useable in it’s current state, [frank]
calumryan, jackjamieson and [tonz] joined the channel
#
[frank]
That's up to you [eddie]. I don't mea to bring any developer in stress mode because of me not liking something... I'm too modest for that πŸ˜‰
#
[eddie]
haha, understandable. But it’s good to get feedback πŸ™‚ I have literally over 100 potential features on the list, some big and some small. Knowing what will be most beneficial to people who have downloaded and used Indigenous is helpful to narrow the focus
sebsel joined the channel
#
[frank]
Well... the bookmark part is kinda bugging me. Indigenous is the only option right now as an app to publish to my site from iOS. Besides the webbased Quill and going through burning hoops with Editorial, Working Copy and some witchcraft...
#
[eddie]
That’s great to know. The best workflow in your mind would be something like this? Select bookmark, it parses the page for mf2 and displays the primary mf2 for a book (title, photo, content if it’s a note), if no mf2 just grabbing the page title.
#
[eddie]
Then putting those values into a couple fields so you can edit it
#
[eddie]
and have a submit button?
#
[eddie]
Then it would essentially send Micropub JSON with an embedded h-cite with the values
calumryan joined the channel
#
[frank]
That would be awesome!
eli_oat, [eddie] and snarfed joined the channel
#
[eddie]
Great πŸ™‚ I'll give that a high priority of the list of short-term improvements
#
snarfed
apropos of nothing, but i've managed to keep my bill for all indieweb stuff i run, bridgy + granary + indiemap etc, down below $50/month for the last 5-6 mos. pretty proud of that.
#
snarfed
dropping FB on bridgy definitely helped some, but even excluding those users, bridgy consistently costs < $.01/user/month for backfeed users (since their polling is what costs. publish and hosted blog users are basically free.)
#
snarfed
</humblebrag>
[schmarty] joined the channel
#
[schmarty]
snarfed++ very nice!
#
Loqi
snarfed has 69 karma in this channel over the last year (116 in all channels)
snarfed1 joined the channel
#
jacky
aaronpk: I don't know my site's hostname out of the box (it's running from within a container so it thinks it's http://localhost:4000) so I take in a provided host name and rewrite to be the 'expected' hostname
#
jacky
I can update the logic on my side to fix that though
#
jacky
so like koype on my laptop runs under Docker and I'd reach it from http://localhost:4000. But when I hit Quill, I'm hitting it via ngrok so its hostname is https://235f79da.ngrok.io
#
jacky
there's no "rewriting" that's done from ngrok -> local so this is more of a me thing than anything else
#
aaronpk
quill has a setting to tell it what its base URL is
#
aaronpk
in the config
jackjamieson, swentel, [eddie], [schmarty], eli_oat and [kevinmarks] joined the channel
#
[kevinmarks]
Svgshare.com is ticking up again. I need to have a look at it at some point.
snarfed and [cleverdevil] joined the channel
#
[cleverdevil]
Thanks for the feedback everyone on my tinkering with "nicknames" yesterday. I've updated a ticket in Known with details on how I could see this improving Known in general - https://github.com/idno/known/issues/1992
#
[cleverdevil]
We'll see what [benwerd] has to say πŸ™‚
#
Loqi
[cleverdevil] #1992 Better support for @-mentions across platforms.
snarfed, jgmac1106, Elementalen3rgY, swentel and KartikPrabhu joined the channel
[tantek], jgmac1106, snarfed and [cleverdevil] joined the channel
#
[cleverdevil]
Hey, [aaronpk], should I open an issue in Aperture for this? - https://github.com/cleverdevil/together/issues/20
#
Loqi
[cleverdevil] #20 Photos from source not loading
#
aaronpk
does jsonfeed say anything about relative URLs?
#
aaronpk
if not, open an issue on the spec there first. I am not clear whether this is considered valid HTML for a jsonfeed item.
#
[cleverdevil]
So, I opened a related issue and PR on JSONFeed - https://github.com/brentsimmons/JSONFeed/pull/116
#
Loqi
[cleverdevil] #116 Clarify relative references in on `img` tags
#
[cleverdevil]
But, its been open forever.
#
[cleverdevil]
It said nothing before, and my PR simply says that relative URLs *may* be used.
#
[cleverdevil]
Mostly because its already out in the wild with people using it that way.
#
aaronpk
more importantly it says what they should be resolved against
#
aaronpk
which is the item url not the feed url
#
aaronpk
which is not obvious
#
aaronpk
ok in that case open an issue on xray which is the thing that's parsing the jsonfeed
#
[cleverdevil]
!tell manton Think you could get this resolved?
#
Loqi
Ok, I'll tell them that when I see them next
#
[cleverdevil]
!tell manton Think you could get this PR merged? https://github.com/brentsimmons/JSONFeed/pull/116
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[cleverdevil] #116 Clarify relative references in on `img` tags
#
[cleverdevil]
Roger, wilco.
jgmac1106, snarfed, KartikPrabhu and [chrisaldrich] joined the channel