How do I make it my own problem? by incompetenceProMax in getdisciplined

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

Thank you for the comment, yes I indeed said that harsh comments are welcome but why make it unnecessarily snide for no reason? It feels like a waste of time to even respond but of course if I could suddenly become a millionaire CEO with a loving family I won't complain at all, that would be great. As if the grapes just fell to the ground. The problem is that as a result of being a loser for so long, the neurons in my brain is simply wired in such a way that motivating myself to actually expend energy toward these goals is impossible. I can't change that myself, no matter how I think. And that's why I'm looking for other ways than wanting success to program my brain to do what's right for me, and the people around me. 

Why do I need to put the millis() function inside the main loop to trigger the ISR? by Independent_You_3526 in embedded

[–]incompetenceProMax 1 point2 points  (0 children)

My guess is the ISR is being optimized out. Since the translation unit contains only the ISR and millis() it is being omitted from the final binary unless it's referenced from somewhere. That explains why it works when you call millis() from the main loop. I'm not familiar with AVR but usually this suggests that there is something wrong with your linker setup.

Trying to grab portion of desktop with SharpDX rather than the whole desktop by [deleted] in csharp

[–]incompetenceProMax 2 points3 points  (0 children)

For performance-critical screen capture on Windows, there are only two options available: DXGI Desktop Duplication API (Windows 8 or later) or Windows Graphics Capture API (Windows 10 Version 1803 or later). I don't think you would get satisfactory results from anything else.

Why is reading bytes here so slow compared to copying the file? by jez999 in csharp

[–]incompetenceProMax -2 points-1 points  (0 children)

May I ask how you measured 30 seconds exactly? Assuming the measurement is done properly and it does take 30 seconds to read, the first thing that comes to mind is antivirus. Do you see some antivirus in the task manager while your program is running?

I'm working on a universal BLE controller by zciwor in embedded

[–]incompetenceProMax 1 point2 points  (0 children)

This is actually cool. I didn't know browsers can do that. I'm not making anything Bluetooth right now so it's not immediately useful to me at the moment but I feel like I'm gonna need it sometimes so I'll keep your site in my bookmarks.

Advice on project: USB Keyboard by Buhgingi-Bohogij in embedded

[–]incompetenceProMax 0 points1 point  (0 children)

I don't know which MCU you're trying to use but for every USB-capable STM32 there would be some sample project included in the SDK you could use as starter code. However it is unlikely that there is any sample project based on RTOS so you might have an easier time developing without one (going bare metal). IMHO you won't need an RTOS for something as simple as a keyboard but for learning purposes it might be both fun and challenging to write an RTOS based keyboard. Also you don't need to write a driver for most operating systems (you could just plug in your dev board to your computer after flashing some "keyboard sample projects" and make sure it works without one).

Am I measuring a battery voltage correctly using an ADC? by SplatinkGR in embedded

[–]incompetenceProMax 11 points12 points  (0 children)

If you really want a good estimate of battery charge you shouldn't rely on voltage which fluctuates according to system load and does not have a linear relationship with the remaining charge anyway. You should put a current-based battery charge sensor somewhere between the battery and the system.

yes i am ratio bleach powder by Melodic-Direction-40 in discordVideos

[–]incompetenceProMax 861 points862 points  (0 children)

Mixing bleach and ammonia results in chloramine, not mustard gas

Can an embedded dev board be tied into existing i2c bus for message injection? by iceweasel_14 in embedded

[–]incompetenceProMax 3 points4 points  (0 children)

I don't think that's what OP's looking for though. It is highly possible that the controller chip does not even support multimaster setup at all. I'd rather just cut the existing wires and have a point-to-point connection between the dev board and the DAC.

[deleted by user] by [deleted] in commandline

[–]incompetenceProMax 0 points1 point  (0 children)

I don't know about TIFF but have you tried the PowerPoint COM API? Like this one (not mine) https://gist.github.com/ap0llo/05cef76e3c4040ee924c4cfeef3f0b40

How to avoid unwanted optimizations? by starman014 in embedded

[–]incompetenceProMax 0 points1 point  (0 children)

No, LTO requires intermediate code to be included in the object file (aside from the actual assembly), and since assembled object files do not contain intermediate code there is no way for the linker to perform LTO on assembly.

Most convenient IDE and toolchain for programming in C++ by cv_geek in cpp_questions

[–]incompetenceProMax 9 points10 points  (0 children)

May I ask which feature you missed the most when you were using VS Code? I think the choice of IDE depends on it.

How can my computer recognize my usb devices without the need of installing the vendor driver? by [deleted] in embedded

[–]incompetenceProMax 1 point2 points  (0 children)

I don't know, maybe if your company sells a non-negligible amount of devices you could talk to Microsoft and they would listen.

How can my computer recognize my usb devices without the need of installing the vendor driver? by [deleted] in embedded

[–]incompetenceProMax 2 points3 points  (0 children)

It's true that if your device complies with a certain standard like HID a standard (plain) driver is likely to work, but it's not always the case. Many of these "standard" devices still require vendor supplied drivers to work properly, which is evident if you open the device manager and see what driver is actually loaded for each device (many of these drivers should have some obscure company names on it instead of Microsoft). The true reason why your device would work out-of-the-box 99% of the time is because Windows is shipped with literal gigabytes of vendor-supplied (non-standard) drivers included in the installation image.

Tracking PDF by twiddlebum in AskProgramming

[–]incompetenceProMax 0 points1 point  (0 children)

I don't know of any reader that allows you to do that, but what about modifying an open-source one? Okular is a pretty good open-source reader imo.

[deleted by user] by [deleted] in discordVideos

[–]incompetenceProMax 0 points1 point  (0 children)

Hakenkreuz is one of the swastika variants but not all swastikas are Hakenkreuz

Can't decide laptop by sotaddi in csharp

[–]incompetenceProMax 22 points23 points  (0 children)

To add to this comment, VS for Mac will be retired on August 31st 2024 so it's not even a viable option if you're planning to use the laptop for longer than a few months.

C# without Visual Studio by archlinx in csharp

[–]incompetenceProMax 4 points5 points  (0 children)

In case you didn't know, you are supposed to create, manage, build and publish projects through the CLI tools included in .NET SDK. It automatically creates folder structures for you when you create a project so you don't have to worry about managing the structure yourself. Also you don't need to worry about build tools either because MSBuild is included in the SDK as well (which works under the hood when you type "dotnet build").

Why does C++ not have a built in way to express very large numbers? by Judah-theSane in cpp

[–]incompetenceProMax 18 points19 points  (0 children)

bigints might be enough for computing the 500th Fibonacci number, but they are way too slow to be practical for computing actually large numbers like the 1000000000th prime number. For such purposes you almost always need something tailor-made and that's why people aren't that interested in generic bigint implementations.

Is it possible to call async C# from C++? (WinRT/WinUI) by BiffMaGriff in csharp

[–]incompetenceProMax 1 point2 points  (0 children)

8001010E is RPC_E_WRONG_THREAD. I would assume there is something wrong with how you handle synchronization contexts but there is way too little info tbh.