Linux-Development-Apps Digest #418

2001-05-20 Thread Digestifier

Linux-Development-Apps Digest #418, Volume #7Sun, 20 May 01 13:13:11 EDT

Contents:
  application control by natural speech recognition via ISDN-Adapter  (Thomas Baehren)
  Re: application control by natural speech recognition via ISDN-Adapter  (Arthur H. 
Gold)
  Re: stl header files (Markus Kossmann)
  Re: fork() in pthread (manik roy)
  Re: Advice needed. (roald osinga)
  Re: Cross compiling from Windows to Linux (Lucius Chiaraviglio)
  Re: Development tools (roald osinga)
  Re: MySQL or other database (roald osinga)
  Makefiles (roald osinga)
  chdir()... or strcat() then chdir() (manik roy)
  Re: chdir()... or strcat() then chdir() (roald osinga)
  Newbie Question (Marvin Massih)
  Re: crypt() function syntax (Aranwen)
  Re: chdir()... or strcat() then chdir() (manik roy)
  Glade program compiled error ?
  Re: chdir()... or strcat() then chdir() (Arthur H. Gold)
  Re: Faster than strstr (Keith Thompson)
  Re: Faster than strstr (CBFalconer)



From: Thomas Baehren [EMAIL PROTECTED]
Subject: application control by natural speech recognition via ISDN-Adapter 
Date: Sun, 20 May 2001 07:34:24 +0200

I want to control some applications by calling my linux-computer via
phone and posting commands with natural speech.
The overall design could look like this:

ISDN-Driver  -Interface 1- phone call handler  -2-  speech
recognition and command generation -3- command receiver in application

Description:
- The phone call handler is waiting for calls and handling them (pick
up, etc.). Via Interface 1 a data stream representing the callers talk
(format could be raw digital sound data with 8 kBit sampling frequence
etc.) is handed over to a speech recognition module.
- The speech recognition module should detect single words out of a set
of approx.100. The result should be handed over as a stream of
Identifier to the command receiver module (e.g. the parser) in the
application.

My questions:
- Where can I get information about the ISDN-Application-Interface on
the above mentioned level? (I'm using a recently purchased Fritz!
PCI-ISDN-Adapter).
- Is a module for speech recognition available to solve to problem?

Thanks for help.
Thomas


--

Date: Sun, 20 May 2001 01:13:44 -0500
From: Arthur H. Gold [EMAIL PROTECTED]
Subject: Re: application control by natural speech recognition via ISDN-Adapter 

Thomas Baehren wrote:
 
 I want to control some applications by calling my linux-computer via
 phone and posting commands with natural speech.
Way cool.
 The overall design could look like this:
 
 ISDN-Driver  -Interface 1- phone call handler  -2-  speech
 recognition and command generation -3- command receiver in application
 
 Description:
 - The phone call handler is waiting for calls and handling them (pick
 up, etc.). Via Interface 1 a data stream representing the callers talk
 (format could be raw digital sound data with 8 kBit sampling frequence
 etc.) is handed over to a speech recognition module.
 - The speech recognition module should detect single words out of a set
 of approx.100. The result should be handed over as a stream of
 Identifier to the command receiver module (e.g. the parser) in the
 application.
 
 My questions:
 - Where can I get information about the ISDN-Application-Interface on
 the above mentioned level? (I'm using a recently purchased Fritz!
 PCI-ISDN-Adapter).
I did a Google search with the following key:

linux +ISDN interface

and there were several hits (many seem to duplicates or near duplicates)
Check them out.

 - Is a module for speech recognition available to solve to problem?

Similarly with:

speech recognition +open source

Search engines are your friend!
[well, they're a start anyway]

HTH,
--ag
-- 
Artie Gold, Austin, TX  (finger the cs.utexas.edu account for more info)
mailto:[EMAIL PROTECTED] or mailto:[EMAIL PROTECTED]
--
I am looking for work. Contact me.

--

From: Markus Kossmann [EMAIL PROTECTED]
Subject: Re: stl header files
Date: Sun, 20 May 2001 07:09:51 +0200

Charles Herman wrote:
 
 How can I find out in which directory g++ is looking for STL header
 files?
 
A g++ -v some_source.C will tell you the searched directories. So will
get a list like that:
[...]
GNU CPP version 2.95.3 20010315 (SuSE) (i386 Linux/ELF)
#include ... search starts here:
#include ... search starts here:
 /usr/include/g++
 /usr/local/include
 /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include
 /usr/include
End of search list.
[...] 

-- 
Markus Kossmann
[EMAIL PROTECTED]

--

From: [EMAIL PROTECTED] (manik roy)
Subject: Re: fork() in pthread
Date: 19 May 2001 23:55:12 -0700

Wong Ka Chun [EMAIL PROTECTED] wrote in message 
news:9e31ev$hf4$[EMAIL PROTECTED]...
 Hi,
 
   I have a problem that my program crash randomly. My program create threads


Don't create the thread. fork() first then run 

Linux-Development-Apps Digest #419

2001-05-20 Thread Digestifier

Linux-Development-Apps Digest #419, Volume #7Mon, 21 May 01 02:13:05 EDT

Contents:
  Re: Advice needed. (Rajarshi Guha)
  Re: Faster than strstr (Ben Pfaff)
  Re: Cross compiling from Windows to Linux (Shankar Unni)
  kdevelop-libkdefakes.so (news.tpi.pl)
  Re: How to get a number of processors (John Beardmore)
  gui for linux (Torsten Edeler)
  Re: Newbie programmer (Nix)
  i18n, decompiler for .mo files ? (Thomas Eschenbacher)
  Re: Advice needed. (Yury Petrov)
  Moving from Motif to... (Yury Petrov)
  Re: Glade program compiled error ? (=?iso-8859-1?Q?=C1ngel=20Su=E1rez?= Rivero)
  Gnome App compilation problem (Jamie Ridgway)
  Re: Moving from Motif to... (Daniel Franklin)
  mcheck and MALLOC_CHECK_ (rud zel)
  Re: crypt() function syntax (Villy Kruse)



From: Rajarshi Guha [EMAIL PROTECTED]
Subject: Re: Advice needed.
Date: Sun, 20 May 2001 07:24:20 +0530

 1.  I want to try Linux but am bewildered by the different Linux
offerings.
 What Linux O.S. should I try?

I think the question should have been 'What Linux distro should I try'.
There's only one Linux OS - but you can obtian it inseveral different
packages. In my opinion the RedHat distro's are good for newcomers -
SuSe seems OK, but I still prefer RedHat.

 3.  What database could replace my Microsoft Access 2000?

If your requirement is SQL then you can have PostgreSQL or MySQL

 4.  What programming language would you recommend to replace Visual Basic?

Perl/Python

 disillusioned with Microsoft and would like to escape to a better
world - I'
 m hoping it's Linux

It is, it is...:)

Bye,
=
Rajarshi Guha

email: [EMAIL PROTECTED]
web: http:/www.psynet.net/jijog






--

Subject: Re: Faster than strstr
From: Ben Pfaff [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.lang.c.moderated,comp.lang.c
Date: 20 May 2001 17:53:47 GMT

CBFalconer [EMAIL PROTECTED] writes:

 mmf wrote:
  
  In article [EMAIL PROTECTED], DB [EMAIL PROTECTED] wrote:
  
  My current project for SPI Dynamics made extensive use of the strstr()
  function to detect malicious activity in web server log files. The
  performance of that search routine was quite a bottleneck while LogAlert
  was detecting exploit strings. The strstr() function seemed to be part
  of the problem, I had to find a way to speed things up.
  
  why not move laterally? instead of a faster way to repeatedly scan text
  why not find a way to scan text once
 
 A technique used in ID2ID (to replace id strings in multiple
 source files in one pass) inputs the candidate strings and forms a
 binary tree.  It uses an AVL tree to avoid imbalance, but could
 also use red-black trees. [...]

If the table of candidate strings does not change during a
program run, then there's a good chance that a balanced tree is a
waste of time and too complicated to boot.  I would probably use
qsort() followed by bsearch() for simplicity or a hand-coded
binary search for speed, or maybe a hash table or trie, myself.

Though AVL and red-black trees are pretty, there's an even
prettier algorithm for giving an ordinary binary tree perfect
balance in O(n) time and O(1) space.  If you really want to use a
binary tree, then, for a tree with static content, you can't beat
this.  Just build a tree that's unbalanced any which way and run
it through the balancer.

This algorithm is implemented in the latest ALPHA release of
libavl, FWIW.  As always, libavl is available from
URL:http://www.msu.edu/~pfaffben.
-- 
What is appropriate for the master is not appropriate for the novice.
 You must understand the Tao before transcending structure.
--The Tao of Programming
-- 
comp.lang.c.moderated - moderation address: [EMAIL PROTECTED]

--

From: Shankar Unni [EMAIL PROTECTED]
Subject: Re: Cross compiling from Windows to Linux
Date: Sun, 20 May 2001 11:52:14 -0700

Daniel Lux wrote:

 We are using a cvs like system in our company wich runs under windows only,
 we are now developing programs for linux and would like to cross compile
 under windows to linux.
 I already took a look at cygwin, but could not see any switches for cross
 compilation to linux.

Several different solutions to this problem.

Solution 0:
==

Did you know that you can get a PVCS client for Linux? That should take
care of your entire problem right there - check out onto a Linux box and
build.

See http://www.pvcs.synergex.com/pvcs-plt.htm.



Solution 1: (if you don't want to shell out the $$ for the PVCS client
on Linux)
==

Do the build on a Linux box. To get the sources to compile, you have to
check them out on the windows and be able to access them on a linux box.
Several ways of doing this:

1. rsh windows_host pvcs checkout to Windows-local path
2a. Access the files remotely on the Linux box in one of two ways:
   * Export the directory as a