#dev 2019-12-06

2019-12-06 UTC
#
mblaney
there is this section on the webactions page: /webactions#Issues
#
mblaney
which is similar but not the same as what I was saying, end result is the same though visitor information is discoverable via js
#
mblaney
GWG the visitor needs to tell the website who they are, but that could happen via a form and page reload so yes it is possible.
#
GWG
mblaney: Think people would use it?
#
mblaney
not sure GWG, people seem pretty happy putting webmention url forms on their sites, so maybe?
#
GWG
mblaney: I wonder how many people use them
#
aaronpk
now I need a little micro.blog icon
[tantek] joined the channel
#
GWG
aaronpk: Simple Icons has svg
#
aaronpk
alright it works!
#
aaronpk
[manton]: can you enable it for me now?
[Khurt] joined the channel
#
[tantek]
since no one else posted it, heads-up [fluffy] KarthikPrabhu bear and anyone else using Python: https://twitter.com/adam_baldwin/status/1202273580462948352
petermolnar, imsky and [KevinMarks] joined the channel
#
takev[m]
[snarfed]1: Is bridgy using python2 or 3? I'm setting up my local environment to play around with adding silos.
#
bear
tantek++
#
Loqi
tantek has 26 karma in this channel over the last year (149 in all channels)
gRegorLove and [manton] joined the channel
#
[manton]
[aaronpk] Great, I've enabled the Webmentions. (It's actually set for each feed, and you have 3 feeds configured.)
#
aaronpk
Awesome thanks!
#
gRegorLove
I'm working on IndieAuth for ProcessWire and was wondering if I should add a setting to set expiration time on tokens. Do any other implementations handle expiration/refresh?
cweiske joined the channel
#
jacky
gRegorLove: I asked this before and AFAIK, expiration isn't meant to be a thing in IndieAuth
#
jacky
I had to disable that for Koyp
#
jacky
*koype
#
jacky
However, my clients _do_ support in the case of force logging the user out / flushing sessions
#
gRegorLove
Interesting. I saw it's not in the spec so figured it was "extra"
#
gRegorLove
Same, IBC will send a revoke token request when you log out
KartikPrabhu joined the channel
#
jacky
safer than sorry :)
#
aaronpk
Defer to OAuth guidance on token lifetimes and refresh. There's nothing special about it for IndieAuth
#
jacky
votes to add that to the wiki somewhere
#
jacky
might
#
jacky
hmm more about edge cases to conisder
#
jacky
*consider
#
gRegorLove
yep, was just reading that
#
gRegorLove
I'm doing token database instead of self-encoded
#
gRegorLove
leaning towards non-expiring
[fluffy] joined the channel
#
[fluffy]
[tantek] I saw the thing about the pypi thing yeah. Fortunately it sounds like it didn’t have much reach and it’s good the pypi folks are on top of it.
#
Loqi
[EdwardHinkle] #17 Dealing with Expiring Tokens
chrisaldrich joined the channel
#
jacky
I'm looking into things for Fortress to help enhance auth flows and PKCE looks like the move
#
jacky
also this playground demo >>>
#
gRegorLove
nice, I like the walkthrough
#
jacky
it's super handy
#
jacky
and it's language agnostic
#
jacky
which makes sense
#
jacky
but usually things like this requires me to test it / demo it in a particular language
#
jacky
that said, it looks refresh tokens look very straight forward to implement
jacky1 joined the channel
#
jacky1
is curious if I can chat via Web
#
jacky
oh that's trash lol
#
gRegorLove
I might be convinced to do refresh tokens if any clients start supporting :)
cweiske, vika_nezrimaya and [jeremycherfas] joined the channel
#
vika_nezrimaya
Are there any MF2 parser web services with CORS headers? python.microformats.io doesn't seem to have them
asymptotically, [Rose] and [KevinMarks] joined the channel
#
[KevinMarks]
Does unmung.com work? If not I could add the headers
inkjama, gxt, tahpot9289[m] and [jgmac1106] joined the channel
#
GWG
!tell gRegorLove, jacky I support expiring tokens, but by default all tokens do not expire. I wouldn't mind refresh or expiring as a feature
#
Loqi
Ok, I'll tell them that when I see them next
#
[jgmac1106]
Anyone have a second to look at what I am doing wrong with my layout here: https://jgregorymcverry.com/notes/mynotes2 I have the grid set to 1fr 4fr 1fr and put the notes in the second column, img and videos then set to 90% width of the note
#
[jgmac1106]
yet I can't get the notes to resize proper on smaller screens
#
[jgmac1106]
I think it maybe ling height but I was using viewport for that size: line-height:3.5vmin; so I thought it would adjust
#
[jgmac1106]
I always struggle with responsive text, thought viewport sizes would eliminate media query but maybe not
[Rose], [Khurt], vika_nezrimaya and marinin[m] joined the channel
#
[jgmac1106]
figured it out: went with a 50% onthe 16px set on body
[snarfed] joined the channel
#
[snarfed]
takev: fun! you've seen https://bridgy.readthedocs.io/#adding-a-new-silo ? you'll start with oauth-dropins and granary, which are python 2/3 compatible, so feel free to pick either one for now
[davidmead] joined the channel
#
[davidmead]
[jgmac1106] FYI - the links under the notes are really small and hard to read. Make be scaling those fonts too much
#
[jgmac1106]
good call David Mead, I left a property on the element so I can go back and add some rules
#
[jgmac1106]
should be fixed, not sure if a monthly view will work, may just have to go with a number like 10...worried a monthly view would get too big. Probably publish 40-50 notes a day if I count all my Known posts
#
[jgmac1106]
maybe combine a monthly and day view with a calendar...not sure...will fool around
#
[jgmac1106]
or just convince snarfed that bridgy shoul dpublish link fragments so I don't have to copy and paste every note, then I would arrange by day by default
inkjama joined the channel
#
GWG
I need some JS help
#
GWG
Not my usual area
#
GWG
I am trying to parse a return from an API, but it is failing because inside one of the json strings is a double quote... \" and it's picking it up as the end of the value
#
GWG
I don't know the js functions to reencode
#
aaronpk
JSON.stringify(obj) I think
#
aaronpk
never build JSON strings by hand
#
GWG
aaronpk: stringify converts a json object into a string
#
GWG
I have json in a string already that I pulled from JetBlue
#
GWG
It won't parse because there's a quote inside one of the properties
inkjama and asymptotically joined the channel
#
aaronpk
That doesn't sound right, JSON can contain escaped quotes
#
aaronpk
JSON.parse(str) ?
#
GWG
aaronpk: I can show you the data
#
GWG
There are \" in the description properties
#
GWG
So the parsing is failing
#
jacky
that _should_ be okay tho
#
Loqi
jacky: GWG left you a message 4 hours, 41 minutes ago: I support expiring tokens, but by default all tokens do not expire. I wouldn't mind refresh or expiring as a feature
#
jacky
I can parse that in jq locally
#
GWG
Odd...it fails on Tasker
#
aaronpk
Yeah thats valid JSON
#
GWG
Then why is it failing at the exact point of the quote?
#
aaronpk
Maybe tasker's JSON parsing is broken?
#
GWG
Probably
rustik, [tantek], vika_nezrimaya and marinin[t] joined the channel
#
GWG
Okay, think I got it
rustik joined the channel
#
marinin[t]
GWG: were you trying to parse a literal string?
#
GWG
I had to learn to use Xmlhttprequest to retrieve over the built in function
#
GWG
marinin[t]: Something on the Tasker side was messing up the output
#
GWG
It was a learning experience
#
GWG
Unfortunately, this means I can only track the flight from Utah to California. But there's always the return
[Rose] joined the channel
#
Loqi
[WICG] ScrollToTextFragment: Proposal to allow specifying a text snippet in a URL fragment
#
jacky
it's like anchor linking but way less precise
#
jacky
or rather more precise
#
aaronpk
is this google's version of fragmention?
#
aaronpk
what is fragmention?
#
Loqi
A fragmention is an extension to URL syntax that links and cites a phrase within a document by using a URL fragment consisting of the phrase itself, including whitespace https://indieweb.org/fragmention
#
Loqi
[WICG] ScrollToTextFragment: Proposal to allow specifying a text snippet in a URL fragment
#
jacky
it seems like it!
#
jacky
I thought WICG === w3c which is more community than corp?
#
aaronpk
looks like google brought it to WICG
#
aaronpk
they've been working on this themselves for a while
#
jacky
ahhh gotcha
kemyd joined the channel
#
GWG
Okay, a little more automation going on here.
gRegorLove, jeremycherfas and [schmarty] joined the channel
#
[schmarty]
does anybody have a command line utility set up to run the php-mf2 parser on a local file?
#
aaronpk
I think the php parser has it in the repo
#
aaronpk
`cat file.html | ./bin/parse-mf2`
gRegorLove joined the channel
[tantek] joined the channel
#
[schmarty]
haha, uh, it seem to not be parsing anything. just getting empty items, rels, and rel-urls... 🤔
#
aaronpk
it reads from stdin
#
[schmarty]
yep. i'm cat-ing an html file w/ markup into it
#
aaronpk
hm that's what I just did
#
[schmarty]
haha i think the script as it is on github only reads the first line of the file: https://github.com/microformats/php-mf2/blob/master/bin/parse-mf2#L31
#
[schmarty]
replacing that fgets(STDIN) with file_get_contents("php://stdin") did the trick. 😂
#
aaronpk
[schmarty]++
#
Loqi
[schmarty] has 10 karma in this channel over the last year (75 in all channels)
#
[schmarty]
🛠 pull request made
#
Loqi
gRegorLove: GWG left you a message 9 hours, 24 minutes ago: I support expiring tokens, but by default all tokens do not expire. I wouldn't mind refresh or expiring as a feature
#
Loqi
does a happy dance!
#
gRegorLove
Need to update the Travis CI for php-mf2
#
gRegorLove
I'll try to work on that this weekend
[benatwork], wink and chrisaldrich joined the channel