Oracle's instructions specify setting LD_LIBRARY_PATH. This makes my application dependent on random users' configuration and is very troublesome to set up.
How can I avoid having to set any environment variables?
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html
related note for OS/X: http:...
I know the very basics about using coroutines as a base and implementing a toy scheduler. But I assume it's oversimplified view about asynchronous schedulers in whole. There are whole set of holes missing in my thoughts.
How to keep the cpu from running a scheduler that's running idle/waiting? Some fibers just sleep, others wait for inp...
Dear All,
I need to get CPU utilization metrics for all the threads in a process.
Operating system = Redhat linux
programming language = C++ using POSIX
requirements = need to take samples every few seconds indefinetly, not just for one snapshot in time.
constraints = not allowed to write additional code in thread
I know you can u...
So I have have a directory - lets say /dir/.
In it I have these folders-
/dir/fold1/
/dir/fold2/
/dir/fold3/
each of these folders (fold1,2,3) may contain a folder called foo. I want to list all the folders inside dir, that have inside them a folder called foo.
Thanks!
...
I am trying to understand how the linux syscall sched_setaffinity() works. This is a follow-on from my question here.
I have this guide, which explains how to use the syscall and has a pretty neat (working!) example.
So I downloaded the Linux 2.6.27.19 kernel sources.
I did a 'grep' for lines containing that syscall, and I got 91 res...
What's a simple way to get a Perl script to run as a daemon in linux?
Currently, this is on CentOS. I'd want it to start up with the system and shutdown with the system, so some /etc/rc.d/init.d integration would also be nice, but I could always add a custom line to /etc/rc.d/rc.local.
...
How do you add a 'keyword' to the GEdit list of keywords? I basiclly want to make the printf function look like a keyword.
printf("Hello World\n");
...
I am porting a communications library from Linux to Windows. I know what my approach is for the most part. The library uses all raw ethernet level frames for all the communications.
The library I am porting from makes use of the PF_PACKET family and the struct sockaddr_ll. After browsing through the MSDN winsock site, I haven't fou...
Hi,
I need a set of wrappers around the standard system calls-open,listen,etc.
For these i have a few "#define" as in:
#define open(a,b,c) JCL_Open(a,b,c)
But when i compile the header and associated .c files, i am getting the following warning:
/jcl_wrappers.h:114:1: warning: "open" redefined
/jcl_wrappers.h:113:1: warning: this is ...
I have a VirtualBox process hanging around which I tried to kill (-KILL/-ABORT) but without success. The parent pid is 1 (init).
top shows the process as D which is documented as "uninterruptible sleep".
strace shows up nothing.
How can I get rid of this? It prevents me from unloading the vbox kernel driver to load a newer one.
...
I really want to learn C (I'm planning on joining an open source GNOME project). What would be a good tutorial?
...
I have see SolR working on my PC and I could Index and search better. But I have 360 MB linux virtual machine, I want to run a web site on pylons.. what is the best search engine you can recommend.
So far, my linux box is clean from java installation. Is using Solr is overkill for 360 MB linux machine? I could see, I have 160 MB free w...
I've done this function in C using system calls (open, read and write) to simulate the "cat" function in Linux systems and it's slower than the real one...
I'm using the same buffer size as the real "cat" and using "strace" I think it's making the same amount of system calls. But the output from my "cat" is a little bit slower than the ...
Using Zenity is possible to add buttons,change fonts ,anything besides default options?
If not,there's another dialog for sh that allows more customizing?
...
I have a need to generate my air app online on my linux webserver. I create a signature and package the app up with adt and then download it to my desktop mac and try and install it, it says the package is corrupt and to get another copy. But when I compile it on the mac (using the exact same commands to adt) it installs and runs fine.
...
I want to make my GTK+ applications use the new notification area in Ubuntu. How can I do this? An example is shown below:
...
I have recently started moving into the world of Linux development. I wanted to learn some new things and thought bash might be fun. As I learn more about bash programming I have found that there are quite an assortment of useful tools to be used (such as grep, tr, awk, etc.) There are so many that I just do not know which ones are "vita...
I want to do an app constantly watching the serial port and changing the user interface according to the input received from the port. I've managed to read lines from the port with pyserial under Linux, but I'm not sure how to do this in a regular fashion: create a separate thread and check for input on a timer event? How do i make sure ...
What is the best audio playback api for C/C++ for Linux, preferrably free/open source? I need it for embedded Linux, so I'm looking for something as lightweight as possible with not to many dependencies? Thanks a lot!
...
I upgrade perl from perl58 to perl588 on Suse Linux.It looks that even though the Config.pm exists for the older version the newer version installation breaks the older version.While the upgrade of Perl on other OSes like HP and AIX does not disturb the older version.
For eg: The perl58 and perl588 versions are present in folder say "/us...