#dev 2022-02-21

2022-02-21 UTC
nertzy, angelo, KartikPrabhu and vika_nezrimaya joined the channel
#
vika_nezrimaya
That feeling when there were lots of updates to the IndieAuth token endpoint spec and https://tokens.indieauth.com/token doesn't follow it because, as far as I remember, it's old as heck
#
vika_nezrimaya
now there's HTTP 200 {"active": false} instead of HTTP 400 {"error": "unauthorized"}
#
aaronpk
it's also a separate endpoint
#
vika_nezrimaya
huh, now I'm thinking which part of the spec I'm supposed to follow
#
vika_nezrimaya
I am very confused
#
aaronpk
i'm still working on a post, but there's basically a bunch of new endpoints for the various functions the token endpoint was doing
#
vika_nezrimaya
honestly I'm planning to build that functionality into Kittybox so I could follow all of the spec stuff
#
vika_nezrimaya
but... for now I would like to at least port the existing features into my another rewrite
#
vika_nezrimaya
because I'm switching async runtimes over a heisenbug that I'm trying to track down
#
vika_nezrimaya
it's a funny story but my app starts hanging after some amount of requests
#
vika_nezrimaya
and I think the async runtime is bugged because I tried almost everything
#
vika_nezrimaya
and I do not believe my code could produce that bug
#
vika_nezrimaya
but I decided to throw out half of my code nevertheless, leaving only the core application logic... and maybe my storage backend logic
#
vika_nezrimaya
if the bug is still there, then it's the storage backend logic
#
vika_nezrimaya
because my core application logic doesn't concern itself with async scheduling at all
#
GWG
vika_nezrimaya: Hello. Hope all is well.
#
vika_nezrimaya
it is well... at least I'm not garbling any data in my storage backend
#
vika_nezrimaya
I'm just forced to restart the process after some time, which is usually indicated by the server's fan going crazy
[tw2113_Slack_], jacky, justAstache, toastloop, Eddy04[d], e-snail, antrdnv[d], jjuran, srushe, ancarda, capjamesg, KartikPrabhu and tetov-irc joined the channel
#
Murray[d]
What are feeds
#
Murray[d]
Edge-case question: most of the content on my site is ordered chronologically. But sometimes, I will post a new article "in the past", including posting what is a "new" post that now appears before older content in the timeline. In terms of feeds like Atom/RSS, is there a preference as to whether these should mirror that chronology or would it make more sense to float new content to the top? Does anyone else run into this issue?
#
Murray[d]
also intreinterestedsted in how to solve for `h-feed` if I'm not about to change my display order on the site; it's chronological for a reason. Are there any tricks for informing a feed reader that the visual order is not the preferred order for subscribers?
#
Murray[d]
*interested (not sure what happened there, I blame spellchecker 😂)
#
[tonz]
presumably you could have a separate RSS feed based on add/changed timestamp rather than publication date? Some people seem to have that in my feedreader, where all of a sudden very old posts show up on top after a change (like cleaning up url, embeds etc)
#
Murray[d]
Yep, I guess my question RE: RSS/Atom is which behaviour is more common/preferred. I can make that feed provide any order I want, but what's best practice? Should I pull those posts to the top, or display them in order as per the site?
#
[KevinMarks]
a lot of feed models only show the most recent n (defined as 15 by the RSS spec at one point), so an old post may not show up id there are a lot in front of it
#
Murray[d]
that's true (and something I "use" to hide true backfed posts). So in that case, I probably should change my feed order to be date published rather than the actually relevant date (date occurred) that my site uses 🤔
#
Murray[d]
so I guess that provides a good argument for RSS, but what about `h-feed`? Is there any way to signal to consumers that the feed order as shown is not the relevant feed order?
#
Murray[d]
what is h-feed
#
Loqi
h-feed is a microformats2 draft specification with a top level feed object to contain root class(h-*) objects, usually h-entry posts and optionally a common author, name, and representative photo https://indieweb.org/h-feed
sebbu, Ramon[d] and rMdes_ joined the channel
#
[jgmac1106]
I know everyone isn't a fan of cards for layout but I like them. I try to animate a flipping front to back but that breaks all the time and I am not updating my stylesheet. I need to simplify. Can I stack two divs with z-index and make one appear on click and the other disappear?
KartikPrabhu1 and nertzy joined the channel
#
Murray[d]
Sure, that'd definitely work. Have a container with relative positioning, absolutely position the two child elements to the top-left and give them the same width and height and use z-index to hide one behind the other. Then you can either change the z-index value or even just set the opacity to 0 or display: none when an action is taken. `:hover` would be natively supported with just CSS (but not great on mobile) or add/remove a class with j
#
Murray[d]
`classList.toggle()` is your friend for that last bit 😄
#
Murray[d]
(also, mobile browsers are pretty good at swapping `:hover` to `onclick` these days, so that might work out most easily)
jacky, GWG, [schmarty], nertzy, ancarda, srushe, capjamesg, angelo, Seb[d], tbbrown, alex11 and zerok[m] joined the channel
#
e-snail
how serendipitous: I just read Rowan Manning's article (https://rowanmanning.com/posts/webmentions-for-your-static-site/) about this very topic
jacky, ben_thatmustbeme, [aciccarello], mro, tbbrown and barnaby joined the channel
#
jacky
I've been looking for documentation on how to do this https://feeds.arstechnica.com/arstechnica/index
#
jacky
like CSS one's RSS feeds
#
aaronpk
it's called XSLT and there be dragons
#
jacky
heh tbh I just wanted to make it look a bit 'nicer' (not for feed readers but in browsers)
#
aaronpk
you can usually just steal someone else's XSLT file
#
aaronpk
i grabbed the wordpress one for one of my podcast feeds
#
jacky
ah bet
#
aaronpk
it's a cool idea, but really a pain to work with
#
jacky
wow actually, lol, someone could use this to turn a Atom feed into a h-feed
#
aaronpk
haha sort of
#
jacky
yeah this is def going to be one of those "work with a glass of whiskey" kind of things
#
aaronpk
nobody's microformats parser is going to apply the xslt first :P
#
jacky
oh true lol
#
jacky
heh this is _def_ only for browsers then
#
barnaby
if anyone used client-side mf parsers for anything (e.g. in browser extensions) it’d work
#
barnaby
…probably
#
jacky
heh now that sounds like an experiment
#
zerok[m]
jacky: or also for stuff like pdf generation but that’s an even deeper rabbit hole 🤪
#
jacky
omg mf2 embedded in pdfs only discoverable in a browser
#
barnaby
nooooo
#
zerok[m]
What have I done 😞
tbbrown joined the channel
tbbrown joined the channel
#
[KevinMarks]
atom to h-feed I do with jinja2 and feedparser.
#
[aciccarello]
Looks like there's also a note about XSL on /OPML
#
[aciccarello]
Looks like /RSS#See_Also could use a cleanup
#
jacky
[aciccarello]: thank you!
angelo joined the channel
#
[snarfed]
granary XML + XSLT => HTML could be a reasonable feature request
tbbrown joined the channel
#
[KevinMarks]
I had a granary thought on the weekend - Goodreads feed to actually useful feeds (the others will have better suggestions for what actually useful means)
tetov-irc joined the channel
#
petermolnar
my XSLT for ATOM is at https://petermolnar.net/feed/atom.xsl and for OPML at https://petermolnar.net/opml.xsl if someone wants it
[chrisaldrich] joined the channel