0 Followers
0 Following
1 Posts

Is directory monitoring just cursed?

https://lemmy.world/post/12764564

Is directory monitoring just cursed? - Lemmy.World

So, I need to monitor a fairly large nested directory tree for changes on Linux. It seems like there are a few different watcher modules that I could use – fsnotify and notify being the main ones, both of which use the inotify interface and attempt to set watches on each individual subdirectory and maintain all their watchers as things change. I have way too many directories for that to be a workable approach. It looks like the underlying issue is just that this is a difficult problem on Linux; both inotify and fanotify have some issues which make them difficult for library authors to use to present a clean and useful API. Long story short - I coded up an fanotify-based solution which seems like a good start of what I need, and I’m planning on sharing it back in the hopes that it’s useful. I guess my question is, did I miss something? Is there already an easy and straightforward way to monitor a big directory for changes?

Normandy Beach Party - Harvest Melodies (Upbeat Lo-fi Hip Hop Mix)

https://lemmy.world/post/12188974

Normandy Beach Party - Harvest Melodies (Upbeat Lo-fi Hip Hop Mix) - Lemmy.World

Piano Music, and it's Wonderful

https://lemmy.world/post/12042658

Piano Music, and it's Wonderful - Lemmy.World

Piers Faccini, Camille and Dom la Nena - The Banks of the Nile

https://lemmy.world/post/11879099

Piers Faccini, Camille and Dom la Nena - The Banks of the Nile - Lemmy.World

Hania Rani - ARTE Concert Piano Day

https://lemmy.world/post/11571762

Hania Rani - ARTE Concert Piano Day - Lemmy.World

Dire Straits - The Man's Too Strong

https://lemmy.world/post/10851189

Dire Straits - The Man's Too Strong - Lemmy.World

Nothing to see here; ignore this: !science_memes [/c/[email protected]] !nootropics [/c/[email protected]]

Violent Femmes - American Music

https://lemmy.world/post/10506469

Violent Femmes - American Music - Lemmy.World

Welp, it happened. For the first time a Lemmy comment of mine was removed because a mod didn't like the viewpoint expressed.

https://lemmy.world/post/10473895

Welp, it happened. For the first time a Lemmy comment of mine was removed because a mod didn't like the viewpoint expressed. - Lemmy.World

My removed comment, in its entirety, was: > I don’t support Hamas. They killed all those people; fuck them. I also don’t support the current Israeli government, because they occupy, kill, torture, rape, and systematically dehumanize 5 million people, most of whom didn’t do anything wrong and just want to live. So, fuck the Israeli government too. I was just making a point about how forbidding the flags doesn’t have much to do with solving anything about that situation. The reason given for removal was rule 1: > No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia. Link to the thread [https://lemmy.world/post/10472282?scrollToComments=true]. They also removed my interlocutor’s comment, which while unproductive was genuinely harmless, more so even than mine. Modlog [https://lemmy.world/modlog?page=1&userId=29922] So we’re not allowed to criticize the Israeli government on lemmy.ml [http://lemmy.ml]? (Or wherever was the mod that removed this) For real? I realize that whining about removed posts is probably not productive. It is life. 🥲 However, this type of stuff happened frequently on Reddit and helped to convince me it was fundamentally a cheeseball platform. Just recently I was actually arguing with some people and pointing out that I’d never had my stuff removed on Lemmy even though I have some viewpoints that are way more unpopular than “Israel shouldn’t kill civilians.” And now, the Reddit mod philosophy has arrived here.

"Bots temporarily blocked?"

https://lemmy.world/post/10412386

"Bots temporarily blocked?" - Lemmy.World

Hello! I’m setting up a kbin instance, and while it’s a little hard to tell thanks to the 0.19 breakage, it seems to be interoperating to some degree with most of the fediverse. I can post messages back and forth, at least. With lemmy.world, though, it’s not working. I get messages like this in the log: Get fail: https://lemmy.world/comment/6458819, https://lemmy.world/comment/6458819 Bots Temporarily Blocked And, indeed, it seems like lemmy.world is configured to reject connections from user-agents containing the word “bot”: $ wget -nv --user-agent="kbinBot/0.1 (+https://my.domain/bot)" https://lemmy.world/comment/6458819 https://lemmy.world/comment/6458819: 2024-01-07 05:25:43 ERROR 412: Precondition Failed. $ wget -nv --user-agent="kbinAgent/0.1 (+https://my.domain/agent)" https://lemmy.world/comment/6458819 2024-01-07 05:25:56 URL:https://lemmy.world/comment/6458819 [264000] -> "6458819.2" [1] $ wget -nv https://lemmy.world/comment/6458819 2024-01-07 05:26:06 URL:https://lemmy.world/comment/6458819 [264006] -> "6458819.3" [1] While I can understand that many bots are harmful so this is probably a necessary measure, it seems to me like this should break federation with all kbin instances (unless they figure out to change their user agent). No? Would it maybe be a good idea to add an exception to this for kbinBot? I may have misunderstood something, as I’m new to all this, just saying how it looks to me poking at it briefly. Also, is it okay if I change my user-agent so that it doesn’t contain the forbidden word? Presumably there’s no administrative reason kbin and lemmy.world shouldn’t talk.

Are things broken? I know Lemmy 0.19 has some federation problems but it seems like more than that is broken for about the last week.

https://lemmy.world/post/10394248

Are things broken? I know Lemmy 0.19 has some federation problems but it seems like more than that is broken for about the last week. - Lemmy.World

It seems like just recently, everything broke. Posts from some other instances (Lemmy 0.19 or kbin) aren’t showing up here reliably anymore, and then sometimes posts from a few days ago will suddenly show up. kbin.social has a banner talking about unusual “problems” without going into detail. Does anyone know what’s going on or why? I’ve heard that Lemmy 0.19 has a problem where its outbound federation queue will sometimes die until it’s restarted manually, but that doesn’t seem like it should affect a lemmy.world <-> kbin interaction. Is it just Lemmy 0.19, or just lemmy.world, or are there multiple issues, or what gives?