mo_ztt

joined 3 years ago
 

Album released April 1992

 

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?

 

Bot: Hi, I'm Cricut Chatbot. πŸ‘‹ How can I help you?

Bot: Please select a topic, or feel free to ask me a question

Me: Hi hello, I just tried to load a project and my Cricut software showed a message "Project Open Unsuccessful: TypeError: Cannot read properties of undefined (reading 'layerData')". Can you help?

Bot: Please clarify, here's what I found πŸ‘‡

(Two options, I select "Javascript error messages")

Bot: Are you talking to me on the same device you wish to troubleshoot with?

Me: Yes

Bot: Which Cricut machine are you using?

Me: (I select "Cricut Maker")

Bot: JavaScript error messages are very diverse, but they are often fixed the same way. πŸ™‚

Bot: Installing Design Space over your current version is the most normal fix.

Bot: (Link: Download Design Space)

Bot: Replace the existing file rather than making a copy of Design Space. πŸ—ƒ

Me: (Selects "It works!" from the did-it-work options)

Bot: Great β€” happy to help!


Absolutely amazing.

 

Me

Sounds good. Can you make a function to clone an existing FileNode, initializing Addr to nil and Children to be a clone of the Children of the source node?

// FileNode represents a node in the file system structure, which can be a file or a directory.
type FileNode struct {
	Type     NodeType
	Addr     *grits.FileAddr // Address of the CachedFile in BlobStore
	Children map[string]*FileNode
}

GPT

In DigitalOcean and similar cloud service providers, resources like droplets (virtual machines) continue to incur charges even when they are powered off because the underlying physical resources (CPU, RAM, disk space) allocated to the droplet are reserved and cannot be allocated to another customer. This policy ensures that you can quickly power on the droplet again without data loss or having to go through the setup process again. However, to avoid charges for resources you're not actively using, it's recommended to delete any droplets or resources that are no longer needed. Remember, data backups and snapshots should be kept if you need to preserve data from the droplet before deletion.

Edit: It's still going. I assumed it was just a one-off, and asked about JSON serialization in Go, and it showed me this:

Then it tried to run some python code, then admitted that the python code hadn't worked, and then it answered my Go question.

[–] mo_ztt@lemmy.world 1 points 2 years ago* (last edited 2 years ago)

Like a lot of fascism, it makes perfect sense if you understand the code words. "Inserting politics" or "getting political" means expressing a disallowed opinion that should be silenced. You'll never hear this kind of language used about the approved opinions, only the to-be-silenced ones.

[–] mo_ztt@lemmy.world 1 points 2 years ago

Collard and colleagues first published their finger amputation thesis a few years ago but were criticised by other scientists, who argued that the amputation of fingers would have been catastrophic for the people involved. Men and women without fully functioning hands would be unable to cope with the harsh conditions that prevailed millennia ago.

Sounds pretty fair.

Since then, Collard, working with PhD student Brea McCauley, has gathered more data to back the amputation thesis. In a paper presented at the European Society conference, they said their latest research provided even more convincing evidence that the removal of digits to appease deities explains the hand images in the caves in France and Spain.

Oh really? Sorta interesting, okay, what's the evidence?

The team looked elsewhere for evidence of finger amputation in other societies and found more than 100 instances where it had been practised. β€œThis practice was clearly invented independently multiple times,” they state. β€œAnd it was engaged in by some recent hunter-gatherer societies, so it is entirely possible that the groups at Gargas and the other caves engaged in the practice.”

...

That is not convincing evidence.

Sure, it's possible. If someone assembled some data that showed that in the modern day, ritual amputation is way more common quantitatively than accidental loss of digits, and showed that they were able to reject some other plausible explanations (e.g. showing that there wasn't a particularly cold climate in that area that would cause frostbite to be more common than normal), then sure. But that's not this paper, it sounds like.

[–] mo_ztt@lemmy.world 0 points 2 years ago

Get outta here with your 'f for "if"

[–] mo_ztt@lemmy.world 2 points 2 years ago* (last edited 2 years ago) (1 children)

Not only that, but:

Initially, three U.S. servicemen who had tried to halt the massacre and rescue hiding civilians were shunned, and even denounced as traitors by several U.S. congressmen, including Mendel Rivers (D–SC), Chairman of the House Armed Services Committee.

What's in Wikipedia doesn't match my memory; what I thought had happened was that Thompson did more than "try to halt." He landed his helicopter between US troops and a group of obviously harmless villagers and told his men to shoot the Americans if they tried to continue murdering the villagers.

He and the other soldiers who stopped the massacre and reported what had happened were viewed by most Americans as traitors at the time, and for quite a while after.

[–] mo_ztt@lemmy.world 1 points 2 years ago

Absolutely top notch. All the songs I wanted to comment that you should add are already in it. πŸ˜€

[–] mo_ztt@lemmy.world 0 points 3 years ago (2 children)

"Return of the Lazy Dungeon Master" is by far the best guide I'm aware of.

Preview chapter

Full book

[–] mo_ztt@lemmy.world 1 points 3 years ago* (last edited 3 years ago)

This dude on Youtube did an in-depth examination of the weird corporate reasons why the ice cream machines can't be maintained properly. Sorry for the Youtube link, but I honestly couldn't find a text story that went into the same type of analysis about it.

Edit: Timestamped the link to skip some folderol at the beginning

[–] mo_ztt@lemmy.world 1 points 3 years ago

mildlyinfuriating has this in its CSS, along with something that looks quite convincingly like there's a hair stuck to your screen.

[–] mo_ztt@lemmy.world 3 points 3 years ago (1 children)

Honestly, I get it. I'm in the US, which means my government does terrible things the world over, and I'd probably have a similar reaction if someone blew out the windows of my home with a drone strike. And I have a lot more ability to influence my government than ordinary Russian citizens do.

I think the Ukrainians are 100% within their rights to fight the war that they didn't start, and that includes blowing up targets in Moscow. But, from the POV of the ordinary people in Moscow just living, I get it.

 

Hi all!

I make tabletop game tokens, and I'm planning to design a set for miscellaneous objects in the game world. I've already got a draft list (chests, trees, campfires, healing potions, etc.) But I'm curious to hear from others, what item tokens do you use or wish you had in your collection? Are there any specific ones you'd like to have?

Thanks, appreciate any and all feedback.

 

As I understand it, the main fediverse softwares all implement ActivityPub in a little bit different way, and so don't fully overlap with one another in terms of how well you can see content from one on another and in what ways you can interact with it. Is there a summary anywhere that just has a quick breakdown of what operations (subscribing to follow a Mastadon user from Lemmy, replying to a Lemmy post from Mastadon, etc) actually work or partially work?

[–] mo_ztt@lemmy.world 1 points 3 years ago

The town was infested with some sort of radioactivity from underground that was hurting people. I had to crawl underground, through these super-tight tunnels deep under the earth with things getting more and more evil as I went, until I was able to track the source of the radioactivity to a giant monster that lived back up on the surface (via the tunnels) in an abandoned barn. I had to fight the monster, but I could fly inside the barn. I ripped its head off, but every time I did, it was just like a big rubbery mask and a new head grew back, until I figured out how to do it fast enough that it wouldn't have time to pop a new head out. When I did that, the real head came out: Tux the Linux Penguin.

That broke the immersion enough that I woke up, all amped up from adrenaline from fighting the monster.

view more: next β€Ί