I need a function to determine if a directory is a mount point for a drive.
I found this code already which works well for linux:
def getmount(path):
path = os.path.abspath(path)
while path != os.path.sep:
if os.path.ismount(path):
return path
path = os.path.abspath(os.path.join(path, os.pardir))
return path
But I'...
I have a linux (Fedora) program that detects the insertion of a USB stick and does an automatic backup via a call to
system("rsync...
Once the system call returns I prompt the user to remove the USB stick. The problem is that the system call returns before rsync has finished copying all of the files to the USB stick. Once the files a...
I have a project where the directory structure is like this:
$projectroot
|
+---------------+----------------+
| | |
part1/ part2/ part3/
| | |
+...
I'm looking for a library that can send messages from a process. It needs to be asynchronous, reliable and ordered. I don't care if it drops messages when the queue is full, but it has be able to report that. It cannot be blocking.
It should be possible to plug it into a standard app which already uses pthreads. (adding thread-safe to r...
I need to send an HTTP request to a server using HTTPS on Linux using plain sockets. Is there a way to do this?
Code is appreciated.
Thanks
...
I write company internal software in PHP and C++.
What are the best methods of deploying this type of software to linux machine? Currently, we use svn export, are there any other methods?
...
I'm looking for automated GUI testing apps. So far, I've found Froglogic's Squish, Dogtail, and the Linux Desktop Testing Project.
Are there any good free tools for testing linux apps out there? I don't have the option of rewriting the applications that I'm testing.
...
Hello,
I'm starting in C++ development, but i like to use Gedit for writing the files, but like for Ruby on Rails and many other languages, are some tools and configurations for Gedit that makes develop more easy and comfortable, and another question, what is the best for C++, SVN, CVS, Git and others...? Thanks, and sorry about my engl...
Hello,
I'm using Linux Ubuntu Intrepid Ibex and using as compiler the gcc, but when i try to compile me C++ project file the compiler give me this error:
ubuntu@ubuntu-laptop:~/C++$ gcc ClientFile.cpp
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
What is wrong? Please Help Me!!
...
Hello,
I'm using Linux Ubuntu Intrepid Ibex and compiling C++ files with GCC, but when i compile, gcc makes a *.out file, that is the executable, but how i can make Linux executables? Thanks!
...
I am writing a program that uses shared memory and semaphores for ipc. There is one main server process that creates the shared memory and semaphores. Any number of client processes can attach to the shared memory and read and write to it when allowed. The semaphores provide the blocking mechanism to control reads and writes. Everything ...
Which is the best Visual SVN Diff displayer for Linux.
BeyondCompare and VisualSVN1.5 work well on Windows. What are the equivallent tools for Linux. Specifically Ubuntu.
I know command line diff works; But I'd like multiple column syntax highlighted and differences.
Better if the tool has a support for Git and Hg as well.
...
Hello,
I am attempting to programmatically track the processes a linux user is currently running. Is it possible to be notified when a user has fork-ed or exec-ed a new process, or is the only solution to perpetually poll the process list for new processes.
Thanks,
Ken
...
I have installed jed and jed-extras on ubuntu. I would like to have a class-browser / outline mode. So I can see the structure of the code document currently edited and easily jump to a function or class in it.
The question is: What are the steps to actually activate / use the outline mode? There is supposed to be one but I can't find ...
I was thinking of using inotifywait to watch the original folder where the original folders are in, then when ever it detects that a folder has been deleted, then delete the same symbolic link in the other folder.
So my question is, is that the best way? Or are there better ways to delete a symbolic link when the original folder gets de...
Hi
I have a Linux driver that I would like to use it Mac OS X.
I know that the Mac OS X is based on BSD.
Should I try to port my driver to Mac OS X or should I rewrite it in Mac OS X using I/O Kit in C++?
The linux driver is for some PCI device.
...
Hello,
I'm having some problems with SVN, because i don't know how to use it for my project, the only thing that i know in SVN is how to download, but i want to know how i can upload my C++ project via SVN and what server that i can upload. Remember that i'm using Linux Ubuntu Intrepid Ibex. Thanks!
...
So here's the world's simplest glib program:
#include <glib.h>
I try to compile it with gcc test.c and I get:
test.c:1:18: error: glib.h: No such file or directory
So I make sure that I have the right packages:
# dpkg -l | grep libglib
ii libglib-perl 1:1.183-1 Perl inter...
I have to do lots of small random accesses to a whole bunch of files. I have more than enough main memory to hold all of the data.
When I copy the data over to a temporary ramfs filesystem and process it there, this takes only a small fraction of the time that waiting for disk access would take.
Is there a Linux file system which hol...
Hi,
Approach (A)
From my experience I saw that for a small team there's a dedicated server with all development tools (e.g. compiler, debugger, editor etc.) installed on it. Testing is done on dedicated per developer machine.
Approach (B)
On my new place there's team utilizing a different approach. Each developer has a dedicated PC w...