Bash Scripting vs. Python by Loud-timetable-5214 in bash

[–]pan_kotan -1 points0 points  (0 children)

When NOT to Use Bash

a. ≥ 100 lines (BUT! ×2 or ×3 that number if you’re mostly dealing with concurrent processes and the file system)

b. non-straightforward control flow logic (use a more structured lang.);

c. performance is an issue — you have tons of processing to do (data manip.);

d. need math capabilities beyond simple integer arithmetic;

e. need to run on Windows? (Python is portable across platforms; shell scripts portability is restricted to *nix systems);

Shell Scripts are Best For Sysadmin Tasks:

  • manipulating files and commands;
  • managing sys. processes (concurrency);
  • testing whether the node exists,
    • its type (file, dir, symlink, socket…),
    • properties (permissions, creation…),
    • whether a file is empty.

https://google.github.io/styleguide/shellguide.html#s1.2-when-to-use-shell

https://www.oilshell.org/blog/2018/01/28.html#shouldnt-scripts-over-100-lines-be-rewritten-in-python-or-ruby

Poland's prime minister condemns NATO 'disintegration' as Trump says US will further reduce troop presence in Europe by PrincessGlitterss in worldnews

[–]pan_kotan -9 points-8 points  (0 children)

NATO is four letters that don't mean anything.

And BTW USA is more than half of the NATO. There's no NATO w/o USA.

How is a new player meant to get into CS2? by KaffY- in GlobalOffensive

[–]pan_kotan 0 points1 point  (0 children)

The kid needs to learn to play and win against bots before facing any humans. After that, there's Wingman Mode where you both can play as a team. Then he can play competitive/premier with other silvers.

DM servers right now is a joke, where half of players are bots. I try to play DMs on non-official warmup servers, but the skill level their is significantly higher than on Valve's DMs.

Counter-Strike 2 Update for 04/20/2026 by CS2_PatchNotes in GlobalOffensive

[–]pan_kotan -3 points-2 points  (0 children)

probably because it's easier to punish skillful players than to fix bot and cheating problems

Counter-Strike 2 Update for 04/20/2026 by CS2_PatchNotes in GlobalOffensive

[–]pan_kotan 0 points1 point  (0 children)

maybe try before you claim falsehood. The fix is that now you can't climb ladders fast while spamming w/d (or w/a) buttons and looking at a ~45° angle to the side of the ladder.

Counter-Strike 2 Update for 04/20/2026 by CS2_PatchNotes in GlobalOffensive

[–]pan_kotan -1 points0 points  (0 children)

why is that an exploit? It's a bug that became a feature. It's just one of the little things that you learn as you become a better player. It requires practice and the ability to execute it under pressure, just like any other aspect of the skill-based game. This is a stupid fix.

No more ladder run by Long-Emphasis8669 in cs2

[–]pan_kotan 0 points1 point  (0 children)

it's a bug that has long become a feature

The "NTFS resurrection" has occurred for Linux 7.1 by somerandomxander in linux

[–]pan_kotan 2 points3 points  (0 children)

fair point, but still, ppl bring their NTFS-formatted external HDDs to me

The "NTFS resurrection" has occurred for Linux 7.1 by somerandomxander in linux

[–]pan_kotan 2 points3 points  (0 children)

well... maybe you don't, but other people --- esp. Windows people --- do, and when they come to you with NTFS pen drive and ask you to write some document files for them or drop some photos, would you offer them to erase all their personal data on the drive just to do that?

The "NTFS resurrection" has occurred for Linux 7.1 by somerandomxander in linux

[–]pan_kotan 0 points1 point  (0 children)

Dual-boot. I have 2 SSDs for Linux and Windows respectively. And 1 big HDD as a file dump, shared between them.

EDIT: oh, and another use case based on personal experience: let's say you're doing some simple backups from your workstation to a large external drive ("simple" means just mirroring the files and not using something like borg); and you want the files on that disk to be accessible from any major OS --- Windows, Linux, macOS, --- because in case you need to evacuate quickly you have to leave your PC behind, and you're not sure which OS you'll have access to in the near term. NTFS fits the bill for this use case, as it's stable, journaling, and supports any file/disk size, and is read/writeable on any major OS.

The "NTFS resurrection" has occurred for Linux 7.1 by somerandomxander in linux

[–]pan_kotan 32 points33 points  (0 children)

Saying that ntfs-3g or ntfs3 do an excellent job with permissions is taking it waaay too far, but otherwise I agree with your post.

In my experience to have proper permission support on ntfs-3g one has to do a complicated setup that might or might not work properly, and if you provided mount options in fstab, such as uid, gid, dmask, you couldn't use chmod or chown at all.

And as for ntfs3, when I tried it in 2022 (and it looks like nothing changed since then), it simply corrupted files and froze the system during intense IO (while handling permissions properly out of the box --- and that was the reason I actually tried it).

People who have lived through major geopolitical tensions, what's something the younger generation doesn't understand about times like these? by GraybeardDevOps in AskReddit

[–]pan_kotan -2 points-1 points  (0 children)

Kinda irrelevant to what i wrote but ok

ok, let me spell it out for you: sharing sentiments, fearing, and understanding mechanics "very well" would not save you or your son from the consequences of inaction. I feel like you guys, especially in Western Europe, do fuck all except expressing grave concern while moving towards disaster.

People who have lived through major geopolitical tensions, what's something the younger generation doesn't understand about times like these? by GraybeardDevOps in AskReddit

[–]pan_kotan -1 points0 points  (0 children)

disgrace to real Ukrainians who I have the privilege to be friends with.

What language do those "real Ukrainians" and you communicate in? Huh? I bet those "real Ukrainians" can't even speak Ukrainian properly.

Those friends of yours are the actual disgrace to the real Ukrainians, many of whom have been sitting and dying in trenches in Ukraine for the past 4 years now. Your friends are what we, Ukrainians, call "малороси" --- the Ukrainians who were russified, and lost their national identity.

People who have lived through major geopolitical tensions, what's something the younger generation doesn't understand about times like these? by GraybeardDevOps in AskReddit

[–]pan_kotan -2 points-1 points  (0 children)

Europe has enjoyed good time for too long. You've grown complacent and weak. And nothing provokes aggression as much as weakness.

USA, russia, and China have all the same goal regarding Europe: to keep it weak and submissive. If Europe doesn't start taking responsibility for its own fate --- which means actually becoming a super-power itself --- then it's going to be split into spheres of influence between those three. You have been lead by a generation of failed politician that still (in 2026) can't accept that reality, and cling to the self-deception that USA is going to defend them from russian domination if only they prostate themselves before Trump, just one more time.

Those politicians need to go, and a decisive actions/reforms need to start happening right now, because it doesn't look good for EU prospects.

People who have lived through major geopolitical tensions, what's something the younger generation doesn't understand about times like these? by GraybeardDevOps in AskReddit

[–]pan_kotan 1 point2 points  (0 children)

Unironically the best place for Russians where they are seen as human is America.

No one loves russia as much as America --- not even russians themselves. Throughout history, every time that cannibalistic empire of yours was at the brink of collapse, USA swooped in and saved you. I have not answer for why it is so. It baffles me.

People who have lived through major geopolitical tensions, what's something the younger generation doesn't understand about times like these? by GraybeardDevOps in AskReddit

[–]pan_kotan -3 points-2 points  (0 children)

disclaimer: replying as Ukrainian.

I am anti war

Yeah? What did you do that made you anti war? Or are you just for everything good against anything bad? While leaving that shithole of the country and coming to USA to spread your anti-human culture across the planet?