#dev 2020-04-24

2020-04-24 UTC
_user43, [tantek], geoffo, [Aaron_Klemm], dopplergange, nickodd, ketudb, KartikPrabhu, SpencerDub, BrilliantRose24, swentel, loicm and [LewisCowles] joined the channel
#
[LewisCowles]
Does anyone here use WeKan?
#
[LewisCowles]
If you do https://github.com/Lewiscowles1986/wekan/tree/feature-export-to-html-wip may be of interest or the `codesign2/wekan` docker image which has `latest` and `stable` tags. It takes the mongodb, meteor, etc site and allows users to export a board (one-board at a time), to static Html. It then zips up, with assets in a specific FS layout meant for self-hosting static files.
#
[LewisCowles]
People cannot edit the board, that's out-of-scope, but I love KanBan and this gives me options to communicate using a familiar format internally and externally, without worrying about upstream changes breaking, or user-load on complex services.
#
[LewisCowles]
Also is anyone playing with ubuntu 20.04 yet?
#
swentel
still on 18.04 here
#
swentel
and it works to nice so going to remain on that a bit for now :)
#
[LewisCowles]
Yeah, I'm not upgrading everything, but I like to have a play. Makes me more appreciative sometimes, but also lets me get ahead of (a possibly imaginary) curve
[mapkyca], KartikPrabhu and [jgmac1106] joined the channel
#
[jgmac1106]
webmention badges would make it doable [tantek], if you look on my known site I already display a Proof of Concept from the wiki
loicm, [KevinMarks], jeremych_, leg, nickodd, dckc, joshghent and geoffo joined the channel
[jgarber] and [tantek] joined the channel
#
[tantek]
[jgmac1106] more / primarily interested in what you think of the approach / UX rather than the “doable” plumbing
[jgmac1106] joined the channel
#
[jgmac1106]
sorry, yeah I really like it, especially the stackable badge approach you suggested
#
[tantek]
Part of the point is that we can build & prototype something on inidewebify me with pretty looking badges without any plumbing
#
[tantek]
And frankly that kind of UX prototyping is like 1000x more important / useful than plumbing brainstorming
#
[tantek]
If that’s appealing to folks and they want to self host their badges, then that’s the next step
#
[jgmac1106]
running a conference all day, but will jump in later
#
[tantek]
No worries. No rush, not urgent
#
[tantek]
Just figured you’d have opinions since you’ve been thinking about this for a while
moralityauction1 joined the channel
#
voxpelli
cool idea with the badges
[TimApple] joined the channel
#
swentel
New Indigenous for android release, have fun :)
#
swentel
god damn, found a bug myself already .. :p
#
swentel
oh well, not to critical
#
GWG
Hi, swentel.
#
GWG
I really need to return to adding support for some of your new features
[LewisCowles] joined the channel
#
[LewisCowles]
[tantek] open badge academy?
#
[LewisCowles]
They were at MozFest in London 5 or so years back
#
GWG
I need some generic advice re the rels on this proposal https://core.trac.wordpress.org/ticket/49116
#
GWG
If the alternate representation of the page is REST API json, then won't it be confused with the JSONFeed, also a rel alternate application/json
gRegorLove joined the channel
#
sknebel
hm, iffy
chrisaldrich joined the channel
#
GWG
WordPress does rel="https://api.w.org" for the link to the top of their api endpint
#
GWG
How do I indicate I'm linking to the JSON representation in the API of this page is the problem I want to solve
#
GWG
And their team is onboard
loicm, deathrow1 and [chrisaldrich] joined the channel
#
Zegnat
Otherwise, looks good to me. It is an alternate to the current page, and it is a JSON document. The fact that “JSON document” does not describe the format enough to be helpful is not because of the mime type :(
#
GWG
Zegnat: I just wrote it as proof of concept before doing a patch for WordPress
#
Zegnat
Ah, gotcha!
#
GWG
I wanted to show the REST API team what I was thinking
#
GWG
Zegnat: My question is what the solution is for that problem though
#
Zegnat
Different MIME types for files that have to be parsed differently?
#
Zegnat
Alternatively standardise on some sort of MIME parameter? But I do not know who holds those discussions.
#
GWG
Like wp+json?
#
GWG
How do you register a mime type again?
#
Zegnat
I wonder if there might be a case to be made for a schema attribute. E.g. `application/json;schema=`. That way if parsers know they are looking for JSON with a certain format, they can look for the one that advertises the correct schema
#
Zegnat
does not know if URLs are valid as MIME attributes
#
[LewisCowles]
[Zegnat] json-api (confusing name) has application/vnd+json I believe
#
[LewisCowles]
it's not quite a schema, as a set of patterns to use
#
Zegnat
Googling `application/vnd+json` is not really telling me anything, [LewisCowles]. Any documentation?
#
[LewisCowles]
I apparently missed some bits `application/vnd.api+json`.
#
Zegnat
Yeah, you could use that MIME if the JSON you are sering is following the JSON:API spec.
#
Zegnat
But I am guessing WP uses their own file format for their JSON API?
#
GWG
They have a schema, but basically yes, they do
#
Zegnat
I don’t think there is a valid way of extending an existing MIME, but someone with more knowledge of MIME may correct me.
#
Zegnat
So you either register a new MIME, or just use application/json (which means close to nothing)
#
sknebel
and blame jsonfeed for not registering their own if it breaks someone
#
Zegnat
Or, as I said, I *think* attributes do not need to be registered. So you could add an attribute to the back to identify it is application/json according to something (where something is maybe a link to WP JSON docs? Or schema?)
#
GWG
sknebel: They corrected that in 1.1
#
GWG
Where can we find out if attributes don't need to be registered?
#
sknebel
it's not listed differently on jsonfeed.org
#
sknebel
but good, then that's less of a concern
#
Loqi
[manton] #126 Proposal for JSON Feed version 1.1
#
[LewisCowles]
Zegnat have you seen SOAP for XML?
#
Zegnat
I have worked with SOAP. (Unsurprisingly. My previous job had to deal with government APIs ;) )
#
[LewisCowles]
How did you feel about working with SOAP?
#
[LewisCowles]
I Hate it with a passion and often use it as an example of everything wrong with a way of working
#
Zegnat
SOAP is only fun on a theoretical level, where it *should* be really nice to work with because the endpoint sends you exact information on what methods you can “call”
#
Zegnat
But half the time, in practice, that hasn’t worked out for me in any intuitive way :P
[snarfed] joined the channel; nickodd left the channel
#
[snarfed]
i've never really understood how you'd write code to meaningfully call and use RPC methods you've never seen before anyway
#
Zegnat
`application/vnd.wordpress.rest+json` sounds like something that might make sense for your usecase, GWG. Then you need to go through the steps documented in https://tools.ietf.org/html/rfc6838#section-5
#
[snarfed]
other than a few narrow use cases like fuzzing
#
Zegnat
GWG the first part before the first dot after the first slash (vnd in my example) denotes the tree. A lot of the steps in that IETF document can actually be skipped for things nat in the “standards tree”. vnd is the “vendor tree”.
#
GWG
Zegnat: Why not just wp+json?
#
Zegnat
applicaiton/wp+json? From what I am reading not putting it in any tree makes it the standards tree. Standards tree needs IETF specifications or similar?
#
Zegnat
So unless WP has written a clear standard for the JSON documents that you get back there, I do not know what your chances are to get that
#
GWG
Only api.w.org
#
GWG
but will see
#
GWG
I think the parameter option might work
#
Zegnat
GWG: if you do not want the vnd. prefix you have to be an approved IETF spec or otherwise recognised by a standards body. See requirements here: https://tools.ietf.org/html/rfc6838#section-3.1
#
GWG
Then vnc.wp+json ?
#
Zegnat
I was just thinking ahead in case wordpress may want to come out with other formats down the line
#
Zegnat
I wonder if application/feed+json would actually happen, or if people were just making up MIMEs without looking into the registration process.
#
Zegnat
https://www.iana.org/assignments/media-types/media-types.xhtml#application - for all application/* types. Looks like the vnd.* ones are outnumbering the others
#
Zegnat
Also now learned about the prs tree for personal MIME types. No way I am not going to abuse that :P
#
Zegnat
application/prs.zegnat
#
GWG
Zegnat: What would you want that for?
#
sknebel
being an edge-case 😂
#
Zegnat
When I hit singularity and everything that describes me is available in a custom binary format.
[tantek] joined the channel
#
[tantek]
SOAP is good for one thing though
#
[tantek]
washing your hands with it for 20s+ tends to kill 99%+ of virus particles
#
[LewisCowles]
tantek++ Zegnat++
#
Loqi
Zegnat has 21 karma in this channel over the last year (65 in all channels)
#
Loqi
tantek has 23 karma in this channel over the last year (123 in all channels)
#
[LewisCowles]
had to double-take on that one from the literal, to the painfully obvious play on words
[benatwork] and JessiStein joined the channel
#
jacky
should I consider this page the canonical 'spec' for building a microformats2 parser?
#
jacky
is investigating building one for Rust once more
#
jacky
oof - I need to read more carefully lol
#
jacky
it literally answers that question at the top of the page
#
sknebel
jacky: if you want to talk about that, join the zoom :D
#
jacky
which one?
#
sknebel
link in indieweb
swentel joined the channel
#
jacky
what is indieauth
#
Loqi
IndieAuth is a federated login protocol for Web sign-in, enabling users to use their own domain to sign in to other sites and services https://indieweb.org/IndieAuth
gxt, [tw2113] and [KevinMarks] joined the channel
#
[LewisCowles]
confusing thing would be... can I h-feed with embedded h-feeds, or have multiple h-feed in a document?
#
jacky
what is android
#
Loqi
Android is an open source operating system for mobile devices (AOSP) combined with a set of proprietary cloud services provided by Google, which some use to post to their IndieWeb sites https://indieweb.org/Android
#
jacky
that warning bit feels a bit unnecessary to have there
#
[LewisCowles]
I'll stick to one then. swentel++
#
Loqi
swentel has 21 karma in this channel over the last year (41 in all channels)
#
[LewisCowles]
the whole first or none is upsetting. That feels like something an app should decide, with the spec defaulting to a list
#
[LewisCowles]
lists have such wonderful properties. empty, single and multiple are valid and can share non-branching logic. Simply do something for every entry
#
jacky
swentel: how opposed are you to having a common 'indieweb for android' library?
#
jacky
has made a repo on his git server to begin experimenting with it
#
[LewisCowles]
jacky, how far back will your API support be?
#
jacky
you mean Android API?
#
jacky
well, I think I'd initially target 7 and then work backwards
#
jacky
err hold on
#
swentel
that's ambitious :)
#
[LewisCowles]
android studio has some defaults that may impact your decision
#
swentel
jacky, but no, a common library would be great
#
swentel
extracting some things like indieauth etc would be great
#
swentel
or a micropub or a microsub library
#
jacky
android studio has a thing for this
#
jacky
yeah I was going to start with indieauth
#
jacky
okay coo
#
swentel
I've been thinking about it as well at some point
#
jacky
I wouldn't want to burden you with it but I'd probably work on it via a fork and begin contributing back that way
#
swentel
but just too much other things in my mind ;)
#
jacky
libraries def help with adoption from devs
#
jacky
swentel: lol ofc :)
#
swentel
jacky, sounds good
#
swentel
I more or less consider indigenous as feature complete too
#
swentel
so I'm not going to add many new things
#
swentel
just bug fixes
#
swentel
(I might start on the iOS actually soon, but more news on that later)
#
[LewisCowles]
if a u-url is not public, or cannot be known at time of generation. Should it be omitted?
#
[LewisCowles]
feeling more and more like maybe I need to transform HTML at the point I know where something is deploying to
#
jacky
[LewisCowles]: tbh, this is one of my beefs with MF2, that, all properties are optional
loicm joined the channel
#
jacky
at the very least, I think that url shouldn't be (because without it, there's no real way to fetch it)
#
jacky
w.r.t API level
#
jacky
it'd be API Level 24
#
jacky
Android 7
#
[LewisCowles]
so I'm thinking that the url _should be_ where it is uploaded to. TBF I'm missing it out from the user fields too
#
[LewisCowles]
Need to find some tool to take a html file and use CSS selectors to add CSS-classes
#
[LewisCowles]
prey for me
#
[LewisCowles]
*pray for me
#
[LewisCowles]
the addition of microformats will need to be at least partially at deploy time
KartikPrabhu, gxt, garrettw and gRegorLove joined the channel
#
[KevinMarks]
You can use relative urls in microformats markup
djmoch joined the channel