linux

Fastest way to determine a stale Samba mount on Linux

What is the best(fastest) way to determine if a Samba mount point is dead on Linux? I need to do it in C. System calls like statfs(), statvfs() block for 30-40 sec when called on a stale mount, and they don't even return an error in this case. stat() seems to fail faster then others (about 10 sec) and returns an error. Mount point may g...

pydev issue with gobject

It seems that Pydev (1.5.4) on Eclipse (3.5.1) with Python 2.6 isn't able to correctly cross-reference the package gobject. Putting import gobject works OK but any more than that (e.g. class X(gobject.GObject) causes Pydev to report "unresolved reference" errors. What could be the problem? Note that every other package I use doesn't t...

Xscale compilers for Linux? (also Xscale compile flags question)

I am currently using a GCC 3.3.3 based cross compiler to compile for a Xscale PXA270 development board. However, I was wondering if there are other Xscale compilers out there that run on Linux (or Windows for that matter)? The cross compiler setup I am using has horrendous performance on the target device, with certain programs that do...

Best Planar graph program

In graph theory, a planar graph is a graph that can be embedded in the plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. What is the best open source program for drawing the planar graph with support of input nodes size and fixed drawing boundary region ...

Linux on ICOP Technology Ebox

Has anyone tried running any linux distro from USB on the ICOP Technology Ebox : link ...

How to loop over directories in Linux?

I an writing a script in Linux and need to go over all subdirectories names in a given directory. How can i loop these directories (and skip regular files). For example, the given directory is /tmp/ and has the following subdirectories: /tmp/A, /tmp/B, /tmp/C I want to retrieve A,B,C. ...

python virtual environment on source control

I have created a python web virtual environment contains all django, pylons related packages. I use the host ubuntu desktop PC at home and I have ubuntu virtual machine running on windows PC laptop. Both the operating systems are linux only. I will be using the same environment for production that will be ubuntu server. Is it possible ...

question on linux command

What do the two ampersands in the following command do: (make foo&)& ...

Capturing system information in AIR apps

Hi, could you tell me plz - is it possible (and how if yes) to capture following information in AIR application: Operation System Laptop model and vendor (if laptop) Installed applications with versions thanks a lot!! ...

How to find duplicate files with same name but in different case that exist in same directory in Linux?

How can I return a list of files that are named duplicates i.e. have same name but in different case that exist in the same directory? I don't care about the contents of the files. I just need to know the location and name of any files that have a duplicate of the same name. Example duplicates: /www/images/taxi.jpg /www/images/Taxi.jp...

Searching within a whole directory and sub directories for a certain phrase

I'm having difficaultiesSearching within a whole directory and sub directories for a certain phrase using grep or a better command in linux to find a sentense' I use the following command grep -rni this is a test * but it seems not to search correctly. Am I doing something wrong? ...

Convert HTML to RTF (HTML2RTF converter)

I'm looking for a simple HTML2RTF converter that I can use on my website which is using a *nix like Operating System. I haven't found anything on the internet, and was hoping the SO community would help me. PS: I don't want to implement this from scratch, and it doesn't really matter what language it's in, as long as I can run it on a *...

Sync Eclipse project between Linux and a windows computers

Hey guys, My situation is like this: I got a windows computer and a Linux computer , and an Eclipse project I'd like to sync between them. What is the best way to do this ? Thanks in advance ...

Linux "install" command for wildcard installation

Is there a way to use "install" for installing multiple files at once using a "wildcard" pattern (and still have "install" create the leading directory hierarchy)? I've tried several different ways: install -D -t /dest/path /source/path/*.py install -D -t /dest/path/ /source/path/*.py install -D /source/path/*.py /dest/path install -...

How to get the name of the current git branch into a variable in a shell script?

I am new to shell scripting and can't figure this out. If you are unfamiliar, the command git branch returns something like * develop master , where the asterisk marks the currently checked out branch. When I run the following in the terminal: git branch | grep "*" I get: * develop as expected. However, when I run test=$(gi...

correct linux kernel configuration for hotplug.

i am using busybox and linux 2.6.32.4. my configuration is based on fedora 12. and started mdev according to mdev document. but i cant see my modules like network adapters and plugged usb devices. is there thing must be done? mdev commands (after mounts): echo /sbin/mdev > /proc/sys/kernel/hotplug /sbin/mdev -s ...

gdb - "thread apply all bt full" gives blank

I was trying to debug a multi-threaded process on a Linux server running Slackware 12 using gdb 6.6 Once I attach and issue the command "thread apply all bt full" it comes back with nothing ( back on to the gdb prompt ). Any idea why this happens? ...

Cross platform multimedia kiosk

My team is tasked with building a full screen, kiosk-style application for playing back media files. Initially we need to support WMV / MP4 as well as some images in full 1080p, although down the line we will need to extend this to cover other formats (different videos formats as well as display of HTML, SWF, etc). The application also ...

Nlist equivalent for Linux?

Hi, I am just wondering if there is an Linux equivalent to Novels nlist(). nlist() does the following: Privileged processes calling nlist() should beware of the possibility of an unexpected file being substituted as the operand. The nlist() function returns symbol table information for the specified symbol names, for the executable f...

Concatenating strings in C++

Hi, I am rather inexperienced C++ programmer, so this question is probably rather basic. I am trying to get the file name for my copula: string MonteCarloBasketDistribution::fileName(char c) { char result[100]; sprintf(result, "%c_%s(%s, %s).csv", copula.toString().c_str(), left.toString().c_str(), right.toString().c_str()); ...