#dev 2022-02-10

2022-02-10 UTC
#
aaronpk
barnaby: while you're at it, can you rename the default branch to "main"?
#
aaronpk
i didn't realize that one was still not changed yet
#
barnaby
yep, not done that before on GH but I’ll take a look at it
#
aaronpk
it's easy, it's in the settings. main thing is to do it before setting up all the config that references branch names
#
barnaby
oh nice. yeah I actually just had to change the build script to use master, so I know to change that one back
#
barnaby
hmm the current version of php-mf2 requires php ≥5.4, but the minimum version in composer.json is 5.6
#
aaronpk
i thought we had decided to drop 5.* support a while back
#
GWG
aaronpk: WordPress is at 5.6 now
#
barnaby
okay, looks like it was agreed a while back https://github.com/microformats/php-mf2/issues/104
#
Loqi
[jonnybarnes] #104 Bump php version support to 5.6
#
barnaby
I suppose that’s another good reason for this to be a 0.5 release rather than an 0.4.7
#
barnaby
GWG: the php codesniffer which was being used in php-mf2 seems to be broken with composer 2, my proposal would be to replace it with GH actions which run the test suite under PHP 5.6, 7.3, 7.4 and 8.0. what do you think?
#
GWG
barnaby: PHPCS is broken with composer 2? I use it in my projects
#
barnaby
there might be a new version which works, but the version which was in composer.json is broken, and I have no idea how to fix it
#
GWG
barnaby: Let me look
#
barnaby
something to do with it being an old plugin, I think?
#
GWG
phpcodesniffer-composer-installer is set to ^0.6. Change it to 0.7
#
GWG
0.7.0 was the first version to support the v2 plugin API
#
GWG
Latest version is 0.7.2
#
barnaby
cool, that worked, thanks
#
GWG
The PHPCS requirement you have is ^2.6 || ^3.1.0, you should be able to bump it all the way up to 3.6.2, latest version, as that supports php 5.4 and above
#
barnaby
there are also a bunch of properties in composer.json which are now invalid
#
barnaby
so I just removed them
#
GWG
The PHPUnit requirements should also be adjusted
#
GWG
You should be able to allow for 5, 6, or the 7 branches
#
barnaby
any idea what the newest version of PHPUnit which supports 5.6 but doesn’t require us to rewrite all the tests with namespaces is?
#
barnaby
6 doesn’t work
#
Loqi
agreed.
#
GWG
Try ^5.0 ?
#
barnaby
looks like ^5 is good for the moment
#
barnaby
^5.7, to be precise
#
GWG
In my code, I use "^5.7.21 || ^6.5 || ^7.5"
#
GWG
To go back to the top of the discussion, I switched everything of mine over to GitHub actions, but I run phpcs as an action.
#
barnaby
as far as I can tell, using v6 requires us to rewrite all the tests using namespaced classes rather than PHPUnit_Framework_TestCase
jacky joined the channel
#
barnaby
so I’ll stick with ^5.7 for the moment
#
GWG
barnaby: Project for another day, possibly.
#
barnaby
exactly
#
GWG
I don't think it gains us anything at this time
#
barnaby
I also want to add psalm into the CI workflow, but that’s another near-future project
#
barnaby
priorities right now are to get CI working again and make a 0.5.0 release
#
barnaby
just running ./vendor/bin/phpcs is all which is required, right? no extra flags or configuration in the command itself?
#
GWG
barnaby: You can set the flags I think in the phpcs file.
#
GWG
We don't though
#
barnaby
yep, which is already set up, right? so the GH actions workflow just needs to run ./vendor/bin/phpcs
#
barnaby
there’s a phpcs.xml file?
#
GWG
Yes.
#
GWG
The only argument in the composer file is -p, but that is progress, you don't need that in GitHub actions
#
barnaby
okay, great
#
GWG
You could also have it just generate the summary report, but I think Actions should show the list of errors, not a summary
#
barnaby
hmm it’s almost there, but the lock file is causing problems in the multi-version action, as composer can’t get the most suitable versions of dependencies for php 5.6
#
barnaby
in my newer libraries I don’t commit composer.lock, to avoid these clashes. any reason not to so do here?
#
GWG
barnaby: I removed it from some of my repos for this reason
#
barnaby
okay, I’ll do the same for mf2
#
barnaby
wow, getting testing tools to work over wide ranges of PHP versions is a pain
#
GWG
Been there
nertzy joined the channel
#
aaronpk
yeah i think i finally gave up on 5.6 with XRay partly because of that
#
GWG
aaronpk: On a positive note, XRay isn't used in WordPress, so that isn't a limiting factor. PHP-MF2 is
#
aaronpk
yea :/
#
barnaby
for the moment I just disabled the php 8.0 action testing, at least until we re-write the tests for a newer version of PHPUnit
#
barnaby
okay, dependencies are updated, composer.lock removed, GH action set up to run tests and code sniffer on three different versions of PHP
#
barnaby
nearly good to go, I think
#
barnaby
GWG: want to have a quick glance over https://github.com/microformats/php-mf2/pull/227 and see if I’ve missed anything?
#
Loqi
[barnabywalters] #227 Update dependencies, get GH actions working
#
barnaby
and any objections to me moving #184 to the 0.5.1 milestone, in favour of being able to make a quick release?
#
barnaby
it’s the only outstanding issue in the 0.5.0 milestone
#
GWG
Looks good to me.
#
GWG
As for #184, I think to get a new version out, it is acceptable
#
barnaby
who knows, maybe 0.5.1 won’t be very far in the future anyway
#
GWG
barnaby: I'm willing to try and pitch in for that
#
[schmarty]1
look at all this exciting php-mf2 work 🎉
#
[schmarty]1
barnaby++ aaronpk++
#
Loqi
barnaby has 4 karma in this channel over the last year (10 in all channels)
#
Loqi
aaronpk has 28 karma in this channel over the last year (128 in all channels)
#
barnaby
GWG++ too!
#
Loqi
GWG has 16 karma in this channel over the last year (69 in all channels)
#
[schmarty]1
GWG++ toooo! also i had no idea WP still supported php 5.6??
#
Loqi
GWG has 17 karma in this channel over the last year (70 in all channels)
#
[schmarty]1
(had to split up the karma since loqi only sees it at the beginning and end of a line)
#
barnaby
oh good to know
#
GWG
[schmarty]1: It was a long time for it to get to 5.6
#
Loqi
Statistics
#
GWG
7.1% of WordPress installs are still on 5.6.
#
GWG
It has to go down a bit before they bump minimum to 7
#
barnaby
aaronpk: I can’t access the branches settings page, can you change master to main? I’ll handle the config changes
#
barnaby
or just bump my access up a notch so I can do it
#
barnaby
thanks!
#
[tw2113_Slack_]
I don't see WP dropping 5.6 support any time soon
#
GWG
[tw2113_Slack_]: I would likely agree, but they seem to want to get there.
#
[tw2113_Slack_]
i think i just wish they'd accept short php array syntax in patches
#
GWG
[tw2113_Slack_]: I've just gotten used to doing without
#
[tw2113_Slack_]
they are doing what they can, from what i've seen, to help ensure they're not going to completely break in php8+ but i don't think it's perfect by any means yet
#
GWG
[tw2113_Slack_]: Re short arrays, https://make.wordpress.org/core/2019/07/12/php-coding-standards-changes/ they made a deliberate decision on that
maxwelljoslyn[d] joined the channel
#
barnaby
okay, php-mf2 v0.5.0 is released! https://packagist.org/packages/mf2/mf2
#
barnaby
only took a couple of hours of frantically relearning github actions xD
#
aaronpk
wow! barnaby++
#
Loqi
barnaby has 5 karma in this channel over the last year (11 in all channels)
#
aaronpk
https://pin13.net/mf2/ is running v0.5.0 now!
#
barnaby
I also added some fancy badges to the readme, and changed a bunch of “I” to “we” to better reflect how the project is actually maintained
#
Loqi
woot
#
barnaby
okay, time for bed. it’s 2am lol
#
barnaby
goodnight
#
Loqi
don't let the bed bugs bite
#
aaronpk
anyone want to write up release notes to summarize the changes? https://github.com/microformats/php-mf2/milestone/4?closed=1
#
[tantek]
barnaby++ superb!!!
#
Loqi
barnaby has 6 karma in this channel over the last year (12 in all channels)
jeremy, jacky, [jeremycherfas] and bneil joined the channel
#
capjamesg[d]
What is elasticsearch?
#
Loqi
It looks like we don't have a page for "elasticsearch" yet. Would you like to create it? (Or just say "elasticsearch is ____", a sentence describing the term)
jacky and baracurda_ joined the channel
#
[tantek]
what is naming
#
Loqi
Naming is hard, yes, even, especially for a personal site since you have to pick both a name you like as a representation of yourself, and one that hasn’t been already taken, though sometimes you can ask nicely (or pay a lot) for domains that are registered but unused https://indieweb.org/naming
#
[tantek]
naming << There’s an oft cited article (which ironically lacks citations of its own) about common mistaken assumptions about names (which is likely a mix of actual bad assumptions, and what seems to be made up by the author), whereas it really should cite articles like this: https://www.kron4.com/news/list-of-illegal-baby-names-in-the-united-states-and-around-the-world/
#
Loqi
ok, I added "There’s an oft cited article (which ironically lacks citations of its own) about common mistaken assumptions about names (which is likely a mix of actual bad assumptions, and what seems to be made up by the author), whereas it really should cite articles like this: https://www.kron4.com/news/list-of-illegal-baby-names-in-the-united-states-and-around-the-world/" to the "See Also" section of /naming https://indieweb.org/wiki/index.php?diff=79559&oldid=74963
#
[tantek]
I'm more and more convinced that there's something about the Twitter UX since at least 2008 that has been dumbing down people.
#
[tantek]
The Argument Machine (Powazek) is part of it. The reduction in "friction" (DHH's post) is also part of it. But there's a bigger story here beyond emotional reactionism reinforced by a dopamine UX.
#
[tantek]
There is a misinformation amplification bias in the UX. There’s a side-effect of reduced attention spans. Reduced ability to focus on deep thinking to solve harder problems.
#
[tantek]
By replicating that UX, Mastodon has replicated most of those problems as well, despite changing plumbing, federation, etc.
#
capjamesg[d]
sknebel I think everything is now over to the new server. The only thing left is to fix my CI pipeline for publishing posts.
_balupton[d], sknebel, [KevinMarks], justGhost, strugee, IWSlackGateway, Zegnat, tetov-irc, aspenmayer[d], petermolnar, daiyi[d], Jeremiah[d], hans63us[d], edburns[d], Zegnat[d], Ramon[d], Christian_Olivie, balupton[d], corenominal[d], sarahd[d], mossymaker[d], aaronpk[d], Murray[d], shaunix[d], capjamesg[d], MarkJR84[d], marksuth[d], rattroupe[d], sayanarijit[d], Myst[d], dovedozen[d], hoenir, Seb[d], Asaf_Agranat[d], wackycity[d], maxwelljoslyn[d], nertzy and jacky joined the channel
#
@nicosomb
@KappaTalks Hello! I try to use your pelican plugin for webmentions. Is that the latest version on your github repository? Thank you for your work.
(twitter.com/_/status/1491803358587277322)
jacky and P1000[d] joined the channel
#
kinduff
[tantek]: "This site is currently unavailable to visitors from the European Economic Area while we work to ensure your data is protected in accordance with applicable EU laws.", mind if I edit with a web archive copy?
#
[tantek]
kinduff, yes please add an internet archive link!
gRegor and jacky joined the channel
#
kinduff
aaronpk: are you still accepting new client ids for indielogin.com?
#
aaronpk
i am trying not to treat it as a general purpose service
#
aaronpk
only for things specifically relating to indieweb infrastructure
#
kinduff
makes sense, im creating a service for the indieweb called mentioner, does that count as infra?
#
aaronpk
possibly
#
kinduff
alrighty, ill send it to you when done, if it does not apply ill host it
#
kinduff
thanks!
#
aaronpk
sounds good
barnaby joined the channel
#
barnaby
I added a better explanation of the various breaking changes to the changelog and GH release, and updated the readme documentation to correctly show the new results of img alt parsing https://github.com/microformats/php-mf2/releases/tag/v0.5.0
gRegorLove_ joined the channel
#
aaronpk
barnaby++
#
Loqi
barnaby has 7 karma in this channel over the last year (13 in all channels)
#
@thomasjsn
↩️ 15 days later — aaaand they're gone! Fun to implement, but I don't really need them. Maybe I'll look into webmentions or something instead.
(twitter.com/_/status/1491857706877079553)
#
[tantek]
which they/them is "gone"?
#
barnaby
according to the thread, self-hosted comments
#
[tantek]
what made them give up on self-hosted comments in 15min?
#
barnaby
maybe take a closer look at the units ;)
#
barnaby
although I can totally imagine getting enough spam in 15 minutes to be put off self-hosting comments
#
[tantek]
oh wow yikes
#
[tantek]
that's worth documenting as a criticism of that particular self-hosted commenting system as a warning to others who might be considering it
#
[tantek]
what is Isso
#
Loqi
isso is a self-hosted commenting server similar to Disqus https://indieweb.org/isso
#
[tantek]
[fluffy] are you still using /Isso?
#
sknebel
"Update Feb 2: 15 days — that’s how long it took for me to remove my comments implementation. It worked just fine, I just decided that I didn’t need it after all."
#
sknebel
"Implementing it was fun, maintaining the additional VPS was not. It kind of goes against my goal with this website; keep it simple."
#
[tantek]
yeah I didn't see the mention of spam on the post. barnaby were you hypothesizing or did you see an actual complaint about spam?
#
barnaby
I was joking based on you apparently having read the “15 days” as “15 minutes”
#
barnaby
and yikes, an entire separate VPS for self-hosted comments? I guess it could make sense if you’re getting vast quantities of comments, but that’s definitely a heavy admin tax for everyone else
#
[tantek]
lol yes, classic ST II WoK mistake/cipher
#
[tantek]
Isso << Criticism: [[admintax]] of maintaining an additional VPS: [https://blog.cavelab.dev/2022/01/comments-again/ Comments — again] (2022-02-05 update) <blockquote>"Implementing it was fun, maintaining the additional VPS was not. It kind of goes against my goal with this website; keep it simple."</blockquote>
#
Loqi
ok, I added "Criticism: [[admintax]] of maintaining an additional VPS: [https://blog.cavelab.dev/2022/01/comments-again/ Comments — again] (2022-02-05 update) <blockquote>"Implementing it was fun, maintaining the additional VPS was not. It kind of goes against my goal with this website; keep it simple."</blockquote>" to a new "See Also" section of /Isso https://indieweb.org/wiki/index.php?diff=79565&oldid=79564
#
sknebel
yeah, if you dont run anything else a VPS-hosted solution just isnt the thing for you
#
sknebel
more "choose the wrong tool for the job"
#
capjamesg[d]
sknebel thanks again for the VPS recommendation.
#
capjamesg[d]
The Hetzner VPS is twice and good and 2x lower in price than my old DigitalOcean server.
#
capjamesg[d]
I decommissioned the DO server today.
#
sknebel
that was fast :D
#
capjamesg[d]
It was all quite routine.
#
capjamesg[d]
Other than the MediaWiki migration.
#
capjamesg[d]
The elastic search one was literally a few commands.
#
capjamesg[d]
With the elastic dump NPM package.
#
[fluffy]
[tantek] Yeah, isso is working more or less fine for me. There’s a lot that could be better about it but people rarely post comments anyway.
#
[tantek]
great good to know
#
[fluffy]
My only real complaint about it is that the author doesn’t seem to care about maintaining any sort of release cadence so there’s a LOT of bugfixes etc. that you have to build from source yourself to get, and the build process is janky
#
[fluffy]
he’s also incredibly pragmatic about supporting just the minimal set of what he thinks a comment system needs to support, and doesn’t seem interested in working on, say, proper antispam functions.
#
[fluffy]
but at least for my site it’s been fine to individually moderate each comment
#
sknebel
[tantek]: still feel like "software needs to run somewhere" is weird to explicitly quote as criticism about software. we can put that on rpetty much any software we document
#
[tantek]
sknebel, not quite. there's a difference between requiring / working with: static-site based systems, more "turnkey" software hosting like Heroku, shared hosting, VPS, and your own hardware
#
[fluffy]
I’m reading the article now. This person is DEFINITELY overcomplicating things.
#
[fluffy]
Isso is intended to run as one tiny Python process on the server that’s already running all your other processes. It only supports SQLite, as well, making it really unsuitable for most cloud providers.
#
[fluffy]
like, one of isso’s mottos is “Comments are not big data”
#
[tantek]
[fluffy] feel free to update / add clarifications to what I added in /Isso
#
[tantek]
I think that kind of summary would be useful to add "intended to run as one tiny Python process on the server that’s already running all your other processes. It only supports SQLite,"
#
[fluffy]
like I mean I don’t want to massively defend isso, it’s far from perfect and it’s very niche (it just happens to be niche in the same way that Publ is niche so it works really well for me)
#
[tantek]
right, accuracy++
#
Loqi
accuracy has 1 karma over the last year
#
[tantek]
point being, you can't run Isso e.g. on Heroku because of the point you made (re: SQLite / cloud providers)
#
[fluffy]
Yeah, absolutely.
#
sknebel
[fluffy]++
#
Loqi
[fluffy] has 6 karma in this channel over the last year (26 in all channels)
#
[fluffy]
One of my many Round Tuit plans is to build a comment system that’s even more like how I want it to operate, but ugh my brain is so far away from programming-for-fun these days
#
sknebel
ugh I feel that one very much
#
[tantek]
same same
kimberlyhirsh[d], KartikPrabhu, gRegorLove_ and tetov-irc joined the channel