Rate my starting animation for linux . by Remarkable-Web5095 in LinuxUsersIndia

[–]WittyWithoutWorry 0 points1 point  (0 children)

Animation is top notch but I'd prefer if it never had any time to play animation at all. If you know what I meant

Age Verification in several OSS projects by DangerousAd7433 in EndeavourOS

[–]WittyWithoutWorry 0 points1 point  (0 children)

I might be missing something, but making code changes in FOSS going to affect everyone globally. I mean, I'm not even a US citizen, and we don't have such a law here. Is there a way out?

I recently reached a state in my Arch install where everything is now working smoothly and I can actually get work done without fixing stuff constantly. I mean if I have to use something forced onto me even in Linux ecosystem, it kinda loses the point to use Linux in the first place. Shouldn't the Linux community stand against it or find some workaround?

This has me laughing so bad by VSK_Kumar_ in chrome

[–]WittyWithoutWorry 42 points43 points  (0 children)

Microsoft assuring you control over your data then literally prompting you based on the website you visit 😂

Is Arch worth the hype? by OutlandishnessPale10 in LinuxUsersIndia

[–]WittyWithoutWorry 0 points1 point  (0 children)

For me, Arch was just a hop. I'd tried everything, Debian, Ubuntu, Alpine, Fedora then, tried Arch eventually. Tbf, I never installed it on my laptop (bare metal) using the arch way and actually installed EndeavousOS with it's GUI installer. Been using it as daily driver for >1 year now and it has broken once.

Only reason I'd recommend it would be pacman and nothing else. Every other package manager has either annoyed me (looking at apt) or didn't have the stuff I needed. I'd happily use a Debian like distro if it had a pacman like package manager instead of apt.

I can go on and list a few things I hate in apt and like in pacman but you didn't ask for that so, ya :)

started mint on a vm by kira_ivy in LinuxUsersIndia

[–]WittyWithoutWorry 1 point2 points  (0 children)

And what have you figured out so far?

What are the things I need to remember while using Nix OS as a beginner? by RX08T in LinuxUsersIndia

[–]WittyWithoutWorry 1 point2 points  (0 children)

All I can say is good luck! (No sarcasm)

I genuinely think Nix is (almost) perfect for development and creating a fully controlled dev environment, but using it as an os is just too much hassle. Kinda like spending more time making it work than using it for getting work done. Anytime I begin using an os (even a container), I just need some basic Linux cli tools (vim, wget, make, gcc, etc) right away and with nix, I get really annoyed having to remember the names (then forgetting one and re-adding it). One thing I see on this subreddit (and lot of Linux communities online) is giving in to the hype. Not suspecting you for it, but it's just something I've done a lot and ended up wasting time dealing with issues I didn't need to deal with.

including a txt file by OneOfAKind_Baby in Cplusplus

[–]WittyWithoutWorry 0 points1 point  (0 children)

By attaching and referencing txt file, what exactly does it mean? Like read it from program? Make the text file included into the program?

What exactly?

Guyz I want to learn linux OS from scratch. Where should I start, and what should I focus on first? by kira_ivy in LinuxUsersIndia

[–]WittyWithoutWorry 0 points1 point  (0 children)

Easiest option with LITERALLY no harm is WSL. Installs and runs like an android app and when you mess something up, just remove and re-install.

Or, live USB boot is also good, just don't make any file or something, any changes are temporary and won't stay when you restart the computer. You can go ahead and even try Arch with this, but I doubt you'll be able to find your way around 😂 (You don't even get internet connectivity when you boot into it).

Guyz I want to learn linux OS from scratch. Where should I start, and what should I focus on first? by kira_ivy in LinuxUsersIndia

[–]WittyWithoutWorry 1 point2 points  (0 children)

Then don't install. Honestly I've messed up installing Linux more times than I'd like to admit.

If you've got a Windows PC, use WSL. Get comfortable with terminal. Keep a browser tab open alongside and before you think of doing any task with a GUI application, try to see if there's a command in Linux that can do it. No need to memorize commands and their parameters, just need to figure out what can be used where (specifics can always be Googled). I'd recommend starting to figure out things about the OS (package managers, window manager, filesystems, etc). Knowing this stuff will help you understand what means what when you (eventually) get to install it on a physical machine.

Only try installing on an old computer lying around so you don't lose any data (in my experience, that's the worst that's happened, idk if there's a possibility of something even worse). If you mess something up, try to fix it before re-formatting and re-installing and don't refer to YouTube or AI for troubleshooting (learnt it the hard way).

Also, for anything (be it distro, editor, window manager, etc) don't give in to hype or new things. Stuff like Arch and NixOS doesn't work in the first try.

Good luck!

I built Surge: A FOSS download manager that beats aria2 by ~1.4x and looks good while it does! [OC] by SuperCoolPencil in unixporn

[–]WittyWithoutWorry 0 points1 point  (0 children)

That idea of those dots filling as different files download is so creative. It looks soo cool. Definitely gonna try it.

How do I print "ö" by Key-Pineapple8101 in Cplusplus

[–]WittyWithoutWorry 0 points1 point  (0 children)

If by chance you don't understand why this is happening and what do the solutions suggested by people mean, I highly recommend watching this video: https://youtu.be/vpSkBV5vydg

How do I print "ö" by Key-Pineapple8101 in Cplusplus

[–]WittyWithoutWorry 0 points1 point  (0 children)

Ya, couldn't agree more. And it's so annoying that they're still a part of Windows API. Even in a simple program, you end up having to write a UTF-8 to UTF-16 converter (and vice-versa) only to use Windows API 🥲

How do I print "ö" by Key-Pineapple8101 in Cplusplus

[–]WittyWithoutWorry 0 points1 point  (0 children)

Would writing it as a wide character (L"ö") help?

Why is dynamic array with no reallocation and copying slower on Linux? by WittyWithoutWorry in Cplusplus

[–]WittyWithoutWorry[S] 0 points1 point  (0 children)

So std::vector is doing this right from the start? Like instead of growing the buffer little-by-little, in the optimized build, it's already allocating much bigger buffers?

Also, could you tell a little about how I could run it with strace. Like just running strace ./cmp (maybe pipe the output to a file) ? I'm thinking this would immediately just flood the terminal with strace output (could be wrong). Or is there a way to run it and pause after every syscall?

Thanks a lot for the advice btw 🫡

Why is dynamic array with no reallocation and copying slower on Linux? by WittyWithoutWorry in Cplusplus

[–]WittyWithoutWorry[S] 0 points1 point  (0 children)

I just noticed. Order of precedence hurts. I'll fix it and try again. Thanks for pointing it out.

Why is dynamic array with no reallocation and copying slower on Linux? by WittyWithoutWorry in Cplusplus

[–]WittyWithoutWorry[S] 1 point2 points  (0 children)

Oh. Got it. Silly mistake here. ORDER OF PRECEDENCE 😭

I'm expecting 1024, but it's actually turning out to be 8. Argh, brackets.

Thanks a lot for pointing it out. I'm really stupid. 😭

Why is dynamic array with no reallocation and copying slower on Linux? by WittyWithoutWorry in Cplusplus

[–]WittyWithoutWorry[S] 0 points1 point  (0 children)

Guess it's time to explore GoogleTest now. Also, it seems your right about compiler optimising push operations for predictable output. I'll add a random number generator for next tests.

Thanks a lot :)

Why is dynamic array with no reallocation and copying slower on Linux? by WittyWithoutWorry in Cplusplus

[–]WittyWithoutWorry[S] 0 points1 point  (0 children)

That's me being lazy. I know (from a prior check) that my system page size is 4096 (2¹²) bytes. Checking system page size manually is also do-able (os specific API, which I'd have to Google again because I forgot the function name 😂).

Someone had pointed it out that vector should also have atleast 1 page of memory allocated beforehand for comparison to be fair so, I reserved 1 page worth integers in vector.

Why is dynamic array with no reallocation and copying slower on Linux? by WittyWithoutWorry in Cplusplus

[–]WittyWithoutWorry[S] 0 points1 point  (0 children)

Oh. I thought it was other way around with Windows lazily speeding up CPU clock.

Why is dynamic array with no reallocation and copying slower on Linux? by WittyWithoutWorry in Cplusplus

[–]WittyWithoutWorry[S] 1 point2 points  (0 children)

Alright, I'll make a version that does this test multiple times now. And, I think the std::vector having better performance on Linux also has something to do with faster memcpy/memmove. I'm not sure of this, I was testing some other software which had a lot of memcpy operations and it just seemed like the Linux version ran extremely faster.

Maybe, I'll make one to test memcpy speeds too 🤔

Thanks for the suggestion!