[-] Lorgres@lemmy.world 4 points 1 day ago

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

[-] Lorgres@lemmy.world 4 points 1 week 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.

[-] Lorgres@lemmy.world 4 points 2 months ago

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

15

Hi, I'm looking to open-source a small CLI application I wrote and I'm struggling with how to provide the built app since just providing the binary will not work. I had a friend test it and he had to compile from source due to glibc version differences.

My first thought was providing it as a flatpak but that isn't really suitable for CLI software.

I've googled around a bit and most guides I find just mention packaging separately for multiple package managers/formats (rpm, apt etc.). This seems really inefficient/hard to maintain. What is the industry standard for packaging a Linux software for multi-distro use?

[-] Lorgres@lemmy.world 6 points 2 months ago* (last edited 2 months ago)

Runescape/Old school runescape

Been playing since 2009. Sure I've taken breaks, sometimes multiple years, but I always return.

The old saying is true, "You never quit runescape, you just take breaks"

[-] Lorgres@lemmy.world 17 points 3 months ago* (last edited 3 months ago)

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

[-] Lorgres@lemmy.world 2 points 3 months ago

Melvor Idle is a great call. The base game is a solid idle game and there's a load of mods too.

I did a HCCO12B (Hardcore combat only, 12 bank slots only) run when the game first released.

Reinstalled the game yesterday and started another HCCO run using the new mod, it adds some QoL and tweaks.

My only negative about it is that when playing normally, I always feel like there's a perfect/optimal strategy and I should figure it out before playing.

[-] Lorgres@lemmy.world 6 points 6 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.

[-] Lorgres@lemmy.world 8 points 6 months ago

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.

[-] Lorgres@lemmy.world 6 points 6 months ago

Another system that does it well imo is Shadowrun. In 5th edition (never played the others) when you cast a spell you can take mental damage. If you cast the spell on a weak level you are fine but if you go full-out then you can KO yourself pretty quick. Especially if you roll bad on your damage resist roll.

[-] Lorgres@lemmy.world 5 points 8 months ago

Up until recently I was using a gtx 1060 just fine. Not sure about the high end ray tracing stuff though.

I'd say give it a try, I had a great experience. Never had any proton issues with an nvidia card my self. Just keep in mind nvidia drivers on Linux are notorious for being bad. If you choose an LTS distro or one that packages the drivers you'll be fine though. Pop!_OS LTS with the nvidia drivers is what I ran.

[-] Lorgres@lemmy.world 7 points 9 months ago

He may release them. With bee swarms it's common practice to starve them for a day before putting them into their new hive. That way they don't immediately swarm/leave again. Wouldn't be surprised if something like that works with hornets too. Starve them a bit then release them in the woods.

FYI no need for poison. Just use dish-soap water. (Works for bees at least and their carapace is the same material as hornets/wasps)

[-] Lorgres@lemmy.world 4 points 9 months 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.

1

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?

view more: next ›

Lorgres

joined 1 year ago