365
submitted 9 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml
top 15 comments
sorted by: hot top controversial new old
[-] Siethron@lemmy.world 102 points 9 months ago

10 minutes? That's it. That's easily a 3 hour time sink.

[-] Ephera@lemmy.ml 31 points 9 months ago

Well, in this case, it was a graphical program that was doing it, and I really could've recognized that the file was being created by that. I had just kind of forgotten that I opened this graphical program a few days ago on a different workspace...

[-] wizzor@sopuli.xyz 13 points 9 months ago

OP is clearly boasting about how smart they are.

[-] kittehx 44 points 9 months ago

Only 10 minutes? Those are rookie numbers

[-] DahGangalang@infosec.pub 29 points 9 months ago

Or pro numbers, depending on how you look at it.

[-] fraichu@lemmy.ml 16 points 9 months ago* (last edited 9 months ago)

I'm curious you'd see it in ls -l Did inode change? I remember making the same mistake. I think everyone sees this sometime during the career

[-] Ephera@lemmy.ml 19 points 9 months ago

The inode does change, yeah:

The regular ls -l doesn't show the inode on my system, though. I only realized it when I had assigned more permissions to the file and those got reset by deleting the file. The last-modified timestamp also gets updated each time, but I only spotted that afterwards...

[-] Tangent5280@lemmy.world 7 points 9 months ago

Give me your dotfiles or I will sneak into your home and tie all the sleeves of your shirts into knots

[-] Ephera@lemmy.ml 3 points 9 months ago

If you ask because of the powerline shell prompt, I'm using Starship with the Gruvbox Rainbow preset: https://starship.rs/presets/#gruvbox-rainbow

You do need a NerdFont for this, as gets mentioned in the Starship installation guide. I'm specifically using the NerdFont variant of Fira Mono here, but you don't have to use that for this setup.

(I made some light customizations to the preset. If you specifically want those, you can have them, too, but I only set this up two days ago, so I don't know yet how well it works.)

[-] RustyNova@lemmy.world 2 points 9 months ago

That's a pretty terminal! Mind telling how you did it?

[-] Ephera@lemmy.ml 4 points 9 months ago

I posted the info here: https://lemmy.ml/comment/8568878 ๐Ÿ™‚

[-] Still@programming.dev 16 points 9 months ago

lsof is a good tool would recommend it whenever something weird is happen, tho you gotta be root for it

[-] AndrasKrigare@beehaw.org 1 points 9 months ago

Another is checking modified time of the directory

[-] LazaroFilm@lemmy.world 9 points 9 months ago

Kinda similar. I remember having a file I could t delete. But I could move it to a new folder and delete that folder and the file would delete.

It's usually 10 mins to debug, and 3 hours explaining, categorizing, identifying the scope of it exists everywhere else...

this post was submitted on 21 Feb 2024
365 points (100.0% liked)

Programmer Humor

32536 readers
467 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS