Skip to content

What is a .so.2 file?

I compiled Intel TBB from source using GCC. It generates a libtbb.so and littbb.so.2. Looks like the .so.2 file is the real shared library, libtbb.so just contains a line of text INPUT (libtbb.so.2) What is the purpose to generate these two files instead of one? For the INPUT (libtbb.so.2), what is the syntax…

All possible exit codes for cp

Looking at the man pages for cp, I only found that the command exits with 0 when copy succeeds with no error, and with a number greater than 0 on any error. However I couldn’t find any detailed description on specific exit codes mapped to specific cases. Is there such a description anywhere, is it even …

Does Clang/GCC really support a delay loading feature?

Would you mind to leave your comment on this if you have really experienced which relates to the title above? I have tried to make a shared object to be delay loaded with both Clang and GCC on Ubuntu (I actually don’t mind which compiler is used), but they do not look really support any delay loading fe…

Using CLOCK_PROCESS_CPUTIME_ID in clock_gettime

I read http://linux.die.net/man/3/clock_gettime and http://www.guyrutenberg.com/2007/09/22/profiling-code-using-clock_gettime/comment-page-1/#comment-681578 It said to use this to measure how long it take for a function to run. I tried that in my program. When I run it, it returns saying it took 15 sec. But w…

PHP’s exec() Function and the .history File

Given that the user that apache is running as on my server is a real user and has a home directory with a .history file, will running commands via exec() cause entries to be made in that file? For example if I run exec(“whoami”) and I login as that user and run the command history will I see an en…

Use an IP-camera with webRTC

I want to use an IP camera with webrtc. However webrtc seems to support only webcams. So I try to convert the IP camera’s stream to a virtual webcam. I found software like IP Camera Adapter, but they don’t work well (2-3 frames per second and delay of 2 seconds) and they work only on Windows, I pr…

Mongodb connection in PHP not working

I am using Ubuntu 12.04 LTS and installed pecl in /opt/lampp/bin/ . When installing second time its throwing error – Command run previously – pecl install mongo pecl/mongo is already installed and is the same as the released version 1.5.1 install failed Now when I am Checking by – echo exten…

Using rsync command with email address

I am trying to use rsync on my mac. When I normally type out a command I am only using user for a username. However, this time my USERNAME is mail@user.com. How do I use an email address as a username in an rsync command? The command I am trying to do is The other option I could work with