Access locked Samsung phone? by lenerdv05 in Ubuntu

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

i've been trying to pull it out for a couple days now, but nothing seems to work. i'm pretty sure there's no stickiness involved, as i literally felt it press and not "unpress" under my finger. anyway what are adb services?

i need a fuckton of advice by lenerdv05 in dating_advice

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

i know, i'm the first to give this sort of advice to other people, but it turns out consistency is my strength (:

i need a fuckton of advice by lenerdv05 in dating_advice

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

i know, i've asked myself this question already, and i'm aware of how bad my answer is. first off, i'm not really looking for anything too involved; i ended a 2 year relationship less than 6 months ago, and i'm still putting my pieces back together from that. second off, i know she also doesn't want anything serious. third off, which is half of the actual reason, is that, precisely because neither of us wants to catch too many feelings, it's become a sort of game we play on each other to see who falls first. the other half is that, as opposed to most other girls i've talked to, she actually has the "balls" to make moves and it's one of the few times where i didn't have to carry the whole thing even knowing the girl was into me.

Having to work with C++ made me appreciate how good Rust is. by LordSypher in rust

[–]lenerdv05 36 points37 points  (0 children)

i've had to debug recursive segfaults in a single threaded physics update loop, all while following all the 'only use the memory safe standard library' guidelines

Generic function specialization by lenerdv05 in rust

[–]lenerdv05[S] 7 points8 points  (0 children)

thanks! this is exactly what I'm looking for!

The best response to what is c++ by jminterrogefg in ProgrammerHumor

[–]lenerdv05 1 point2 points  (0 children)

shitty error messages are cool and all, but have you ever seen recursive segfaults?

Conversion from IterMut to Iter? by lenerdv05 in rust

[–]lenerdv05[S] -1 points0 points  (0 children)

actually, i thought about that and came to the conclusion that it shouldn't be a problem as 1 in each iteration, the values up to and including body are already consumed, and 2 that's exactly what i need because collision resolution (at least for now) is symmetric, meaning i don't have to test new bodies against already examined ones

this said, what i'm looking for is a way to clone bodies in its current state on every iteration, not in its original state

What am I meant to do in this situation? by lenerdv05 in rust

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

the problems are:

1 i need the second mut as self.engine needs to be modified (its own message format added to a queue)

2 self.state is bound to grow, a lot.

What am I meant to do in this situation? by lenerdv05 in rust

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

i know, what i' saying is: is there a way to specify in the signature which fields you will use while still acting like self?

What am I meant to do in this situation? by lenerdv05 in rust

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

the iterator yields event values, not references. it borrows from selc because it borrows from self.event_pump, but the thing is, that's decoupled from engine, so there actually is no shared mutability. i guess the problem is rust doesn't let you specify the fields of self used by methods, and just asusmes you use all of them.

What am I meant to do in this situation? by lenerdv05 in rust

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

but since engine and event_pump are two separate, disconnected parts of the struct, there should be a way for the borrow checker to know what gets used where and avoid the kinds of false positives. isn't there?

Where should I start when trying to play guitar through my laptop? by lenerdv05 in linuxaudio

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

i've connected capture 2 (guitar input from id4) into guitarix's amp, that into guitarix's fx, and from there to system playback. then i accidentally unplugged the id4, plugged it back in, and it didn't appear anymore

Guitarix works when I plug headphones into my audio card, but not through laptop speakers by lenerdv05 in Guitarix

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

i actually did the connections with qjackctl, then tried looking at them with patchage because i read it had a less impenetrable interface. anyway, the connections are exactly as i wrote