ffmpeg error: cur_dts is invalid

I'm trying to record video and audio from my webcam with the following command: ffmpeg -f v4l2 -input_format mjpeg -s uhd2160 -i /dev/video0 -f pulse -channels 1 -i default video.mpg but it seems to get stuck in some endless loop at the bottom of ...
more »

2017-12-03 21:12 (0) Answers

who fills the device configuration space of pci?

I want to know who fills the configuration space of a particular device of PCI at the first place when a new device is connected to the PCI bus. I know both bios and operating system can configure the PCI space but who gives the information of the d...
more »

2017-12-03 15:12 (1) Answers

How to search for a string in a file and compare?

That is my first post on stackoverflow. Btw I am really noob. I would like to search a string with a comand like that: ./a.out foobar. I have a file, called list.txt, in which I have a list of names, I want to search in that file to find foobar. Wh...
more »

2017-12-02 23:12 (0) Answers

how to parse html text file in terminal?

I have a text file that even after removing all the html tags still contains some html codes of apostrophes and other punctuations example : It's // It's my question is how to change all of them? and I'm using a bash script under li...
more »

2017-12-02 22:12 (2) Answers

Kerberos Authentication for SQL Server

I am still seeing the following exception while trying to access SQL Server using Kerberos. What am I missing? Connecting to jdbc:sqlserver://SERVER:PORT;databaseName=DB_NAME;integratedSecurity=true;authenticationScheme=JavaKerberos;applicationName...
more »

2017-12-01 20:12 (0) Answers

GNU netcat exit code always 1?

I'm trying to use GNU variant of netcat in script but it always returns exit code 1 even if everything is fine. Here's my case step by step: run nc -l -p 7000 run nc 7000 press ctrl+c on client nc server nc always returns 1 It...
more »

2017-12-01 16:12 (1) Answers

Finding repeated names in a file

Hi i have a txt file with last name and name of people, now i want do use egrep to only display the names of the people with the same last name. I have no idea how i could do this. Thanks for help my txt looks like this: snow john snow jack miller g...
more »

2017-11-30 20:11 (2) Answers

updating time out values in select() calls

I want to implement a timer using select() and I want it to reach the timeout code after intervals of every 3 seconds. if I remove "timeout.tv_sec+=8;" from my code it waits for 3 seconds and then starts printing "time out" continuously and with "ti...
more »

2017-11-30 12:11 (2) Answers

No rule to make target '%.o'

For unknown reason, GNU Make doesn't do the job for me. I have this MAKE file, I did ensure for every recipe, I use tab, not space. however I look at it, I just couldn't spot anywhere that would cause the error message. OS: Ubuntu 17.10 / GNU Make: ...
more »

2017-11-29 12:11 (1) Answers

Trigger system default Open With dialog - Electron

I have created an application using Electron, one feature of which is that user can add files to it(copied to application's data directory). When user wants to open file from application's UI, I am able to open file using Electron's shell module: s...
more »

2017-11-29 05:11 (0) Answers

How to insert a variable inside bash -c command

I can do the following: $ FOO="text" $ echo $FOO $ text But how can I wrap it inside bash -c construct? I tried this but failed: $ FOO="text" $ bash -c 'echo $FOO' $ # return nothing The reason I ask this because I need to execute another 3rd p...
more »

2017-11-29 03:11 (2) Answers

Bash (parallel wait execution)

I've got a master script that reads 5 lines from a file and executes 5 distinct shell scripts at a time and waits for 5 to finish before starting the next batch: cat file | while read line1 && read line2 && read line3 && rea...
more »

2017-11-29 02:11 (1) Answers

Bundle Install command won't install my gems?

Okay, so I'm very new to Rails, and am just beginning to feel my way around my new Linux operating system as well. I'm currently doing a project for school, and I've followed all of the directions to perfection. For consistency purposes, they want ...
more »

2017-11-29 01:11 (1) Answers

I Cant Run Opencv Project in other machines

I have a project whit opencv on my machine that is running ok, it works and does what it should do. In my machine I installed the opencv libraries. The problem is that when I want to run the program on another Linux machine I get this error: Error...
more »

2017-11-28 23:11 (0) Answers

Using an "if" statement with curl in terminal?

I'm using this command to get the response code of a page using curl: curl -s -o /dev/null -w "%{http_code}" 'https://www.example.com' If the response code is 200, then I want to delete a certain file on my computer. If it isn't 200, nothing shou...
more »

2017-11-28 20:11 (1) Answers