linux

ies4linux with selenium and rspec

I use selenium, usually with firefox, to test my rails apps and it's all fine. I want to run my tests in IE6 as well. I'm in ubuntu, using the ruby selenium-client gem. For IE6 i use ies4linux, this is an executable which is at /home/max/.ies4linux/bin/ie6 I'm editing my selenium conf to try to get it to use the above, but can't get ...

Idle tcp file descriptor after failed connect on HPUX

I have a client tcp socket (in c++) that has a loop where it retries to open a socket and connect to a server at a certain interval until it succeeds. A bug in the program caused close not to be called on the file descriptor after a failed connect, and the same (open) descriptor was used again when calling socket and connect in the next...

Catch text before it's pasted into textview.

I have a textview and when something is pasted into it from the clipboard I need to intercept that text and do some preprocessing on it before it ends up in the textview. I've tried listening to the "PasteClipboard" event which doesn't give me a way to modify the incoming text. and the "textview.Buffer.Changed" event which fires after t...

How can i monitor system statistics in kubuntu using Java?

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an odometer. i wanted to know if there is any great open source library for graphical component like odometers and other graphing utilities. also...

Troubles with errno.h

I'm working with Rad Hat 8.0, trying to make changes to the kernel, and I'm at the compilation stage. I have a header in include/linux where I define wrapper functions, and they use errno. I included errno.h using #include <errno.h>. When I try to compile, it tells me "errno.h no such file or directory". When I try #include <linux/er...

SLES 9 vs. SLES 10

Are there any important change in how SLES 10 implements Tcp sockets vs. SLES 9? I have several apps written in C# (.NET 3.5) that run on Windows XP and Windows Server 2003. They've been running fine for over a year, getting market data from a SLES 9 machine using a socket connection. The machine was upgraded today to SLES 10 and ...

Scaling File Systems

Hi, This could be a question for serverfault as well, but it also includes topics from here. I am building a new web site that consist of 6 servers. 1 mysql, 1 web, 2 file processing servers, 2 file servers. In short, file processing servers process files and copy them to the file servers. In this case I have two options; I can setup ...

Remove first 4 letters from a folder name using Bash scripting

As the title says I want to remove the first 4 letters from a folder name using a Bash script. If you have another way to do it in Linux I don't really mind e.g. Python. Also I need the script to be executed regularly (daily). ...

Cannot write a script to "svn export" in Python.

Hi, I would like to write a script that will tell another server to SVN export a SVN repository. This is my python script: import os # svn export to crawlers for s in ['work1.main','work2.main']: cmd = 'ssh %s "cd /home/zes/ ; svn --force export svn+ssh://174.113.224.177/home/svn/dragon-repos"' % s print cmd os.system(cmd)...

I just installed a Ubuntu Hardy server. In Python, I tried to import _mysql and MySQLdb

But, they were unable to be found!? How do I install both of them? ...

Why can a shared library created from non-pic object work?

I'm confused. I try in Linux on x86. ...

PHP - Killing child process started by pcntl_fork

I am using pcntl_fork to start a child process to send an email via SMTP. The child process uses the PEAR Mail package to send the email, but the trouble is if the remote server doesn't respond the process just runs forever waiting for a response, regardless of any time limit that is set in php.ini. To get around this I'm using pcntl_a...

Setting Enviroment Variables Dynamically on Linux

I am currently looking for a way to set enviroment variables in Linux via a simple shell script. Within the script I am currently using the 'export' command, however this only has scope within the script where system-wide scope is needed. Is there anyway I can do this via a shell script, or will another method need to be used? ...

Will python.subprocess(cppBinaryExe) compromise cppBinaryExe's performance?

hi, i am quite new to python.subprocess() if i folk a new process from python, will the execution speed of this new process be compromised? imagine that i have the #python import subprocess subprocess.call( MyBinary ) basically, is there any difference between ./MyBinary and ./python ruMyBinary.py ? ...

Continue to debug after failed assertion on Linux? [C/C++]

When an assertion fails with Visual C++ on Windows, the debugger stops, displays the message, and then lets you continue (or, if no debugging session is running, offers to launch visual studio for you). On Linux, it seems that the default behavior of assert() is to display the error and quit the program. Since all my asserts go through ...

How can I display Unicode strings while debugging on linux?

I have been working for some years now as C++ Developer using MS Visual Studio as working platform. Since I privately prefer to use linux, I recently took the chance to move my working environment to linux as well. Since I have been optimizing my windows environment for several years now, of course it turns out several things are missin...

Creating & Editing MS-Word documents on a linux server?

Looking to develop server-side application that will process documents. The source documents are mostly MS-Word 2003, 2007, i.e. the MS version of Docx. Want the server application to be able to run on both linux or windows. Wanting to know what is the best tool or library for reading and writing MS-Word files under linux. Compatibility...

Linux API - EXT3 file information

Hi everyone. I wanna proramatically determine if a file has been modified since last time. I wonder if there is a flag or somthing like that on files under EXT3 filesystem. I'm writing a backup software. ...

403 error in Google App Engine with staticdir

Hi, For some reason I can't get static_dir to work. In my app.ymal I have: - url: /ui static_dir: ui - url: /dump static_dir: dump Loading static files from /ui works (i.e /ui/images/logo.png). But when I try to access something from /dumo I just get: INFO 2009-11-12 14:03:55,497 dev_appserver.py:3034] "GET /dump/ka...

File paths in Java (Linux)

I have created a Java application that loads some configurations from a file conf.properties which is placed in src/ folder. When I run this application on Windows, it works perfectly. However when I try to run it on Linux, it throws this error: java.io.FileNotFoundException: src/conf.properties (No such file or directory) ...