Skip to content

One way communication over TCP Socket [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago. Improve this question I am trying to send some data to a remote Raspberry Pi over TCP socket from a GUI that I des…

Regex is not checking some part of text

I’ve example file with data to analyze by egrep command: My regexp looks that: I wan’t to find only rows where [RM# {digits}] AND [IG# {digits}] but it returns like using OR and results looks following: Expected output is Answer Looks like you want to search for a line that should match two differ…

V4L2: What happens when the queue is full

In video capture mode, what happens when the queue is full and a new frame comes in? Does the kernel drop frames? If so, does the newest frame (just arrived) get dropped or the oldest one in the queue gets dropped? Answer Yes if the queue becomes full kernel drops the buffer newest frame which just arrived, i…

Find and scp in one command

I need to scp all txt files in /home/data directory and its subdirectories. The command seemed to work but on the destination server instead of a folder there was a file named testdir and it seemed to have the size of the last txt file that was transfered. Am I missing something in the command? Answer Rsync m…

Is it necessary to flush a QTextStream before closing a QFile?

I need to log some text messages to a file with following requirements : Each text messages is written in a new line at the end of the file. Be reasonably sure that each message was correctly written to the file. So far, the function is using QTextStream and QFile: Point 1 is satisfied but i have doubts about…

Yocto/Poky: How to remove hwclock from busybox?

I’m building a Poky-based embedded Linux distribution for a target which doesn’t have a real-time clock. System time is only set by ntpd. Therefore I don’t really need an init script which calls hwclock –hctosys during boot, and in fact I’m afraid that this might cause the system…