2017-02-18 UTC
[keithjgrant] joined the channel
# 00:22 [keithjgrant] wouldn't receiving a token w/ the expected "me" verify that the code is trusted?
[kevinmarks] joined the channel
# 02:02 [kevinmarks] Verifying gives you the me url to use, right? Eg if there are multiple users for the domain
# 02:04 aaronpk [keithjgrant]: the section you linked describes how to build a token endpoint
# 02:04 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
[keithjgrant] joined the channel
# 02:15 [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
KevinMarks joined the channel
# 02:17 aaronpk you exchange the code for an access token at the token endpoint
# 02:19 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
# 02:25 tantek "Smart Search Field: [x] Show full website address"
[chrisaldrich] joined the channel
# 02:47 aaronpk huh this is harder than I thought. how can I find all emoji in a string?
# 02:48 tantek heh, sounds like a variant of what ben_thatmustbeme was working on
# 02:48 aaronpk yeah i actually started this by being like "oh i'll just use ben's library"
# 02:48 aaronpk but his is specifically checking whether a string is a single emoji
# 02:48 tantek sounds like a useful function to use, character by character in a string ;)
# 02:49 aaronpk that's tricky, because "character" is not that simple
# 02:49 aaronpk a single emoji may be composed of many characters (byte sequences)
# 02:49 tantek sure sure, PHP unicode string ops and all that
# 02:51 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
# 02:53 [kevinmarks] I used to be able to count characters in utf8 by eye but I seem to have forgotten
# 02:57 [kevinmarks] If it's < 80 it's 1 char, if it's over 80 keep eating bytes until one is <B0
# 03:08 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
# 03:12 [kevinmarks] The joins are trickier, as it only shows as one emoji if your system has a glyph for that combination
KevinMarks joined the channel
# 03:36 tantek aaronpk, xray response format seems *almost identical* to jf2
# 03:36 tantek I wonder if you could file issues on jf2 to adopt the improvements you came up with?
# 03:36 tantek e.g. "content" has "html" and "text" explicitly inside
# 03:36 tantek rather than "content-type" and then just "value" being HTML
# 03:40 tantek sigh, xray example references poetica, which has also shutdown
KartikPrabhu and KevinMarks_ joined the channel
# 03:47 Loqi The ICANN mafia has taken my site hostage for 2 days now
# 03:47 tantek bear ^^^ you'll probably have a better dfn than that ;)
# 04:08 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
# 04:10 GWG aaronpk: I just like the idea of a simplified object.
# 04:10 aaronpk that's what jf2 originally wanted to be, and that's what i've been doing with xray
# 04:10 aaronpk i've been iterating more on xray lately because what's currently documented as jf2 didn't address all of my needs
# 04:12 GWG aaronpk: What differences have you put in?
# 04:12 aaronpk xray is stricter though, actually aware of vocabulary
# 04:12 tantek success!!! that upload and edit came from the new laptop
# 04:12 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
# 04:13 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
# 04:13 tantek I think that's ok for it to use a proper *subset* of jf2 like that
# 04:13 aaronpk there are some properties it always returns as a string
# 04:13 aaronpk so if the h-entry has multiple values, it would only use the first
# 04:14 aaronpk e.g. published, since it's not really well defined what multiple published dates means
# 04:14 aaronpk i believe jf2 returns a string if the value is an array with one string
# 04:15 tantek whereas xray would always return e.g. the *first* string in some instances (properties)
# 04:15 tantek I still think it's useful to have compat in those cases
KevinMarks joined the channel
[kevinmarks] joined the channel
# 05:31 [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
# 05:33 [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
[keithjgrant] joined the channel
# 14:09 [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
# 14:09 [keithjgrant] still has a few hard-coded values (auth & token endpoints) that it should read from the user's domain
# 15:27 martymcguire[m] what is this-week
# 15:27 martymcguire[m] what is thisweek
# 15:29 aaronpk ben_thatmustbeme: I think I'm gonna try again today. Going to start on it earlier
# 15:41 aaronpk i think i'm going to start with that now actually
# 15:41 aaronpk all coffee'd up and ready to dive in to learning about unicode
KartikPrabhu, KevinMarks and KevinMarks_ joined the channel
snarfed joined the channel
# 18:35 snarfed aaronpk: i commiserate. granary bug i'm currently trying to fix is due to python incompletely handling multi-code-point chars. :/
# 18:35 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
# 18:35 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
# 18:35 snarfed ...at least i think? i don't fully understand some of the words in that sentence i just wrote :P
# 18:37 Loqi petermolnar has 2 karma in this channel (29 overall)
# 18:51 aaronpk what I don't understand is how to go from utf-8 to code points
KevinMarks_ joined the channel
# 18:59 aaronpk now i have my string as a list of unicode code points
# 19:01 aaronpk e.g. when the unicode consortium defines new emoji
# 19:19 aaronpk whoa i don't know what their regex does but it's amazing
# 19:25 snarfed sounds like pretty much all of my experience authoring and using regexps :P
# 19:26 aaronpk i mean, it looks like it's just matching a bunch of character ranges, but this looks painful to write
# 19:34 aaronpk ???? 7 man-woman-boy-boy 1F468-200D-1F469-200D-1F466-200D-1F466
[kevinmarks] joined the channel
# 20:38 martymcguire[m] haha, whoops, already blew it with the url, haha.
# 20:40 martymcguire[m] thanks very much for the fix!
tantek joined the channel
# 20:41 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.
# 21:08 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...
# 21:18 tantek interesting, I wonder if there are any existing u-audio consumers
# 21:19 aaronpk cause i can repost things with u-audio and it downloads the audio
# 21:19 aaronpk that's the approach I took for reposts. treat it as if I had written the post myself, but show the original author
# 21:20 tantek aaronpk ^^^ add yourself to IndieWeb Examples and add an Implementations section that notes that p3k consumes audio posts!!!
[keithjgrant] joined the channel
# 21:21 tantek I feel like we just had that conversation! or maybe in #indieweb? not sure
# 21:22 tantek fortunately our IRC log search is awesome thanks to cweiske!
# 21:42 tantek now to make an issue about parsing <audio> tags!
# 21:43 tantek oh, already in the mf2 parsing spec! brilliang!
# 21:46 tantek aaronpk your 100 days of music posts are using <video> tag, not <audio>
# 21:46 aaronpk yeah when there's also a video I render the <video> tag and include a hidden u-audio link
# 21:47 aaronpk i wanted that feed to still be usable to create a podcast feed from, so I needed the u-audio in there
[kevinmarks] joined the channel
snarfed joined the channel
# 21:56 [kevinmarks] They recently added subnational flags for Scotland, England and Wales
# 21:57 Loqi [Aaron Parecki] Day 59: Updated the Logo on IndieAuth.com's GitHub Login #100DaysOfIndieWeb
# 21:59 tantek needs to support tag-of replies so he could send a webmention that means that
# 21:59 [kevinmarks] This should also mean that Texans will be able to stop using the Chilean flag by mistake, eventually
# 22:00 tantek somehow I doubt state flags will make the cut
KevinMarks and KartikPrabhu joined the channel
# 22:54 tantek.com edited /audio (+1562) "Brainstorming, How to cite and webmention (reposts, podcasts using part thereof), Support media fragments" (
view diff )
KevinMarks and [kevinmarks] joined the channel