Skip to content

How to use FANN in C++

Here I have read good references about FANN for Artificial Neural Networks in C/C++. Actually I am using C++ (on Ubuntu with g++ v4.6.1). The library written in C, has a wrapper for C++. But I don’t get it to work. Even the example included xor_sample.cpp works. I have a Makefile with a line like this: …

How to force a priority on QProcess

I do not see any API to set the priority of a QProcess in Qt Documentation. I assume the process is started with normal priority. Is there a way to start the process with lower priority on Linux? Answer I dont think there exists an API to set the priority of the process using a Qt call. I used direct

how to replace a block of text after a match in sed

In sed, I’d like to replace a multi-line block of text after a match, for example, after matching “foo”, supposing its line number is 0. I want to replace the text block from line -3 to line +5, i.e. the text bock between the third line proceeding the matching line and the fifth line after t…

wget -O for non-existing save path?

I can’t wget while there is no path already to save. I mean, wget doens’t work for the non-existing save paths. For e.g: If /path/to/image/ is not previously existed, it always returns: How can i make it work to automatically create the path and save? Answer Try curl