#dev 2019-02-13

2019-02-13 UTC
[jgmac1106], KartikPrabhu, tantek, [davidmead], eli_oat and [tantek] joined the channel
#
@StormlightTech
↩️ @microbitch2017 It's called simply Disable Rest API. You don't want it installed. Plays freaking havoc with webmention.
(twitter.com/_/status/1095510906350522368)
snarfed and [eddie] joined the channel
#
[eddie]
!tell swentel Yeah, no auto-deploy on the Indigenous website currently
#
Loqi
Ok, I'll tell them that when I see them next
#
[eddie]
I need to get specific data out of my Micropub Endpoint via querying and I thought I would mention it here to see if it’s something that someone else sees that they would need and if we should try to make it a common thing or if I should just build a snowflake query
#
[eddie]
So essentially I need to be able to pull out a list of all the items I have eaten with the number of times they’ve been eaten
#
[eddie]
Essentially I’m requesting a grouped property (post.properties.ate.properties.name)
#
[eddie]
With a count
#
[eddie]
Does anyone see a real world use for that type of query for them? I’ll peek for any thoughts of it over the next day or so. If no one seems to find it useful I’ll just build a private snowflake query
#
[eddie]
Either way I’ll document my final effort on the wiki for future reference
#
aaronpk
i think i remember some discussion about similar filtering in queries somewhere
#
aaronpk
but i don't think i've heard of the grouping thing before
#
aaronpk
sounds neat
#
aaronpk
why do you need it as part of micropub?
#
GWG
What queries should be and should not be part of Micropub?
#
GWG
We have a series of proposed extensions already
#
aaronpk
things that are needed for an app to work
#
GWG
Essentials, or would just be nice?
#
[eddie]
I am building a eating logger (different approach than teacup, same Micropub format) and I need it to know what I’ve previously eaten
#
GWG
In Austin the topic of query for posts came up last year, and has been expanded.
#
GWG
So, isn't your proposal for group properties a query for post statistics, over post lists?
#
[eddie]
Yes, essentially. The only different is you are getting post statistics for a specific property field (ate.properties.name)
#
aaronpk
[eddie]: ahh i see! teacup cheats by storing that itself :)
#
aaronpk
it does mean that anything that gets posted to my site outside of teacup, it is not aware of
#
GWG
I'm just trying to think of the broader non-teacup applications
#
[eddie]
aaronpk yep, exactly the issue 🙂
#
aaronpk
but i have a similar grouping thing in teacup. it just also takes into account location ;-)
#
aaronpk
so my commonly used foods change depending on where i am
#
[eddie]
:exploding_head:
#
[eddie]
I did not know you use location
#
[eddie]
Probably because I almost never leave my house
#
[eddie]
Hahaha!
#
Loqi
hahahaha
#
aaronpk
it's great when i'm traveling cause it turns out i eat very different stuff in europe vs at home
#
[eddie]
I joke, but for real! Because I use teacup all the time right now and it never shows different food! 😆
#
[eddie]
Is it city? Or state?
#
GWG
aaronpk: That would be an interesting analysis.
#
aaronpk
neither, it's based on raw lat/lng
#
GWG
What you eat on the road vs not
#
[eddie]
Ohhh gotcha
#
[eddie]
That makes sense. So eating in my town probably isn’t gonna be a huge change 🙂
#
[eddie]
I need to go traveling now, for science!
#
aaronpk
yep, and it's used as one of the sorting factors in addition to frequency, so it's not an exact science
#
[eddie]
Gotcha. Very cool
#
aaronpk
which brings me back to your original question
#
aaronpk
since it sounds like what you're trying to do is have a query that lets a micropub app provide buttons, it doesn't actually need a grouping funciton. what it needs is a way to ask your site for the buttons.
#
aaronpk
your site can then do the grouping however it wants
#
[eddie]
Hmmm interesting. So my ultimate plan was to use the data to then search on with auto-complete (and if autocomplete is empty, you provide the “button/most recent” options)
#
[eddie]
My goal being a “bulk” ate/drank entry app
#
[eddie]
My goal this year is automate or defer tracking
#
aaronpk
autocomplete is something we've talked about too, i think one of the brainstorming things covers it
#
[eddie]
Ohhh hmm okay, I didn’t remember any autocomplete stuff, I’ll have to go search that
#
aaronpk
i think we've only talked about that in the context of @-mentions and tags
#
GWG
aaronpk: We have query for categories...do we have autocomplete?
#
GWG
I don't remember that one. Will have to look
#
[eddie]
Ohhh yeah tags/categories
#
[eddie]
And then @-mentions from the nickname cache
#
aaronpk
we need to do a full study on autocompletes. need to compare different existing autocomplete libraries and APIs to see what they have in common. but really the thing that's going to drive that is client implementations and nobody has taken the lead on it yet
#
GWG
I'm volunteering [eddie]
#
GWG
Only because he has a client and aaronpk has too many clients
#
aaronpk
i've dealt with a couple JS autocomplete libraries in the past, but it's been a while, and I haven't done any on mobile platforms. we'd just want to make sure we're doing it the best way for all the platforms.
#
[eddie]
Ahh gotcha. That makes sense
#
[eddie]
What is autocomplete?
#
Loqi
It looks like we don't have a page for "autocomplete" yet. Would you like to create it? (Or just say "autocomplete is ____", a sentence describing the term)
#
[eddie]
Autocomplete is when a text field provides options based on the existing text entered, sometimes providing default options when no text is entered, this is particularly relevant in the context of [[Micropub]] apps.
#
[eddie]
Alright, I think that’s a good direction. We need some Autocomplete research and then some client experimentation.
#
[eddie]
With the goal of potentially have a way to do an autocomplete query for a variety of data sets (@-mentions, tags, places, etc), whatever we can come up with in that respect should also work for my ate/drank queries
#
[eddie]
Considering that an autocomplete query the server should return a default list of suggestions if the query is empty
#
[eddie]
Or it *could*
#
aaronpk
That sounds great
ichoquo0Aigh9ie and [kevinmarks] joined the channel
KartikPrabhu and [eddie] joined the channel
#
[eddie]
autocomplete << [https://chat.indieweb.org/dev/2019-02-13#t1550031653358600 Discussion that inspired this research effort]
#
Loqi
ok, I added "[https://chat.indieweb.org/dev/2019-02-13#t1550031653358600 Discussion that inspired this research effort]" to a new "See Also" section of /autocomplete https://indieweb.org/wiki/index.php?diff=56740&oldid=56739
#
[eddie]
autocomplete << [https://leaverou.github.io/awesomplete/ Client to research]
#
[eddie]
autocomplete << [https://developers.google.com/places/web-service/autocomplete To Research: Google Places Autocomplete]
#
Loqi
ok, I added "https://indieweb.org/Micropub-brainstorming#Query_for_contacts" to the "See Also" section of /autocomplete https://indieweb.org/wiki/index.php?diff=56743&oldid=56742
#
Loqi
ok, I added "https://indieweb.org/Micropub-extensions#Query_for_Category.2FTag_List" to the "See Also" section of /autocomplete https://indieweb.org/wiki/index.php?diff=56744&oldid=56743
cweiske, ichoquo0Aigh9ie, [kevinmarks] and [pfefferle] joined the channel
#
Zegnat
!tell aaronpk just noted mention of IndieAuth in #litepub re OAuth registration, and made me wonder: did we end up recommending a format for app name etc on the app URL?
#
Loqi
Ok, I'll tell them that when I see them next
[jeremycherfas], KartikPrabhu, kisik21, [tantek] and jeremych_ joined the channel
#
jeremycherfas
!tell zegnat, sknebel I have been doing some more digging and found a PHP library that does github integration, so making slow and steady progress
#
Loqi
Ok, I'll tell them that when I see them next
#
Zegnat
babysteps++
#
Loqi
babysteps has 1 karma in this channel over the last year (2 in all channels)
#
@jgmac1106
@mrkndvs did you put a u-url link around your gravatar img? Trying to figure out why the link replaces your name on a webmention http://bit.ly/2SLe5ot
(twitter.com/_/status/1095631105745670144)
[jgmac1106], swentel and [adam] joined the channel
#
[adam]
TMW when you realise your Link Preview generator needs some work
#
[adam]
(Also, Bees understand the concept of zero 😮 )
#
[adam]
^ I also need to sort out my slugs… too long
eli_oat and [jgmac1106] joined the channel
#
@jgmac1106
@reclaimhosting we should add IndieAuth so we can sign on into Reclaim "Domain of Our Own" with our own domain. That would be BOSS! (https://quickthoughts.jgregorymcverry.com/s/1nJ6BY)
(twitter.com/_/status/1095666741273866240)
koddsson and swentie joined the channel
#
swentie
GWG, I've almost finished all microsub api in drupal, next up is indigenous managing of channels and feeds, will be cool to test that with wordpress plugin also
swentel joined the channel
#
GWG
Tell me when, I am set up for it
#
swentel
I will
#
Loqi
swentel: [eddie] left you a message 9 hours, 49 minutes ago: Yeah, no auto-deploy on the Indigenous website currently
[Rose], [Vincent] and [kevinmarks] joined the channel
#
aaronpk
Zegnat: no I don't think we ended up with any more of a conclusion than we last had
#
Loqi
aaronpk: Zegnat left you a message 6 hours, 8 minutes ago: just noted mention of IndieAuth in #litepub re OAuth registration, and made me wonder: did we end up recommending a format for app name etc on the app URL?
#
Zegnat
I couldn’t find anything concrete either, so I didn’t dare speak up on how a URL can be used to auto-fill most requirements you might have for actual registration (like a name)
#
aaronpk
What happened with the discussion of using the web app manifest file?
#
sknebel
zegnat collected data and then everybody got distracted
#
Loqi
sknebel: jeremycherfas left you a message 4 hours, 15 minutes ago: I have been doing some more digging and found a PHP library that does github integration, so making slow and steady progress
#
Zegnat
The discussion died off? Hahaha
#
Loqi
Zegnat: lol
#
sknebel
so, who volunteers to implement that somewhere?
[eddie] joined the channel
#
[eddie]
My personal IndieAuth endpoint consumes Web App Manifest files and it works great!
#
[eddie]
webappmanifest++
#
Loqi
webappmanifest has 1 karma over the last year
#
sknebel
[eddie]: documented somewhere? (what do you consume, what do you show? ...)
eli_oat joined the channel
#
sknebel
eddie++
#
Loqi
eddie has 37 karma in this channel over the last year (84 in all channels)
#
[eddie]
Hmm good question
#
sknebel
was your endpoint published somewhere?
#
[eddie]
It’s mixed in with the rest of the app but it is open source
#
[eddie]
Not much but the UI is the same as h-app
#
[eddie]
Basically mine checks WAM then h-app, I think
#
sknebel
oh, wordpress does it also already
#
sknebel
per that link
#
[eddie]
https://github.com/EdwardHinkle/abode/blob/master/server-src/indieauth/authorization.ts is the file that parses things. Maybe I should like to that on my WAM documentation?
#
sknebel
sounds good
#
sknebel
aaronpk: where would that info "officially" live? extension to indieauth spec? or in the spec itself?
#
aaronpk
I think it makes sense to have it in the spec
#
sknebel
hm, did you have thoughts about what to recommend to code hosting projects etc for user information? e.g. what username to show for IndieAuth users?
jjuran joined the channel
#
Zegnat
I am tempted to say they should treat the URL as username unless otherwise requested by the user. You may recommend parsing for h-card on top of that, but I wouldn’t want to run into the “mf2 parser is required for IndieAuth” debate there
#
sknebel
that's why I asked
#
sknebel
what's the answer if some project wants to e.g. use some API lookup afterwards to find the name
#
aaronpk
sounds like openid connect's "userinfo" endpoint
#
petermolnar
aaronpk: the micro-banners at the bottom of your page - the 88x15 ones - are those only available as images, or is there an svg version of them somewhere?
#
aaronpk
i think kevinmarks made svg versions but IIRC they were an svg with a bitmap inside. it does mean you don't need the CSS trick to force the browser to not smooth out the lines.
#
aaronpk
i should just re-create them as real SVGs
#
Loqi
definitely
#
aaronpk
sknebel: i suppose we could add something to the token introspection response that could return h-card info. for indieweb sites, the token endpoint would either already have that info, or could parse the user's home page h-card to get it.
#
petermolnar
what is the font on the indieweb one?
#
Loqi
It looks like we don't have a page for "font on the indieweb one" yet. Would you like to create it? (Or just say "font on the indieweb one is ____", a sentence describing the term)
#
aaronpk
i think i drew the letters by hand
#
sknebel
aaronpk: it might be worth proposing something like this to avoid people finding multiple other solutions?
#
aaronpk
sknebel: probably true, since that is a common need and also one of the things OAuth (intentionally) left out which led to a mess and openid connect
#
aaronpk
we're also not making only an authorization protocol with indieauth, it is explicitly supposed to include user info, whereas OAuth is explicitly not meant to include user info
#
Zegnat
petermolnar: wouldn’t you want to use https://kottke.org/plus/type/silkscreen/ for authenticity sake?
#
aaronpk
oh yeah i think i used that as a bas
jackjamieson joined the channel
#
petermolnar
as first attempt
#
petermolnar
I still need to clean up bits
snarfed and iasai joined the channel
#
aaronpk
gotta pixelize the logo too
#
petermolnar
fair point
#
petermolnar
I'll tackle this later
#
petermolnar
the svg coming out of inkscape is UGLY
[kevinmarks] joined the channel
#
[kevinmarks]
no, my SVG was all polygons made by hand
#
aaronpk
add those to the wiki page!
#
aaronpk
no idea how to find them otherwise
#
aaronpk
the wiki, not the chat
#
petermolnar
[kevinmarks]++
#
Loqi
[kevinmarks] has 12 karma in this channel over the last year (35 in all channels)
#
[kevinmarks]
hm, that came out too big
#
[kevinmarks]
I did try and put it inline with <html> but apparently that's not allowed.
#
[kevinmarks]
view source to see the tricks
#
[kevinmarks]
hm, If I do the microformats one would a real gradient be OK or would you want the subtle banding?
#
aaronpk
i suppose a real gradient is okay
#
[kevinmarks]
peter, yours needs a white rect under it so it's not transparent.
[jgmac1106], barpthewire and [grantcodes] joined the channel
#
[grantcodes]
petermolnar: you can get nicer svgs by saving them as optimized I think and tweaking a few options to get rid of metadata
#
[grantcodes]
from inkscape that is
[eddie] and [cleverdevil] joined the channel
#
[cleverdevil]
FYI, I am making some progress on health tracking for my website...
#
[eddie]
Oh yeah?
#
[eddie]
Do tell!
#
[cleverdevil]
Its still early, but I found an iOS developer with an app that gets me tantalizingly close to being able to sync data out of my iOS HealthKit database up to my site.
#
[cleverdevil]
Currently, it supports automatic daily exports of a significant chunk of the data I want to a variety of targets, including iCloud Drive, Dropbox, and Google Sheets.
#
[cleverdevil]
I am in conversation with him about adding a webhook target.
#
[cleverdevil]
He's open to it.
#
[cleverdevil]
I want a daily POST to a webhook with JSON data containing my last 24 hours of health data, and then on-demand POSTs to a webhook every time I finish a workout.
[pfefferle] joined the channel
#
[eddie]
Nice! That would be awesome
#
aaronpk
oh cool
snarfed joined the channel
#
[cleverdevil]
Sorta like Overland for Health 🙂
#
[cleverdevil]
(I even pointed out Overland to him as an example)
#
[eddie]
[cleverdevil]++
#
Loqi
[cleverdevil] has 42 karma in this channel over the last year (92 in all channels)
snarfed joined the channel
#
aaronpk
whoa fancy
#
[cleverdevil]
Found some SVG / CSS out there from someone attempting to re-create "activity rings".
#
[cleverdevil]
Its decent, but missing a lot of the pretty details.
#
petermolnar
no, something is off with this
#
petermolnar
at least I'm getting a bit more comfortable with svg
#
aaronpk
you should be able to do it with svg coordinates that correspond to the actual pixels
#
[eddie]
ohhh! That's fun, [cleverdevil]!
#
[cleverdevil]
Yeah, someone with more CSS/SVG chops than me could likely make it look right.
#
[cleverdevil]
1. When a ring goes over 100%, it should overlap and cast a drop shadow beneath.
#
[cleverdevil]
2. The ring background color should be a gradient, not a solid color.
#
[cleverdevil]
3. The symbols for move, exercise, and stand need to be overlaid on the rings.
[Rose] joined the channel
#
[Rose]
Do you have a repo for it? I might be able to take a crack at it this weekend.
#
[cleverdevil]
I don’t yet, but I’ll make one Rose 😀
#
[cleverdevil]
Would love to collaborate.
#
[Rose]
I have no experience with SVGs, but I'm alright at CSS
KartikPrabhu and snarfed joined the channel
#
[Rose]
pokes it
#
[Rose]
Well, the obvious didn't work (box-shadow), I won't give up, but I have some very important deadlines first 🙂
#
[cleverdevil]
:thumbsup:
#
[cleverdevil]
I think the main issue will be with the fact that the rings are just cropped circles.
#
[cleverdevil]
(At least, I *think*... I am not an SVG expert_
#
[Rose]
circle {
#
[Rose]
fill: none;
#
[Rose]
That would indicate you're correct 😉
#
[cleverdevil]
I'd also be great if this could be done in pure HTML/CSS/JavaScript... but... that likely is pretty difficult 🙂
#
[Rose]
Maybe, and this isn't a great idea, but maybe the "easy" solution is if it's 100, draw a darker line on top of the completed line
#
[cleverdevil]
There is also code that I've found in Swift that can just generate it on-device and then that could be converted to an image and uploaded.
#
[cleverdevil]
But, I like the idea of doing it client side 🙂
#
[Rose]
I like the idea of doing it client side too
[kevinmarks] joined the channel
[asuh] and [schmarty] joined the channel
#
[kevinmarks]
hm. why does it work as an img tag on svgsshare and not on the wiki?
#
aaronpk
the wiki might be trying to convert it to png
#
[schmarty]
yep, it's a PNG
#
[schmarty]
if you click through you get the SVG and it looks right
snarfed joined the channel
#
[kevinmarks]
weird I get hairlines in the webmention one big in chrome
#
aaronpk
floating point whee
#
[kevinmarks]
peter - nick my letters - I draw them as closed curves then drop in a pixel for the extra bit
snarfed joined the channel
#
petermolnar
I had enough fun with this for now
#
[kevinmarks]
it did take an hour…
#
Loqi
[Kevin Marks] Pixellated Microformats SVG button to celebrate the 15th anniversary of Microformats being shown off at ETCON 2004 by Tantek and myself. http://known.kevinmarks.com/file/ca80a6092d6bbbe777d0aae9468dfbbe/microformats.svg
snarfed, leg, [tantek], [schmarty], djmoch, [grantcodes], [cleverdevil] and [kevinmarks] joined the channel
#
petermolnar
[kevinmarks]: interesting; if I inline the microformats svg as a <symbol> and try to <use> it, the gradient doesn't show either
[jgmac1106], eddiehinkle, tantek, KartikPrabhu and [eddie] joined the channel
#
GWG
Evening
snarfed1 joined the channel