[fpc-pascal] Re: TProcess with festival

2009-05-15 Thread Seth Grover
Okay, I figured it out... Turns out I was using festival wrong, though I'm still not sure how. It wasn't a problem with how I was using TProcess. If I run festival like this (not using --tts mode) FestivalProc.CommandLine := '/usr/bin/festival --pipe'; And pass "SayText" commands like this,

Re: [fpc-pascal] Microsoft to ban Memcpy() :)

2009-05-15 Thread Marco van de Voort
In our previous episode, Florian Klaempfl said: > > Funny... always these problems with C and bounds checkings > > > > http://www.theregister.co.uk/2009/05/15/microsoft_banishes_memcpy/ > > I'll continue here because my remark is fpc related :) Maybe we should > add something like move_s (taking

Re: [fpc-pascal] Microsoft to ban Memcpy() :)

2009-05-15 Thread Florian Klaempfl
ABorka schrieb: > Funny... always these problems with C and bounds checkings > > http://www.theregister.co.uk/2009/05/15/microsoft_banishes_memcpy/ I'll continue here because my remark is fpc related :) Maybe we should add something like move_s (taking the destination size as well as the memcpy_s

Re: [fpc-pascal] Microsoft to ban Memcpy() :)

2009-05-15 Thread Jonas Maebe
On 15 May 2009, at 21:19, ABorka wrote: Funny... always these problems with C and bounds checkings Please use the fpc-other list for remarks like this. Jonas FPC mailing lists admin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:

[fpc-pascal] Microsoft to ban Memcpy() :)

2009-05-15 Thread ABorka
Funny... always these problems with C and bounds checkings http://www.theregister.co.uk/2009/05/15/microsoft_banishes_memcpy/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TProcess with festival

2009-05-15 Thread Doug Chamberlin
Looks to me like you are terminating the process as soon as you write to the pipe. Don't you have to give it time to breathe? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TProcess with festival

2009-05-15 Thread Vincent Snijders
Seth Grover schreef: Maybe I'm just dumb, but I cannot figure out why this isn't working. I wanted to write a simple program which uses TProcess to send input to festival (the text-to-speech engine). On the command line I can do something simple like this: echo hello | /usr/bin/festival --tts

[fpc-pascal] TProcess with festival

2009-05-15 Thread Seth Grover
Maybe I'm just dumb, but I cannot figure out why this isn't working. I wanted to write a simple program which uses TProcess to send input to festival (the text-to-speech engine). On the command line I can do something simple like this: echo hello | /usr/bin/festival --tts --pipe and festival wi

Re: [fpc-pascal] Re: XML pretty formatter

2009-05-15 Thread Leonardo M . Ramé
People, my problem was solved with the help of xsltproc in a Linux box where one our services is running, and it works really good. But it could be nice to have an Object Pascal version of the library, to be able to do the same without needing to use an external program. Leonardo M. Ramé http

Re: [fpc-pascal] Daemon question

2009-05-15 Thread Henry Vermaak
2009/5/14 Koenraad Lelong : > > My "big" logs are 1.6M per day, but they are about 5000 lines at the end > of the day. Wouldn't it be a waste to read the last line of such a big > file ? > My last remark was about sending a signal via php (it does support > sending signals) and then writing the des

Re: [fpc-pascal] Re: XML pretty formatter

2009-05-15 Thread Graeme Geldenhuys
On Fri, May 15, 2009 at 11:01 AM, Michael Van Canneyt > > IMHO we should have the latter. We have a near-complete DOM implementation > in native object pascal, we have XPath in native pascal. It seems only natural > to have XSLT native as well... That would be nice obviously, but it's not somethin

Re: [fpc-pascal] Re: XML pretty formatter

2009-05-15 Thread Michael Van Canneyt
On Fri, 15 May 2009, Graeme Geldenhuys wrote: > On Fri, May 15, 2009 at 8:43 AM, Michael Van Canneyt > wrote: > > > > I think he meant a pascal version of the xsltproc program. > > Oh, my mistake.. xsltproc is just a frontend for the libxslt library. > So you should be able to write a object p

Re: [fpc-pascal] Calling C++ object

2009-05-15 Thread Jonas Maebe
On 15 May 2009, at 05:06, wrote: I am trying to call a C++ object which is in a dll from a Pascal interface unit as described in Rudy's Delphi corner: (http://rvelthuis.de/articles/articles-cppobjs.html ). I use the inheritance method, making my C++ object a descendent from a Virtual a

Re: [fpc-pascal] Re: XML pretty formatter

2009-05-15 Thread Graeme Geldenhuys
On Fri, May 15, 2009 at 8:43 AM, Michael Van Canneyt wrote: > > I think he meant a pascal version of the xsltproc program. Oh, my mistake.. xsltproc is just a frontend for the libxslt library. So you should be able to write a object pascal program that talks to the libxslt library directly (like