Skip to content

PHP popen Application cannot open shared object

I’ve created a simple C++ Application with the boost framework. The Application is running correct from the command line. After this I’ve created a PHP file with a popen to this binary. After visiting the website I’ve got the following error message from apache2/error_log System is openSuse …

renaming file using shell script

I have tons of image inside a folder and it also has different file types. I have tried googling for an answer but I can’t seem to find one. I wanted the files to be named 1.jpg, 2.png, 3.gif. . . n.JPEG. Could someone help me out with this? Answer Try the command below: Make note that the command above

Can tar extraction erase brother directory ?

I made several backups on different directories with Backup Manager. Eg: /home/user1 /home/user2… It gives me some tar files. The content of a tar file looks like : I tried to test the restoration with something like : But the command above recreate all the structure inside the choosen directory. That g…

Linux xargs command

A quick question. A command doesn’t require xargs, but the command requires xargs command. Can please someone explain me the concept of xargs more clearly. Thanks. Answer In short, xargs converts stdin (standard input) to arguments for the command you specify. For example seq, as you can see, prints a s…

How to control global OpenMP settings from C/C++?

OpenMP doesn’t provide API to adjust some crucial settings in runtime, e.g. OMP_WAIT_POLICY or GOMP_SPINCOUNT (at least in gcc 4.8.3). Such settings are designed to be changed through environment variables for some reason. Not very convenient. Is there any way I can change such settings in run-time from…

Raspberry PI remote debug GTK error

I’m using NetBeans IDE 8.0.2 on my Win7 machine to develop Raspberry Pi opencv C++ application. I’m building & debugging the application remotely on the Raspberry Pi from my Win7 machine. At run time the application fails with “Gtk-WARNING **: cannot open display:” error when reach…