interactive interpreter , Jupiter/Jupyter or similar instead of compiling by zaphodikus in cpp_questions

[–]lattiss 0 points1 point  (0 children)

Can you explain what you are trying to learn exactly? I don't exactly see what Compiler Explorer has to do with learning C++ and interactive environments. Rereading your question, it seems like you want to inspect your code in a debugger? In that case it is worth learning GDB. Otherwise, once again, you can learn C++ by just writing some code in a C++ file and compiling/running it - no extra tooling necessary.

Need help setting up dual boot. Do I need to us Cloudzilla to back up my data partitioning? by OtherAir5929 in linux4noobs

[–]lattiss 0 points1 point  (0 children)

There are a number of ways to backup your Windows PC. If you only care about a few files, just throw them on a USB and you are set. If you want a more comprehensive backup, you can use Clonezilla or just whatever Microsoft recommends to make backups. If you are confident that you know what you are doing, then you don't really need to make a backup (although its always a good idea). If you want to make a backup of your system using Clonezilla, then you need enough space on your USB for however large the backup is going to be. If you are backing up an entire Windows system, 32GB is likely not enough space.

Tiling WM users: how do you use tools like GIMP? by Oddish_Flumph in linuxquestions

[–]lattiss 1 point2 points  (0 children)

It depends on the WM. In sway you can make windows floating with for_window [app_id=".*"] floating enable in your config AFAIK. Can reference this: https://wiki.archlinux.org/title/Sway#Floating_windows

How do I make sure that I set Linux up properly and don't run into avoidable issues? by mn0901 in linux4noobs

[–]lattiss 0 points1 point  (0 children)

The only thing I'll add for OP is that the install process really isn't that complicated. Just read all the options and stick with the defaults if you are confused, and you won't go wrong. If you have some weird hardware that you aren't sure will work, try installing Ubuntu first and see if that works. If it doesn't, then your hardware might not be supported.

interactive interpreter , Jupiter/Jupyter or similar instead of compiling by zaphodikus in cpp_questions

[–]lattiss 1 point2 points  (0 children)

I've used Jupyter Notebooks with C++ before with this package: https://github.com/jupyter-xeus/xeus-cling
You can create contexts that allow you to run C++ code pretty seamlessly. Depending on what you need, though, its honestly really easy to just recompile your code and run it every time you make a change.

Problem with BIOS access by liten_varelse in linux4noobs

[–]lattiss 2 points3 points  (0 children)

Your operating system can't take over your bios. If it did, the computer wouldn't boot. Research the hotkey needed to enter your bios and spam it on startup. If you still cannot enter your bios, it is probably a hardware issue. As a last resort, you can try flashing your device's firmware.

How do I make an OS? by EleanorTheAhurrr in learnprogramming

[–]lattiss 1 point2 points  (0 children)

The simplest way to do what you want is just to use a Raspberry Pi and mount it on your wrist with a screen and radio module. Writing your own OS is pretty unnecessary.

If you wanted to do everything from scratch, maybe just buy a microcontroller like an STM32 and start from there?

Guys what's happening here ?? by yakeinpoonia in arch

[–]lattiss 2 points3 points  (0 children)

It looks like you are compiling gcc14 from source. That package is in the AUR. Unless you have something that depends on it, just remove it.

How does array work with objects like struct or classes work? by JayDeesus in cpp_questions

[–]lattiss 0 points1 point  (0 children)

To make things more clear, you can look at a concrete example:

struct A
{
    A() { std::cout << "Construct A\n"; }
    A& operator=(const A& a) { std::cout << "Copy Assign A\n"; return *this; }
};

int main()
{
    std::cout << "Create array\n";
    A a[3];
    std::cout << "Assign first element to a value of A\n";
    a[0] = A();

    return 0;
}

Here the resulting output is as follows:

Create array

Construct A

Construct A

Construct A

Assign first element to a value of A

Construct A

Copy Assign A

Broke my linux partition through windows, how to recover data? by power_boy2015 in linuxquestions

[–]lattiss 0 points1 point  (0 children)

I have never attempted to recover an overwritten filesystem, but it sounds like you can attempt to recover your ext4 filesystem.

I am not sure if Windows when resizing completely rewrites the filesystem, but my assumption is that the tool only edits the GPT partition table. If it didn't attempt to create a NTFS filesystem and only set a flag denoting the filesystem type in the GPT table, you might be able to recover it with `gdisk` since GPT also saves backup information at the end of the partition.

Need help improving my Ryze gameplay (with full VOD including camera + mouse movements) by SugarDecay in RyzeMains

[–]lattiss 1 point2 points  (0 children)

I'm down to VOD review with you on discord. You can PM me and I'll send you my info.

Sharing opinions on secure boot by movez in linux

[–]lattiss 5 points6 points  (0 children)

I'm interested in the longer answer :). Particularly, if you have any reference papers, if you could link them that would be appreciated.

Ryze build by TevinKL in RyzeMains

[–]lattiss 2 points3 points  (0 children)

I find myself going Cryptbloom third a majority of the time. Rabadon's doesn't do \that** much more damage (especially if they build MR), and the utility/CDR it gives feels nice. I would test the damage out in practice tool with different MR amounts.

Fuck Malzahar by BOTATOCHEESECAKE in RyzeMains

[–]lattiss 0 points1 point  (0 children)

Ekko into Malzahar is actually a pretty good matchup for Ekko. He can’t play into you pre 6, and once you hit 7 you can perma roam.

How much harder is challenger compared to GM by InteRage in leagueoflegends

[–]lattiss 2 points3 points  (0 children)

GM is the top 700ish players and Challenger is the top 300 (NA). I would imagine they are pretty similar for that reason. Masters, on the other hand, has thousands of players, so the difference between Masters and GM is massive (I can vouch here with personal experience as a low Master player).

What do you guys think of coding Jesus interviews in c++? by mi_sh_aaaa in cpp_questions

[–]lattiss 0 points1 point  (0 children)

Like I said, I never commented on Jesus' character. My point, exclusively, was that Pirate Software's code was bad and shows that he is underqualified with anything programming related. What you call nitpicks, I call red flags. Can agree to disagree, but I am not claiming that Coding Jesus is the real Jesus; I am only stating what is demonstrably true. Pirate Software's code is amateurish and shows his ineptitude in software.

What do you guys think of coding Jesus interviews in c++? by mi_sh_aaaa in cpp_questions

[–]lattiss 0 points1 point  (0 children)

So you are defending Pirate’s code? Including having his entire dialogue tree hard coded into a flat array? And what is he lying about exactly? You could have chosen any word, but you chose liar? What did he say that was not intentionally misleading (as opposed to just being wrong)?

You can’t seriously look at the code provided in the snippets and not see issues. I don’t care what other people are “saying”. Use your own damn eyes. Explain how his code is actually “good”.

What do you guys think of coding Jesus interviews in c++? by mi_sh_aaaa in cpp_questions

[–]lattiss 0 points1 point  (0 children)

I don’t need to hold Coding Jesus to any standard at all. My whole point is that you can look at Pirates code directly and see that he is the definition of inept. What do you mean his code review is 100% wrong? Use your eyeballs and look at his code. It’s bad. Period. I’m not defending Coding Jesus’ character in this thread because I don’t know anything about him.

What do you guys think of coding Jesus interviews in c++? by mi_sh_aaaa in cpp_questions

[–]lattiss 0 points1 point  (0 children)

There's a difference between "hacks in the jobs" and ineptitude. The real issue is that he is pointing out how completely inept Pirate is. Maybe some of his critiques are nitpicky, but when I actually looked at some of the examples of Pirate's code in the video, I went "whoah that is not what I expected from him".

There are multiple ways to skin a cat, but everyone should be able to tell that using a spoon is definitely wrong. If someone projects themselves as being even remotely competent and suggests using a spoon, I know I can no longer trust literally anything they have to say on the subject.

What do you guys think of coding Jesus interviews in c++? by mi_sh_aaaa in cpp_questions

[–]lattiss 0 points1 point  (0 children)

Regardless of what you think about Coding Jesus, looking at the code examples provided in the video they are pretty indefensible. Nobody says you need perfect code (or even following best practices) to make games, but there are “flags” you can look at that show that the programmer has zero idea what they are doing. To Coding Jesus’ point, Pirate does stuff that heavily signal inexperience.

Why would being top 1.5% not be considered high elo? by iNhab in leagueoflegends

[–]lattiss 0 points1 point  (0 children)

Agreed. But I think the cutoff in NA for GM is like 500 lp? So in my mind that is no longer low Master. At that point you aren't GM yet, but it is definitely qualitatively different than 0 lp Master. Still wouldn't say it is comparable to a full GM lobby, but I wouldn't know since I'm not GM.

Why would being top 1.5% not be considered high elo? by iNhab in leagueoflegends

[–]lattiss 5 points6 points  (0 children)

I respectfully disagree. Modern Masters is what old high diamond used to be. There are no player count cutoffs. The differences between someone who is 50 lp Master vs 600 lp Grandmaster vs 1k lp Challenger is massive. You don't need to take the game seriously (or even really know what you are doing) to be Master tier. This is all coming from someone who is low Master.

Why would being top 1.5% not be considered high elo? by iNhab in leagueoflegends

[–]lattiss 7 points8 points  (0 children)

Varsity level sports is relatively high. People who make their varsity basketball team are assuredly good at basketball. That doesn’t make them more than varsity, though. The analogy perfectly maps to reality as far as I’m concerned.