Lorgres

joined 1 year ago
[–] [email protected] 4 points 2 months ago

A shocking amount of microcontroller manufacturers have eclipse based IDEs for their chips. Thought that seems to be going out of style, luckily.

[–] [email protected] 4 points 3 months ago

I was actually offered a Bachelor thesis topic by a company to write a test bench for a product in LabView.

From what they told me and my other engineering experience I'd suggest going with an approach similar to what's used with HDLs. For unit tests create test benches in the language itself which call the functions you want to test with a predefined input (e.g. from a file) and then analyse and save the output.

You can extend this to obtaining other information as well, but tbh I'll bet it's still gonna be a pain.

Hope that helps at least a little.

[–] [email protected] 1 points 5 months ago

Us Germans are extra thorough. We wish both, breaking neck and leg.

[–] [email protected] 17 points 6 months ago* (last edited 6 months ago) (2 children)

Thanks for putting it into relation to daily use. 200,000 is not realistic though. Just had a google and found this source citing up to 400 metric Tons/day

https://maritimepage.com/fuel-consumption-how-much-fuel-cargo-ship-use/

12 is 0.6% of 200,000 btw

[–] [email protected] 7 points 8 months ago

My Harman Kardon pc speakers. They are as old as I am. Here's a pic of the same model I found online.

[–] [email protected] 8 points 9 months ago (6 children)

There are other alternatives too, like invidious. The yewtu.be instance works decently well for me but limits to 720p I think. There is a list of all running instances somewhere on the github iirc. There's other instances that allow full HD, just have a search and you should be able to find one.

[–] [email protected] 1 points 1 year ago

Same. At least with Deus Ex I have some hope left. Iirc the studio (Eidos?) was sold by Square Enix and the new owner may have them work on a new Deus Ex.

If you like those kind of games it may also interest you that Dishonored 3 being planned was part of the leaks last week.

[–] [email protected] 4 points 1 year ago

DotO is basically a huge DLC for Dishonored 2 and not a main game. It's still great though and has some fantastic lore. It also released in 2017, so a bit early for a spot on this list.

[–] [email protected] 9 points 1 year ago

The 180° angle is just a (really weird) way of representing a long, straight, line. The rest of the angles add up to 180°.

 

Hi, I'm an embedded developer and trying to write some python software for a personal project (A bot for an idle game).

One concept I'm struggling with is asynchronous behavior and interrupts on desktop systems. I'm not really finding any good resources. I'm hoping one of you guys can explain this in a way that I get it or provide me some good resources to read.

What I want to do is pretty simple. I want to have a super loop around my software which runs until a condition is met (A specific key is pressed). I'd rather not use polling, requesting an input will block the software and require user input each loop. I've tried reading the keyboard state directly but the packages I used either didn't find my keyboard or required root access.

My preferred attempt would have been to register something like an interrupt handler which is called when a keyboard event is detected. The general suggestion on the internet for interrupts in python is the signal package. This however seems to only be for dealing with exceptions, not general interrupts.

Are interrupts for general events like I/O even a thing on desktops? And if so, how would I go about interacting with them from my code?