Skip to content

Tag: linux

NGINX 404 not found but file exists

I want to call the index.html from the folder /var/www/fileUpload/html. The index.html file exists in that folder. The / router works. the uploadFiles route as well. But when I open the upload route I get a 404 error. Do you have any suggestions? Thank you! Answer That should be alias /var/www/fileUpload/html…

Why am I receiving segmentation fault (core dumped)?

This program was created to log the counter every 5 seconds. The while loop needs to be running while the daemon process is running in the background and logging the counter. The error I’m receiving is: Segmentation fault (core dumped). the terminal ask to input a number, when I input the number I recei…

Looping over pairs of files

Hello I need to iterate over pairs of files and do something with them. For example I have 4 files which are named AA2234_1.fastq.gz AA2234_2.fastq.gz AA3945_1.fastq.gz AA3945_2.fastq.gz As you can propably tell the pairs are AA2234_1.fastq.gz <-> AA2234_2.fastq.gz and AA3945_1.fastq.gz <-> AA3945…

Can’t import mysql.connector in Python

As the title says, i can’t import mysql.connector in python on Debian 9.13 This is what i did I tried installing, uninstalling and reinstalling mysql-connector, mysql-connector-python and mysql-connector-python-rf in Python2.7 and Python3 Before someone flags this question as duplicated, i already tried…