#dev 2017-02-18

2017-02-18 UTC
[keithjgrant] joined the channel
#
[keithjgrant]
Why do you need to verify the code, before then requesting a token (http://indieweb.org/obtaining-an-access-token#Token_Endpoint)
#
[keithjgrant]
wouldn't receiving a token w/ the expected "me" verify that the code is trusted?
#
tantek.com
edited /quotation (+160) "Brainstorming / Falcon / link to working on subsection"
(view diff)
#
tantek.com
edited /quotation (+268) "/* Bridgy */ provide summary of the markup that Bridgy Publish is looking for"
(view diff)
[kevinmarks] joined the channel
#
[kevinmarks]
Verifying gives you the me url to use, right? Eg if there are multiple users for the domain
#
aaronpk
[keithjgrant]: the section you linked describes how to build a token endpoint
#
aaronpk
if your token endpoint and authorization endpoint are part of the same system then you don't need to use that API to verify it, but the token endpoint is going to have to verify the token somehow
#
aaronpk
i will note that in the page
#
aaronparecki.com
edited /obtaining-an-access-token (+404) "/* Token Endpoint */ clarify"
(view diff)
#
tantek.com
edited /Falcon (+642) "/* quote posts */ capture a bit more brainstorming"
(view diff)
#
gregorlove.com
edited /quotation (+189) "/* Quote entirety with commentary */ Note Bridgy Publish support+date, my example+date"
(view diff)
[keithjgrant] joined the channel
#
[keithjgrant]
...so if I'm coding an app, and I am authenticating against indieauth.com, it redirects back to my app's redirect_uri with a `code` in the GET params
#
[keithjgrant]
I need to use that code to get an `access_token`, correct?
KevinMarks joined the channel
#
[keithjgrant]
(then use that token to post to a micropub endpoint)
#
aaronpk
you exchange the code for an access token at the token endpoint
#
aaronpk
if you're building an app, you don't have to worry about how the code is verified, that's just business between the token endpoint and the thing that generated the code
#
tantek
"Smart Search Field: [x] Show full website address"
#
tantek
(from Safari > Preferences > Advanced )
[chrisaldrich] joined the channel
#
loqi.me
created /laptop (+86) "prompted by tantek and dfn added by tantek"
(view diff)
#
aaronpk
huh this is harder than I thought. how can I find all emoji in a string?
#
tantek
heh, sounds like a variant of what ben_thatmustbeme was working on
#
tantek
for his reacji support
#
aaronpk
yeah i actually started this by being like "oh i'll just use ben's library"
#
aaronpk
but his is specifically checking whether a string is a single emoji
#
tantek
sounds like a useful function to use, character by character in a string ;)
#
aaronpk
that's tricky, because "character" is not that simple
#
aaronpk
a single emoji may be composed of many characters (byte sequences)
#
tantek
sure sure, PHP unicode string ops and all that
#
aaronpk
?‍?‍?‍? is actually 7 characters i think
#
aaronpk
each person joined with joining characters
#
tantek
presumably you can URL escape that
#
tantek
and find out!
#
aaronpk
%F0%9F%91%A8%E2%80%8D%F0%9F%91%A9%E2%80%8D%F0%9F%91%A6%E2%80%8D%F0%9F%91%A6
#
aaronpk
looooool
#
tantek
long emoji encoding is loooooooooong
#
[kevinmarks]
I used to be able to count characters in utf8 by eye but I seem to have forgotten
#
[kevinmarks]
If it's < 80 it's 1 char, if it's over 80 keep eating bytes until one is <B0
#
[kevinmarks]
No, that's not right
#
[kevinmarks]
<80 is a char 9x or Ax means 2 bytes is a char Ex is 3 Fx is 4
#
[kevinmarks]
So that is 7 chars
#
[kevinmarks]
The people are 4 bytes, the zwj is 3
#
aaronpk
Where is this documented?
#
aaronpk
Im considering making a library that takes a string input and returns all the emoji names it finds as the names from iamcal's library
#
[kevinmarks]
There is a spec for utf-8 that is fairly simple to get chars
#
[kevinmarks]
the Wikipedia page is clearer
#
[kevinmarks]
The joins are trickier, as it only shows as one emoji if your system has a glyph for that combination
#
[kevinmarks]
Which gets more complicated with race and gender modifiers
#
tantek.com
edited /Main_Page (+56) "/* Community Resources */ https go secure link, and https explicit for log in link on home page"
(view diff)
#
tantek.com
edited /tinbox (+115) "/* See Also */ linky, like in h-card"
(view diff)
KevinMarks joined the channel
#
tantek
aaronpk, xray response format seems *almost identical* to jf2
#
tantek
I wonder if you could file issues on jf2 to adopt the improvements you came up with?
#
tantek
e.g. "content" has "html" and "text" explicitly inside
#
tantek
rather than "content-type" and then just "value" being HTML
#
[kevinmarks]
Isn't xray a more predictable subset of jf2?
#
tantek
no it's almost identical
#
tantek
both are subsets of mf2 json
#
tantek
compare yourself ^^^ ^^^
#
tantek
(the two URLs I just pasted)
#
tantek
sigh, xray example references poetica, which has also shutdown
#
tantek
alright I filed https://github.com/dissolve/jf2/issues/13 to try to incorporate some xray improvement into jf2
#
tantek
jf2 << [https://github.com/dissolve/jf2 jf2 specification]
#
Loqi
ok, I added "[https://github.com/dissolve/jf2 jf2 specification]" to the "See Also" section of /jf2
#
loqi.me
edited /jf2 (+54) "tantek added "[https://github.com/dissolve/jf2 jf2 specification]" to "See Also""
(view diff)
#
tantek
jf2 << [https://github.com/dissolve/jf2/issues jf2 spec issues and feature requests]
#
loqi.me
edited /jf2 (+80) "tantek added "[https://github.com/dissolve/jf2/issues jf2 spec issues and feature requests]" to "See Also""
(view diff)
#
Loqi
ok, I added "[https://github.com/dissolve/jf2/issues jf2 spec issues and feature requests]" to the "See Also" section of /jf2
KartikPrabhu and KevinMarks_ joined the channel
#
tantek
what is ICANN
#
Loqi
It looks like we don't have a page for "ICANN" yet. Would you like to create it?
#
tantek
ICANN is an organization that makes rules about [[domain name]]s and sends emails when domain contact information changes which can be a problem as documented in https://levels.io/icann-mafia/
#
loqi.me
created /ICANN (+224) "prompted by tantek and dfn added by tantek"
(view diff)
#
Loqi
The ICANN mafia has taken my site hostage for 2 days now
#
tantek
bear ^^^ you'll probably have a better dfn than that ;)
#
tantek
what is ICANN?
#
Loqi
ICANN is an organization that makes rules about domain names and sends emails when domain contact information changes which can be a problem as documented in https://levels.io/icann-mafia/ https://indieweb.org/ICANN
#
aaronpk
interesting
#
aaronpk
well seeing as jf2 hasn't had much development on its own recently, it seems reasonable to treat xray's format as an evolution of jf2
#
GWG
aaronpk: I just like the idea of a simplified object.
#
aaronpk
that's what jf2 originally wanted to be, and that's what i've been doing with xray
#
aaronpk
i've been iterating more on xray lately because what's currently documented as jf2 didn't address all of my needs
#
GWG
aaronpk: What differences have you put in?
#
aaronpk
i'd have to check again
#
tantek.com
edited /IndieAuth (+650) "/* Why is GitHub not working */ Why the Aaronpk icon when using GitHub"
(view diff)
#
aaronpk
xray is stricter though, actually aware of vocabulary
#
tantek
success!!! that upload and edit came from the new laptop
#
tantek
what is IndieAuth?
#
Loqi
IndieAuth is a way to use your own domain name to sign in to websites — it's like OpenID, but works with services you likely already use, and is much easier to setup https://indieweb.org/IndieAuth
#
aaronpk
one example is xray won't return properties from the h-entry that it doesn't know about, rather than just blindly transforming the mf2
#
tantek
interesting!
#
tantek
I think that's ok for it to use a proper *subset* of jf2 like that
#
tantek
still useful to converge
#
GWG
Ditto on my ripoff of x-ray
#
aaronpk
there are some properties it always returns as a string
#
aaronpk
so if the h-entry has multiple values, it would only use the first
#
tantek
got it
#
tantek
I thought jf2 did some of that too
#
tantek
anywa
#
aaronpk
e.g. published, since it's not really well defined what multiple published dates means
#
aaronpk
i believe jf2 returns a string if the value is an array with one string
#
tantek
ah ok
#
tantek
whereas xray would always return e.g. the *first* string in some instances (properties)
#
tantek
I still think it's useful to have compat in those cases
KevinMarks joined the channel
#
bear.im
edited /ICANN (+304) "add more specific info"
(view diff)
[kevinmarks] joined the channel
#
[kevinmarks]
My mf2 to jf2 translation makes children if there are multiples, whereas choosing one or concatenation may be a reasonable thing to do too
#
[kevinmarks]
You could be valid jf2 by lossily transforming an mf2 parse
#
[kevinmarks]
Eg you could mf2 parse a page, and run the authorship algorithm then return a jf2 h-card
gRegorLove, KevinMarks, tantek, [dgold], arush and KartikPrabhu joined the channel
#
GWG
Morning
#
Loqi
rise and shine!
[keithjgrant] joined the channel
#
[keithjgrant]
It currently asks for your domain, opens indieauth.com in a new tab, and upon successful authentication, stores the auth token into the extensions localStorage
#
[keithjgrant]
still has a few hard-coded values (auth & token endpoints) that it should read from the user's domain
#
[keithjgrant]
(still under early dev, so files will be shifting a lot this weekend)
#
aaronpk
wow awesome!
#
ben_thatmustbeme
aaronpk: if i can get through this week, i'd be happy to help with your emoji code
#
martymcguire[m]
what is this-week
#
Loqi
This Week in the IndieWeb is a weekly digest of activities of the IndieWeb community https://indieweb.org/this-week
#
martymcguire[m]
what is thisweek
#
Loqi
This Week in the IndieWeb is a weekly digest of activities of the IndieWeb community https://indieweb.org/thisweek
#
aaronpk
ben_thatmustbeme: I think I'm gonna try again today. Going to start on it earlier
#
ascraeus.org
edited /User:Ascraeus.org (+441) "/* My Indieweb Setup */"
(view diff)
#
aaronpk
i think i'm going to start with that now actually
#
ascraeus.org
edited /Nginx (+85) "/* IndieWeb Examples */"
(view diff)
#
aaronpk
all coffee'd up and ready to dive in to learning about unicode
#
ascraeus.org
edited /Let's_Encrypt (+391) "/* add yourself! */"
(view diff)
#
ascraeus.org
edited /Let's_Encrypt (+6) "/* Daniel Goldsmith */"
(view diff)
KartikPrabhu, KevinMarks and KevinMarks_ joined the channel
#
aaronpk
holy cow unicode and utf-8 are confusing
snarfed joined the channel
#
snarfed
aaronpk: i commiserate. granary bug i'm currently trying to fix is due to python incompletely handling multi-code-point chars. :/
#
Loqi
snarfed: petermolnar left you a message 1 day, 4 hours ago: I've merged your changes into mine in https://github.com/petermolnar/webmention-tools but I don't think my additional lookups are needed for the main branch; if you have time to check them though, and you think it would worth having only one of these, please tell me
#
aaronpk
php's multibyte strings don't understand multi-code-points, which i think is fine, it just means i have to do that work
#
aaronpk
s/strings/string functions/
#
snarfed
...at least i think? i don't fully understand some of the words in that sentence i just wrote :P
#
snarfed
petermolnar++ thanks!
#
Loqi
petermolnar has 2 karma in this channel (29 overall)
#
aaronpk
what I don't understand is how to go from utf-8 to code points
KevinMarks_ joined the channel
#
aaronpk
now i have my string as a list of unicode code points
#
aaronpk
what did that do
#
aaronpk
ben_thatmustbeme: these lists of hex values... where did they come from and how often do they change? https://github.com/dissolve/single-emoji-recognizer/blob/master/src/emoji.php
#
aaronpk
e.g. when the unicode consortium defines new emoji
#
aaronpk
oh hey emojione has done almost all the work for me https://demos.emojione.com/2.1.0/phptoshort.php
#
aaronpk
whoa i don't know what their regex does but it's amazing
#
snarfed
sounds like pretty much all of my experience authoring and using regexps :P
#
Loqi
aaronpk: lol
#
aaronpk
i mean, it looks like it's just matching a bunch of character ranges, but this looks painful to write
#
aaronpk
?‍?‍?‍? 7 man-woman-boy-boy 1F468-200D-1F469-200D-1F466-200D-1F466
[kevinmarks] joined the channel
#
[kevinmarks]
Utf8 is not that confusing if you look at it in bits
#
[kevinmarks]
That Wikipedia bit explains it well.
#
aaronparecki.com
created /last-week (+22) "redirect since this URL was mentioned in https://martymcgui.re/2017/02/18/151503/"
(view diff)
#
martymcguire[m]
haha, whoops, already blew it with the url, haha.
#
Loqi
nice
#
aaronpk
easy fix :)
#
martymcguire[m]
thanks very much for the fix!
tantek joined the channel
#
martymcguire[m]
oof, i even wrote down /last-week in my script and must have completely misread it. i wonder if i did that with any other urls.
#
martymcgui.re
created /lastweek (+39) "redirect to this-week-in-the-indieweb"
(view diff)
#
loqi.me
created /nexthwc (+56) "prompted by tantek and dfn added by tantek"
(view diff)
#
tantek.com
edited /nexthwc (-43) "simplify"
(view diff)
#
tantek
martymcguire[m]: no problem. and yes, both /lastweek and /nexthwc :)
#
tantek
hence I jumped on creating those redirects
#
tantek
well, I fixed /last-week (double redirect) and you created /lastweek :)
#
tantek
(before I got the chance)
#
martymcguire[m]
thanks for those. i was hoping to avoid having to say "next dash hwc" and the like. i had checked that "this-week" and "thisweek" both resolved to the right place. but then i said the wrong URL and hadn't checked nexthwc...
#
tantek
interesting, I wonder if there are any existing u-audio consumers
#
aaronpk
p3k is a u-audio consumer :)
#
aaronpk
cause i can repost things with u-audio and it downloads the audio
#
tantek
it does? where does it download it to?!?
#
aaronpk
to my server!
#
aaronpk
same as if I had posted an audio file
#
tantek
what is audio?
#
Loqi
audio is a sound recording indieweb post that is spoken or otherwise created by the author of a site https://indieweb.org/Audio
#
aaronpk
that's the approach I took for reposts. treat it as if I had written the post myself, but show the original author
#
tantek
aaronpk ^^^ add yourself to IndieWeb Examples and add an Implementations section that notes that p3k consumes audio posts!!!
#
aaronpk
oh hey
[keithjgrant] joined the channel
#
[keithjgrant]
who here works in JS/node?
#
tantek
I feel like we just had that conversation! or maybe in #indieweb? not sure
#
tantek
voxpelli for one
#
[keithjgrant]
I think you're right
#
[keithjgrant]
but my memory is bad ?
#
tantek
fortunately our IRC log search is awesome thanks to cweiske!
#
aaronpk
well that was a project
#
martymcgui.re
edited /audio (+534) "/* IndieWeb Examples */ add my latest audio post, other indieweb-enabled podcast"
(view diff)
#
aaronpk
now for the writeup
#
tantek
now to make an issue about parsing <audio> tags!
#
tantek
oh, already in the mf2 parsing spec! brilliang!
#
tantek
brilliant even
#
tantek
at least for audio src=
#
tantek
and source src=
#
tantek
aaronpk your 100 days of music posts are using <video> tag, not <audio>
#
aaronpk
yeah when there's also a video I render the <video> tag and include a hidden u-audio link
#
aaronpk
i wanted that feed to still be usable to create a podcast feed from, so I needed the u-audio in there
#
tantek
makes sense, noting
#
tantek.com
edited /audio (+285) "/* Aaron Parecki */ note differences in markup between two examples, details"
(view diff)
[kevinmarks] joined the channel
#
[kevinmarks]
Did you try your code on flags?
#
aaronpk
i should add one to the test
#
tantek
flags?
#
tantek
are there six of them?
#
Loqi
it is probable
snarfed joined the channel
#
[kevinmarks]
They recently added subnational flags for Scotland, England and Wales
#
tantek
hey aaronpk this https://aaronparecki.com/2017/02/17/21/day-59 should also be (hash)tagged oauth
#
Loqi
[Aaron Parecki] Day 59: Updated the Logo on IndieAuth.com's GitHub Login #100DaysOfIndieWeb
#
tantek
so it shows up in your oauth blog ;)
#
tantek
needs to support tag-of replies so he could send a webmention that means that
#
[kevinmarks]
This should also mean that Texans will be able to stop using the Chilean flag by mistake, eventually
#
tantek
subnation != state presumably
#
tantek
somehow I doubt state flags will make the cut
#
[kevinmarks]
No, they are expressed by the spec
#
tantek
not a headline I would have imagined seeing
KevinMarks and KartikPrabhu joined the channel
#
loqi.me
created /media_fragment (+211) "prompted by tantek and dfn added by KevinMarks"
(view diff)
#
loqi.me
edited /media_fragment (+61) "/* See Also */ new section"
(view diff)
#
loqi.me
edited /media_fragment (+72) "/* See Also */ new section"
(view diff)
#
tantek.com
edited /audio (+1562) "Brainstorming, How to cite and webmention (reposts, podcasts using part thereof), Support media fragments"
(view diff)
#
tantek.com
edited /media_fragment (+14) "fix typo, remove impl caveat, note implementations, see also"
(view diff)
#
loqi.me
edited /Vimeo (+105) "tantek added "[https://twitter.com/RickWebb/status/829034347575537666 2017-02-07 DMCA takedowns result in data loss]" to "See Also""
(view diff)
KevinMarks and [kevinmarks] joined the channel