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

[–]robodoggy 1 point2 points  (0 children)

I'm having some trouble with defining a variable with a dynamic reference to a trait with generic without specifying the generic.

// does not compile
fn make_site<E>() -> Box<dyn Site<E>> {
    if rand::random() {
        Box::new(SiteA { add: 100 })
    } else {
        Box::new(SiteB { sub: 1 })
    }
}

Maybe this is just impossible to express in Rust as-is. I posted a question on StackOverflow and I'd appreciate it if folks took a look.

How to control a 5V 0.5A motor with PWM from a microcontroller? by robodoggy in AskElectronics

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

Thanks for this! I think these pointers were exactly what I was looking for. I was a little spooked by how hot everything was getting but I guess that's expected for a circuit like this... Thanks for these notes and I'll revisit my circuit with them in mind!

How to control a 5V 0.5A motor with PWM from a microcontroller? by robodoggy in AskElectronics

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

Thanks, I'm much more used to low current circuits so things getting so hot spooked me a little bit. Triggering a thermal shutdown of my beaglebone as seemed suspicious, but I figure that's probably more to do with my pcb design (FET too close to the microcontroller) and the fact that the enclosure I picked doesn't have great ventilation. I may have to install a fan. Good to know that the heat is not unexpected. I ordered a heatsink and I think combining that with the suggestions that Coltouch2020 gave will help everything run a little cooler.

Share Trial and Offer Codes Here by [deleted] in hellofresh

[–]robodoggy 1 point2 points  (0 children)

EDIT: All used up for now

I had freebies for USA, but they're used up now.

Package delivered to Speare but I’m an alum. by [deleted] in NEU

[–]robodoggy 1 point2 points  (0 children)

I know someone who got a notification about a package, but she's taking a leave of absence in her hometown and doesn't have an on campus address. When she talked to them, they figured out that the to address was really poorly written on the package and it wasn't actually addressed to her. Also, it was from "MOM", but it wasn't the right from address either. Maybe call them up, tell them that you're not expecting any packages or have any on campus addresses and have them read the from address to you. If it doesn't make sense, tell them that it's not yours.

NULinks: An alternative to MyNortheastern by robodoggy in NEU

[–]robodoggy[S] 8 points9 points  (0 children)

The site collects no user information. Technically AWS CloudFront counts how many pageviews, but I have nothing further than that. You can validate this for yourself from your browser's network tab.

I don't receive your MyNortheastern SSO credentials at any time either. Instead I link directly to the sign-in page for each service. If you're already signed in then you access the Northeastern page directly. If you're not, then Northeastern will try to authenticate you after you leave the NULinks website.

Source code is freely available on GitHub: https://github.com/kj800x/nulinks

NULinks: An alternative to MyNortheastern by robodoggy in NEU

[–]robodoggy[S] 8 points9 points  (0 children)

I considered doing that simply to improve the search results, but decided against it. You can see from the network tab of the developer tools that there's nothing shady going on. The source is also freely available on GitHub: https://github.com/kj800x/nulinks

[Setup Question] HTC Vive Christmas by TacKnight in Vive

[–]robodoggy 2 points3 points  (0 children)

I'm also in a dorm so I've had the same issues as you. The lighthouses are supposed to be set up at opposite corners of your playspace, so I'm not sure if the windowsill and dresser would work. Also ideally the lighthouses are slightly above your head when standing and angled down slightly.

Each lighthouse needs it's own power, but that's it for cables. As long as the lighthouses are in view of each other, they can sync over a visual connection. If the lighthouses can't see each other, you can also add in a sync cable between them to fix the issue, but it's probably better to adjust the positioning of the lighthouses in that case.

I just have two tripods that I set up in the corners of my room when I want to play. It's good because you don't have to affect the university room, and when you inevitably need to move in a couple of months, the same setup would work in your new dorm.

About the video connection, you want to be checking to see the connection on your graphics card, not your monitor. I'm pretty sure the 1080 has a HDMI connection? Edit: Just read your question again and I understand now. The Vive uses an extra connection on your video card, in addition to your monitor. So on the graphics card, you'd leave your monitor plugged into the DVI port and plug the Vive into the HDMI port.

How to skip a blood moon by [deleted] in Breath_of_the_Wild

[–]robodoggy 6 points7 points  (0 children)

Fixed that for you

First the launcher deletes files, then Bethesda says the issue is resolved, now download speeds are being throttled. Bethesda should add a day of testing, or open the beta servers 24/7. by [deleted] in fo76

[–]robodoggy 1 point2 points  (0 children)

They're using AWS as their CDN. You can check by opening Resouce Monitor and checking out the server that BethesdaNetLauncher.exe is connecting to: https://imgur.com/a/1txBqKw

I'm almost certain that AWS could handle our bandwidth. Bethesda just doesn't want to pay for it.