Is there a way for a shared library to be "notified" when it is loaded?
In other words, let's say I use dlopen on a shared library, is there a function that is automatically called (if present) on the shared library (e.g. main?)
...
I recently learned that sometimes people will lock specific processes or threads to specific processors or cores, and it's thought that this manual tuning will best distribute the load. This is a bit counter-intuitive to me -- I would think the OS scheduler would be able to make a better decision than a human about how to spread the load...
I am working on a proposal where we intent to use Flash remoting in Flex and conntext it Java Web application using AMF. We are looking at using BlazeDS or LCDS. The final applicaiton is to be deployed on Z-Linux Server.
I came across a thread on Adobe Forums that says this will not work. Link to the Adobe Forum: http://forums.adobe.com...
I have written a python script that checks a certain e-mail address and passes new e-mails to an external program. How can I get this script to execute 24/7, such as turning it into daemon or service in linux. Anyone that answers this, would I also need a loop that never ends in the program, or can it be done by just having the code re...
What scheduling algorithms does Linux kernel use?
Where can I get more info about linux's kernel? (OS first course... student level)
...
Our lead programmer likes to install tools on a shared network drive to minimize effort when updating. He recently installed Eclipse to the network drive, but when I run it, I get a window that says Workspace in use or cannot be created, choose a different one. After clicking OK, I get a window that gives me a drop down menu with only ...
Is there any way under linux/terminal to count, how many times the char f occurs in a plain text file?
...
Hi Friends,
I am working on a system on which currently linux kernel and microwindows windowing system is running. Code of current linux system drivers is available to me. I want to port android on it, just as a hobby project.
can you please tell me what all understanding of linux-kernel is required to port it?
Please give me referen...
Lets say that I have a string "5a". This is the hex representation of the ASCII letter 'Z'. I need to know a linux shell command which will take a hex string and output the binary bytes the string represents.
So if I do
echo "5a" | command_im_looking_for > temp.txt
can I open temp.txt, I will see a solitary letter Z.
...
According to Wikipedia, the md5 sum of an empty string is d41d8cd98f00b204e9800998ecf8427e
I confirmed this with my md5 library
However, when I run
echo "" | md5sum
in my linux shell, I get 68b329da9893e34099c7d8ad5cb9c940 -
In fact, none of my hashes match the output of the md5sum command.
Any thoughts on this discrepancy?
...
I am a computer science engineering student and I've been programming on the .NET Framework for 2-3 years but I haven't used Linux. I thought, for my final year project, a Linux distro would be good.
I was thinking of a few ways to implement it, when this crazy idea occurred to me:
Can we implement the .NET Framework first on the Li...
FILE:
hello
world
I would like to use a scripting language (BASH) to execute a command that reads each WORD in the FILE above and then plugs it into a command.
It then loops to the next word in the list (each word on new line).
It stops when it reaches the end of the FILE.
Progression would be similar to this:
Read first WORD fr...
I'm using linux. Let's say I have a program named add. The program takes two numbers.
so if I type in
add 1 2
the answer is 3 //obvious
what command will make this write out to a file named add.data
I'm kind of a linux n00b. I was reading about piping. Thanks.
...
I want to grab the color of a pixel with known coordinates on my Linux desktop.
Until now, I've used "import -window SomeWindow -crop 1x1+X+Y /tmp/grab.jpg"
then extracting the pixel value using Python and PIL.
This does the job, but since import grabs the whole window before cropping, it's very slow :(
Are there any clever way to gra...
Hi,
I need to edit XML files on a small Linux box that we have created. We have only SSH access on theses boxes. Is there a dedicated XML editor, or a configuration for Vim/Emacs to edit XML easily, with integrated XSD validation?
I found some tutorials for Vi
http://oss.sgi.com/LDP/HOWTO/Vim-HOWTO/xml%5Feditor.html
http://vim.wikia.c...
Can you please give me Resources(Books, Tutorials, Other useful links ) to learn QT/Embedded 4.5, To get quick start in QT programming.
P.S. I am quite familiar with windoing system programming and C++.
...
Hi all,
I am trying to create a raw socket which send and receive message with ip/tcp header under linux.
I can successfully binds to a port and receive tcp message(ie:syn)
However, the message seems to be handled by the os, but not mine. I am just a reader of it(like wireshark).
My raw socket binds to port 8888, and then i try to telne...
How do I install a Django snippet, in particular snippet 818 - dumpscript, on Linux?
Update 2. The question was about Linux, but for reference I have listed the corresponding way to install dumpscript on Windows below, e.g. for use during development. (But it can also be done the other/standard way if there are no file access restrictio...
I have two MySQL databases and I would like to write a script to compare and update data changes between them.
Does anyone know a Linux command line tool for diffing or patching data in MySQL databases?
...
I've been using Python's built-in cProfile tool with some pretty good success. But I'd like to be able to access more information such as how long I'm waiting for I/O (and what kind of I/O I'm waiting on) or how many cache misses I have. Are there any Linux tools to help with this beyond your basic time command?
...