#dev 2024-03-16

2024-03-16 UTC
jacky, to2ds, kleb, CRISPR, [Al_Abut], angelo and mitchsucksatgame joined the channel
#
[tantek]
long post about the fix I made to the Infobox template style element so it wouldn't spew raw CSS or bits of CSS comments into the newsletter: https://tantek.com/2024/075/t1/css-more-robust-style-element
#
[tantek]
or, how to robustly use a style element
#
Loqi
[preview] [Tantek Çelik] While an HTML style element for inline CSS needs nothing but simple start and end tags (as of HTML5 and later) <style> p { margin:0 } </style> a more robust style element requires a precise series of overlapping code comments. Here is the answer ...
#
[tantek]
nailed the Loqi teaser preview again! ✊
#
[tantek]
I wonder how many badly written RSS readers will get screwed up from this post
doubleloop joined the channel
#
[tantek]
changed the styling to be more obvious if an RSS reader gets the markup parsing wrong
doubleloop, EasyAIFixer, [qubyte], [Al_Abut], [bjoern], [pfefferle], [dominik], [Joe_Crawford], [Murray], [Scout], [jeremycherfas], [tantek], IWSlackGateway, [Fran], [aciccarello], [Paul_Robert_Ll], [contact898], [Tilley], [KevinMarks], [campegg], jjuran, mitchsucksatgame and Jfi joined the channel
#
Jfi
sadambaghban88@gmail.com
#
Jfi
Iska password pata karna yah ID open Nahin ho rahi
#
Jfi
Koi kar sakta hai to kitne paise Lenge aap bata de
lazcorp joined the channel
#
lazcorp
[tantek] - Inoreader copes with it just fine - no red or orange text
juancho, jjuran, [David_Peach], [contact898], hello1, mahboubine, jacky and ttybitnik joined the channel
#
[tantek]
Good to know!
chimo joined the channel
#
[campegg]
To circle back on my Postgres question from yesterday, I set up a cron job to `pg_dump` a copy of my database every 4 hours, which I can FTP to my local machine when needed (and also use as a backup). From there, I cobbled together a bash script that drops the local copy of the database and uses the dumped file to restore a copy. It’s a bit hacky, but it works.
#
[Tilley]
If it works for day jobs, it's good enough for personal projects!
jacky, bret and bret_ joined the channel
#
[campegg]
Exactly that! Thanks for the example script—it was a huge help
#
[campegg]
[Tilley]++
#
Loqi
[Tilley] has 1 karma over the last year
[Tilley] joined the channel
#
[Tilley]
No problem! I'm glad it was helpful
sav joined the channel
#
starrwulfe
RIP Facebook Bridgy connector plugin thingie.
#
starrwulfe
Facebook’s “mbasic” site is a hot mess now and the link namespace scheme isn’t working anymore so it’s outta whack.
opadougie and [snarfed] joined the channel
#
[snarfed]
sigh. RIP indeed. sorry for the bad news, I have no plans to try to keep that thing limping along
#
[snarfed]
starrwulfe PRs are welcome if you want to!
#
[snarfed]
wait starrwulfe it looks like Bridgy Facebook is still working fine. those two failures are 500s from your site
#
[snarfed]
(...from your site's wm handler)
#
[David_Peach]
with regards to the post kinds plugin. If i were attempting to make that work for Gutenberg, would it be best to make a separate plugin or merge functionality with existing?
#
[David_Peach]
Ideally same i think for interop
#
[David_Peach]
just thinking out loud
[jeremycherfas] joined the channel
#
starrwulfe
I think maybe the same, but it really depends how you'd actually pull it off. I don't mind living in a "blocky" world now that I've gotten some things manageable on my current site incarnation. As long as I don't have to redo the whole thing.
#
starrwulfe
I'd appreciate it if there was a section where kinds could follow a category/tag. I have to manually set those now, but I'd like to program a taxonomy so that way the RSS feeds, hashtags in syndication all get done correctly. It also makes it easy when going the other way with something like Ulysses so the tag/category combo would set the post kind too.
#
IWDiscord
<s​tarrwulfe>
#
IWDiscord
<s​tarrwulfe>
#
Loqi
BUT has -1 karma over the last year
#
starrwulfe
Dangit. me and my emdashes again. BUT had it coming though. LOL
starrwulfe joined the channel
#
starrwulfe
¯\_(ツ)_/¯
#
starrwulfe
[snarfed] My webmention plugin has been doing silly things lately. Not suprised at all
#
starrwulfe
wait a tick... The comment link seems to have disappeared on the Facebook side.
#
starrwulfe
Also the thread for another post isn't even being picked up for some reason. Again, URL schema changed I think. The sooner Threads goes activitypub or can pull comments through their API, the better.
#
[snarfed]
I wonder if the wm 500 on your site is because the backfed replies have no content. they're just pictures, which Bridgy doesn't try to scrape and serve yet
#
[snarfed]
cc GWG/[dshanske]
#
GWG
I'm a little confused by a few of those statements about the category/tags
#
starrwulfe
TIL. Didn't know that
#
GWG
But, I'll have to look at the code, but it shouldn't 500
#
starrwulfe
I'm running the plugin in Vivaldi; should I be doing it in Chrome?
#
GWG
I don't understand the question again
[tantek], jacky and [aciccarello] joined the channel
#
[tantek]
I am learning people do not understand the diverse state of HTML parsers out there
#
[tantek]
like do folks have any idea how many different OGP parsers are out there?
#
[tantek]
like every single piece of software that displays link previews
#
aaronpk
i think people also like to think that OGP parsing is not HTML parsing
#
[tantek]
lol indeed
#
[tantek]
voxpelli++ for kindly jumping into the replies
#
Loqi
voxpelli has 2 karma in this channel over the last year (7 in all channels)
#
voxpelli
thanks [tantek] 🙏
#
voxpelli
Yeah, and link previews are hard, eg Facebook doesn’t just pull the metadata and show it, they also have heuristics to determine if a piece of metadata is good enough to show or not
#
voxpelli
Eg: If the preview image defined isn’t high res enough they will skip it
#
voxpelli
Learned that first hand when I built a link previewer for Bloglovin and discovered that all Blogspot blogs gave the blogspot logo but Facebook ignored it…
#
voxpelli
So I also had to add heuristics for it to not be crazy, but as a simple time boxes project I couldn’t do that to the same degree as Facebook…
#
voxpelli
So in essence that data wasn’t as curlable as people thought it was
#
voxpelli
@[tantek]: A fun paradox with the lack of style parsing is that one kind of need to parse and apply styles if one fully wants to know how to interpret text as eg “white-space: pre;” changes that, right? ;P
#
[tantek]
hah! seemingly so (paradox) but not necessarily. I'm pretty sure we (in standards) solved that with xml:space
#
[tantek]
for example, mf2 space handling does not depend on CSS
#
voxpelli
that’s good 😌
#
[tantek]
voxpelli, e.g. I use it in my Atom feed: <content type="xhtml" xml:base="https://tantek.com/" xml:space="preserve">
#
Loqi
[preview] Tantek Çelik
#
voxpelli
Oh, right, yeah, I remember you doing something like that
[KevinMarks] joined the channel
mitchsucksatgame, jacky and [qubyte] joined the channel
#
[snarfed]
hey [manton], just checking, you handle http sigs both outbound and inbound in http://micro.blog, right?
#
[snarfed]
(for AP)
#
[qubyte]
Perhaps topical, I use JSDOM has part of my webmention dispatch code. It just tripped over some inline nested CSS on a page.