[jacky], hoenir, Nezteb9000[d], corenominal[d], eco, push-f and chee1 joined the channel
#[tantek]aaronpk, one of the reasons I gave up on iOS shortcuts was the absolutely zero indication of when/why things went wrong. silent failure only
[jeremycherfas] joined the channel
#[jeremycherfas]Is there anything general to be said about rate limiting, like the kind of time period over which it is calculated. I am currently rate limited on a download and wonder how long to leave it before trying again.
[fluffy], jonnybarnes, jeremycherfas, kogepan, KartikPrabhu, alex_ and hendursa1 joined the channel
#jeremycherfasI don't think there is a retry-after in the headers.
#Zegnatjeremycherfas: I do not think there is some form of generic advise. Other than some form of exponentialy increasing wait time. If it did not work after 1 minute, try again after 5 not after 2, then maybe give it 15 etc.
kogepan joined the channel
#jeremycherfasRight. I was going to leave it for 24 hours before retrying.
#jeremycherfasSeems oodd though, because capjamesg[d] got rate limited when he tested my code, and about 18 hours later I was still rate limited. So maybe Marco is especially strict.
#capjamesg[d]How many times did you run your program jeremycherfas?
#capjamesg[d]Because it downloads the .opml file, I only needed to run the "get .opml" part of the code once.
#capjamesg[d]But it wouldn't have mattered anyway because I was rate limited after that.
#jeremycherfasI confess, I am lazy and so download it every time I made a change. I can definitely see the point of using the saved OPML file in future. Might be worth seeing whether it exists and deleting it at the end of the script.
#capjamesg[d]I think that might be a good idea for testing.
#capjamesg[d]In production, you'll need to fetch it every time so you can get the most recent data.
#capjamesg[d]But for testing there's no need to make that API call every time.
#jeremycherfasRight. In production I don't anticipate running it more than once a day.
#jeremycherfasAs I say, pure laziness and failure to consider being rate limited.
#jeremycherfasI don't know, but I think that is an overcomplex approach, for me at least. As capjamesg[d] said, I don't need to fetch while I am testing, and thereafter will fetch only once a day.
#capjamesg[d]If you do go down that route, let me know and I'll try and help you 🙂
#capjamesg[d]s[2] is equal to the etag stored in a database.
#[KevinMarks]That's less likely to get you rate limited
#jeremycherfasStudying your code, and will bear that in mind if I go further.
tetov-irc, jjuran, schmudde, kogepan and hendursa1 joined the channel
#capjamesg[d][fluffy] Do you have any experience working with Flask session?
#capjamesg[d]For some reason, my flask session is not accessible in a module.
#jeremycherfas!tell capjamesg[d] Strange, but my CMS does not seem able to route to the url with 10 added characters. The most it will do is 2. But if I am adding the random characters per your suggestion, then I can get rid of the hours and minutes from the slug, which will give me a few more random to add, I hope.
#capjamesg[d]You could just make the slug a random string without the date, yes.
#capjamesg[d]I don't think two random characters adds enough space to prevent collisions.
#jeremycherfasThere's something I clearly don't understand about how Overcast implements the time of userUpdateDate
#jeremycherfasI want the at least the day in there. And yes, two is not enough. So, rejigging slightly now.
#jeremycherfasIt does seem an odd limitation, and much longer slugs are routed perfectly well.
Ramon[d] joined the channel
#Zegnatjeremycherfas: sounds weird that you would run into some slug limitation. What are you trying to do?
#jeremycherfasIt is weird. I build a folder name from the date on which I updated details of a podcast. So, typically, 2021-10-15, and in PHP it was relatively easy to increment that to 2021-10-15-1 etc if I updated more than one on the same day. In Python I have not yet found a good way to increment the folder name in that fashion if it already exists.
#jeremycherfasSo capjamesg[d] suggested I just add a random string to the slug to avoid duplicates.
#jeremycherfasBut strangely, Grav does not seem to like long random strings, and rather than find out why that may be, I've been trying to find the shortest random string that grav will process.
#capjamesg[d]You can keep track of all the slugs in a dictionary.
#capjamesg[d]If a date is in the dict, you can change the key value to count how many have been stored. And then change the slug so that it is date + number of times used.
#capjamesg[d]That will give you an incrementing logic.
#capjamesg[d]Where "slug" is equal to the one your logic already creates.
#capjamesg[d]That code should not add much onto your execution time. Dictionaries are very efficient for this sort of thing.
#jeremycherfasDoes the dictionary not need to be stored from run to run?
#capjamesg[d]It would need to be, yes. Ah, I didn't think about that.
#capjamesg[d]But in any case, you could just store it in a .json file.
#capjamesg[d]Read the file at the start, save at the end.
#jeremycherfasI think a better option is for me to look more closely at the meaning of the date I am using to build the slug. I'm even wondering if it might make a difference to have the random digits in front of the date.
#jeremycherfasEven weirder. Seems that it Grav will process effectively; I had to clear the cache. But the very weird part is that those items should never have been part of the cache as they had never before been called.
kogepan and alex11 joined the channel
#[fluffy][capjamesg] i use flask.session a lot but only from the top level app. never used it in a blueprint. not sure what you mean by a module in this context
#capjamesg[d]I have a file accessing session (what I meant by "a module") and for some reason session is always blank when I access it in that file.
#capjamesg[d]I haven't dug deep enough yet though. I might be missing something obvious.
#[KevinMarks]does the route need to pass the session info down? (I've had that issue with other frameworks)
#[jacky]let's say I received a Webmention whose page has a limited visibility (like if in order to access it, we have to go through a TicketAuth dance), how would I show that on _my_ site? I immediately went to thinking "I'd probably need to allow people to sign into my site so I can probably begin some sort of 'authorization' on content"
#[jacky]But that gets a bit tricky if my Webmentions are stored _externally_ of my site, no?
#[jacky]And of course, I wouldn't want to show a 'hint' that there's more content if you sign in mainly out of respect of said limited content
#[jacky](At first, I thought this wouldn't work for static sites but one could use JavaScript to get these mentions and dynamically render them, tbh!)
#@DenverProphitJr↩️ @DailyDevTips1 Using what I described, do you think that would be a better solution than a #github fork? Create your pet page on your on website and web mention it to her project. Send extra Json fields in #webmention to populate her pages (twitter.com/_/status/1450138492655349760)
KartikPrabhu and jonnybarnes joined the channel
#@DailyDevTips1↩️ Would be an option, but you loose all control that way.
Not sure if that's the goal, but indeed you could enable webmentions for people to add a very specific string of elements. (twitter.com/_/status/1450148262586028035)
#[tantek]I'm a little confused by these two tweets
#capjamesg[d]Is h-x-app likely to be removed? I liked the ideas about having some kind of manifest rather than microformats.
#gRegorNot sure if indexing any -x properties is worthwhile since it's experimental, but maybe.
#capjamesg[d]This isn’t for indexing, rather for my own consumption.
#capjamesg[d]I would add the markup to my Micropub server, etc. so that my indieauth server can read the data.
#capjamesg[d]I am not going to index any right now. Angelo got me thinking about /store. It’s such a promising idea but we would need more adoption of a common markup / manifest.
jamietanna joined the channel
#jamietannaI think the discussion last time was call it h-app and h-x-app with the preference that we stop using x- experimental as it takes a while to get folks moved once its no longer experimental
#jamietannaBut also yes, add it! More folks using it leads to more consumers ☺
#gRegorSounds right. I think that's why I used h-app and h-x-app on indiebookclub.
#GWGI still would like to propose moving to Web Manifests over h-app. But that's me
#Loqi[tantek] I have user-surveillance and user-control concerns about the Idle Detection API. Even with the required 60 second mitigation, it can be used for monitoring a user’s usage patterns, and manipulating them accordingly. (Also noted in Mozilla’s forma...
#Loqireactions refer to the subset of responses/interactions with a post that are quicker, more impulsive, but still a conscious act, typically a simple UI gesture without writing any content, such as likes (reacji), reposts, bookmarks, or perhaps multiple simple UI gestures, such as selection a text range and posting a quotation of part of a post, or picking a person from a list to post an invitation as a response to seeing an event https://indieweb.org/reactions
#[tantek]First cut I'm thinking of filtering everything through an allowlist
#[tantek]based on the kinda nonsense that happens on Twitter these days. Can't trust / expect that any particular icon / alias / profile URL won't have something nasty/spammy in it
#[tantek]kinda mixed on whether to show counts or not (e.g. like GitHub does for /reacji)
[snarfed] joined the channel
#[snarfed][tantek] ruh roh, I don't think Bridgy backfeeds emoji reactions on GH comments right now, just issues/PRs