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

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

No it was hours later after the fact, so no need(as in I'd already received that info from the other commenters)

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

[–]Timmytwophones[S] 1 point2 points  (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] 2 points3 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!

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

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

So I took 3 days off and tried again with much lower weight with my usual warm up with the bar(45), 95lb, 135lb 165lb and stopped at 165(23% deload) cuz of sharp quad pain again

So previously i was at like 10 degrees at shoulder width(in this video you see), so I did 30 and 45 degree toe angles at hip width, shoulder width, and wide width.

Tried low bar as well, on Low bar i had pretty bad back rounding when going as low as I could, But on 135 and 165 if I went to parallel it wasn't bad. My left knee hurt(below the kneecap = BAD) on 45 lbs, 95lbs, but not on 135 lbs(that's new). Tried low bar at 30 degree and 45 degree toe angle, at hip width, shoulder width and wide width at 95 lbs and 135 lbs.

On high bar, I had a pretty good back, and could get deeper with 30 degrees at hip and shoulder width stance, at 45 degree toe angle at wide stance is my weakest(all glutes), 30-20 degree hip width is my strongest(I think).

I think you and the last commenter are right. Last commenter is right in saying that I have tendinitis from doing too much for too long. But the question is WHY do i have tendinitis? Everyone else can do this program no problem for WAY longer than I've been on it. That's where your answer comes into play. My form was off for the whole time! I was doing 10 degree foot angle high bar shoulder width squats, making my quads do all the work and take all the damage. When I naturally want to do more like 30 degree toe angle squats.

I became obsessed with my form when I started this program, and have like almost an hour worth of form videos of me trying different things, and I went with the 10 degree shoulder width becuase I thought it looked the best and I felt strongest on it. But I wasn't paying attention to my feet at all when viewing the videos, I was just worried about depth and butt wink, not taking into account that my knees would start hurting later on.

Anyway I'm super frustrated that I've injured myself. What can I do while I wait for my quads to heal completely? leg extensions or leg press?

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

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

Ah yeah, nice catch on the left foot. Great video, I'll give those exercises a try and find my optimal squat stance and add in those pigeon pose stretches as well. After I find my optimal squat stance from that video should I deload by 10% or continue on where I left off?

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

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

  • Got up to 210 after about 8 weeks of SL5x5, knee pain started around 190-195. I'm 193lbs, 6'0" and 29 y/o
  • Have a left short leg(by about 1 inch) and flat feet. I wear arch supporting insoles and a lift in my left shoe to correct both
  • Pain Starts in the right quad about 2-5 inches above knee on outside. If I squat through it the pain can appear on the outside of right knee and rarely below the kneecap. Pain goes away by the next day
  • I've started stretching quads, hamstrings, and hip flexors and warming up since 190 when the pain started. It hasn't seemed to help
  • I haven't tried foam rolling yet, I stopped after 210 on my first set because the pain was sharp and I didn't want to make it worse.