#dev 2019-03-09

2019-03-09 UTC
iasai joined the channel
#
[eddie]
!tell gRegorLove Here is my JavaScript API Wrapper if it helps your research at all: https://github.com/EdwardHinkle/bookmark/blob/master/src/lib/goodreads.ts
#
Loqi
Ok, I'll tell them that when I see them next
#
snarfed
bad news, LinkedIn backfeed looks pretty unlikely. API is only for advertisers. https://github.com/snarfed/bridgy/issues/166
#
Loqi
[snarfed] #166 add LinkedIn support
iasai and djmoch joined the channel
#
aaronpk
Oh darn
#
aaronpk
swentel: I think someone had a proposal for alt text in photos in form encoded? I think actually micro.blog shipped something for that
#
gRegorLove
Goodreads 1 API call per second is limiting for any potential PESOS service :/
#
Loqi
gRegorLove: [eddie] left you a message 1 hour, 13 minutes ago: Here is my JavaScript API Wrapper if it helps your research at all: https://github.com/EdwardHinkle/bookmark/blob/master/src/lib/goodreads.ts
#
gRegorLove
Not impossible, just limiting
#
gRegorLove
Thanks, [eddie]
#
gRegorLove
I think an mvp that I could make would let you specify one of your shelves to monitor. It would poll that every so often and send micropub requests for books you add.
ichoquo0Aigh9ie, gRegorLove and [eddie] joined the channel
#
[eddie]
Ohhhhh, yeah that’s not a good API limit
[tantek], anth_x1, chrisaldrich, [eddie], treora and [Rose] joined the channel
#
@deller_casey
FREE 2-day Shipping: E ngineered for performance JL Audio's CP208LG-W3v3 MicroSub enclosed subwoofer system delivers impressive bass without needing a lot https://www.crutchfield.com/I-rTWTcVSL/p_13628LW3V3/JL-Audio-CP208LG-W3v3.html
(twitter.com/_/status/1104280451081035776)
#
jeremycherfas
Working on my listens script in a spirit of collegiality
[Rose], barpthewire, [kevinmarks], swentel, leg, KartikPrabhu, jjuran, [jgmac1106] and [eddie] joined the channel
#
sknebel
!tell swentel: re formencoded alt-text: I think micro.blog does between the app and the site with some custom way, but there is no standard (again the idea that more complex demands use JSON)
#
Loqi
Ok, I'll tell them that when I see them next
#
jgmac1106
is there anyway to tell macos to never use the quoations with serifs and always use th straight quotations? I can’t figure out the pattern of when which quoation mark type gets chosen…trips me up sometimes..not often, but bugs me
[Rose] joined the channel
#
Zegnat
Edit -> Substitutions -> Smart Quotes
#
Zegnat
Is where you toggle what I think you find an annoying feature
#
Zegnat
But it will do it for all text, not based on fonts
#
Zegnat
never lets the OS decide about quotes and writes them all manually
#
Zegnat
(Specifically because ‘UK English’, “American English”, ”Swedish”...)
#
[jgmac1106]
perfect thank you....just spent an hour fixing a bunch of broken urls because I had one curly cue and one straight quote
#
[Rose]
How can I see what error OYG is encountering?
#
Zegnat
Not sure that you can
#
[Rose]
Darn. Now I need to hunt around and find out where the error is ending up on my server.
iasai, [jgmac1106] and [Rose] joined the channel
#
[Rose]
(It was a semi colon, for the curious)
iasai, [kevinmarks] and jdpinto joined the channel
#
Zegnat
shakes fist at random semicolons
iasai joined the channel
#
[Rose]
Own Your Gram likes me again
#
Zegnat
yeay! :)
iasai joined the channel
#
[Rose]
(Because it can post, that's apparently required)
#
Zegnat
Are those the icons GWG is using?
JohnE1 joined the channel
#
jacky
is not sure
iasai and [manton] joined the channel
#
[manton]
Looks like a nice resource. Also excited to see Micro.blog's icon in the list!
[eddie] joined the channel
#
jacky
hrm should ownyourgram be asking for the 'upload' scope?
#
jacky
I've been hardening my scope -> micropub endpoints
#
jacky
and now OYG won't work since it only wants create posts
#
sknebel
jacky: it should ask for "media"
#
jacky
lol I'm wondering if I could just "add" it on my end (like giving my apps more scope control after the fact)
#
sknebel
although according to the wiki, "create" typically implies "media", and media is interesting for clients that shouldn't be able to make posts, but can upload media
#
jacky
hmm that feels a bit overload-y no?
#
jacky
for 'create' to hold 'media' as well
#
jacky
(granted there's no common language on scopes IIRC)
#
jacky
I take that back
#
jacky
but it's not like required to align to those
[kevinmarks] joined the channel
#
aaronpk
We should try to create common scopes wherever possible, but your site is always able to create its own policies esp if your auth endpoint gives you a UI to tweak what scopes are issued to an app
#
jacky
Hmm okay
#
GWG
Zegnat, those are the icons I use
#
Zegnat
Knew I recognised the link :D
snarfed, [eddie], gRegorLove, tw2113, swentel, [dougbeal], KartikPrabhu and chrisaldrich joined the channel
#
Zegnat
The current session about post type testing made me realise I need to update the mf2 JSON description and my matching JSON validation schema... That is one thing I will be doing tomorrow.
KartikPrabhu and [grantcodes] joined the channel
#
[grantcodes]
Zegnat: I use the schema you and [cleverdevil] made in my micropub endpoint to reject things that are completely invalid at least
#
Zegnat
They can definitely be good first filters
snarfed joined the channel
#
[grantcodes]
Yep, but I don't know how much use they would be in the tests we were describing in the last session. Since I think a mf2 parser should return valid mf2 json anyway
#
[grantcodes]
I can't remember if json schema has the idea of properties being recommended but not required, will need to look into that
#
Zegnat
It has the idea of properties being optional
#
Zegnat
But that might only work when you do not allow any undefined properties, which you probably want to do anyway for future compatibility
#
Zegnat
Alright, I think I only found 2 cases that I didn’t have documented on the mf2 JSON page, so my schema shouldn’t be *that* out of date
#
Zegnat
jacky, in case you hadn’t seen it, at some point I wrote up http://microformats.org/wiki/microformats2-json describing JSON. That page is also the one that links to mf2 validation schemas at the bottom
#
Zegnat
*describing mf2 JSON
[pfefferle] and [Rose] joined the channel
#
swentel
aaronpk, ::isURL() in XRay\Formats\Mf2 now wants a domain with at least a dot in it. Would you consider allowing domains without a dot? Use case is that the testbot on drupal.org runs on a hostname like 'drupaltestbot12345'
#
Loqi
swentel: sknebel left you a message 9 hours, 37 minutes ago: re formencoded alt-text: I think micro.blog does between the app and the site with some custom way, but there is no standard (again the idea that more complex demands use JSON)
#
swentel
another way would just swap that class out during tests of course heh :)
#
aaronpk
oh hm yeah I can probably open that up
#
swentel
need to run, will open a request tomorrow
[pfefferle] joined the channel
#
gRegorLove
chrisaldrich, out of curiosity I was looking into Kindle notes options some, found some services that process the MyClippings.txt file, like https://www.clippings.io
#
gRegorLove
So there may be some more indieweb-ish sharing options we could make
#
jgmac1106
I have a page where I took back my kindle notes
#
jgmac1106
Its pretty easy to read the source code from the html pages of your notes
#
gRegorLove
Did you use MyClippings.txt?
#
gRegorLove
Oh, on an Amazon.com page?
#
jgmac1106
yeah, lookinf for the link, I logged in read source, copy pasted and add all my kindle notes
#
gRegorLove
Do you do that periodically or was it a one time thing?
#
gRegorLove
manual until it hurts, heh.
#
jgmac1106
yeah copy.tidy html.post
#
jgmac1106
no that isnt it
#
jgmac1106
..well somewhere on my website it has been done
tw2113_too and tw2113 joined the channel
#
sknebel
hm, I really should get my AutoAuth test "post" up to date to the spec if it isn't yet... gonna review that first
#
Zegnat
I want to do the same for my autoauth proxy, so people could theoratically test their own stuff with it
#
sknebel
really should give it it's own identity then though
#
sknebel
(I think right now it acts as you?)
#
Zegnat
Good point, yes, it is probably hardcoded to be me
#
Zegnat
I guess everyone will just have to add me to all their audiences for testing purposes ;)
#
sknebel
and everyone can read all messages that are actually to you with it, is the bigger concern I have
#
Zegnat
I’ll have to use the Swedish Royal Library policy: anything sent to me will be publicly archived for all eternity
[tantek] joined the channel
#
sknebel
okay, I think my test endpoint still matches the spec (if you think otherwise, feel free to ping me to review, I might very well have missed something). need to add some better debug messages though
[dougbeal] joined the channel
#
gRegorLove
jgmac1106, made some progress on grid gallery: https://gregorlove.com/iwc-online-2019.html
#
gRegorLove
Mostly working ok in IE, need to add a polyfill for object-fit.
#
gRegorLove
this one has links, too. Thinking I'll do a lightbox to view the image larger
#
gRegorLove
Looking good!
#
jgmac1106
I switched to using figures rather than divs, working on guestbook now, want to figure out how to get the fig caption to hover as schmarty does
#
gRegorLove
That's a good idea. I might use figure too
#
gRegorLove
jgmac1106, I've got a CSS-only hover effect on this mockup: https://gregorlove.com/archives.html
#
jgmac1106
worse case scenario I just put figcaption under for now but was thinking if I made <figure> a grid with three rows and then figcaption in a row 3 I have lowe third
#
jgmac1106
that same code is commented out in what I copied from your website
#
gRegorLove
No, archives.html is slightly different. The line you want is `.grid-item a:hover~.grid-date`
#
jgmac1106
.grid-item a:focus~.grid-date,
#
jgmac1106
okay will use that to hack around…need a break from the guestbook, but first game of chess with my kid
[grantcodes] joined the channel
#
[grantcodes]
In an indieauth helper library does it make sense to require a developer to input a scope if they do `response_type=code`. I know it is optional, but it seems like it would be good to sort of force developers about what scopes they request
#
sknebel
I think that makes sense
#
aaronpk
I would worry that if you force them to enter a scope and they don't understand what it is for, they'll just type the first thing that makes the error go away
#
sknebel
same applies for "they get a default scope and it isn't enough for something they want to do" then?
#
[dougbeal]
Has anyone integretated websub with static site build? Seems like there could be potential
#
[grantcodes]
Is a random string better than no scope though?
#
sknebel
(admittedly, never been a fan of "default scope" being a thing, because sensible defaults depend on the application)
#
[grantcodes]
I'm not going to check what the scope is on my end, just that one exists and leave the server up to actually handling it
#
aaronpk
i'm more worried that every app is going to request "create" scope or something since it's the most common and probably the first one you find if you start looking for examples
j12t joined the channel
#
sknebel
is it a meaningful difference if requests a create scope (and maybe is lucky and it's a Micropub client and actually wants that scope, otherwise it fails once it tries to do something) or if it requests a default (and maybe is lucky and the default fits what it wants (e.g. "create" :D), or otherwise it fails)?
#
aaronpk
I think "no scope" should mean no scope, not default scopes
#
sknebel
" If the client omits this value, the authorization server MUST use a default value."
#
aaronpk
well let's do a survey and see what servers actually do
#
[grantcodes]
Haha I seem to dug up more of a debate than I thought there would be...
#
GWG
Anyone have a function that normalizes ISO8601 date formats?
#
sknebel
selfauth refuses requests ommiting the scope parameter
#
sknebel
wordpress defaults to "create update"
#
GWG
Yes, but you can still uncheck it
#
sknebel
ah, good point - and checking nothing fails the request it seems
j12t, tw2113_too, jjuran and tw2113 joined the channel
#
gRegorLove
It took me a while to catch onto this, but Goodreads API is basically their regular URL structures + a query string with your API key
#
gRegorLove
So that might explain some of the limitations, e.g there isn't a dedicated page for your reading status updates, just your profile page
#
GWG
Okay. Dates normalized
#
GWG
aaronpk: Would you be able to comment on this? https://github.com/dshanske/parse-this/issues/37
#
Loqi
[jackjamieson2] #37 Search and aaronparecki.com
#
aaronpk
I don't think aperture is looking for rel=feed at all
#
GWG
aaronpk: Back to my obsessive find as much as possible nature?