Questions tagged [programming]
Questions about tools for programming (compilers, IDE, etc.) For questions that involve programming, ask on Stack Overflow.
203
questions
0
votes
1
answer
25
views
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 ...
1
vote
0
answers
27
views
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 ...
0
votes
0
answers
56
views
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 ...
0
votes
0
answers
54
views
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 ...
-4
votes
1
answer
79
views
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?
-1
votes
1
answer
55
views
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 ...
1
vote
2
answers
1k
views
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?
0
votes
1
answer
296
views
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?
1
vote
1
answer
159
views
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 ...
1
vote
2
answers
364
views
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 ...
0
votes
1
answer
36
views
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 ...
4
votes
2
answers
8k
views
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/...
0
votes
2
answers
1k
views
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 ...
0
votes
3
answers
61
views
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 ...
0
votes
1
answer
65
views
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 ...