#dev 2021-06-24

2021-06-24 UTC
samwilson, [schmarty] and [KevinMarks] joined the channel
#
[KevinMarks]
[jacky] 'something I can use to _render_ content that isn't static' - do you mean something like nunjucks?
KartikPrabhu, [tantek] and hendursaga joined the channel
#
[tantek]
Yeahhh!!
#
[tantek]
How cool is that?
#
aaronpk
i had no idea
[fluffy] and [schmarty] joined the channel
#
[schmarty]
CSS scroll snap rules! I need to build more things with it.
#
KartikPrabhu
I don't like scroll snap, it is annoying on most websites
#
GWG
Expiring tokens are live in IndieAuth for WordPress.
#
GWG
aaronpk: Should I try to convince you again?
#
aaronpk
i agree it's annoying when it interrupts what you expect from normal scroll behavior, but i think there are some good applications of it!
samwilson joined the channel
#
[tantek]
aaronpk, like simulating the scrolling screens of app icons inside an iOS homescreen folder!
#
aaronpk
Exactly!
[jacky] joined the channel
#
[jacky]
The most popularly known IndieWeb-centric CMS was perhaps Known, no?
#
[jacky]
like as something you can use yourself and was built up with the IndieWeb components in mind
#
[tantek]
with the most IndieWeb support "out of the box"
#
aaronpk
If by CMS you mean something self-hostable then yea, otherwise I'd include micro.blog in that too
#
[jacky]
Yeah, I meant self-hostable! I'm wondering if there's a space/need for something like Gatsby but for the IndieWeb (in the sense that it'll ask for endpoints to Micropub, Webmention and IndieAuth and from there, you just do everything else)
#
aaronpk
GWG: that's great news, so the next best thing for me to do would be to add support for refresh tokens in quill?
#
GWG
aaronpk: Yes. If you do, I'll add refresh tokens. I already have the basic functionality mapped out
#
GWG
And you have jamietanna's implementation already live.
#
GWG
So we'd have 1 client and 2 endpoints supporting it to start
#
GWG
It could start a flood
samwilson, capjamesg, gRegor, gRegorLove_ and [jacky] joined the channel
#
[jacky]
very late night thought but I've been thinking again about [tantek]'s nudging towards seeing Microsub as a handling for people and less on the feeds (in a way) and I think that could be a basis for leveraging things like `only to people I follow` or the like in a Microsub reader
#
[jacky]
namely if Microsub was able to give a list of the h-cards that are the representative ones of a feed in a timeline, that could be used to determine the 'audience' of said feed
#
[jacky]
er, more like it can be used to determine a list of people that can then be targeted as an audience
#
[jacky]
the only thing there would be needed to give a human-friendly name to it (like "people Jacky follow", "Jacky's followers interested in tech" <- this could be via following a specific tag feed on one's site but needs to be done by the site's feed generation system, not the Microsub server!)
samwilson, hendursa1, [KevinMarks], pepperoni_, barnaby and [Murray] joined the channel
#
[Murray]
jacky: if it were more like Next/Nuxt/latest version of 11ty, and allowed for dynamic page load options (SSR/SSG/hybrid) then I'd jump on something like that in a shot 😄 Then again, I think it would possibly make more sense to just create webmention/indieauth/etc. plugins for something like 11ty? And then just have an indieweb starter kit type thing
#
[Murray]
oh also, on Drupal, I've been really interested in how much it seems to be re-entering tech conversations this year. I feel like even a year ago it was seen as "legacy tech" (eurgh), something bloated and undesirable. Suddenly, I see Gatsby have specifically targeted Drupal for version-release optimisations, Next are mentioning it in blog posts, several conferences are adding talks centred on it. Definitely feels like it's being
#
[Murray]
rediscovered, which feels nice (for once)
Hello1, petermolnar and [grantcodes] joined the channel
#
[grantcodes]
I've always seen drupal as something for monolithic sites like charities and universities. I don't know if it improved but the ui was really daunting to me
petermolnar joined the channel
#
capjamesg
I have just found out about web monetization. Anyone implementing this?
petermolnar joined the channel
#
capjamesg
I have no interest in implementing web monetization. Just found it interesting.
pepperoni_ joined the channel
#
Zegnat
capjamesg: I know Ian has played around with it. https://cubicgarden.com/2020/08/12/1-month-of-trying-web-monetization/ for what I think was his final post about it, and then you will have to link-dive back in time from there
pepperoni_ joined the channel
#
@BarnabyWalters
New #indieweb libraries: https://github.com/Taproot/micropub-adapter and https://github.com/Taproot/indieauth! Finally put the finishing touches on these two closely-related libraries, which make it very easy to add Micropub and IndieAuth support to any PHP app which uses PSR-7… https://waterpigs.co.uk/notes/5DNF1L/
(twitter.com/_/status/1408033216704004096)
#
barnaby
RE ^^^: I’d love to do some developer usability testing for these libraries, i.e. we have a screen-sharing video call where I watch you try to get them working with your app. Anyone interested?
#
capjamesg
Zegnat++
#
Loqi
Zegnat has 17 karma in this channel over the last year (56 in all channels)
samwilson, [Ana_Rodrigues] and rockorager joined the channel
#
rockorager
Are there any implementations of using micropub to *edit* a post?
calebjasik, Abhas[m], BinyaminGreen[m], IWSlackGateway, Seirdy and [snarfed] joined the channel
#
@kevinmarks
↩️ There's a fair bit of indieweb tooling to do that kind of thing eg https://brid.gy/about#publishing
(twitter.com/_/status/1408080364820701194)
Seirdy, KartikPrabhu, capjamesg, ben_thatmustbeme, doosboox, moose333, rrix, neocow, sknebel, barnaby and rockorager joined the channel
#
GWG
aaronpk: As an Oauth expert... Other than Refresh tokens... what other cool features could I add to my endpoint?
[tantek] joined the channel
#
barnaby
GWG: 100% test coverage? :P or are you already there?
[schmarty] and [Murray] joined the channel
#
GWG
barnaby: I am testing challenged
#
barnaby
GWG: happy to give tips, although I’ve never done any wordpress plugin testing, and imagine it’s a bit tricky
#
GWG
I test some functionality, but not everything
#
barnaby
are you doing any code coverage? it’s pretty easy to set up, and really useful
#
GWG
GitHub actions and PHP unit
#
GWG
It's designing tests I hate
#
barnaby
I mean using XDebug to track which lines of code/code paths are covered by your tests
#
GWG
No.
#
GWG
I'm sure I could
[snarfed] joined the channel
#
[snarfed]
barnaby++
#
Loqi
barnaby has 1 karma in this channel over the last year (5 in all channels)
#
barnaby
I only just learned how to use GH actions, and set up actions for my new indieauth and micropub libraries which run tests with coverage and static analysis on PHP 7.3, 7.4 and 8.0
#
barnaby
those are some nice numbers [snarfed]!
#
[snarfed]
the first two at least
#
[snarfed]
oauth-dropins’s is also criminally lying, I think it only actually measures webutils. oauth-dropins itself is basically untested
#
barnaby
happy to explain anything confusing
#
[snarfed]
regardless, agreed, testing++ coverage++
#
Loqi
coverage has 1 karma over the last year
#
GWG
barnaby: What is psalm?
#
barnaby
coveralls.io’s design is really nice. I decided to just GH actions for simplicity, but integrated phpunit’s HTML coverage report into the project’s GH pages, so I get automatic static coverage reports for free
#
barnaby
GWG: it’s a piece of software from vimeo which does static analysis of PHP software, and picks up on all sorts of type-related problems which can otherwise be hard to find
#
[snarfed]
coveralls is great except it seems kind of abandoned/on autopilot? https://blog.coveralls.io/ , https://twitter.com/coverallsapp . sigh
#
barnaby
not sure how well it’ll gel with a wordpress plugin, but for my libraries it was extremely useful
#
GWG
barnaby: I see how you are running the GitHub actions testing with xdebug and then phpunit with code coverage. Where does the report?
#
[snarfed]
i did enjoy celebrating bridgy hitting 1k tests a while back though, https://snarfed.org/2016-07-14_18206 . i think it’s at ~1850ish now, looking forward to 2k
#
barnaby
GWG: my GH actions/GH pages coverage reports is a bit of a hack and isn’t quite as integrated as I want. When developing, I run ./run_coverage.sh locally, which generates an HTML coverage report in /docs/coverage, which I open locally and check. This is also what gets uploaded to the GH pages along with the docs, e.g. https://taproot.github.io/indieauth/coverage/
#
barnaby
additionally, the GH action runs coverage tests and reports a basic text output in the action logs. this is intended for me to quickly be able to review PRs without having to pull them locally and run the tests myself
#
barnaby
I can just check in the GH action log and make sure that the overall coverage percentage isn’t lower than the previous one
#
barnaby
and if it is, ask the person sending the PR to write some more tests ;)
#
GWG
I may experiment with that. I switched to GitHub actions for all my repositories recently
#
barnaby
I was thinking of setting up a similar system for php-mf2, if the current maintainters are up for it. I noticed that the service currently used for CI there will shut down soon
#
GWG
Except the ones that I comaintain with pfefferle... haven't done PRs on them to remove Travis
#
[snarfed]
barnaby++
#
barnaby
and it’s about time I did some work on php-mf2 again anyway ;)
#
GWG
I'm a user, barnaby
#
barnaby
[snarfed]: nearly 2000 tests is very impressive! I think my two libraries have about 50 each? but they’re rather smaller than bridgy, of course
#
barnaby
how long does that take to run?
#
[snarfed]
thanks! yeah meaningful coverage is obviously more important than pure number
#
barnaby
I’d love to find a static analysis tool for python which works similarly to psalm. all the ones I found so far were either for niche use cases, or were more for policing coding style
#
[snarfed]
granary (~1100) and webutil (~100) are just 1-2s each, total. bridgy (~600) is longer, ~25s total, mostly because it reads/writes to a database. isolated, in memory, but still.
#
GWG
I should count my tests
#
Loqi
totally
#
barnaby
I get especially annoyed at pylint for telling me that my lines are long, when python makes breaking call chains over multiple lines awkward and ugly. at least you can turn those warnings off
#
barnaby
25s for ~2000 tests including integration tests sounds pretty good to me
#
GWG
22 tests for IndieAuth
#
[snarfed]
barnaby: the github codeql marketplace has some good python static analysis tools. semmle, snyk, defensecode, thunderscan, etc
#
barnaby
thanks [snarfed]++, I’ll look into them
#
barnaby
uh, Loqi
#
barnaby
[snarfed]++
#
Loqi
[snarfed] has 24 karma in this channel over the last year (49 in all channels)
#
[snarfed]
my favorite in depth testing technique is mutation testing, https://en.wikipedia.org/wiki/Mutation_testing . i’ve only played with it, haven’t integrated it enough into real projects, but really cool idea
#
barnaby
ooh interesting, is that similar to intelligent fuzzing? seems like there are some great fuzzing tools available, I’ve never really had a project where it makes sense to use them
#
[snarfed]
right! mutation testing is fuzzing but at the code path (AST) level, not just inputs
#
aaronpk
LaBcasse[m]: here's what webmention.io uses to verify the webmention, it's getting the XML version still: https://xray.p3k.app/parse?pretty=true&url=https%3A%2F%2Fburon.coffee%2Fnotes%2Fweb%2Fthings_we_left_in_the_old_web.html
#
LaBcasse[m]
"code: 200" means that it works ?
#
aaronpk
this is the thing that's used to look for the link to kickscondor
#
aaronpk
so xray got an http 200 from your site, but it also got the xml version not html
#
LaBcasse[m]
You know what it is the HTTP Accept header used by xray ?
#
aaronpk
oh that's a thought... is there a reason you're including the xml line in your html?
jamietanna joined the channel
#
aaronpk
yeah that's the problem, your document isn't a valid xml document
#
LaBcasse[m]
I use the org-mode html export feature, it is the first time I look at the output html !
#
jamietanna
GWG https://oauth.net/2/device-flow/ is one that I'm sure folks have talked about, I'm not sure if that's a convo you've been part of though :thinking:
#
barnaby
ooh mutation testing is fun. just ran a PHP mutation tester over my indieauth library
[jacky] joined the channel
#
[jacky]
is that similar to property testing (where you change up the input to a function to test for edge cases?0
#
barnaby
yep, but changing the AST of the code being tested, and making sure that tests fail after the code was changed
#
barnaby
hmm but I need to figure out how to tell the mutation tester not to cause my code to spit out random files all over my tree
hendursaga joined the channel
#
GWG
jamietanna: I have thought about it...wish I had a device
#
[snarfed]
[jacky] (fuzzing!)
#
[jacky]
snarfed++ yes that's the term!
#
Loqi
snarfed has 25 karma in this channel over the last year (50 in all channels)
#
LaBcasse[m]
I have changed the doctype of the exporter (https://orgmode.org/org.html#HTML-doctypes) and now everything works ! So, xhtml seems to be interpreted as xml ;)
#
aaronpk
no it's specifically the <?xml tag at the beginning
#
aaronpk
xhtml isn't helping, because it's not actually xhtml either
#
jamietanna
so the `accept` header from XRay is `Accept: application/mf2+json, application/activity+json, text/html, application/json, application/xml, text/xml`
#
LaBcasse[m]
Thanks for the information :)
#
jamietanna
oh yeah sorry aaronpk yeah that `<?xml` looks like the cause
[jeremycherfas] joined the channel
#
GWG
jamietanna: Do you have a use case for device grant?
#
jamietanna
Not that I'd actually be able to use right now - but being able to i.e. log into my TV via IndieAuth without needing to i.e. type a password
petermolnar joined the channel
#
[jacky]
jamietanna: that was the reason I came to the Bay Area - to help solve that problem 😭
#
[jacky]
then the company got bought out
#
[jacky]
Murray: that's another option for sure re: site rendering options! I don't actively work on that level of the Web much nowadays so I've been a bit out of touch with it (outside of Eleventy)
#
GWG
jamietanna: That's why I asked...I see refresh tokens... wondering what other cool things I'm ready for now
shoesNsocks, rockorager, [aciccarello] and [fluffy] joined the channel
#
[snarfed]
obligatory conneg--
#
Loqi
conneg has -1 karma over the last year
petermolnar joined the channel
#
Zegnat
Only -1 :o
#
[snarfed]
karmaexpiration--
#
Loqi
karmaexpiration has -1 karma over the last year
#
[snarfed]
!karma contentnegotiation
#
Loqi
contentnegotiation has 0 karma over the last year
#
[snarfed]
contentnegotiation--
#
Loqi
contentnegotiation has -1 karma over the last year
#
jamietanna
contentnegotiation++ because it's great :P
#
Loqi
contentnegotiation has 0 karma over the last year
#
jamietanna
oh damn jacky! that sucks
[tantek] joined the channel
#
jamietanna
GWG could have an bit of an experiment with https://github.com/indieweb/indieauth/issues/43 perhaps?
#
jamietanna
It's on my TODO list as I'd quite like to be able to start my personal clients autodiscovering things
petermolnar joined the channel
#
petermolnar
is there any chance that someone here had successfully set up virtual linux machines on freebsd with bhyve and ipfw based NAT ?
[KevinMarks] joined the channel
#
GWG
jamietanna: Maybe we could have something by the August pop-up. Proof of Concept
[schmarty] joined the channel
Jamietanna1 joined the channel
#
Jamietanna1
Sounds good GWG - I think I should be able to get some time for that
HelpMeUnderstand joined the channel
#
GWG
Jamietanna1: I am always willing to brainstorm
Lohn, calebjasik, chenghiz_, BinyaminGreen[m], jjuran, rrix, Abhas[m], IWSlackGateway, aaronpk, barnaby, superkuh, Seirdy, deeden, HelpMeUnderstand, [schmarty], hendursaga, petermolnar, vilhalmer, shoesNsocks, wagle, [snarfed], jamietanna, KartikPrabhu, sknebel, Seich, joshproehl, doosboox, mikeputnam, [KevinMarks], Jamietanna1, omz13, jeremy, Ruxton, geman-, rhiaro, sebbu, nsh, Kaja, Zegnat, gerben, nertzy__, mgdm, willnorris, cambridgeport904, oenone, moose333, ben_thatmustbeme, neocow, strugee, LaBcasse[m], reed, nekr0z, lanodan, angelo, Saphire, wrmilling, chee, oodani, astralbijection[, batkin[m], [tantek], samwilson, jeremycherfas and justache joined the channel
#
Loqi
ok, I added "https://gabekangas.com/blog/2021/06/an-exciting-update-about-owncast/" to the "See Also" section of /OwnCast https://indieweb.org/wiki/index.php?diff=76165&oldid=76068
[jacky] and gRegor joined the channel