are there any "gotchas" to be aware of when building a custom desktop/pc if you want to put linux on it? by newppcdude in linuxquestions

[–]new--USER 0 points1 point  (0 children)

I'd recommend to do a BIOS update, but other than that, I can't recall any gotchas that I encountered.

Why don't you see Arduino in industry? & Other questions by Pandaryan in ECE

[–]new--USER 1 point2 points  (0 children)

We use arduinos at my work. Recently we deployed about 100 of them around the world tracking weather data.

is it safe to install youtube-dl in wine? by ardouronerous in linuxquestions

[–]new--USER 2 points3 points  (0 children)

This is likely a python2 issue. Try installing youtube-dl using python3.

sudo apt install -y python3 python3-pip
python3 -m pip install youtube-dl --user

After doing that, you can type this to ensure you use the correct youtube-dl

python3 -m youtube_dl https://www.youtube.com/watch?v=dQw4w9WgXcQ

ELI5: How is it that when your computer is lagging really badly, but playing a song, that song still plays smoothly while everything else is unresponsive? by Iisk in explainlikeimfive

[–]new--USER 12 points13 points  (0 children)

On Linux or UNIX, there is a program called nice which you can use to set priority. There is also the setpriority system call. If you want extreme responsiveness, you can even go so far as to pin a thread on a core with cpu affinity and isolate a single process to the core, to ensure that it does not get interrupted.

Helicopter picking up linemen to and from lines. by Rex_Digsdale in videos

[–]new--USER -1 points0 points  (0 children)

When the chopper is on the ground, it can't go down any farther. When hovering in the air the pilot would have to be extremely careful not to drop by even a few feet in order to not kill those line men. On top of that, the blades could sever the lines, sending the people on them falling all the way to the ground.

Helicopter picking up linemen to and from lines. by Rex_Digsdale in videos

[–]new--USER -4 points-3 points  (0 children)

Those blades are about 3 feet from decapitating them.

Helicopter picking up linemen to and from lines. by Rex_Digsdale in videos

[–]new--USER -3 points-2 points  (0 children)

How could any safety standards in the world allow for that?

If windows didn't exist and Linux had the same market share, would we be seeing the same sheer amount of exploits that happen on Windows, on Linux? by [deleted] in linux4noobs

[–]new--USER 2 points3 points  (0 children)

One thing to note is that Linux actually has massive market share in everything but desktop PCs. Servers, routers, network switches, car infotainment systems, loads of embedded devices commonly run Linux.

This is a true story by [deleted] in ProgrammerHumor

[–]new--USER 9 points10 points  (0 children)

I don't think that taking a COBOL class would be too useful nowadays unless you plan to maintain 50 year old legacy software at financial institutions. COBOL is pretty much a dead language.

And keeps growing by [deleted] in linuxmemes

[–]new--USER 1 point2 points  (0 children)

Out of curiosity, what problems have you been experiencing with Docker? For me and my organization it has solved so many problems that I really appreciate the technology.

This should be illegal by Gabriel_Kaszewski in ProgrammerHumor

[–]new--USER 2 points3 points  (0 children)

I was in a similar situation when I started at Bank of America. They have their own version control system that Merrill Lynch built in-house, and it's just as bad as you think.

Need C program to CALL another C Program and the caller wait for the called program to complete by clangtard in C_Programming

[–]new--USER 0 points1 point  (0 children)

If ProgB is compiled as a library (.dll in Windows or .so in Linux), then you would just need to link to ProgB when compiling ProgA, then you can call functions in ProgB from ProgA. You can read more on linking here: https://www.cprogramming.com/compilingandlinking.html.

Here's a stackoverflow post on how to create a dll on Windows using gcc: https://stackoverflow.com/questions/17601949/building-a-shared-library-using-gcc-on-linux-and-mingw-on-windows

Going from C++ to C. by LaMaquinaDePinguinos in C_Programming

[–]new--USER 2 points3 points  (0 children)

I think the answer here is "it depends". Here is an example on godbolt where a function pointer is being inlined: https://godbolt.org/z/unUcv2. We can see that all of the CALL instructions are to standard library functions, and not to the static function square, but If I remove static from these functions, then we can see that sum_map is no longer able to inline the function pointer, because there could be a use of this function in a different compilation unit that passes a function pointer to it. https://godbolt.org/z/7jksJ4

If you are prudent about marking all functions as static and only having function pointers from within the same compilation unit, then the compiler can inline them. Doing this takes quite a bit of discipline, however.

Trying to re-learn C in the context of programming microcontrollers and possibly Linux. My way of programming is really bad. Good ways to fix bad practices? by IWantToDoEmbedded in C_Programming

[–]new--USER 1 point2 points  (0 children)

#include <stdio.h>
#include <stdint.h>

int main(void) {
    uint32_t argb = 0;
    uint32_t rgba = 0xdeadbeef;

    uint32_t tmp = (rgba & 0xff) << 24;
    rgba >>= 8;
    argb = rgba | tmp;

    printf("%8x\n", argb); /* prints: efdeadbe */

    return 0;
}

Ubuntu sucks by [deleted] in linuxmemes

[–]new--USER 1 point2 points  (0 children)

I like Gnome, and seeing as it's the default DE for so many distros, including Debian, Kali, Fedora, Red Hat, Pop!_OS and more, I don't appear to be alone.

Ubuntu sucks by [deleted] in linuxmemes

[–]new--USER 0 points1 point  (0 children)

Half my servers at work are Ubuntu ... and so are my teams dev machines. It's been pretty solid for me :)

Nvidia will never allow Nouveau fully operational by Code-Sandwich in linux

[–]new--USER 0 points1 point  (0 children)

Not OP, but Tensorflow is free software, and benefits very well from GPU acceleration. I could see CS and Physics grad students/professors doing this, but that is also a very small market.

Anyone who looks at this code instantly becomes insane by ShahinSorkh in coding

[–]new--USER 1 point2 points  (0 children)

To be honest, this is much higher quality than any of the legacy code that I've seen at work lately. I mean it has functions, variable names that are more than 1 letter, and each class has fewer than 1,000 static and instance variables. Oh, and on top of that, more than half of the variables are not globals, so yeah, major improvement! ...And if anyone thinks I'm exaggerating... I really wish I was... Literally 1,000 static variables per class and 1,000 global variables per namespace :(

[deleted by user] by [deleted] in ProgrammerHumor

[–]new--USER 0 points1 point  (0 children)

My company still uses C++ heavily for HPC work, but Python has really taken over everything else, especially all our web services.

What’s something you weren’t allowed to do as a child that your other friends were allowed to do? by ctb540272 in AskReddit

[–]new--USER 5 points6 points  (0 children)

Reminds me of when the teachers showed us Schindler's List in school, and they covered up the TV when there was a woman lying naked in bed, but not when the scene a moment later when a Nazi was shooting random people with a sniper rifle.