Category "linux"

apt-update in Azure Nvidia gives publickey error

I started a NVIDIA VM on AZURE and trying to do update using sudo apt update but gives error: Hit:2 http://azure.archive.ubuntu.com/ubuntu focal InRelease

Promise { <pending> } React bcrypt hashing the Password [duplicate]

I am creating a Login/Registration Form Using Nodejs. I am hashing the password entered by the user using bcrypt.js but when I assign the pass

How to remove the Title Bar of Gnome applications

Problem I have one Ubuntu20 Desktop(Gnome) and I want it to be fully black and ideal. As reference, I have taken one Ubuntu20 Server and Installed openbox on it

Linux read dilemma

I need to read from a fifo. Using ssize_t read(int fd, void *buf, size_t count);, I faced the following situation. When a large set of data must be read from fi

what is the upper limit for process heap memory? [duplicate]

Hi Anybody knows what is the upper limit for the heap allocation in linux process? Consider below example, int main() { char *p; unsig

Nginx does not respond to specific client-public-ip

I'm configuring two Domains to host two websites: dev.example.com and test.example.com I'm using Nginx as a webserver and my websites, dev and test, are configu

Why does xtrace show piped commands executing out of order?

Here's a simple reproducer: cat >sample_pipeline.sh << EOF set -x head

edit the ID column to add chr to a number

I have a vcf file. It looks like this: It has a vcf header followed by genotype information. I want to add chr to third column. Like now it looks like: 21 98257

ElectronJS: Window always-on-bottom (inverse of top-most / widget)

I am currently creating a system monitor application for which I would like it to work as a widget. Please see example of my application below: ElectronJS syste

Digitalocean basic droplet for wordpress website showing database error every now and then

I have created a basic 5$ droplet with digital ocean to host a wordpress website. After installing the wordpress as soon a i login to the dashboard and start wo

when do we use secondary ip address in linux os?

I get to know why we use secondary IP or VIP on routers or switchs. But why we need to set secondary IP in linux OS. I have seen 'how to' but haven't seen 'why'

How do I deal with a filename that starts with the hyphen (-) character?

Somehow, at some point, I accidentally created a file in my home directory named '-s'. It is about 500 kb and I have no idea if it contains important data or no

Watch changes in a file and restart python script

I want to restart a python script(restart.py) whenever some edits a file (test.txt) =====restart.py==== from time import sleep for i in range (1000): print

While building GCC 8.5.0: "error: `CC' has changed since the previous run"

I'm building GCC 8.5.0 on a Devuan Chimaera GNU/Linux system (using GCC 10). I've configured with ./configure --disable-gnat, then ran make. At some point, I ge

Comparing latency of mutex vs. spinlock wake time

I am curious about the latency of a mutex vs. spinlock, measured as the time between when one thread unlocks it and another waiting thread can access it. I wrot

How to include multiple values under a section in inifile

I am trying to create a puppet manifest using inifile. This would be for a configuration file where I need to have the following format. [safe] directory =

OpenCV output monochrome TIFF group 4 compression

Is there a way to output monochrome TIFF files in OpenCV with group 4 compression? This is the command to do it with imagemagick/graphicsmagick 'gm convert '.$f

Can Valgrind mend memory corruption?

I am testing a C++ program for problems. I am running it under valgrind. I start the program with // valgrind test char * p = (char*)malloc(4);

display all blocked and pending signals at one time

The following program checks if a signal is pending. I use the sigpending function to return blocked (or waiting) signals. The problem is that I don't want this

Docker Openvpn network forward doesn't work

I would like to connect from a php docker, through a OpenVPN docker to a OpenVPN client. Network structure I have added a Docker network (192.168.200.0/24) The