Questions tagged [programming]
Questions about tools for programming (compilers, IDE, etc.) For questions that involve programming, ask on Stack Overflow.
202 questions
0votes
1answer
96views
Keyboard buffer management
On Linux, when a shell is running a process it usually allows you to keep typing commands which will be processed when the process finishes. The same can be observed in other applications that behave ...
1vote
0answers
45views
Running a program/script before a user logs in on RedHat Linux GUI
I am looking to run a script prior to a user being able to log in on the GUI. Its a basic script, do you accept Ts&Cs Y/N, enter user name, data is captured and stored. Then once complete takes ...
0votes
0answers
117views
How to "wake-up" user space threads from kernel?
Suppose you have a kernel device driver receiving data and a user space threads waiting for the data. You want to avoid wasted cycles by having the user space thread block and wake-up once the kernel ...
0votes
0answers
104views
Geany: Possible to automatically enable/disable line wrap dependent on file type?
In Geany text editor / IDE, is there a way to tell it to automatically enable line wrapping for certain file types, but not for others? For example, for .txt files, I would like it to always enable ...
-4votes
1answer
85views
Why build a .deb package vs simply including files? [closed]
I'm confused as to why you would create a .deb package vs simply putting your program in a folder + additional files and writing an install script. What are the value of packages?
-1votes
1answer
62views
Searching for an old laptop to learn linux [closed]
I have years of experience in programming algorithms and compiling statistics. Now I would like to develop my skills and immerse myself in the world of Linux in order to get more involved with the ...
1vote
2answers
1kviews
Is there a way to do namespaces like in C for bash?
What I'm talking about is like in C, you get to use namespaces with the statement using namespace blah blah blah, can you do the same thing but in bash?
0votes
1answer
564views
Are there Visual Studio -like tools for creating forms in Linux?
I want to create forms in Linux. I create Windows forms, but for example if I was to use Linux to develop is there any software I could use to create a form like you would in Visual Studio?
1vote
1answer
208views
Sending data with raw socket over gretap
I'm trying to write an IS-IS packet to gretap interface with ISO (0x00fe) protocol type. In this case there is no ethernet header so I'm using raw socket. The gretap always puts 0x6558 as the protocol ...
1vote
2answers
469views
Linearizing a fasta file and removing special characters in
I linearized a fasta file using using awk on a remote computer. when I used nano to open it, it showed that the file had linearized. However when I downloaded the file to my local computer, and I ...
0votes
1answer
41views
How can I en- and decompress a bootable image?
I have a bootable kernel image, that I had created with MinGW Toolchain's that available for Microsoft Windows 11. The Project is in size tiny, but I would know: "How can I shrink the image, if ...
4votes
2answers
12kviews
Creating a bash script to install packages
I'm quite a newbie when it comes to bash. I'm trying to create a script that checks whether a package is installed or not. If not it will install that package. Not sure what I'm doing tbh. #! /bin/...
0votes
2answers
2kviews
Change permissions on symbolic link [duplicate]
I'm starting in programming with multiple exercices and I don't know how to change my link permission (lrwxrwxrwx to lrwxr-xr-x). I have already searched solutions from Google and Youtube but nothing ...
0votes
3answers
69views
Quoting rules in a complex situation
When writing lines of code we sometimes need to consider escaping some characters. I have come across a situation that I cannot answer on my own In PHP, the exec command requires a string enclosed in ...
0votes
1answer
84views
EPROTOTYPE (_SIGN 41 ) while creating raw socket() in MINIX 3
The following is my code snippet that is producing EPROTOTYPE error, aka, Protocol Wrong Type for Socket. I checked for the headers in /usr/include in MINIX 3, sys/socket.h contains definitions for ...