linux

build program and install software under Network File System for different machines

Hi, Although having a little experience, I am still confused with the question of whether it is necessary to install an application and/or build a C++ program or C++ library under Network File System shared by machines, which have different Linux version (e.g. CentOS release 4.7, Ubuntu 8.10), possibly different bit (e.g. 32-bit, 64-bit)...

Is there and equivalent for Microsoft's UuidCompare, UuidCreate, etc in Linux or POSIX environment?

Is there an equivalent for Microsoft's UuidCompare, UuidCreate, etc in Linux or POSIX environment? ...

Why does X choke after I draw to the root window.

For background, I'm running Debian Lenny, and have tried this with both GNOME and Fluxbox. Anyway, I've been looking at how to draw on the desktop, and I found and tried this code here: http://blog.prashanthellina.com/2007/08/24/drawing-on-your-desktop/ It worked fine, except upon terminating it (by hitting control C), X loses it's abi...

High latency for linux network app

Hi there, I am playing around with linux network programming and I wrote a little client server app which bounces a small message between a client and a server process and measures the round trip time. Consistently I see around 80ms for localhost round trip (this is after connection setup). This seems extraordinarily high. The same mach...

setting option in config file using SafeConfigParser

I'm trying to set an option (xdebug.profiler_enable) in my php.ini file using python's ConfigParser object. here is the code: section in php.ini file im trying to modify [xdebug] ;XDEBUG SETTINGS ;turn on the profiler? xdebug.profiler_enable=0 xdebug.profiler_append=1 xdebug.profiler_enable_trigger=0 xdebug.trace_output_name="%R" xd...

Eclipse for netbooks - what an I do to enhance performance on linux?

My main development environment on my Windows machine uses Eclipse and I'm quite happy with it. I sync all my projects into SVN and want to be able to work on projects at coffee shops without lugging my real laptop around. Problem is that my netbook is pretty low scale - it's one of the first EEE pcs and right now it is supposedly "overc...

How to write a unix script that gets notified with IMAP IDLE from Gmail?

I'm looking for a way to get notified in my unix system for new email. I know gmail supports IMAP IDLE, what is the best way to make use of that feature? Any programming language is fine, as long as it is supported in linux/unix. ...

Software to store hierarchal data

I'm looking for [free] server software to store hierarchal data efficiently. My key challenge is that an object or group of objects almost always has 2 "parents" and one or both parents can have different connections with other parents, and those descendants must remain distinct from the common parent's other descendants. Example: A an...

how to use my own dynamic library in linux (Makefile)

Hi, all, I have a c++ project (g++/raw Makefile) designed for linux, I used to statically link everything which worked fine for ages. Now I want to build binaries both statically and dynamically linked. The following command is used in my Makefile to build the dynamic library (say libtest): $(CXX) -shared -Wl,-soname,libtest.so.1 -o l...

How to embed a wave file in html (cross platform)

I want to embed a wave file (or mp3) in html. There is no problem for windows platforms. User can install a windows media player plugin. But WMP does not support linux. Is there any way to do that besides using Flash? ...

Are there any invalid linux filenames?

If I wanted to create a string which is guaranteed not to represent a filename, I could put one of the following characters in it on Windows: \ / : * ? | < > e.g. this-is-a-filename.png ?this-is-not.png Is there any way to identify a string as 'not possibly a file' on Linux? ...

Store GNU make generated files elsewhere

How can I store GNU make & configure files elsewhere? I have a project I am working on that I get compiled using: ./configure --prefix=/usr && make && su -c 'make install' The thing is I don't want to pollute the current folder, which is a svn/git/hg/whatever sandbox with files generated by that command. I want to put those files in a...

view as html feature

can anyone help me how to read .doc and .xsl file on linux server through php like the view as html feature on gmail... ...

Using rsync to rename files during copying with --files-from ?

Using rsync, how can I rename files when copying with the --files-from argument? I have about 190,000 files, each of which need to be renamed when copying from source to destination. I plan to have the list of files in a text file to pass to the --files-from argument. ...

linux worker script/queue (php)

Hi, I need a binary/script (php) that does the following. Start n process of X in the background and maintain the number processes. An example: - n = 50 - initially 50 processes are started - a process exits - 49 are still running - so 1 should be started again. Please, this is urgent. Thanks! Michael P.S.: I posted the same questi...

Maintaining software as a user (on a cluster)

Every cluster of computers I've encountered suffers from the same problem: its software is outdated. Naturally, one has the ability as a user to install everything from source in the home directory. I was wondering if there are any tools that would allow one to install and update software within home directory the same way package manage...

Can I set the process group of an existing process?

I have a bunch of mini-server processes running. They're in the same process group as a FastCGI server I need to stop. The FastCGI server will kill everything in its process group, but I need those mini-servers to keep running. Can I change the process group of a running, non-child process (they're children of PID 1)? setpgid() fails...

easy way to create a file nested in unavailable directories

I know I can do mdkir -p a/b/c/d However time and again I need to put a file in a new directory. So this is what I do mkdir -p a/b/c touch a/b/c/foo.txt I was wondering if there is an easy way to combine those two operations. ...

Samba, CIFS and Deleting Files

So I've got a Samba share located on server A. I have that share mounted to two other servers, B and C. The idea is that B and C need to write temporary files to a single location so that multiple background processing jobs (also running on B and C) have access to the same pool of files. When the background processes are complete they ...

How to get pppd inet address from shell command

Hi guys, I'm not sure whether to post it here or at ServerFault. Anyway, I'm trying to work around company's firewall to connect to some media sharing site using my phone's 3g network. I've come up with a simple ip route command which take pppd's inet address as it's parameter. But, I want to make it a little bit more automated by readi...