linux

Subversion Repository on Linux Dev

What's the best practice for setting up a subversion repository on a linux development machine. External users need to be able to access a specific repository, but nothing else on the machine. I know one answer is to set up a dedicated repository, but I'm looking for a single machine solution: location of repositories, accounts, backup...

Custom protocol in linux?

I am attempting to port one of my hobby project to linux. Preferrably to Mono since it is written in C#. But I am looking into Python as well. One of the feature of the application is that it needs to associate with a custom protocol so the application is invoked when the user clicks links like this on the app's website: myapp://module...

write-protected virtual pages, catch write

Does there exist a way to catch a write into write-protected page? I plan doing a self -like object system where you copy the object to instantiate it. (because it sounds simple and compact thing compared to the rest) Obviously, the objects created for this purpose ought be write-protected some way. I've seen there's a way to flag somet...

Windows Beep() equivalent for Linux

I am experimenting with Beep function on Windows: #include <windows.h> ... Beep(frequency, duration); The computer then beeps with some frequency for some duration. How would I do this on a Linux computer? Edit: It IS important to output different frequencies. ...

Choosing between multiple executables with same name (linux)

The system I am using has gnuplot installed in /usr/bin. I don't have root, but I needed a newer version of gnuplot, so I installed it to $HOME/usr/bin. How to do tell linux to use the one in my home directory and not the one in /usr/bin. I added $HOME/usr/bin to my path, but it still executes the one in /usr/bin if I just use the gnuplo...

Is there a way for non-root processes to bind to "privileged" ports (<1024) on Linux?

It's very annoying to have this limitation on my development box, when there won't ever be any users other than me. I'm aware of the standard workarounds, but none of them do exactly what I want: authbind (The version in Debian testing, 1.0, only supports IPv4) Using the iptables REDIRECT target to redirect a low port to a high port (...

Integrating Oulook/Exchange Tasks with Linux-based Rails

Is it possible to integrate MS Outlook/Exchange tasks with Rails? I know how to send emails with Rails, but that isn't using anything "special" about exchange, just pointing it at the server. What is "special" about an Outlook Task and how I can I create/read/update/delete them from Rails. (Even a subset of CRUD would be great.) PS. I ...

How to write Linux driver module call/use another driver module?

I'm developing a Linux driver loadable module and I have to use another device in my driver.(kind of driver stacked on another driver) How do I call/use another driver in my driver? I think they are both in the kernel so there might be a way that can use another driver directly. ...

How do I push a file from a Linux box to a Windows Box?

How do I push a file from a Linux box to a Windows Box? Which versions of Windows have a built-in SSH server that a Linux box can "scp" (secure copy/ssh) to. I'm looking at freesshd right now. Any more ideas? ...

Problem with QVariant/QTreeWidgetItem/iterator on qt4.4.3

Hello, here's my problem: In my qt app I have this object, filled before setting up my QTreeWidget's content: QList<QTreeWidgetItem*> items; I fill the QList by this way: QVariant qv; // I need this for "attaching" to the item my linuxPackage object qv.setValue(linuxPackage); packRow->setData(1, Qt::UserRole,qv); // packRow is m...

How do I get a Remote Desktop for Linux (XDMCP, VNC)

I do this all the time using VNC and it is very easy, but I am curious about a few things like XDMCP. As I understand it, this is a way of creating the entire desktop on a remote X-Server which seems fairly elegant. Several years ago, I worked on a Solaris server and multiple developers had X-Servers running in Windows and we were able ...

What do you use to develop applications on linux?

Hello, I'm an experienced .NET developer (c#/vb.net) (since beta) and I wanted to start checking out how to develop applications for Linux. I have done some Java programming as well. I have Ubuntu 8.10 Linux and was wondering what everyone was using as a tool for developing applications (for any Linux flavor) - is Java the best way to...

Installing and Linking PhysX Libraries in Debian Linux

Hello! I am trying to get PhysX working using Ubuntu. First, I downloaded the SDK here: http://developer.download.nvidia.com/PhysX/2.8.1/PhysX_2.8.1_SDK_CoreLinux_deb.tar.gz Next, I extracted the files and installed each package with: dpkg -i filename.deb This gives me the following files located in /usr/lib/PhysX/v2.8.1: li...

What's the best way to move a directory into place in a Makefile install?

I'm currently using the usual technique in my Makefile to install individual files: install: install -D executable ${BIN_DIR} But I just ran across a situation where I need to move a whole directory and all files underneath it into place. Is cp -r the best way or is there a more linux-y/unix-y way to do this? ...

How good is the linux kernel in the new Quad Core processors running multithreading application

Hello, Is there anyone here with experience in the linux thread scheduler running multithreading applications in the new Quad core processors?. If there is someone like that can you please write here your experience about how is the performance of the kernel managing the different threads, Have you experienced any thread starving or the...

How to redirect output to a file and stdout

In bash, calling foo would display any output from that command on the stdout. Calling foo > output would redirect any output from that command to the file specified (in this case 'output'). Is there a way to redirect output to a file and have it display on stdout? ...

Differentiating IOWAIT in Linux

I'm working on a monitoring agent that works with systems using the Linux kernel. By opening /proc/stat , you can easily tell how much time one one or all CPUs (aggregate) is burning waiting for I/O requests to complete. I'm trying to find a way to break that number down so that I can differentiate between disk and network i/o. For inst...

How a Windows Developer can most easily get his software to work well under Wine

Many of my users have been telling me that they'd like to run my software on their Linux machines under Wine. But I'm a Windows Developer who has practically no experience with Linux. Now I could spend a month or two installing Linux, learning Linux, installing Wine, learning Wine, and thoroughly ensure my application runs well under W...

Difference between checkout and export in SVN

What is the exact difference between SVN checkout and SVN export? From what I know, export does not include the .svn directory which include metadata, and checkout included that .svn directory. Yet, my colleague had this problem recently that there is a different behaviour for the stuff compiled from sources that is checkout and export...

Invoking a Linux process from Windows and receiving stdout.

I have a legacy application in our company built on... ahem; Classic VB (VB 6). It has got a optimizer(CPLEX MIP Solver) component running on a Linux server and is developed in Java. If we want to provide a Windows UI to invoke the optimizer instance on a remote linux server; how should I implement it? The optimizer will pump out messa...