linux

How to go to main stack

I am using alternate stack to handle signals for program in C over linux. When stack overflow occurs, my signal are delivered on to my alternate signal stack not on the main stack. So in this situation I want to dump the main stack.... how can I ? ...

scrolling KTextEdit to start

I have a KTextEdit, filled with some text. When I put lots of text, the KTextEdit will be scrolled automatically to the end (obviously). My question is: how can I scroll to the start (viz to the first line of the KTextEdit) ?!? ...

Linux lib / include organization for cross-compiled libraries?

We are cross-compiling an application for an embedded Linux target under desktop Linux. For testing and other purposes we are using statically linked libraries with our application. The testing library we are using is CMockery. My question is: Where should the static libraries and include files for CMockery live, given that we are cros...

How to remove QWidgets from QSplitter

In my app have a window splitted by a QSplitter, and I need to remove an widget. How can I do that? I can't find useful methods ...

Is there an acceptable GUI client for git-svn?

My employer uses subversion for version-control, and this is unlikely to change. I'm interested in learning more about git, and using git-svn to interface with my employer's subversion repositories. My question is: if I were to begin using git-svn, would I need to do some or all of my version control work from the command-line? Or is the...

What is the safest way to empty a directory in *nix?

I'm scared that one day, I'm going to put a space or miss out something in the command I currently use: rm -rf ./* Is there a safer way of emptying the current directory's contents? ...

Linux how do I put double quotes around a file before piping it to tar?

I use ls to obtain my filename which has white space so it looks something like: my file with whitespace.tar.bz2 I want to pipe this to tar similar to: ls | grep mysearchstring | tar xvjf How can I insert double quotes before piping it to tar? ...

Linux using grep to print the file name and first n characters

How do I use grep to perform a search which, when a match is found, will print the file name as well as the first n characters in that file? Note that n is a parameter that can be specified and it is irrelevant whether the first n characters actually contains the matching string. ...

Using Windows DLL from Linux

We need to interface to 3rd party app, but company behind the app doesn't disclose message protocol and provides only Windows DLL to interface to. Our application is Linux-based so I cannot directly communicate with DLL. I couldn't find any existing solution so I'm considering writing socket-based bridge between Linux and Windows, howev...

Project Management tool on Linux

I recently switched my work laptop to Linux. The problem is that I have to be able to use Microsoft Project for maintaining project plans. Is there a project alternative on linux that is able to read and write MS project files? So far I tried openproj, gantproject and planner, but neither one of them can write mpp files. ...

Opinions sought: Is it better to do roll-your-own or ready-built forum software?

As part of a wide ranging job for a cystic fibrosis support organization, they'd also like a web site set up and I've decided on Apache running on Linux (due to its security and low cost mostly). Other than (fairly) static content, they also want a forum where people can discuss issues with the condition - it'll be attached to a hospital...

Porting Application from Solaris to Linux

Hi, I am to take up the task of porting a C++ networking application code base of quite a size from Solaris to Linux platform. The code also uses third party libraries like ACE. The application when written initially was not planned for a possible porting in future. I would like to get some advice and suggestions as to how I go about ...

Why is your particular choice of forum software the right one for you?

As part of another question that did involve programming (I assure you), someone suggested I ask a community wiki question as to why your forum software of choice was the 'best' one for you. I'm looking into providing forum software as part of an install of a web server and web application tailored for a medical support group and I wish...

Why is "echo foo | read a ; echo $a" not working as expected?

I could replicate the problem with various shells under FreeBSD, GNU/Linux, and Solaris. It had me head-scratching for more than an hour, so I decided to post the question here. ...

.net open source and running platform choices

Hi Guys, We have been asked to look into a fully open source solution for a big project, they want the project be as near to 100% Open Source as possible, mainly because as its a community project there may be very little money available in the future except for the running of a host. Using OS software saves on licence costs as the serv...

Error java.lang.NoClassDefFoundError on org.springframework.webflow.util.RandomGuid

Hi, I am sorry, my question is stupid, but I am not able to answer it, as a java illiterate. I run a tomcat (5) on CentOS5 (for a CAS server), and when I try to open this URL http://192.168.1.17:8080/cas-server-webapp-3.3.1/login I get this error : first error: java.lang.NoClassDefFoundError: Could not initialize class org.springfram...

What can I use to profile C++ code in Linux?

I have a C++ application I'm in the process of optimizing. What tool can I use to pinpoint my slow code? :) ...

Wait until tomcat finishes starting up

I have a script that needs to run after tomcat has finished starting up and is ready to start deploying applications. I'm using $TOMCAT_HOME/bin/startup.sh which returns immediately. How can I wait until tomcat has finished starting up? ...

Migrate Software Deployed on Linux VM?

I've got some software I created deployed on a Linux VM. I'd like to deploy a second copy of the software on a second virtual machine. Ideally, I'd like to just clone the VM volume, fire up a second copy, change the IP address, and that's that. It there anything else to it, or is it really just that simple. ...

How to convert documents to PDF on a Linux/PHP stack?

I want to display documents on my website. The server is hosted on a Debian machine. I was thinking I can allow the upload of support documents then use a Linux app or PHP app to convert the doc into PDF and display that in an HTML page. Are there any APIs or binaries that allow me to do this? ...