I am trying to optimize our gettimeofday() system call on Redhat Linux.
By their documentation it can be speed by running the call in the user land using virtual dynamic shared object (VDSO). I was curious how can I mesure the speed of the call in the first place? I would like to make the change and then compare it against my previous r...
I have a Perl script that calls another application I don't have control over. I use the system() to call this application. On occasion, this application generates an unhandled exception and puts up an exception dialog box that needs to be attended to. Since this is an unattended Perl script, I would like to detect this situation and han...
How can I know if a node that is being accessed using TCP socket is alive or if the connection was interrupted and other errors?
Thanks!
...
Hello. I need to put a video file on the file system of the Blackberry emulator to test the app I'm writing. I can't figure out how to do this. How can I copy a file from my computer's file system onto the simulator's file system?
...
In a REQ/REP socket, if the socket send a request to a dead (disconnected) node the message isn't delivered and stays in a message queue occupying memory. How can one clean these undelivered messages (let's say, messages that are in the queue for more than 1 minute)?
Thanks!
...
Hi there,
I have a software system that performs OCR on Multiple machine simultaneously. Current system works as follows:
All documents which needs to be ocred are inserted into a table in db.
Each client ocr machine pools that table and whenever data is found for ocr, it locks table and pick n no. of files for ocr. Locking is used for...
Hi,
If I want my Erlang process connect with a C shared lib I use Erlang linked in port driver.
As I want my C program stores some data structures to respond to erlang calls, I must use global variables.
Is there any problem?
Thanks!
...
it seen i can't write to settings in LG-P500 (Android 2.2).
This is my code:
android.provider.Settings.System.putInt(getContentResolver(), android.provider.Settings.System.AUTO_TIME, 1);
Value to specify if the user prefers the date, time and time zone to be automatically fetched from the network (NITZ). 1=yes, 0=no
It work fine in my...
I know I can use IRQ0, which is the system timer, but this is based on a 14.31818MHz clock, right? Is there anything offering greater precision?
Thanks.
Edit: Does anyone know what the Windows function QueryPerformanceCounter uses?
...
I'm developing an application (download manager-type) on OS X that I would like to integrate with the major Mac browers (Safari, Firefox, Chrome, Opera, Camino) via the Mozilla plug-in API, NPAPI. I have a basic understanding of how to register my app on the Mac to handle specific URL's and file types (via the Launch Services API, the in...
Hi,
I would like to ask how can I stop a process programatically using C++?
Thanks.
...
I tried to execute scripts from [1] in model database and user-defined databases but they give definitions/scripts of only user-defined (non-system) views, i.e. those that I anyway can easily get from GUI.
How can I see/script the definition/script of a system view in SQL Server 2008 R2?
[1]
Answers to question "System Views text i...
$ cat test.pl
my $pid = 5892;
my $not = system("top -H -p $pid -n 1 | grep myprocess | wc -l");
print "not = $not\n";
$ perl test.pl
11
not = 0
$
I want to capture the result i.e. 11 into a variable. How can I do that?
...
Is it as simple as deleting the file, or do I have to do anything to de-register it before I delete it.
Does the deployment process do anything more than copy it to the "Packages" folder.
...
I'm working on small ticket system. It's very simple and useable already, but I want it to be OOP in every possible way.
So currently I'm at the point when I've started wondering, what might the API of such system look like or what it could offer.
For example there is Twitter API, but twitter is a public service. The ticket system on th...
Possible Duplicate:
Are there are any platforms where pointers to different types have different sizes?
I have read in several places that pointers of different types may have different representations in standard-conforming C implementations. This is one thing that makes it necessary to cast pointer arguments to printf, e.g....
Hi,
How do I create a cluster of computers in Amazon EC2? What are the best practices for security? Can I access other machines in the local network?
Thanks!
...
We just got a midterm project today for my "operating systems" course, we are requested to implement a system call (and I guess I assume we'll have to write a piece of code to call it).
I understand I'll need to update the table of the system calls (can't remember the name, but no biggie), as well as create a kernel module that the tabl...
Note: Configuration are being kept in a PHP file, config.php.
I've seen this done differently, here's a short list of examples (I'm storing DB info in these examples):
Constants: global, readonly
define('DB_USER','user12');
define('DB_PASS','21user');
Using GLOBALS array: global, changeable, repetitive, mixed with other globals
$GL...
System.setProperty("java.library.path", "pathToLibs");
doesnt work because it seems either "java.library.path" is read only or JVM just ignores the property.
I know it can be done by setting PATH(in windows), LD_LIBRARY_PATH(in POSIX) or just use the command java -Djava.library.path=your_path.
But is there a programming way of doing...