linux

SVN checkout over secure http fails with Memory Fault

I built subversion client (1.6.5) along with its required dependency libs on SuSe 10. I am trying to access our central repository server over https a secured URL. But when i run the svn checkout command giving proper credentials it gives me memory fault. What is that i have missed in building SVN or is that something to do with set up ...

Linux automated code formatting (PHP, JavaScript, HTML, CSS, MySQL)

I am seeking a Linux or PHP program to automate code formatting. Optimally it would handle many languages, but the priority is (highest first): PHP, JavaScript, HTML, CSS and MySQL. Comparability is nice, but not the most important feature. Context / use: automation via Subversion post-commit. I'm working with teams and want to alway...

how to install adobe air sdk in linux?

i'm trying to install the adobe air sdk in linux. i unzip the package downloaded from http://www.adobe.com/products/air/tools/sdk/ into a folder "AdobeAIRSDK", and add the /bin folder into the PATH environment variable. but when i tried to run the adl, it gives me the following error: Error loading the runtime (/home/monuser/AdobeAIRSDK...

Problem with event handling on QToolButton in Linux

I am developing an application, I have added a QToolBar object in that, and have added the QToolButton object on that, I have also connect the clicked() event with that but the problem is that the mouse click event don't work on QToolButton but when I bring focus on that using Tab, then space button works fine, but I want it with mouse c...

How can I get name of the user executing my Perl script?

I have a script that needs to know what username it is run from. When I run it from shell, I can easily use $ENV{"USER"}, which is provided by bash. But apparently - then the same script is run from cron, also via bash - $ENV{"USER"} is not defined. Of course, I can: my $username = getpwuid( $< ); But it doesn't look nice - is ther...

Bash Script - umount a device, but don't fail if it's not mounted?

I'm writing a bash script and I have errexit set, so that the script will die if any command doesn't return a 0 exit code, i.e. if any command doesn't complete successfully. This is to make sure that my bash script is robust. I have to mount some filesystems, copy some files over, the umount it. I'm putting a umount /mnt/temp at the sta...

is there a way to start/stop linux processes with python?

I want to be able to start a process and then be able to kill it afterwards ...

fast elapsed time on linux

Hi there, I am looking for a fast way to get the elapsed time between two calls of a function in C. I considered using jiffies, but they are not available in userland. So, should I use getimeofday() or is there any fastest way to do this. I am only interested in the elasped time between two calls, to use in a benchmark tool. ...

Linux utility to know command for a particular task

Hi all, In my initial days of using linux I usually had to search google to know the command for doing a particular task. Once I have the command name, i can view its usage using man command-name. Similarly I was thinking of some utility which can tell the command to do a particular task if the task to be done is specified as an argument...

Resources to learn MacOSX development from Linux/Windows development point of view

I have programmed a lot on Linux, and to some extent on Windows. Even though MacOSX is fundamentally based on the BSD kernel, there are quite a number of user-level services and APIs that I am not fully knowledgeable about (plist, .app bundles, universal binaries, etc..). Is there a resource (preferably book) that you would recommend L...

Best practices for git repositories on open source projects

I'm contributing to a fairly small open source project hosted on Github. So that other people can take advantage of my work, I've created my own fork on Github. Despite Github's choice of terminology, I don't wish to totally diverge from the main project. However, I don't expect or desire that all of my work is accepted into the main rep...

Self contained GTK application when there is no X windows environment.

I am using a very stripped down version of Linux, I want to create a self contained GTK application on a system that has no X window environment installed. I want to use GTK GUI classes and widgets and not create a server version where GUI is disabled. The only thing you can expect is a working glibc. From what I understand it would i...

Shared library internal

I wish to know how the Shared library works I am asking in terms of Symbol table reference. Is it like when we include a shared library it exports the Symbol table to process then based on some pointers we execute the respective function. What is the meaning of Shared library Strip ? Edit :- I wish to know that how shared library works...

Console alternative of kcachegrind?

Kcachegrind rocks and it's of my favorite tools, however from time to time I'm missing the ability to run it in terminal(e.g using ssh) on the remote server. I know it's possible to setup VNC or X-server forwarding but it's quite clumsy while I need something simple. Is there any kcachegrind console alternative(e.g ncurses based)? ...

(C++) MessageBox for Linux like in MS Windows

Hi, I need to implement a simple graphical message box for a Linux (SDL) application similar to the Windows MessageBox in C++ (gcc/g++ 4.4.0). All it needs to do is to display a caption, a message and an ok or close button and to return to the calling function when that button is clicked. SDL just uses X(11) to open a window for (OpenG...

problem running dmd-tango under linux

does anybody know how to run dmd under linux? i downloaded the tango linux binary and extracted it to a special folder. i call "export PATH..." but when i tried to run dmd all i get was bash: /home/user/dmd/bin/dmd: No such file or directory sorry im new to linux and just installed ubuntu 9.04 64bit. thanks. ...

Windows-like message box for Linux - would this C++/Motif implementation work?

I want a message box for Linux similar to the Windows one: It should pop up, display some text, and when the user clicks the Ok button, it should disappear and return control to the calling function. The message box should work even if there is no application window yet at all. So it creates an application context, ties a dialog via XmC...

Library to create high-performance server applications

I remember finding a C++ (or maybe plain C) library which does thread pooling, socket polling and other stuff, needed to write a high-performance server on Linux. (And this library was not Boost itself but it could be that it used Boost.) As usual, I can't remember the name of the library. Any guesses? Update: that was not ACE. ...

what are good resources to get the most out of csh or tsch?

I would like to get the most out of working in cch or tcsh shell. I am looking for general tips (post them away), online tips, or book. Thanks ...

Hide a bash function internals..

Hi, My .bashrc looks something like this... export PERL5LIB="/tools/perl/Linux/${PLAT}/lib/perl5/5.10.0/${PLAT}-thread-multi" export PERL5LIB="${PERL5LIB}:/tools/perl/Linux/${PLAT}/lib/perl5/5.10.0" function dev { export PERL5LIB="/dev/tools/perl/Linux/${PLAT}/lib/perl5/5.10.0/${PLAT}-thread-multi" export PERL5LIB="${PERL5LIB...