#dev 2025-05-21

2025-05-21 UTC
jeremycherfas, grufwub and gRegor joined the channel
#
doesnm
perryflynn: ReactCSS when?
claudinec, GuestZero_, barnaby and jjuran joined the channel
jjuran and karjala joined the channel
#
[artlung]
I appreciate the shout out link whether it stays or not. How freeing it is to have a space for little one-offs! capjamesg[d]++
#
Loqi
capjamesg[d] has 48 karma in this channel over the last year (208 in all channels)
barnaby joined the channel
#
[jeremycherfas]
I’m struck, once again, by how little I understand under the hood. Looking at `php_error.log` for one thing in particular, I notice all sorts of warnings and fatal errors that I never notice looking at my own sites. Now I wonder, is it worth tracking those things down and fixing them? And in general, how do people make use of `php_error.log` if they are not actively trying to fix something?
Guest6_, barnaby and btrem joined the channel
#
btrem
I'm trying to figure out how js libraries like moment build strings using tokens. Anyone know where such a thing might be explained?
#
btrem
This is one of those hard-to-search-for topics. For example, "javascript build string with tokens" brings results for how to /split/ a string into tokens.
#
btrem
And "how does moment build strings with tokens" gives me pages explaining how to format date strings.
ttybitnik joined the channel
#
[KevinMarks]
You could read the code or step through it while it formats some examples https://github.com/moment/moment/blob/develop/src/lib/format/format.js
#
btrem
I did consider reading the code, but I don't know what I'm looking for, since I've never done anything like this. And I'm very much an amateur, so I think it'd be hard to recognize. Same thing with stepping through it. I know my editor can debug -- I can put stop points in code -- but I've never actually done it.
[tw2113] joined the channel
#
[tw2113]
I’m curious if Firefox tab groups persistence will be in a future update. Would love to have them longer than browser session
#
btrem
But I'm off to see what I can see. Wish me luck!
#
btrem
[KevinMarks]++ thanks, you found the format part /way/ faster than I would have. And can I just say, whoa, that's a lot of code! :-/
#
Loqi
[KevinMarks] has 11 karma in this channel over the last year (28 in all channels)
#
[tantek]
[jeremycherfas] share what resources you find. I suspect I need to check my own PHP error log
#
capjamesg
[tantek] I have written a blog post about the edit button browser extension: https://jamesg.blog/2025/05/21/building-an-edit-button-browser-extension
#
capjamesg
[edit] [tantek] I have written a blog post about the edit button browser extension: https://jamesg.blog/2025/05/21/building-an-edit-button-browser-extension
#
capjamesg
I even use custom protocol handlers!
duanin2 joined the channel
#
[tantek]
capjamesg++ very well written post on the functionality and how you built it!
#
Loqi
capjamesg has 49 karma in this channel over the last year (210 in all channels)
#
capjamesg
Thank you! It was tricky to write because I am still figuring things out, but I thought it would be best to get something on the page.
#
capjamesg
Building this feature only increases my conviction that Firefox is the best browser for me 🙂
#
capjamesg
Although I'd really like URLPattern support 😛
#
[tantek]
I think it's coming? Let me check...
#
[artlung]
Excellent work capjamesg[d]++
#
Loqi
capjamesg[d] has 50 karma in this channel over the last year (211 in all channels)
PsyLok joined the channel
#
btrem
An issue I filed on GH got labelled "bug: lite". :-D Didn't know that was a thing.
#
[aciccarello]
btrem, is that a repo specific label?
#
[aciccarello]
I'm not sure what a lite bug would mean 😂
#
[aciccarello]
I'm thinking of fireflies now
#
perryflynn
Bug with low or none impact I guess? 🤷‍♀️
[aciccarello] joined the channel
#
btrem
[aciccarello]: Probably.
#
btrem
perryflynn: I'm pretty sure that's what it means.
gRegor and ttybitnik joined the channel
#
btrem
Here's the issue if you're interested: https://github.com/11ty/eleventy/issues/3788
#
[aciccarello]
Ah, here's the label description: "Debatable whether or not this is a bug. I mean, it’s not great but it’s not really broken either."
#
[aciccarello]
Zach is so chill 😆
#
btrem
A brief explanation: using 11ty, if you add a shortcode with no parameters in a nunjucks template, 11ty changes the call by adding an empty string as the parameter.
#
btrem
[aciccarello]: I'd rate the issue as more than an edge case, but otherwise not too serious.
#
[aciccarello]
Yeah, probably bigger than the tag description implies but not a show stopper for most people.
#
btrem
The problem arises if one creates a shortcode with a default value, such that `{% myCode %}` would work the same as `{% myCode "foo bar" %}`. I created such a shortcode, and my validation routine was failing, because I wasn't testing for an empty string.
#
btrem
So it set me back a few hours. I do think it's a bug, because in javascript (which 11ty is based on), calling `myCode()` sends `undefined`, not `""`. And in fact that's the way 11ty works if you use liquid as your template language. Only nunjucks is different.
#
btrem
It was set that way to get around a nunjucks bug.
[schmarty] and NaomiAmethyst joined the channel
#
[artlung]
Working on a silly digital clock today. https://codepen.io/artlung/pen/gbbVggK Just the harness for clock parts now. Eventually I want to make it work with CSS only which I *think* will be possible.
duanin3 joined the channel
#
perryflynn
Cool. 👍
#
[tantek]
aaronpk I believe I found a bug in http://webmention.io maybe due to out of date mf2 parser! Compare https://pin13.net/mf2/?url=https%3A%2F%2Fartlung.com%2Flikes%2F923b8a5dec6db81dda6488c3ba5092a4 to https://ruby.microformats.io/microformats?utf8=%E2%9C%93&url=https%3A%2F%2Fartlung.com%2Flikes%2F923b8a5dec6db81dda6488c3ba5092a4 - note h-entry u-like-of property has an explicit 'value' in the latter with a URL and not in pin13 (and thus
#
[tantek]
presumably not wmio)
#
[tantek]
this results in this like: https://artlung.com/likes/923b8a5dec6db81dda6488c3ba5092a4 being treated only as a "mention" by wmio when I call the API
#
[tantek]
this is due to the older parsers not knowing about how to handle u-* properties with an embedded object like h-cite, must re-use the u-url of that embedded object as the plain 'value' of the u-* property per “if that child element itself has a microformat ("h-*" or backcompat roots) and is a property element, add it into the array of values for that property as a { } structure, add to that { } structure: value: ” in
#
Loqi
[preview] Tantek Çelik
#
aaronpk
Hmm it should be pretty up to date
#
[tantek]
This led down a rabbithole on http://microformats.io with several of the subdomains being broken in various ways, e.g. php. and ruby. (home page)
#
[tantek]
Is there an option on pin13 to try the "latest" (top of tree) php-mf2 parser?
#
[tantek]
it's been ~3y since a release of php-mf2, if the top of tree fixes this bug, might be time to assess doing an updated release
#
[tantek]
since we have indieweb posts / content in the wild depending on the latest mf2 parsing spec
#
aaronpk
is the php parser out of date? the latest release is 0.5.0 which is what's on php.microformats.io https://github.com/microformats/php-mf2/releases
#
aaronpk
i don't have a demo parser hosted that uses an unreleased version
#
aaronpk
wow yeah, we should do a release, i can't believe it's been that long
#
[artlung]
[tantek] it sounds like my markup is okay then?
#
[tantek]
[artlung] yes as far as I can tell from human inspection 🙂
[capjamesg] and balintm joined the channel
#
balintm
o/ do y'all think it's more appropriate to use 301, or 302 for redirecting on permashortlinks?
#
balintm
something else…?
#
perryflynn
I always use "found" / "temporary" because it screwed me multiple times in the past when I wanted to change a permanent redirect for reasons.
#
balintm
perryflynn how did it screw you if you don't mind me asking?
#
perryflynn
permanent redirects are cached in clients browser. so I can't change the behavior for a unspecified amount of time.
#
perryflynn
benefit is that the client is doing the redirect without talking with the server, so one redirect less, but that can be the problem at the same time.
#
perryflynn
if you want to change the redirect target.
#
perryflynn
maybe not a problem for permalinks. but...
#
balintm
right, i can see how that can be problematic for some use cases
#
perryflynn
*one request less
#
balintm
i'm thinking the way i'm managing permashortlinks now is stable enough to use 301. MDN says about 301 "Search engines receiving this response will attribute links to the original URL to the redirected resource, passing the SEO ranking to the new URL", which, not a *real* concern with the kind of traffic i'm driving through search (~0), but it still feels better in the long term to consider that
#
perryflynn
👍
#
Loqi
perryflynn has 1 karma in this channel over the last year (5 in all channels)
#
balintm
perryflynn++ thanks for the perspective!
#
perryflynn
yw
#
perryflynn
Regarding CSS challenges, I created a Simon says clone some time ago: https://guenther.serverless.industries/
thegreekgeek and gRegor joined the channel
#
gRegor
That Ruby parse is implying a name on the h-cite too, which I think is also behind on the spec (not related to wmio seeing it as a mention though)
#
gRegor
I thought wmio was using XRay. We debugged another mf2 thing on Joe's likes at HWC the other week about h-card
#
gRegor
Ah, the wm for that like was received before those updates too (I think?) 2025-05-02: https://webmention.io/api/mentions.jf2?target=https://tantek.com/2025/120/t1/indieweb-movie-club-tomorrowland
#
gRegor
There's still something a little wonky in there. I think the main fix we helped [artlung] with was adding p-author (or u-author) on the h-card. Not sure why that would make XRay parse it as a mention vs like
#
[tantek]
oh hey that looks much better!
#
[tantek]
curious how it got the proper like-of
#
[tantek]
maybe x-ray has embedded h-cite smarts?
#
gRegor
I think one issue was the like page had an h-entry and h-card, so XRay was seeing a collection of h-* and showed it as a feed initially
#
[artlung]
If [gRegorLove] resent it then maybe [tantek] was looking at the old resulting webmention json? Or do I have the order wrong.
#
gRegor
The wmio feed I linked above did update, though not the original wm-received date. It is showing it's a like-of now.
#
gRegor
Whatever other fix we made that night made XRay see it as an entry instead of a feed, so I think webmentions send after 5/14 should be good
#
gRegor
Also thanks for the reminder, need to re-watch Tomorrowland!
#
gRegor
Ah good, we did document that on /XRay "The instance of XRay run by Aaron Parecki at https://xray.p3k.app is used by webmention.io to parse comment text, and used by Loqi to display a text summary of URLs in the IRC channel."
#
gRegor
XRay runs php-mf2
#
gRegor
Well that was a fun rabbit trail :)
#
aaronpk
Wait do I need to do anything?
#
gRegor
I don't think so