There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Nibodhika

@[email protected]

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Nibodhika , to linux in Is there a way to add "Run as Sudo" to context menu like with Windows?

Which program/files and from which GUI? Each GUI will have it’s own way of doing that, and on 99% of cases it’s not necessary. He consistently refuses to answer simple questions about what he’s ultimately trying to accomplish. I have a generic way of doing that, login with the root user. Do you think that’s a bad idea? Then list all of the reasons why using root as your main user is a bad idea and probably every single one will apply to what he wants as well. There’s a reason why programs that need root access ask for it and don’t expect you to run them with sudo, the “run as administrator” is a windows concept from an OS that doesn’t have a proper way to elevate privileges so programs can’t implement that API and you need to elevate the entire program.

Nibodhika , to linux in Is there a way to add "Run as Sudo" to context menu like with Windows?

What program? What files? Why do you need to run them with sudo? You’re either being purposefully vague or you don’t even know why you think you need this.

Nibodhika , to linux in Is there a way to add "Run as Sudo" to context menu like with Windows?

Yes there is, you’re asking how to add a menu entry to run things with sudo, and refuse to answer why you want to do it, what’s your use case? What graphical application do you need to run with sudo and why?

I’m almost sure I know why, and your refusal to answer this even though it’s been asked multiple times seems fishy. Like it was explained multiple times there’s a 99% chance that you don’t need it, and there is a package for the remaining 1% or you could do it manually like others have suggested. But until we know your use case we can’t help you, so while you keep refusing to explain what is it that you’re actually trying to accomplish and why do you feel you need it it will be impossible for anyone to help you.

Nibodhika , to linux in Easily find program name from context menu/without terminal?

That doesn’t answer the question, you can have multiple file browsers or text editors installed. The question everyone is asking and you haven’t answered here nor on the other thread is “why do you need to run a program with sudo”? Which program do you need to run with sudo and why?

Nibodhika , to linux in Is there a way to add "Run as Sudo" to context menu like with Windows?

Sudo is “su do”, i.e. “run as root”, so it’s funny to hear run as sudo because it means “run as run as root”, like “chai tea” or “ATM machine”.

To your question the answer is “why?”. You shouldn’t need that, that’s one of the hardest things to get rid of, the “Windows mentality”, it’s like when people ask how to install a .tar.gz they downloaded from the internet, the answer is most likely “you don’t need that”.

This leads to an XY problem, where you’re asking how to solve problem Y but that is caused by you assuming you need to do X, when in fact you don’t. The main clue is that people keep asking you why do you want to do this. So, what exactly is the problem you’re trying to solve? Why do you think you need this?

Nibodhika , to nostupidquestions in I bought frozen BBQ eel and the best before date says LJ349. What does this mean?

No, best before is for the market, it was never intended for customers, that’s not the date the food goes bad, it’s the date it starts to be different from their best, e.g. a bread might become harder than intended, so it’s meant to have the store sell it on pristine condition. Use by date is the one that is for customers.

Nibodhika , to selfhosted in what will be my next server operating system (Fedora Server, Fedora CoreOS, NixOS), your experience and opinion

Portage has supported binary packages since forever, back in 2012 I had some binary packages on my system, I clearly remember because it was a pain in the ass to compile certain things, for those I installed the binary version. It’s like Debian supporting source packages, it’s been there since forever but people don’t know about it.

Nibodhika , to selfhosted in what will be my next server operating system (Fedora Server, Fedora CoreOS, NixOS), your experience and opinion

My home server also runs arch, mostly because it’s a computer I was using for myself before and I’m lazy and just left what was already there.

Nibodhika , to selfhosted in what will be my next server operating system (Fedora Server, Fedora CoreOS, NixOS), your experience and opinion

And by now you mean for the past decade at least.

Nibodhika , to linux in Are there any things in Linux that need to be started over from scratch?

But yeah I dunno in what cases rust is faster than C/C++.

First of all C and C++ are very different, C is faster than C++. Rust is not intrinsically faster than C in the same way that C is faster than C++, however there’s a huge difference, safety.

Imagine the following C function:


<span style="font-weight:bold;color:#a71d5d;">void </span><span style="font-weight:bold;color:#795da3;">do_something</span><span style="color:#323232;">(Person</span><span style="font-weight:bold;color:#a71d5d;">* </span><span style="color:#323232;">person);
</span>

Are you sure that you can pass NULL? Or that it won’t delete your object? Or delete later? Or anything, you need to know what the function does to be sure and/or perform lots of tests, e.g. the proper use of that function might be something like:


<span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;">( person ) {
</span><span style="color:#323232;">  person_uses</span><span style="font-weight:bold;color:#a71d5d;">++</span><span style="color:#323232;">;
</span><span style="color:#323232;">  do_something(person);
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">...
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;">( </span><span style="font-weight:bold;color:#a71d5d;">--</span><span style="color:#323232;">person_uses </span><span style="font-weight:bold;color:#a71d5d;">== </span><span style="color:#0086b3;">0 </span><span style="color:#323232;">)
</span><span style="color:#323232;">  free( person )
</span><span style="color:#323232;">
</span>

That’s a lot more calls than just calling the function, but it’s also a lot more secure.

In C++ this is somewhat solved by using smart pointers, e.g.


<span style="font-weight:bold;color:#a71d5d;">void </span><span style="font-weight:bold;color:#795da3;">do_something</span><span style="color:#323232;">(std::unique_ptr<Person> person);
</span><span style="font-weight:bold;color:#a71d5d;">void </span><span style="font-weight:bold;color:#795da3;">something_else</span><span style="color:#323232;">(std::shared_ptr<Person> person);
</span>

That’s a lot more secure and readable, but also a lot slower. Rust achieves the C++ level of security and readability using only the equivalent of a single C call by performing pre-compile analysis and making the assembly both fast and secure.

Can the same thing be done on C? Absolutely, you could use macros instead of ifs and counters and have a very fast and safe code but not easy to read at all. The thing is Rust makes it easy to write fast and safe code, C is faster but safe C is slower, and since you always want safe code Rust ends up being faster for most applications.

Nibodhika , to linux_gaming in Riot official response about League of Legends on Linux for Vanguard anti cheat

I’m a programmer, yes it is. It’s not easy in the sense of easy to implement, it’s easy in the sense that everything else is impossible. Client-side anti-cheat is impossible, and by that I don’t mean hard, I mean perpetual-motion level of impossibility. If someone tells you they implemented a foolproof client-side anti-cheat you should be just as skeptical as if someone tells you they created a perpetual motion. It’s impossible, never going to happen, want an example? Robot using a camera to watch the screen and directly moving the mouse and keyboard, completely undetectable from the client side.

From the server perspective the person is cheating or is behaving like a human. If they’re behaving like a human their behavior is completely indistinguishable from a human, so who cares if they’re cheating?, whatever they’re doing has them still at human level so if the game has skill based matchmaking (which most of these games do) he’ll rise up until his cheating puts him in the same level of more skilled humans and everyone has fun. If he keeps rising forever he’s not on a human level, therefore a cheater. More importantly this also penalizes people who buy bot leveled accounts, because their matches will be all against people they can’t hope to win and the game will not be fun.

Server side can also trick clients into giving up that they’re cheating, e.g. sending ghosts behind walls to check for wall hacks or other similar things to gauge player responses.

But what do I know? I’m just a senior programmer who’s been working on servers for some years. l never worked on the client side anti-cheat though, also never tried to build a perpetual motion machine.

Nibodhika , to linux in Noob Question Thread: Ask Any Questions About Linux!

Breaks can happen without user intervention in other distros, there are some safeguards around it, but it happens. Also new users are much more likely to edit their configs because a random guy on the Internet did it than an experienced person who knows what they’re doing, also a lot more likely not to realize that this can break the system during an upgrade.

Nibodhika , to linux in Noob Question Thread: Ask Any Questions About Linux!

That’s a bad example, Debian is bad because people use it wrong and it breaks is not a really strong argument, same can be said about every other distro.

I believe Debian based distros are popular because Ubuntu used to be very beginner friendly back in the early 2000s, while other distros not so much. Then a lot of us started with it, and many never switched or switched and came back.

Nibodhika , to linux in Noob Question Thread: Ask Any Questions About Linux!

Yeah, Manjaro just works, until it doesn’t. Don’t get me wrong, I love Manjaro, used it for years, but if it breaks it’s a pain in the ass to fix, and also hard to get help because the Arch community will just reply with “Not Arch, not my problem” even if it’s a generic error, and the Manjaro community is not as prominent.

I could also mention them letting their SSL certificate expire, which doesn’t inspire a lot of trust, but they haven’t done that in a while.

Nibodhika , to linux in Noob Question Thread: Ask Any Questions About Linux!

I like it as a concept, but it gets bothersome to maintain on the long run, sometimes you just want to install something not write configs.

I think Gentoo has a nice middle ground, where you can install packages as a one-off without adding them to the world file, which makes it very meat to maintain both your regular packages and some random things you’re trying out before settling in on adding them permanently.

That being said I’m currently looking into writing some ansible for kick-starting machines, so I’m very much moving in that direction. Why not use nix then? Few reasons:

  • Using Nix means I’m forced to use Nix, whereas with Ansible I can use whichever distro I want, more than one even.
  • I don’t want to have to define EVERYTHING, I want to be able to bootstrap systems quickly, but after the initialization I want to be able to mold each system to what I need without worrying about making it reproducible.
  • Nix uses a language that’s only usable in Nix, in short I would need to study and learn something that’s only usable on one specific distro.
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines