#dev 2025-06-01

2025-06-01 UTC
Jako_F_Trades, grufwub, oodani and [jgarber] joined the channel
#
[jgarber]
If I wanted to run IndieNews locally, how would I do that?
#
[jgarber]
I can see it's PHP and uses MySQL, but it's unclear (to me, at least) which versions of each and how someone might get up-and-running to contribute from a fresh clone of the repository.
hormigant and gRegor joined the channel
#
gRegor
[jgarber], funny you mention it, I was looking to try installing to work on the moderation idea and wanted to update the readme with steps. Haven't yet, but I suspect PHP74 or later should work well since it's Slim4. It looks like you can run the schema.sql to set up the db tables.
#
gRegor
Run `composer install` to install the dependencies. The mysql version shouldn't matter much
#
gRegor
what is slim
#
Loqi
Slim is a lightweight PHP framework for developing web applications and is used by several IndieWeb services and projects https://indieweb.org/Slim
#
gRegor
Happy to compare notes in the process. I'll share here (probably work on it tomorrow)
#
[jgarber]
[gRegorLove] Thanks! I’ll see what trouble I can get into. Haven’t touched PHP or MySQL in decades plural so this oughta be fun. 😬
#
[jgarber]
"Fun" isn't the right word, but I got IndieNews running in a hacked together Dev Container.
gRegor and lanodan joined the channel
#
zachary.kai
Some things I've made some folks might find useful: a print stylesheet https://github.com/zk-codes/site/blob/main/assets/styles/print.css and a image formatting php script. https://github.com/zk-codes/site/blob/main/assets/scripts/imgcompiler.php Feel free to pick them apart, of course. I'm no expert!
#
zachary.kai
[edit] Some things I've made some folks might find useful: a print stylesheet https://github.com/zk-codes/site/blob/main/assets/styles/print.css and a image formatting php script. https://github.com/zk-codes/site/blob/main/assets/scripts/imgcompiler.php Feel free to pick them apart, of course. I'm no expert!
#
zachary.kai
[edit] Some things I've made some folks might find useful: a print stylesheet https://github.com/zk-codes/site/blob/main/assets/styles/print.css and a image formatting php script. https://github.com/zk-codes/site/blob/main/assets/scripts/imgcompiler.php Feel free to pick them apart, of course. I'm no expert!
balintm and ttybitnik joined the channel
#
rubenwardy
I've posted an article explaining it and the full source code here: https://blog.rubenwardy.com/2025/06/01/eleventy-stats/
#
rubenwardy
<[social]> BTW, I deeply enjoy your stats page and it is close to what I’ve been wanting to so for year with my blog. Finally getting to updating the code I’m hoping will unlock taking that step for me.
barnaby, oodani, balintm and rolle joined the channel
#
[social]
rubenwardy++
#
[social]
Excellent, thank you for pointing to your write-up.
#
Loqi
rubenwardy has 3 karma over the last year
#
rubenwardy
Thank you for reminding me to share this
#
[artlung]
My StackOverflow bounty has yielded an absolutely bravura answer to Reilly’s question about perceived color. Asked in the Wednesday night HWC. https://stackoverflow.com/a/79646300/63094
vriska, balintm and gRegor joined the channel
#
[tantek]
If you find yourself reinventing a subset of HTML as an abstraction in your application internals, you're likely making a mistake. Just directly use HTML.
balintm and [snarfed] joined the channel
#
[snarfed]
"Any sufficiently complicated C or Fortran program contains an ad-hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp." – Philip Greenspun
#
[tantek]
[snarfed] I was thinking of all the mid-2000s backend code that created baroque XML as an intermediary instead of HTML, and these days baroque JSON as an intermediary instead of HTML
#
[tantek]
Before of course, shipping off that baroque intermediary to some sort of custom template processing code that mixes in possibly "standard" template language to generate actual HTML+CSS etc
[Rohit_Khare] joined the channel
[lifeofpablo] and gRegor joined the channel
#
[morganm]
A little over a month ago I gave this presentation to LinuxFest Northwest about web components. I've showed this to a few people and feel good about it and wanted to share it here in case it interests anyone
gRegor and gRegorLove_ joined the channel
#
rosipov
okay I might be dumb but I'm having a hard time understanding webmention.io vs brid.gy. So I used bridgy to get webmentions from non-webmention supporting sites, but what does webmention.io do?
#
[tantek]
One receives webmentions for you (io) the other sends webmentions to you (Bridgy backfeed)
#
perryflynn
receive/send mentions from sites which support this natively.
#
rosipov
so in theory should I see webmentions from bridgy in webmention.io? Cause I only see them in bridgy but maybe I just didn't finish configuring
#
[tantek]
Bridgy backfeed sends them to wherever you point your link rel=webmention to, so properly setting that up with wm io is your job
#
rosipov
oh yeah I didn't do that yet - thank you. I don't really have conceptual understanding yet, this helps
#
gRegor
Taking a look at installing indienews and adding moderation now
#
[jgarber]
[gRegorLove] As best as I could figure, it’s PHP 8.
#
[jgarber]
Errors installing dependencies with Composer on v7 led me in that direction.
#
gRegor
Sounds good. What are you working on with it?
#
gRegor
On updating in indienews, I mean. Or just running your own version?
#
[jgarber]
Getting it running locally. 😂
#
[jgarber]
Happened upon it last night and had the thought, “hey, what’s it take to run this locally.”
#
[jgarber]
Aside from the issues on the repo, it wasn’t clear how active the project is (aside from being deployed) or what kinds of contributions were most desired.
#
[jgarber]
Or, rather, it’s not clear how to contribute. So, one starting point I’m interested in is making it easier for folks to run the thing locally so that they may more meaningfully contribute.
#
[jgarber]
If that’d be welcome, of course. Not my project and I definitely don’t want to create more work for Aaron (since he owns it) or anyone else who may be managing the repo.
#
gRegor
Definitely welcome. Others can help review and merge PRs. It might auto deploy on merge, I don't remember.
#
[jgarber]
But to more directly answer the question: my first thought was to take a swing through the front-end code since PHP isn’t my specialty.
#
gRegor
And if it doesn't auto deploy yet, hopefully we can get to that without too much work. Other ones like indiewebify.me do that.
#
[jgarber]
But before doing that, getting a quick and easy local dev setup needed doing.
#
[jgarber]
Knowing more about the deployed environment would be helpful. Precise PHP and MySQL versions and whatnot.
#
perryflynn
would be great to have docker support. I did that for micropublish.net as well, since this is a ruby app and it's versioning/dependency pain without docker.
#
[jgarber]
perryflynn: I have a messy first pass at a Dev Container for IndieNews that I got working last night.
#
perryflynn
great. 👍
#
[jgarber]
Not Micropublish, but I’m with you on Docker/Dev Container/etc. setup for these kinds of projects.
#
perryflynn
got that. :-)
barnaby joined the channel
#
[jgarber]
Oh, I see. Micropublish is Docker-ized for production but not for development.
#
perryflynn
nono, it is deployed (as far as I know to heroku without docker and I added as a contribution (I am not the maintainer) dockerfile and docker-compose for local development.
barnaby joined the channel
#
[jgarber]
Ah, gotcha. Sorry, looking on my phone between watching two small kiddos and jumped to a conclusion. 😅
#
gRegor
Took some cajoling since I'm using a subdirectory not a root domain, but think I've got IndieNews installed, woo
#
gRegor
Thankfully have done that with some work projects, just had to remember how, haha
#
gRegor
Hm, might need some direction on how to get the user signed in on *.indieweb.org. Meetable looks like it's using Laravel classes to handle that. IndieNews is on Slim Framework, though.
#
gRegor
Getting out of my depth
balintm joined the channel
#
[tantek]
gRegor++
#
Loqi
gRegor has 36 karma in this channel over the last year (99 in all channels)
#
[tantek]
[jgarber] re contributions to IndieNews, I believe aaronpk has explicitly invited contributions to IndieNews in #indieweb-meta discussions in the past few weeks / months
#
[tantek]
Before redesigning how it's deployed (which feels like rock shuffling a bit?) I'd think it might be better to document how it's currently tested & deployed, and then move onto triaging issues / user requests to focus on user-centric priorities first, tech debt and other cleanup second
#
[tantek]
I can help as a "naive" developer and look at the README from that perspective and start making docs improvements tomorrow
#
[tantek]
tbc I’m not saying ignore tech debt (or cleanup opportunities) but rather file them as issues to be triaged with everything else, or at least as a method of procrastinating them in deference to direct user issues
#
[tantek]
Might be worth taking the side web dev chat to #indieweb-dev before Loqi notices
#
[jgarber]
…this is #indieweb-dev…?
pfych joined the channel
#
gRegor
I don't see unit tests, so not sure there's testing. And agreed, document how env and how it's deployed first.
#
gRegor
what is test in production
#
Loqi
test in production is (AKA testing in production) deploying code changes to a web site or service typically visible to the public as part of checking to see if the code changes function as expected, and is practiced by some IndieWeb creators especially with their own projects as a form of eating their own cooking, often before publishing code changes to an open source repository https://indieweb.org/test_in_production