What free tools could I use to test the performance of C++ code in Linux? Basically I want to identify the bottleneck of the code and improve on the performance. My application mainly involves computational code using the data from the network. So I would like to improve the speed of execution of the code.
Thanks.
...
I am looking for an C++ IDE for Linux (other than Vim or Emacs :) ) that would automatically import a makefile (even better - automakefile), be able to compile the sources and on top of it run boost unit tests.
I have tried QT Creator, but it doesn't seem to import makefiles, and KDevelop which imports makefiles fine, but I couldn't fig...
Can I use Watir to scrape data from a website (AJAX used) but on a linux server without monitor? (linode.com) ?
...
I have take a try dvorak keyboard layout, and i also taked a look of programmers dvorak and colemak layout. But what I'd like create a new layout, which is more better in code and *nix.
I've do some statistic from many codes include java,python,ruby,php,c,js, and get a result of which key use most, which symbol use most, which number us...
Hi
How do I read a FIFO/named pipe line by line from a C++/Qt Linux app?
Today I can open and read from a fifo from a Qt program,
but I can't get the program to read the data line by line.
Qt reads the entire file, meaning he waits until the "sender" closes his session.
Let's take a example with some shell commands to show what I w...
I want to choose between several OS's during startup. How can i manage this by using my bluetooth keyboard/Cellphone or at least my IR remote?
...
I am writting an application that has multiple threads in Linux environment using C or python. I am using pthread for that. But How number of threads should be accepted via command line.
...
Suppose I have have a program P which has a filename as argument. For example
P file
reads the file "file" and does something with it.
Now sometimes the content of "file" is very small, e.g. just one line. So instead of creating a file f with that line and calling
P f
I want to give the content of line directly as an argument t...
I am using Flex 3.5.0.12683 with hudson CI server and Ant to compile our project. While compiling resource bundles for this project I am having problems.
With root user everything is compiled successfully but when I am trying to compile my flex project with hudson (ant) it fails with:
compile_resource:
[mxmlc] Loading configuration fil...
Hi, i have had this problem for 3-4 months. OpenGL codes do not run that good as they should in windows. I have a project that i need to run it in linux, with times, pipes, ... that use the Windows API. I need to migrate the code but it doesn't look good. For example they are flashing on the screen! is it from my graphics card on linux? ...
I'm using wget to create static copies of my site however there are several elements which require external assets that are pulled in via javascript. The pattern of the script should be fairly constant and no urls are dynamically created. The urls I need to extract look like :
onclick="return ns.homepage.load({e:this, src:'https://mysub...
I notice that vim's substitute regex is a bit diffrent with other regexp, what's the diffrent with them.
...
I know it's possible to rotate video output in X server to display in portrait mode as well as landscape.
I'm curious if it's possible to rotate the video output that occurs pre-X server. The white text on black background output as the machine boots (rc.sysinit, bringing up eth connections, etc.).
...
I have my program generating some data. It output everything on standard error.
Now I'd like to redirect the output to a newly started text editor, into the main unnamed edit window that shows at startup. I tried with vim and gedit without success.
myprogram | gedit
myprogram | gvim
Anyone knows about an X11 text editor that would su...
I have created a linux service that runs as a deamon (and gets started from /etc/init.d/X). I need to set some environment variables that can be accessed by the application.
Here's the scenario. The application is a bunch of Perl AGI scripts that depend on (and therefore need to run as) asterisk user but asterisk doesn't have a shell. I...
I have a few directories that contain a lot of files. As some of them are approaching 600k files, they have become a major pain to handle. Just listing the files is slowly becoming a major bottleneck in the applications processing them.
The files are named like this:
id_date1_date2.gz
I've decided to split the files into several smaller...
For my OS class I'm supposed to implement Linux's cat using only system calls (no printf)
Reading this reference I found it being used to print to a file. I guess I should manipulate ofstream.
In the example appears: ofstream outfile ("new.txt",ofstream::binary);
How can I make it write to the screen?
EDIT: I realized this write() is...
Hi,
i have trying to use some global variable in my ant file.
when i do login through terminal. i can acess those variable like JAVA_HOME
but when i am trying to acess variable through the ant command i am not able to find them.
global variable declared in .cshrc
setenv JAVA_HOME jdk_full_path
ant code using variable.
<property...
I'm debugging a program that runs fine on one machine running (fill in the blank with some linux distro and version) but acts flaky on another machine running (different distro/version).
A helpful clue would be to see a side-by-side list of versions of all the major libraries provided by each distro - Qt, boost, libpng, fftw3, etc. in...
Hi folks,
I'm stuck for a full afternoon now trying to get python to build in 32bit mode. I run a 64bit Linux machine with openSUSE 11.3, I have the necessary -devel and -32bit packages installed to build applications in 32bit mode.
The problem with the python build seems to be not in the make run itself, but in the afterwards run of s...