Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [programming]

Questions about tools for programming (compilers, IDE, etc.) For questions that involve programming, ask on Stack Overflow.

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 ...
A_A's user avatar
  • 173
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 ...
K_Sparky1029's user avatar
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 ...
FourierFlux's user avatar
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 ...
End Antisemitic Hate's user avatar
-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?
FourierFlux's user avatar
-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 ...
PaiThon's user avatar
  • 15
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?
trent's user avatar
  • 27
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?
gsmyth377's user avatar
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 ...
Barry's user avatar
  • 21
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 ...
thole's user avatar
  • 33
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 ...
Jens's user avatar
  • 1
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/...
Scriptkid_bash's user avatar
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 ...
Raph's user avatar
  • 1
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 ...
Luca Zappi's user avatar
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 ...
Reiki Yamya's user avatar

15 30 50 per page
1
2 3 4 5
14