linux

Alternative for Windows Task Scheduler

hi, I need a Task Scheduler for Windows. Unfortunately the builtin scheduler doesn't meet my needs, which are: can run tasks every minute/hour runs on Linux and Windows 32 and 64 bit versions GUI interface free Nice to haves: supports CRON files open source status reports of execution times thanks! ...

Linking in test libraries with CppUnit

I'm setting up a bunch of unit tests using CppUnit but am having the problem that none of the tests are being run. The project is divided up into several small libraries and I planned on dividing the unit test classes up the same way and then linking them all into a single test program. The problem is, then the test classes are in thei...

Patch stack tools for Windows

Are there any equivalents in the Windows world for patch stack management tools like Linux's quilt? I'm trying to come up with some development workflows for our environment, which need to work on both Linux and Windows. I can come up with a beautiful system for Linux using quilt and the like, but unless I can find a way to replicate i...

Cross-platform subprocess with hidden window

I want to open a process in the background and interact with it, but this process should be invisible in both Linux and Windows. In Windows you have to do some stuff with STARTUPINFO, while this isn't valid in Linux: ValueError: startupinfo is only supported on Windows platforms Is there a simpler way than creating a separate Pope...

Arguments to kernel

Is there anything that the kernel need to get from the boot loader.Usually the kernel is capable of bringing up a system from scratch,so why does it require anything from boot-loader? I have seen boot messages from kernel like this. "Fetching vars from bootloader... OK" So what exactly is the variables being passed? Also how's the va...

Get started with Latex on Linux

Impressed by is-latex-worth-learning-today, and many how-to's on Windows, How do you have someone started with LaTeX on Linux. How do you generate a pdf out of it and give up the OOO Word processer. Update: Thanks to all the suggestions given in here. I was able to create an awesome ppt using the Beamer class: http://github.com/beco...

How do I obtain, and synchronize, a complete list of all X11 windows?

I want to monitor all the open windows under X11. Currently, I'm doing this as follows: Initially walking the whole tree by recursively calling XQueryTree from the root window Listening for substructure changes on the whole desktop: XSelectInput( display, root_window, SubstructureNotifyMask | PropertyChangeMask ) Handling all MapNo...

How can I monitor availability of a home electrical outlet remotely?

We have a freezer plugged into a GFCI electrical outlet that likes to "pop" and turn off on its own every once in a great while. What I would like to do is monitor the availability of this electrical outlet. Ideally, I'd like to plug in a cheap monitoring device, like a Smarthome or X10 type of device. And when the circuit turns off, ...

Using software floating point on x86 linux

Is it (easily) possible to use software floating point on i386 linux without incurring the expense of trapping into the kernel on each call? I've tried -msoft-float, but it seems the normal (ubuntu) C libraries don't have a FP library included: $ gcc -m32 -msoft-float -lm -o test test.c /tmp/cc8RXn8F.o: In function `main': test.c:(.text...

Ubuntu Linux and Crossroads loadbalancer not quite working.

Hi Everyone, after some advice regarding a problem i am getting using a linux based piece of software to balance traffic between two servers. Basically we have our production website and a backup system (at remote site). the production is being mirrored to the backup constantly to keep them synced. our domain name points at a Linux Ubun...

Using ls to list directories and their total sizes

Is it possible to use ls in Unix to list the total size of a sub-directory and all its contents as opposed to the usual 4K that (I assume) is just the directory file itself? I.E. total 12K drwxrwxr-x 6 *** *** 4.0K 2009-06-19 10:10 branches drwxrwxr-x 13 *** *** 4.0K 2009-06-19 10:52 tags drwxrwxr-x 16 *** *** 4.0K 2009-06-19 10:02 tr...

Controlling application running on a virtual desktop (linux)

Hi guys, I need to run an application on a virtual Xorg desktop (let say desktop #2) and control it via another app running on the root desktop (desktop #1). That would include screen capture and mouse movements. So basically I capture the application window from desktop #2, scrape it and then click on buttons via my app on desktop #1. ...

Sandboxing in Linux

I want to create a Web app which would allow the user to upload some C code, and see the results of its execution (the code would be compiled on the server). The users are untrusted, which obviously has some huge security implications. So I need to create some kind of sandbox for the apps. At the most basic level, I'd like to restrict a...

Logo programming language implementations

The "joke" question Joel asked during podcast #58 made me all nostalgic for Logo, which was the second language I ever programmed in, after Basic, and which is why I never had any trouble with recursion in college. Are there any implementations of Logo for Windows or Linux (the platforms I can use) or Mac (because I know I'm not alone i...

How to set timeout for a program?

Hello! I'm currently trying to make a small testing application for various programming tasks. It will run executable file which will generate output on another file and then compare it with answer. This far I think I will be able to get easy, but I have a problem... I want to limit the time that this executable file can run, for examp...

What is the best Linux filesystem for MySQL (InnoDB)?

I tried to look for benchmark on the performances of various filesystems with MySQL InnoDB but couldn't find any. My database workload is the typical web-based OLTP, about 90% read, 10% write. Random IO. Among popular filesystems such as ext3, ext4, xfs, jfs, Reiserfs, Reiser4, etc. which one do you think is the best for MySQL? ...

Display dialog box from linux script

I have a cron entry that runs a script at a certain time each day. The script sets the DISPLAY to :0 and launches a program for the user to run (this is a single-user desktop). I want to change this so that the user first sees a dialog box so he can indicate whether he wants to run the program. I'm using Ubuntu with Gnome. Is there s...

msginit email address command line argument?

msginit prompts for an email address. Is there a way to tell msginit what email address to use without being prompted for it such as a command line argument? cat >hellogt.cxx <<EOF // hellogt.cxx #include <libintl.h> #include <locale.h> #include <iostream> int main (){ setlocale(LC_ALL, ""); bindtextdomain("hellogt", "./"); ...

Do I need static libraries to statically link?

On 'C', Linux, Do I need static libraries to statically link, or the shared ones I have suffice? If not, why not? (Don't they contain the same data?) ...

Moving from Gnome to XFCE

Hi. I'm using Gnome now and want to install XFCE. Nothing complicated but just curious - do all applications, installed previously on Gnome will be also removed or they would work on XFCE properly after installing XFCE and removing Gnome ? OS: Linux Mint 7 ...