#dev 2019-03-03

2019-03-03 UTC
#
swentel
I'm referrrring to that image right underneath "The tree of objects describes the list of blocks that compose a post."
#
swentel
(r was locked)
#
swentel
however, plugins can probably introduce new block types, and it's hard to know I guess what is 'content'
#
GWG
swentel: This is the problem. Right now, I ignore all Gutenbergy stuff.
#
GWG
But that will get harder in the future.
#
GWG
Also, people will want to create 'reply' blocks and such as a future UI
#
[tantek]
I want fragmentions for picking a specific img in a post!
#
swentel
GWG, what do you want to solve exactly?
#
GWG
swentel: I have a class that takes a post object and expresses it in MF2 and allows setting MF2 properties. It is an abstraction.
#
GWG
I use it so that I can update/amend it and not have to change the higher level code much
#
GWG
I'm trying to improve it.
#
GWG
But I have been staring at it for the last few days(sickness hasn't helped), trying to figure out the best approach to updating it to work more effectively.
#
swentel
oh hmm interesting
iasai joined the channel
#
[tantek]
Kevin Marks can we extend /fragmentions to support alt text?
#
[tantek]
[kevinmarks]
#
[tantek]
oh I know I just saw above "<!-- wp:" :face_vomiting:
#
[tantek]
s/oh I know/oh no
#
swentel
GWG, can I see the old class, trying to get a mental picture by looking at code (don't know much about wp internals)
#
swentel
well, current class
#
GWG
swentel: It is more conceptual.
tw2113 joined the channel
#
GWG
If I can't count on 'post_content' == mf2 content, I'm not sure what to do
#
GWG
Micropub stores content as a property as well, sort of a 'backup' content.
#
swentel
right, post_content could contain all sorts of dedicated mf2 properties now?
#
GWG
No.
#
GWG
Well, theoretically.
#
GWG
Micropub does add them if Post Kinds isn't installed
#
swentel
hmm I'm afraid it's too late to completely thing along now
#
swentel
*think
#
GWG
I've been trying.
#
GWG
This is a looming mess
KartikPrabhu, iasai and [kevinmarks] joined the channel
#
[kevinmarks]
Hm. Does page search in the browser search alt text?
#
[tantek]
only if it's made visible because the image didn't load (or had some other problem)
#
[tantek]
really I want fragmentions for images when there's more than one in a post (though I suppose I could synthesize IDs), and alt text seemed like a valid hook to use
KartikPrabhu, snarfed and iasai joined the channel
#
jacky
re: github auth vs indieauth
#
jacky
it kinda goes back to what people are collecting from people when they sign into a service
#
aaronpk
we've gotta get an indieauth provider into gogs/gitea/gitlab
#
[tantek]
it does?
#
aaronpk
yes often the service wants stuff like the user's name and profile photo, and sometimes even email address
#
jacky
[tantek]: I think so. In the case of ElixirStatus; they just pulled my name and photo
#
jacky
all of that is already on my site
#
[tantek]
I feel like GWG's Quill update has demostrated that can work with IndieAuth (name and photo)
#
GWG
tantek, I credit swentel and aaronpk for the original conversation. I just implemented first
#
GWG
I would like to see how hard Indieauth for Nextcloud might be
#
GWG
There's a place it might be really popular
#
aaronpk
interesting
#
GWG
aaronpk, which?
#
aaronpk
nextcloud
#
aaronpk
🤔 authentification
#
jacky
agh, can't see that emoji lol
#
aaronpk
:thinking-face:
#
jacky
makes a note to fix that on my end
#
aaronpk
this sounds like the other direction
#
[tantek]
aaronpk needs :ironic-thinking-face:
#
aaronpk
logging in to nextcloud with an oauth provider
#
jacky
oh you want nextcloud to be a provider?
#
aaronpk
but this plugin talks about doing registration stuff which is what regular oauth stuff needs but indieauth doesn't need
#
Loqi
[nextcloud] user_external: 👥 External user authentication methods like IMAP, SMB and FTP
#
jacky
granted this sounds like it'd require a whole new plugin
#
jacky
which again isn't too much of a problem since it only really just needs a username
snarfed joined the channel
#
aaronpk
seems like the real trick would be whether URL characters are allowed as usernames, and if not, how to create a username from the indieauth URL
#
jacky
I'm on a bit of a spree now lol
#
jacky
going to open more issues to see if I can get indieauth in more places
#
aaronpk
that'd be awesome
#
aaronpk
argh you're making me want to whip indieauth.net into shape
#
aaronpk
it's a start but not good enough
#
jacky
the only thing for me is time and (programming) language barriers
#
jacky
I haven't done PHP in like ~5 years
#
jacky
but I know that I could pitch + land indieauth in pixelfed
#
aaronpk
pixelfed is written using laravel which i'm pretty familiar with
#
jacky
you mind if I tag you in this issue?
#
jacky
(for pixelfed)
snarfed joined the channel
#
jacky
ugh I feel like I'm bad at this lol - I can do bug reporting but feature requests? blergh
#
aaronpk
tbh I'm more excited about projects like these becoming an IndieAuth provider
#
aaronpk
once there are more providers then there is more reason to have consuming sites support it
#
jacky
right more chickens to produce eggs
#
jacky
versus us waiting for eggs to hatch
iasai joined the channel
#
jacky
this is my most productive saturday code-wise all year lol
#
GWG
aaronpk: Which projects?
#
jacky
pixelfed, peertube, etc probably
#
aaronpk
and gogs, gitea, gitlab
#
aaronpk
anything self-hostable that provides some form of identity online
#
GWG
aaronpk: That's why I thought of Nextcloud.
#
GWG
Home Assistant already uses a variant of Indieauth.
#
GWG
I wouldn't mind some unification
#
aaronpk
yeah home assistant used the client ID part of indieauth
#
jacky
ohh nice!
#
jacky
hmm my mf2 parser doesn't like h-entry with nested h-cites it seems
#
jacky
s/my/the one I use/g
#
aaronpk
"doesn't like"?
#
GWG
jacky, I have had that problem
#
jacky
yeah like https://playvicious.social/@jalcine/101683314597453680 it's pulling _all_ of the `.e-content` values instead of only the one outside of the `.h-cite`
#
Loqi
[Jacky Alciné] Wanna Federate the Web? Stop Using Silos for Signing Inhttps://v2.jacky.wtf/post/use-indieauth-more
#
GWG
I translate doesn't like to..in need of enhancement
#
aaronpk
hm sounds like it didn't follow the parsing algorithm right
#
GWG
My code doesn't like a lot of things it should
#
jacky
GWG: lol
#
GWG
jacky, for example, I discovered that Monocle didn't like my jf2 output
#
GWG
So I enhanced it
#
GWG
I feel like I need someone to check my work to make sure I didn't miss anything
#
@jackyalcine
https://v2.jacky.wtf/post/use-indieauth-more Wanna Federate the Web (and Make It More Friendly)? Stop Using Silos (like GitHub, Twitter) for Signing In
(twitter.com/_/status/1102030722791948289)
iasai, snarfed and [tantek] joined the channel
#
jacky
aaronpk: you might have another person running a version of indielogin soon: https://masto.nixnet.xyz/@amolith/101684510365776051
#
Loqi
[Amolith] @jalcine That's exactly the kind of thing I'd like to look at hosting! Thank you for the suggestion!
iasai joined the channel
#
GWG
I'm eager to host more aaronpk services myself
iasai joined the channel
#
GWG
Okay, how does that outline look?
#
GWG
Tried to lay out what swentel and I are doing.
jjuran and iasai joined the channel
#
Loqi
[tsileo] microblog.pub: A self-hosted, single-user, ActivityPub powered microblog.
iasai, barpthewire, [frank] and [kevinmarks] joined the channel
#
jeremycherfas
Is there an EASY way of doing an A/B test on a website without any messing about? I mean, deciding at random whether to serve A or B to a site visitor.
[mrkrndvs] joined the channel
#
jacky
jeremycherfas: what would be 'messing about' be classed as?
#
jeremycherfas
Using Google Anal to do it. :)
#
jacky
ah well you could do some silly 'uniqueness' tool (like on the visiting IP) whether or not to bucket a person in groups
#
jacky
stick it into their session (or not if you don't care that they stick networks) and go from there
#
jeremycherfas
I've a feeling anything other than GA is going to be complicated. And most likely what I learn will not be worth learning.
#
jeremycherfas
Just wanted to compare two styles of image.
#
jacky
oh then maybe time of day
#
jacky
just need something to make people fall into a group
#
jacky
are you looking for a service or wanted a method?
#
jeremycherfas
To be honest, it doesn't actually have to be random. Time is a neat one. I could do something different if minute/modulo 5 is odd or even.
barpthewire joined the channel
#
jacky
yup yup
#
jacky
has too much experience with that from his time at Lyft
#
jacky
the number of experiments these companies run on people
#
jacky
(and it's not even like hidden)
#
jeremycherfas
I believe it.
eduardm, KartikPrabhu and [kevinmarks] joined the channel
#
[kevinmarks]
Bear in mind that the stats of a/b testing are tricky and you need a lot of volume.
sandhawke joined the channel
#
jeremycherfas
Thanks [kevinmarks]
wagle joined the channel
#
@jgmac1106
↩️ @tbc0 I kinda like the thread UI in my microblogging. I try to webmentions to keep posts threaded by topic. (https://quickthoughts.jgregorymcverry.com/s/2l5s82)
(twitter.com/_/status/1102189792060682240)
djmoch and [tonz] joined the channel
#
sknebel
What is mod_security?
#
Loqi
It looks like we don't have a page for "mod_security" yet. Would you like to create it? (Or just say "mod_security is ____", a sentence describing the term)
#
sknebel
What is web application firewall?
#
Loqi
It looks like we don't have a page for "web application firewall" yet. Would you like to create it? (Or just say "web application firewall is ____", a sentence describing the term)
#
sknebel
Web application firewall are software that inspects HTTP requests and tries to block malicious or suspect requests, often with a high risk of false positives due to broad defaults, and limited effectiveness against a motivated attacker.
#
sknebel
mod_security is a [[web application firewall]] for the [[Apache]] web server.
iasai and [kevinmarks] joined the channel
[jgmac1106] and sandhawke joined the channel
#
Zegnat
That looks super interesting!
#
sknebel
I've been looking at OSM as a source a bit more
#
GWG
sknebel: Is there an easy way to get nearby POI from OSM in a query?
#
sknebel
it's an interesting question what kind of info you'd need in that query - a lookup might tell you all kinds of stuff, but I guess e.g. the street address isn't needed in this lookup and could be only on the local venue page if there is such a thing
#
sknebel
GWG: kinda?
#
GWG
sknebel: I tried to define it very specifically. The return is an h-adr, but the only mandatory properties are the label, latitude and longitude. But it could return any h-adr property.
#
sknebel
I'm still somewhat interested in finding a solution that doesn't use OSM community resources too much, even if we find servers we technically could use for free
#
sknebel
h-adr or h-card?
#
GWG
It's just a proof of concept. Indigenous for Android + Micropub for WordPress/Simple Location actually do support the geo property, but not the venues property yes
#
GWG
sknebel: h-adr.
#
sknebel
right, it's even on the wiki, i totally skipped over that part
#
GWG
At least in the proposal.
iasai joined the channel
#
GWG
sknebel: Not set in stone though, I just fleshed out original 2015 comment.
#
sknebel
sgreger had the idea that maybe one could get the data out of OSM vector tile sets
pstuifzand joined the channel
#
sknebel
but I'm not sure about that yet. poked a bit at the formats used there, but didn't get quite through
#
GWG
Well, the discussion made me feel better about borrowing the label and URL from Foursquare
#
GWG
Until I can start building my own database
[tantek] and tw2113 joined the channel
#
[jgmac1106]
question for people what is rel="canonical for?
#
tw2113
last i knew and understood, that's supposed to tell the "powers that be" that the value presented there is the one they should index/consider most important?
#
tw2113
and the page with the tag is just a copy of sorts
#
[jgmac1106]
okay thank you, I am the only power to be to me so will skip it, hypothes.is listed as a best practice for your articles..they also suggest OGP but I skip that
#
tw2113
the powers that be that i claimed would be the search engines
#
vilhalmer
I think it only really matters if a given article has more than one url
[kevinmarks] joined the channel
[tonz] joined the channel
#
Zegnat
It is also really nice for when you have a page available on both example.com/123/ and example.com/123 (without trailing slash) to let people know which one of those two URLs you want as the “real” one
#
sknebel
(although in that specific example I'd question why there's not a redirect from one to the other
#
[jgmac1106]
thanks all
#
sknebel
but yes, if you have multiple urls with the same content, point a rel=canonical to the canonical one so it's clear they're just different represenations of the same thing
#
sknebel
e.g. hypothesis then shares the annotations between them
nloadholtes, leg and snarfed joined the channel
#
GWG
Feels slow today
#
Zegnat
is still struggling with webextensions
#
Zegnat
I wonder if *any* browser vendor is actually working on these specs
#
Zegnat
Firefox and Chrome have completely incompatible implementations of native messaging
#
Zegnat
I like Firefox’s implementation, but Chrome’s matches the spec
#
Zegnat
sighs
#
sknebel
incompatible as in "same code can't work in both" or as in "need to duplicate stuff"?
#
Zegnat
"same code can't work in both". Method signatures are different.
#
aaronpk
lol whoops
#
Zegnat
Firefox returns a Promise, Chrome needs a callback function specified in the method call.
#
Zegnat
Guess I can always pass the callback function, and then check if the return is a Promise, in which case I call the same callback function on .then() … or something
#
sknebel
yeah, at least sounds like you could wrap that once centrally
#
Zegnat
Feels very much like you would just end up writing for one of the browsers, and then wrap whatever doesn’t work in the other
#
Zegnat
But that’s not what I was promised with WebExtensions :P
#
sknebel
you can also go file a bug with mozilla to please give you the callback form too
#
GWG
I am still struggling with my storage problem
#
GWG
It keeps leading me in different dire5
#
GWG
directions
#
GWG
The date was not consistent, and that code was in one place
#
GWG
Now the type isn't consistent and I need to figure out a Micropub issue
#
GWG
If the post was by Micropub then it stores the h property in a 'type' key
#
GWG
I am wondering if removing that would break compatibility
#
GWG
I don't know anyone using it for anything right now
[jgmac1106] joined the channel
#
GWG
I am obsessing a bit much about this
KartikPrabhu joined the channel
#
GWG
It is really holding me up though
iasai and [grantcodes] joined the channel
#
[grantcodes]
Zegnat: Mozilla makes a polyfill
#
[grantcodes]
I use that for my extensions. One codebase for all browsers, but it probably does mean you need a build step
iasai, [frank] and [Rose] joined the channel
#
Zegnat
[grantcodes], do you have a link?
#
Zegnat
I’d rather not introduce a build step ... unless you know one that will actually result in properly packaged extensions for the different browsers
#
aaronpk
I just added a changelog section to the indieauth spec https://indieauth.spec.indieweb.org/#change-log
#
aaronpk
forgot who was asking about that the other day
#
Zegnat
sandro
#
sknebel
hm, of course a simple OSM query about anything one might consider a POI is now happily reporting all public trashcans and park benches in a wide radius
#
aaronpk
haha yeah
#
aaronpk
you have to filter by type
#
GWG
sknebel checked in a trashcan. Not very compelling
#
sknebel
I'm always confused people leave reviews on google maps for s-bahn train stations
#
GWG
Would make for an amusing post, but not as intended
#
GWG
sknebel, people review everything now
#
sknebel
At least at IWCs people check in at the weirdest things too
#
sknebel
so allowing checkins at trash cans and plant pots might be a feature for some
#
sknebel
or at each of the individually tagged bicycle parking thingies in front of the university library
#
sknebel
(at least as soon as someone makes a virtual-coin-generating aggregator :D)
iasai joined the channel
#
GWG
sknebel, keeping up with the founders
#
GWG
tantek takes Microformats everywhere
KartikPrabhu, iasai, [chrisaldrich] and [tantek] joined the channel
#
[tantek]
!tell sandhawke Thanks for the heads-up! [aaronpk] added a changelog section to the indieauth spec: https://indieauth.spec.indieweb.org/#change-log
#
Loqi
Ok, I'll tell them that when I see them next
#
Zegnat
I am so close now… I should be going to bed but it looks like I am just minutes away from getting a WebExtension talking to a PHP script that executes an AppleScript that talks to some software :D
#
[tantek]
Zegnat, are you checking the latest version of the spec (editor's draft) that you're talking about (FF vs Chrome vs what spec says) ?
#
Zegnat
I believe I am
#
[tantek]
And if so, if you do prefer the FF implementation, can you please file an issue on the spec stating that the spec should be fixed to work the way FF does? And definitely provide reasons for why it is better.
#
[tantek]
That kind of direct webdev feedback is essential to getting specs improved
#
[tantek]
oh wow this is just a CG draft!
#
[tantek]
it's not even an editor's draft. goodness sakes it's definitely open to changes then
#
Zegnat
It has also gone untouched since 2016.
#
Zegnat
Any idea what the status is of those drafts anyway, [tantek]? I noticed you were the last to supply a commit in 2017 to the main draft (https://browserext.github.io/browserext/)
#
Zegnat
And that was just a typo fix, ha
iasai and snarfed joined the channel
#
Zegnat
I can go to bed! Firefox->PHP->osascript->third-party software, completed.
#
sknebel
good night! :D
#
Loqi
goodnight!
snarfed and iasai joined the channel
#
jacky
implementing an indieauth provider was easier than I thought
#
jacky
it's just the wiring up of relmeauth that's taking up most of my time
#
jacky
making sure each one I want to support _actually_ exposes a rel=me link somewhere
#
aaronpk
oh are you adding relmeauth support too?
#
aaronpk
(it's not necessary for an indieauth provider)
#
jacky
aaronpk: yeah b/c it's going to be a easy way to get adoption
#
aaronpk
cool are you making something like indieauth.com then? a provider that doesn't use passwords?
#
jacky
https://jalcine.itch.io/ points to https://jacky.wtf via rel=me (so I can get those indie game devs like my friend on it)
#
jacky
but it's a nofollow
[schmarty] joined the channel
#
[schmarty]
jacky: nofollow should be fine? I don't think a RelMeAuth parser has to take notice of that.
iasai joined the channel