DefederateLemmyMl

  • Gen𝕏
  • Engineer ⚙
  • Techie 💻
  • Linux user 🐧
  • Ukraine supporter 🇺🇦
  • Pro science 💉
  • Dutch speaker
  • 0 Posts
  • 279 Comments
Joined 1 year ago
cake
Cake day: August 8th, 2023

help-circle

  • DefederateLemmyMl@feddit.nltoComic Strips@lemmy.worldAir show
    link
    fedilink
    arrow-up
    9
    arrow-down
    4
    ·
    28 days ago

    I see military spending as a necessary evil, it’s like paying your insurance policy against the evils in the world. There will always be someone with a stick willing to beat someone weaker than them. So you could theoretically spend that military money on something “more useful”, but if all your friends do that as well, you won’t be able to enjoy that nice world for very long.

    Also, people usually highly overrate how much a country spends on defense and underrate how much is spent on social security. Where I live, in Belgium, with a similar military budget as Canada (in terms of % of GDP) they did a survey once and asked people to estimate how many euros out of €100 of tax money went to the military and other things. People on average thought it was €6.1 to the military and €17.4 to social security. In reality the proportions are just €1.3 to the military and €37.5 to social security.

    So I guess what I’m saying is: it’s okay to enjoy the cool noises without guilt. You paid for it, it’s necessary, and at least they’re providing people with some entertainment now.







  • In Unix/Linux, a removed file only disappears when the last file descriptor to it is gone. As long as the file /usr/bin/rm is still opened by a process (and it is, because it is running) it will not actually be deleted from disk from the perspective of that process.

    This also why removing a log file that’s actively being written to doesn’t clear up filesystem space, and why it’s more effective to truncate it instead. ( e.g. Run > /var/log/myhugeactivelogfile.log instead of rm /var/log/myhugeactivelogfile.log), or why Linux can upgrade a package that’s currently running and the running process will just keep chugging along as the old version, until restarted.

    Sometimes you can even use this to recover an accidentally deleted file, if it’s still held open in a process. You can go to /proc/$PID/fd, where $PID is the process ID of the process holding the file open, and find all the file descriptors it has in use, and then copy the lost content from there.







  • That’s some suckless level cope

    Thanks, really constructive way of arguing your point…

    Who really cares about some programming purity aspect?

    People who create operating systems and file systems, or programs that interface with those should, because behind every computing aspect is still a physical reality of how that data is structured and stored.

    What’s correct is the way that creates the least friction for the end users

    Treating different characters as different characters is objectively the most correct and predictable way. Case has meaning, both in natural language as well as in almost anything computer related, so users should be allowed to express case canonically in filenames as well. If you were never exposed to a case insensitive filesystem first, you would find case sensitive the most natural way. Give end users some credit, it’s really not rocket science to understand that f and F are not the same, most people handle this “mindblowing” concept just fine.

    Also the reason Microsoft made NTFS case insensitive by default was not because of “user friction” but because of backwards compatibility with MSDOS FAT16 all upper case 8.3 file names. However, when they created a new file system for the cloud, Azure Blob Storage, guess what: they made it case sensitive.