What is the fastest technology to send messages between C++ application processes, on Linux? I am vaguely aware that the following techniques are on the table: TCP UDP Sockets Pipes Named pipes Memory-mapped files are there any more ways and what is the fastest? Answer I would suggest looking at this also: Ho…
How can I transfer 12GB data to new server [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 9 years ago. Improve this question I’m in the middle of changing our server. We bought server space at a different location and …
How to prevent kernel from passing packets to network layer?
Frames received by the network card will be handled by the driver and then passed to the upper layer of the protocol stack by the Linux kernel. Is there an easy way to prevent the kernel from passing packets to network layer? So that I can receive the frames from datalink layer and handle all the packets by m…
How to toggle case for text in a file [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago. I want to know the …
Linux shell script to find and rename files to remove suffix?
I have some files named like this: file1.c.keep.apple file2.c.keep.apple I am trying to write a shell script so that I pass in the suffix as an argument (in this case, apple) and it will rename all of the files removing the .keep.apple. Example execution: script.sh apple results in the files above being renam…
iozone what is record size/record lengh?
We have build windows file server and i wan to run iozone to test Disk I/O performance so what kind of test i should run and how do i know how much i/o i will get at X size of file? also what is record size or record lengh I came across many time this word while i was googling..
JAVA_HOME and PATH are set but java -version still shows the old one
I am using Linux Mint Cinnamon 14. I have set the $JAVA_HOME and $PATH environment variables in ~/.profile as follows: I then did source ~/.profile to make the proper changes. When I execute java -version command to check the active java version, it shows the default (already installed open-jdk) java version.…
ant: warning: unmappable character for encoding UTF8
I have seen numerous of questions like mine but they don’t answer my question because I’m using ant and I’m not using eclipse. I run this code: ant clean dist and it tells me numerous times that warning: unmappable character for encoding UTF8. I see on the Java command that there is a -encod…
TypeError: argument 1 must be pygame.Surface, not str How do I fix? [closed]
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the …
How to append text to a specific lines in a file using shell script?
I have a text file (file.txt) having content something like: It contains the process and respective PID. Using shell script, I want to append a string (running/not running) to that lines in this file, according to the PID. For example, in the above file, for line containing PID 3696, I want to append a string…