I am using Linux and I want to write tests using Appium. At the moment I installed all required tools to run it (Node is installed not through brew install node, but using nvm install node). Appium is running on localhost (Welcome to Appium v1.4.6 info: Appium REST http interface listener started on 0.0.0.0:4…
Why is a multithreaded C program forced to a single CPU on Mac OS X when system() is used in a thread?
I encountered a strange difference in the behavior of a program using pthreads between Linux and Mac OS X. Consider the following program that can be compiled with “gcc -pthread -o threadtest threadtest.c”: Running the resulting executable on a 4-core Mac OS X machine results in the following beha…
Eclipse error JVM terminated. Exit code=1 /usr/Java70/jre/bin/java
I get a error like My java version is: My eclipse.ini: Linux version: Why am I get that error and how can I solve it? Ran java -jar plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar Answer The problem was that whenever navigating to any workitem on RTC, that error occurred and eclipse crashed. Bas…
Provide vim syntax highlighting system wide by debian package
I wrote a custom software using its own configuration files under /etc. The software is built in a Debian package and delivered by a custom repository. In order to provide a nice syntax highlighting in vim I wrote all the necessary files to nicely highlight my own config files. If I place them under ~/.vim/sy…
What is importance of using GPL lincense in linux device driver
What is the exactly benefit of using MODULE_LICENSE(“GPL”) in linux device driver development. i mean what will we lack or gain by not using or using it. which kernel symbols we will not able to use when we will define MODULE as non GPL. Answer The big difference is the symbols that are exposed to…
Cannot simultaneously run python 2 and 3 due to import errors
I am trying to be able to run python2 and python3 simultaneously on a server that I do not have root access to and which does not have a recent python3 implementation. This works fine on my own server which I do have root access to, but I can’t figure out what I am doing wrong. For reference, the python…
Obtaining UNIQUE VALUE occurrences count in a set of COLUMNS using AWK
IGNORING columns 1 & 2 (only the rest of the columns); I would like to obtain the occurrence COUNT of UNIQUE EVEN values (ignoring ODD ones) for the following set of data. I have tried: I obtain 76 but I don’t expect this value. Answer You can try this awk command to count unique values ignoring 1st and 2…
Find filenames with variable number of characters
Using Ubuntu. I have a directory, with some sub directories, which may have some files with names formatted like this: So, they all start with ‘core’. then a process name, then the PID number, which is usually 4 or 5 digits. My Python based tool uses two ‘find’ commands to find them, l…
RT preempt vs RTAI vs Xenomai for real-time linux
What are differences, pros and cons of the three referred real time OS framework, extensions or patches? I want to measure a CPU timestamp counter (TSC), time in nanosecond everytime when a data frame or an ack frame of Wifi is sent or received. And I realized that one of three real time technique is required…
Why does my assembly program give segfault?
I have the following piece of code that I have to debug: After compiling and running that code I obtain a segmentation fault error, it seems that something goes wrong after the 5th line. My linux asm knowledge is very basic, any hints or ideas about what is exactly going wrong and how to fix it? This piece of…