I am trying to compile OpenCV with icc on Linux, in order to profile the execution with intel tools.
I installed the last version of icc with default options. I tried both "user" (icc is installed in my home) and "sudo" (icc is intalled in /opt) installs. The version of icc is 11.1 20090630
I also thought to source iccvars.sh, adding n...
Is it possible to compile a project in 32-bit with cmake and gcc on a 64-bit system? It probably is, but how do I do it?
When I tried it the "ignorant" way, without setting any parameters/flags/etc, just setting LD_LIBRARY_PATH to find the linked libraries in ~/tools/lib it seems to ignore it and only look in subdirectories named lib64....
I'm looking at git history and see various edge colors between commits: red, grey, blue, green, brown, etc. What do these colors mean? They seem quite random to me ...
...
Is it good idea to run linux process in multi user environment.
Ex: Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("linux command");
int exitVal = proc.waitFor(); // may wait till 5 to 10 mins
...
I'm trying to write a shell script that does a search and replace inside a configuration file upon start-up.
The string we're trying to replace is:
include /etc/nginx/https.include;
and we want to replace it with a commented version:
#include /etc/nginx/https.include;
The file that contains the string that we want to replace...
Consider two directories:
/home/user/music/flac
/media/MUSIC/flac
I would like the second directory (destination; a USB drive) to contain the same files and structure as the first directory (master). There are 3600+ files (59G in total). Every file is scanned using unison, which is painfully slow. I would rather it compare based on f...
This seems like something no one should ever have to do, but I'm working on a kernel module for an embedded system (OpenWRT) in which it seems that time.h does include the timespec and time_t types, and the clock_gettime and gmtime functions, but does not include localtime, ctime, time, or, critically, the tm type.
When I attempt to cas...
Hi,
We are starting now a new software project. We are 5 developers, located in US and Asia.
We have a server hosted in the US and we plan to use it. We can set a SVN repository on it. It's a Linux server.
Below please find our requirements:
1. Windows good client. We develop on Windows (VisualStudio).
2. Private working-space on Windo...
Why does this line of Perl break?
system("paste <\( cut -f2 $file \) $file2 > $fileout");
What's the correct way to do it?
...
So the question I have today has to do with interfacing with a USB mouse plugged into a linux machine. However, I don't want the mouse to have any traditional effect on the X environment -- I just want to be able utilize the encoders embedded within it through raw input. So here's my question.
How can I obtain low level but meaningful...
I'm trying to make a C++ API (for Linux and Solaris) thread-safe, so that its functions can be called from different threads without breaking internal data structures. In my current approach I'm using pthread mutexes to protect all accesses to member variables. This means that a simple getter function now locks and unlocks a mutex, and I...
If the same code is built at different times w/gcc, the resulting binary will have different contents. OK, I'm not wild about that, but that's what it is.
However, I've recently run into a situation where the same code, built with the same version of gcc, is generating a binary with a different size than a prior build (by about 1900 by...
I'd like to be able to sort a file but only at a certain line and below. From the manual sort isn't able to parse content so I'll need a second utility to do this. read? or awk possibly? Here's the file I'd like to be able to sort:
tar --exclude-from=$EXCLUDE_FILE --exclude=$BACKDEST/$PC-* \
-cvpzf $BACKDEST/$BACKUPNAME.tar.gz \
/etc...
Or do I have to implement it at the application level?
...
I've written an application which as of yet is not open source and I'd like to distribute the executable across various linux distros. What's the best way to do this, I've looked a little bit at .rpm and .deb packaging but I can't find if that can be used for binaries or not. Ideally I'd like something like the PackageMaker on OS X or a ...
I'm trying to to program a serial communication using hardware handshake in linux using C/C++. The signals that implement the handshake are CTS (Clear to send) and RTS (Request to send). Currently my function for setting the CTS signal looks as follows:
int setCTS(int fd, int value) {
int status;
ioctl(fd, TIOCMGET, &status); //...
Does getpwnam respect /etc/nsswitch.conf?
The manpage for getpwnam states
The getpwnam() function returns a pointer to a structure containing the broken-out
fields of the record
in the password database (e.g., the local password file /etc/passwd, NIS, and
LDAP) that matches the
username name.
This leads me t...
Hi,
I am trying to run a process on a web page that will return its output in realtime. For example if I run 'ping' process it should update my page every time it returns a new line (right now, when I use exec(command, output) I am forced to use -c option and wait until process finishes to see the output on my web page). Is it possible ...
I have a simple Perl script which runs as a Linux daemon using an infinite loop. It connects to a database every 10 seconds to execute a process.
while (1)
{
# THIS LINE WILL KILL THE SCRIPT IF IT FAILS
my $DB=DBI->connect("dbi:Sybase:server=myserver","user","password");
. . . do something . . .
sleep (10);
}
I have tw...
I am a professional developer working mostly with Java but on my spare time i like to play around with different languages and libraries. The thing is that i want to start learning how to develop 3D enabled applications or games. There are alot of engines out there but im afraid that by using those directly i will fail to learn the basic...