linux

Firebird Database & Linux Red Hat Base Server for FireBird Database

Kindly give your comments / input ... We are considering Firebird Database, and getting a Linux Red Hat Server for our Database System .. is it advisable?, What's the future like for Linux and Firebird Database? Also, are there many developers available with knowledge of Firebird? ...

Upgrade python in linux

I have a linux VPS that uses an older version of python (2.4.3). This version doesn't include the UUID module, but I need it for a project. My options are to upgrade to python2.6 or find a way to make uuid work with the older version. I am a complete linux newbie. I don't know how to upgrade python safely or how I could get the UUID modu...

How to get output from subprocess.Popen()

I want output from execute Test_Pipe.py, I tried following code on Linux but not work. Test_Pipe.py import time while True : print "Someting ..." time.sleep(.1) Caller.py import subprocess as subp import time proc = subp.Popen(["python", "Test_Pipe.py"], stdout=subp.PIPE, stdin=subp.PIPE) while True : data = proc.stdo...

How to draw something with OpenGL ES in Linux?

I'm getting started developing with OpenGL ES on ARM/Linux, and I would like to draw something full-screen but don't know where to start. I'm not developping on iPhone, nor Android. This is a Linux/OpenGL ES question. I know it's possible to draw on the framebuffer with OpenGL ES without any library but I don't find any resources about...

How do I reverse escape backslash ecodings like "\ " and "\303\266" in bash?

I have a script that records files with UTF8 encoded names. However the script's encoding / environment wasn't set up right, and it just recoded the raw bytes. I now have lots of lines in the file like this: .../My\ Folders/My\ r\303\266m/... So there are spaces in the filenames with \ and UTF8 encoded stuff like \303\266 (which is ö...

Mixed up 32Bit and 64bit shared object / libraries

Hi, Accidentally I mixed up between 32Bit and 64Bit library files on my x86 embedded Linux system. I'm now trying to find out which .so-File could be the wrong one. Do you know any tool to analyze .so files? In my strace logs I found calls to fstat64(). Which .so-file contains the fstat() routine? Thanks ...

How to write a MultiPart download C++ program

I want to write a C++ program to download files with HTTP. For the sake of learning I would like to implement multipart downloading in my program the way DownThemAll! does. It is not possible to do lseek on a linux socket. I suppose it would be some HTTP option that we would need to specify, telling where to start downloading the file fr...

HTTP parsing library for linux C++

can anyone suggest a good HTTP parsing library for linux? ...

Find out in Linux what application/frame is currenty in focus ?

Is it possible to find out what application/window/frame is currently hold a focus? It may be a shell command or a library that I can program with. ...

How do you manually install the eclipse-CDT plugin from an archive/zip on ubuntu?

I have successfully installed Eclipse 3.5 and Java 1.5. I would like to install CDT without using Eclipse's "install new features" (nor can i use the Eclipse-CDT installer) option because this computer is offline. What I did: I downloaded the archive of cdt from CDT's official download page. I used file-roller to unzip everything into...

Easy way to display a continuously updating image in C/Linux

Hi, I'm a scientist who is quite comfortable with C for numerical computation, but I need some help with displaying the results. I want to be able to display a continuously updated bitmap in a window, which is calculated from realtime data. I'd like to be able to update the image quite quickly (e.g. faster than 1 frame/second, preferab...

Linux TCP/IP Non-blocking send for socket stream..what happens to the TCP recv buffer?

This pertains to Linux kernel 2.6 TCP sockets. I am sending a large amount of data, say 300 MB, with a non-blocking send to another client who receives 8 MB at a time. After one 8 MB receive, the "receiver" stops receiving because it wants to perform other tasks, such as error handling. The sender would get a EWOULDBLOCK, but since ...

Named Pipe strategies with dynamic memory?

Hokay so I have an application where I need some IPC... I'm thinking named pipes are the way to go because they are so easy to use. Anyways, I have a question about how to handle dynamic memory using named pipes. Say I have a class such as this: class MyTestClass { public: MyTestClass() { _data = new int(4); } int GetData(...

Thread dump in a separate file with tomcat?

My tomcat (running in linux/ubuntu) crashes sometimes with a thread dump appended to catalina.out. How do I get this thread dump into a separate log file? The thread dump is quite large due to the large number of threads running and therefore fills catalina.out making it hard to debug. ...

Using Awk to process a file where each record has different fixed-width fields.

I have some data files from a legacy system that I would like to process using Awk. Each file consists of a list of records. There are several different record types and each record type has a different set of fixed-width fields (there is no field separator character). The first two characters of the record indicate the type, from thi...

Get owner's access permissions using C++ and stat

How can I get the file owner's access permissions using stat from sys/stat.h using C++ in Kubuntu Linux? Currently, I get the type of file like this: struct stat results; stat(filename, &results); cout << "File type: "; if (S_ISDIR(results.st_mode)) cout << "Directory"; else if (S_ISREG(results.st_mode)) cout << "...

conversion MS documents to csv files

i have a bulk of MS documents and I'm using ubuntu os. I need to convert all documents to csv. Is there any way to do it ...

capture key events in wxdialog linux

capturing EVT_KEY_UP or EVT_CHAR does not work, but does under windows? Any hints ? ...

After upgrading Fedora, why can I no longer change permissions of a file mounted via SMB

I had been running Fedora 9 for the last year --- I have a Windows box (actually a VM) that mounts a folder on the Fedora box using my own name/password. I do this so that I can run my version control program (Vault) on Windows. It has worked flawlessly for the last 6 months. Yesterday, I upgraded Fedora from version 9 to version 11. Si...

C++: Status and control pattern

I'm writing a C++ background/server application for Linux/Windows. Is there a standard control/profiling/reporting service I should use to expose my application's current status in a standardized way? If not, what's a good pattern (or library) to use for exposing this kind of data and control? Specifically, I want to expose the follow...