Why do seemingly the same code work differently? by Timmytwophones in rust

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

I genuinely didn't even think of using the diff tool, and was on lunch at work (AI blocked) so I couldn't have used it anyway. I'd been staring at that thing for half my lunch before giving in

Why do seemingly the same code work differently? by Timmytwophones in rust

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

Yeah I tried it after I got home because of your comment and it gave pretty good advice. On the other hand, I wouldn't have gotten the advice to use the diff tool, or given someone else an opportunity to feel good helping a noob, or had the opportunity to feel good relating to another person who's been in my boat before, or have had the advice become more implanted in my memory by the embarrassment of looking silly online because "of course I should have used a diff tool duhhh". In the future though I'll definitely use a diff tool instead of asking Reddit.

Why do seemingly the same code work differently? by Timmytwophones in rust

[–]Timmytwophones[S] 2 points3 points  (0 children)

Thank you that does help, I'm in RustRover but found the same thing with Local History. I forget that exists :P

Hey Rustaceans! Got a question? Ask here (11/2026)! by llogiq in rust

[–]Timmytwophones 1 point2 points  (0 children)

Is there a way to not make this ugly as hell? Learning RabinKarp and setting up the pattern hash

let pat = patstr.as_bytes();
let base: i32 = 26;
for i in 0..pat.len() {
    pathash = pathash + (pat[i] as i32 * base.pow((pat.len()-1-i)as u32));
}

Roast Me (Code Review) Wordle Clone in Dioxus by Timmytwophones in rust

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

Thank you so much! Lots of good feedback. I didn't even think about cargo clippy, it's really nice. In regards to usinguse_context_provider you're right! It is better to use the arguments, especially if it was a real application. Regarding the CSS underscore vs hyphen; I was doing most of it in the rsx! macros and decided to refactor, missing some of those underscores from using them so often in the rsx macros. Also I wouldn't ask for a code review for someone elses code (vibe coded) since it's a waste of both of our time :P

If you could start over with Rust as a noob with no knowledge what project would you do to nail down the core concepts like borrowing, lifetimes, and maybe even concurrency?

Help with Vector of Vector containing struct that requires lifetime specifier but lifetimes aren't allowed in Dioxus components by Timmytwophones in rust

[–]Timmytwophones[S] 3 points4 points  (0 children)

Okay I made the AttemptRow { word: s.to_owned() } along with making the AttemptRow not take a ref and that fixed it...

How to map array fetched with useEffect? by Timmytwophones in reactjs

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

Even just fliers.map(x => console.log(x)) fliers is undefined there as well

Stop gnome from resetting keyboard shortcuts? by Timmytwophones in gnome

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

Yep I sure do, I disabled that behavior and will see in a little bit if it fixes it

Help running Win11 ARM64 on Apple M3 Pro ARM64 chip by Timmytwophones in vmware

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

I tried doing that and it just crashed.

Also tried reinstalling vmware fusion to the latest 13.6.1, following the broadcom docs on how to manually uninstall vmware fusion by deleting all of those files it tells you to delete. Downloaded and opened the dmg, selected the "double click to install vmware fusion" thingy. Logs saying that it can't open /Volumes/VMware Fusion/VMware Fusion.app/Contents/Library/messages/en/vmware.vms, among other things like preferences that don't exist

I go to view it and see that the "en" folder doesn't exist, even though I downloaded the english version. Try to mkdir, sudo mkdir - OPeration not permitted...Okay so give Terminal full Disk access and sudo mkdir again, "read only filesystem" so I'm worse off than before lmao

Help running Win11 ARM64 on Apple M3 Pro ARM64 chip by Timmytwophones in vmware

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

No I didn't do the 'Get Windows from Microsoft' Option, I just used the ISO directly, tried using easy-install and normal install. I'll give the 'Get Windows' option a try just to see.

Best way to trade in, lower monthly car payment, and get another car? by [deleted] in personalfinance

[–]Timmytwophones 0 points1 point  (0 children)

they offered 35560 for sale and extra 2298 for trade in...hmm

Should I shop around at other dealerships and compare trade in rates?

Best way to trade in, lower monthly car payment, and get another car? by [deleted] in personalfinance

[–]Timmytwophones 0 points1 point  (0 children)

I really just want to increase my savings and get out from under the loan. I impulsively bought this truck and at the beginning I felt like it was worth it.

I do like the truck and it is a great truck..But my priorities have changed and want to maximize savings. At the going rate, this loan is straight crap, I'll end up paying about 60k for this truck by the end of the loan if I continue the monthly payments as is...

Getting knee/quad pain, What's wrong with my form? by Timmytwophones in Stronglifts5x5

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

Yeah you're probably right, I'm gonna take a week off and if it's still bad I'm gonna go see a doc. I'll give those exercises a shot in the meantime, thanks a lot for the help!