So far for C++ Linux development, I've used Eclipse CDT and Code::Blocks. Compared to Visual Studio on Windows, their code completion features aren't too great. Could someone please suggest an IDE that has better C++ code completion than what I have tried so far?
A thread on the Ubuntu Forums suggests that Code::Blocks is actually super...
Hi,
I'm trying to use the nftw to process some files under a directory
#include <ftw.h>
#include <stdio.h>
int wrapper(const char * fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) {
printf("File %d\n", ftwbuf->base);
return(0);
}
int main(int argc, char ** argv) {
const char *name;
int flags = 0;
n...
I'm trying to use a somewhat old DAQ, and had to jump through a few hoops to get an old (circa 2004) device driver for it to compile (DTI-DT340 Linux-DAQ-PCI).
I've gotten to the point where it compiles, I can load the the kernel module, it finds the card, and I can create the character devices using mknod.
But I can't seem to open the...
I've been a Visual C++ user for quite some time now, and in the following weeks, I will be joining a (C++) Linux-only project. It should be noted that I have absolutely zero development experience on Linux.
Currently, Visual C++ 9 along with the Visual Assist X add-in make Windows-based development rather enjoyable. Having looked at var...
I would like to programatically disable hardware prefetching.
From Optimizing Application Performance on Intel® Core™ Microarchitecture Using Hardware-Implemented Prefetchers and
How to Choose between Hardware and Software Prefetch on 32-Bit Intel® Architecture,
I need to update the MSR to disable hardware prefetching.
Here is a rele...
I'm looking for a library or toolkit (so I don't have to write it) that will allow me to do common things like the following in Linux:
Get the uid for a username.
Get user / group membership information.
Get information about free space on disk drives.
Any other potentially useful API calls that are not normally available in Java becau...
Is it possible to use cut and have unprintable characters be the delimiter? For example I'd like to have the "^A" characters (also represented as \001) be the delimiter.
...
So I want to download multiple files from rapidshare. This what I currently have. I created a cookie by running-
wget \
--save-cookies ~/.cookies/rapidshare \
--post-data "login=USERNAME&password=PASSWORD" \
--no-check-certificate \
-O - \
https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi \
> /dev/null
and now...
Hi,
I developed a software (in C++) which needs to be continuously running. That basically means that it has to be restarted each time it stops.
I was thinking about using cron jobs to check every minutes if it is still alive, but there might be a cleaner way or standard way of doing this.
Thanks in advance
...
Is there any way that java can detect that I have just plugged in a wired-network, and monitor it's bandwith? (I'm using linux, if that matters)
...
Is there a way to generically retrieve process stats using Perl or Python? We could keep it Linux specific.
There are a few problems: I won't know the PID ahead of time, but I can run the process in question from the script itself. For example, I'd have no problem doing:
./myscript.pl some/process/I/want/to/get/stats/for
Basically, I'...
I am working for a company that provides customer support to its clients. I am trying to design a system that would send emails automatically to clients when some event occurs. The system would consist of a backend part and a web interface part. The backend will handle the communication with a web interface (which will be only for intern...
Using a Linux shell, how do I start a program with a different working directory from the current working directory?
For example, I have a binary file helloworld that creates the file hello-world.txt in the current directory. This file is inside of directory /a. Currently I am in directory /b. I want to start my program running ../a/hel...
I am more common with the QNX os and I could change the arguments for the ide driver on startup. I wanted to change the arguments that get started in a linux kernel for the jfs filesystem which mounts a flash card. I can't seem to find a good web source for this information but I am sure I am not "googling" it right.
What are the diff...
I'm working on one piece of a very high performance piece of hardware that works under Linux. We'd like to cache some data but we're worried about memory consumption - so the idea is to create a user process to manage the cache. That way, the cache can be in virtual memory, not in kernel space, et cetera.
The question is: what's the bes...
I got an assessment to write a simple chat client for Linux using ncurses. The chat has two windows: one displays what the other client says, the other handles user input.
What confuses me here is how to handle data that constantly comes from the socket and waits for the user's input at the same time. The only one solution that comes in...
Dear all,
I have several directories that look like this:
dir1/
|_foo.txt
|_bar.txt
dir2/
|_qux.txt
|_bar.txt
For each of this directory I want to compress the files inside it into *.gz format
then delete the uncompressed ones. So finally we hope to get something like this:
dir1/
|_foo.gz
|_bar.gz
dir2/
|_qux.gz
...
I'd like to find/write a program that can intercept all characters entered at a keyboard and map Dvorak to QWERTY if a control character is depressed. I would normally type in Dvorak, but as soon as I typed in a control character such as CTRL or ALT my input would switch to Dvorak. For example CTRL-D would become CTRL-E.
The operating s...
Hi guys wonder if you guys could help me I'm trying to compile a bash script that will display some values from a section of html code and I am stuck on the regular expression part,
I have the following piece of code
<li><div friendid="107647498" class="friendHelperBox"><div><a href="http://www.myspace.com/rockyrobsyn" class="msProf...
plz explain the follwing result of the stack smash after running a programming in which input i gave is much more than the capacity of the charachter array.
*** stack smashing detected ***: ./a.out terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7f856d8]
/lib/tls/i686/cmov/li...