I'm a Linux user looking to write a program which will pick up the phone, dial a number, play a recording and record what the person on the other end of the line says and save it to an audio file. I will want to use the modem that came with my computer if possible. What should I use to write this program?
...
Completion on class members which are STL containers is failing.
Completion on local objects which are STL containers works fine.
For example, given the following files:
// foo.h
#include <string>
class foo {
public:
void set_str(const std::string &);
std::string get_str_reverse( void );
private:
std::string str;
};
//...
Hi!
These questions may not be perfectly suited for this site, so I apologize in advance for asking them here.
I'm trying to port a computer game from windows to GNU/Linux. It uses Ogre3D,CEGUI, ogreogg and ogrenewt. As far as I know all dependencies work on GNU/Linux and in the game itself there is no ooze-specific code.
Here's the q...
I have written a Python application and would like to give my users the option of having the app automatically launch itself when the user logs in. It is important that the user is able to toggle this option on/off from within the app itself, rather than having to manually edit login scripts, so this needs to be done from within the Pyth...
I was following a tutorial but I can't find the option to run tests.
...
In assembler:
.globl _test
_test:
pushl %ebp
movl %esp, %ebp
movl 8(%ebp), %eax
pushl %eax
call printf
popl %ebp
ret
Calling from c
main()
{
_test("Hello");
}
Compile:
gcc -m32 -o test test.c test.s
This code gives me illegal instruction sometimes and segment fault other times.
In gdc i always get illegal instruction, this ...
I have two simple microbenchmarks trying to measure thread- and process-switching overheads, but the process-switching overhead is turning out to be lower than that of thread-switching, which is unexpected. The setup: 1.8GHz Core 2 Duo, 2GB RAM, Linux 2.6.32-21-generic x86_64 (Ubuntu 10.04). I'm getting:
~2.1-2.4us per process switch
~...
I have an application written in Java to run on Linux. I'm developing in Eclipse under windows. I would like to run the code on the Linux box and debug it on the Windows one remotely. I've found some information about how to do so, but it's pretty sparse. Does anyone have (or can point to) a complete explanation of the process?
Any help...
Hi,
How can I make an application interface so that a PC application can communicate to an embedded device like a POS terminal?
Like for example, an embedded device like POS terminal that has an embedded linux as an OS. Then I want a PC application to communicate in that POS terminal and access its module hardware like for example its ...
Can you help me understand Linux HA?
Pacemaker, Heartbeat, Corosync seem to be part of a whole HA stack, but how do they fit together?
How does wackamole differ from Pacemaker/Heartbeat/Corosync? I've seen opinions that wackamole is better than Heartbeat because it's peer-based. Is that valid?
The last release of wackamole was 2.5 ye...
hello,
I am setting up a wireless Ad-Hoc network manually in linux using iwconfig and ifconfig.
I have gotten everything working, and I think I understand it all except access point.
The part that confused me is this:
If I have essid='some_id', channel=11, Mode=Ad-Hoc and appropriate routing/ip on both laptops, why do I need to make s...
Hi,
I am using 32 bit openSUSE OS, and I am using a cross compiler to build 64 bit application( it does not support building 32 apps) as our software will be deployed on a machine which is 64 bit OS. As testing on target is not always possible, is there anyway to run this applications on my 32 bit OS.
...
we are developing an SWT/RCP(Eclipse 3.5) application on both Windows and Linux (on identical hardware).
The application is a GIS app which shows several layered maps(PNG images) rendered with alpha blending.
org.eclipse.draw2d.Graphics.setAlpha(...);
org.eclipse.draw2d.Graphics.drawImage(...);
On Windows the performance is pretty goo...
I want to know the threads running for a particular process in Linux?How can i know guys? I tried some commands but its not working.........
...
I will start a new C++ project (it may have some C components as well) soon and I am looking for a modern, industrial-strength (i.e. non-beta) build system. The software will be created by several developers in 3-5 years and will run on Linux (Mac OS X and Windows might be supported later). I am looking for something that has better comp...
I use the functions fork(),exec()...
But how can this program be compiled without including some extra headers (like sys/types.h, sys/wait.h).
I use ubuntu 10.04 with gcc version 4.4.3
#include <stdio.h>
#include <stdlib.h>
int main()
{
pid_t pid;
printf("before fork\n");
pid = fork();
if(pid == 0)
{
/*child*/
if(execvp("...
Newbie question:
On Unix, in a program with a parent and some children:
- How can the parent alert the children efficiently to do some work.. ?
- Or how can the children wait for parent signal to start doing some work?
EDIT:
This program tries to do a complex computation in parallel, I have already used shared memory as a common works...
Hello all,
I am really looking for implementation advice as I have entered a new realm that I am not familiar with.
At the simplest level, I would like to find a way that I can read/write to a users machine from my web server. For this to work, I think I will have to install some sort of "plugin" on the users machine which can receive ...
Hi all,
I am working on Ubuntu 9.10 aka Karmic Kola and latest version of gcc, Qt 4.6.2. I have installed the french fonts and hindi fonts for ubuntu. I changed the language and Keyboard layout accordingly so that I could type in the abovementioned languages. It worked fine. I then made a sample application and added appropriate transla...
In linux make file:
I want to run the output program only in case of successful compilation.
Is there a way to do this?
...