Skip to content

Tag: linux

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

How to send a string to server using s_client

How to use s_client of openssl to send a short string to the server? I have read the s_client manual but didn’t find any usable flags. Or is there any other ways to achieve this? Answer Does anyone know how to use s_client of openssl to send a short string to the server? You can echo it in. Below, I

How to download Mysql jdbc jar file on centos

Sorry for my noobness. I’m very newbie in linux and using CentOS. I need to download Mysql jdbc and place it in somewhere. So I searched on Google and couldn’t get any proper result. All results say that download it from http://dev.mysql.com/downloads/connector/j/5.1.html site or download rpm and …