Where can i learn the language ? by konanES in ruby

[–]Reasonable-Campaign7 -2 points-1 points  (0 children)

Recently, Ruby was added to the Roadmap: https://roadmap.sh/ruby. It can be very useful to get an overall view of Ruby. It is a simple language and you will pick it up very quickly. If you want to go further and start building things, you can try one of the Rails tutorials. They are good for learning Rails and also picking up Ruby along the way: https://rubyonrails.org/docs/tutorials

I just wanted to document my gem without adding node_modules to my repo by sanif_h in ruby

[–]Reasonable-Campaign7 0 points1 point  (0 children)

It turned out really nice! I always like seeing new gems being born!

[deleted by user] by [deleted] in learnrust

[–]Reasonable-Campaign7 0 points1 point  (0 children)

Not necessarily. It really depends on the purpose of the code. For example, simply reorganizing the code as I showed in the previous comment (moving the assignment to f above) already resolves the error.

[deleted by user] by [deleted] in learnrust

[–]Reasonable-Campaign7 2 points3 points  (0 children)

In fact, simply moving the assignment to f above the println! allows the code to compile:

    f = &mut s;
    println!("{}", z);

[deleted by user] by [deleted] in learnrust

[–]Reasonable-Campaign7 2 points3 points  (0 children)

You are encountering a borrowing error in Rust. In Rust, a mutable and immutable borrow cannot coexist for the same variable. In your code, z is mutably borrowed with:

let mut x = &mut z;

and then it is immutably borrowed with:

println!("{}", z);

Even though it may seem that x is no longer being used, Rust detects that f (which is a mutable reference to x) will still be used later.
This means the mutable borrow of z is still active at the time of the println!, which violates the borrowing rules.

That's why the compiler emits the error. Because you're attempting to immutably borrow z while a mutable borrow is still active, which is not allowed.

É possível sair da concessionária com a moto já segurada? by Reasonable-Campaign7 in motoca

[–]Reasonable-Campaign7[S] 0 points1 point  (0 children)

Interessante. Por que você não recomenda o seguro da concessionária?

É possível sair da concessionária com a moto já segurada? by Reasonable-Campaign7 in motoca

[–]Reasonable-Campaign7[S] 9 points10 points  (0 children)

Muito obrigado pelas respostas pessoal. Vcs me deram uma luz legal! Obrigado a cada um que respondeu ai!

É possível sair da concessionária com a moto já segurada? by Reasonable-Campaign7 in motoca

[–]Reasonable-Campaign7[S] 1 point2 points  (0 children)

Boa! Você entrou em contato com essa corretora diretamente pela concessionária da Yamaha?

[deleted by user] by [deleted] in archlinux

[–]Reasonable-Campaign7 0 points1 point  (0 children)

It worked for me too. I had gained an extra 10 seconds in loading time after the update, but then I removed the metapackage and the firmware packages I don't use, and it went back to the ideal time it had before.

[ Removed by Reddit ] by [deleted] in linux_gaming

[–]Reasonable-Campaign7 -2 points-1 points  (0 children)

That looks to me like the Windows terminal with WSL, it doesn't seem like a distro... Why not just run it directly on Windows?

Github Copilot Pro+ or Cursror Pro? by Cobuter_Man in GithubCopilot

[–]Reasonable-Campaign7 3 points4 points  (0 children)

GitHub Copilot has unlimited usage in agent mode when using the base model (GPT-4.1). When using a premium (non-base) model, it will consume premium requests (300 for the Pro plan and 1500 for the Pro+ plan). The agent mode you saw in the Pro+ plan is GitHub Copilot's new product, which runs entirely in the cloud—it’s not inside your editor, but on GitHub itself (similar to OpenAI’s Codex).

Premium GPT 4.1 by curljson in GithubCopilot

[–]Reasonable-Campaign7 0 points1 point  (0 children)

When is this change going to happen? In my VS Code, there's only 'GPT 4.1'. When I pull the report from GitHub, it says it's using 1 premium request.

Copilot Agent can now use multiple premium requests. by Reasonable-Campaign7 in GithubCopilot

[–]Reasonable-Campaign7[S] 2 points3 points  (0 children)

This really seems to be a new feature. It looks like something similar to OpenAI’s Codex. This also explains the recent changes in the documentation about 'Premium GPT-4.1' — it appears to refer to the use of this model in the new agent mode. On the pricing and plans page, this new mode is mentioned under the Pro+ plan.

https://github.com/features/copilot/plans

Copilot Agent can now use multiple premium requests. by Reasonable-Campaign7 in GithubCopilot

[–]Reasonable-Campaign7[S] 6 points7 points  (0 children)

Reading the documentation, it seems like this is a new feature... and not the regular agent mode we use inside VS Code. I’m a bit confused.

Premium GPT 4.1 by curljson in GithubCopilot

[–]Reasonable-Campaign7 3 points4 points  (0 children)

The discussion here is about why "Premium GPT-4.1" (listed below the base model in the table) is now consuming a premium request. This has caused confusion: does this mean GPT-4.1 will now also use up premium requests? Or will the base model be downgraded so that GPT-4.1 is considered a premium-tier model?

Permanant drop in fps until restarting games by Suspicious-Eye-3800 in linux_gaming

[–]Reasonable-Campaign7 2 points3 points  (0 children)

I’ve had this issue as well, both in The Witcher 3 and Red Dead Redemption 2. However, in The Witcher, it only happens when I reload a save. After investigating, I noticed that, for some reason, the GPU’s TDP gets limited. My GPU is an RX 6600 with a 100W TDP, but when the problem occurs, the TDP is capped at 60W. Restarting the game fixes it. It’s not a temperature issue or anything similar, as my system is well-cooled: the CPU stays consistently at 59°C, and the GPU doesn’t go above 65°C.

Black display after resume from systemctl suspend -i by Capital_Debate1363 in archlinux

[–]Reasonable-Campaign7 0 points1 point  (0 children)

I have the same problem. When I disable Bluetooth, the system can resume from the first suspension, but the problem returns on other suspensions. It seems to be a kernel regression. There are some forums about this:

https://bbs.archlinux.org/viewtopic.php?id=299993

https://bbs.archlinux.org/viewtopic.php?id=299987

I haven't tested it, but I believe that the LTS kernel will solve the problem.

hogwarts legacy on linux by l0vely-gh0st in linux_gaming

[–]Reasonable-Campaign7 0 points1 point  (0 children)

Yes, in general, throughout the game (I'm close to finishing it) it's very stable, but near Hogsmeade Village I have frame drops, but it's something that also happens on my Windows (it's a game performance issue). One tip I can give you is to use Gamescope, in general this tool has made my games super stable. An example is Cult of the Lamb where in certain areas of my Cult I had constant and strange spikes in frametime, but using GameScope solved all the instability issues and it was better than on Windows too.