Re: Using Inline::Java

2007-04-27 Thread Alejandro Santillan
Problem solved. Thanks google. Thanks Mike. - Original Message - From: "Mike Crowl" <[EMAIL PROTECTED]> To: "Alejandro Santillan" <[EMAIL PROTECTED]>; Sent: Thursday, April 26, 2007 7:14 PM Subject: RE: Using Inline::Java > http://forum.java.sun.com

Re: Using Inline::Java

2007-04-26 Thread Alejandro Santillan
ppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) I think I am near now, but really don't know what's going on now. Please heeeelp! Alejandro - Original Message - From: "

Re: Using Inline::Java

2007-04-26 Thread Alejandro Santillan
$greeter = Hi->new("howdy"); print $greeter->getGreeting(), "\n"; - Original Message - From: "Alejandro Santillan" <[EMAIL PROTECTED]> To: "Todd Beverly" <[EMAIL PROTECTED]>; Sent: Thursday, April 26, 2007 6:13 PM

Re: Using Inline::Java

2007-04-26 Thread Alejandro Santillan
Message - From: "Todd Beverly" <[EMAIL PROTECTED]> To: "Alejandro Santillan" <[EMAIL PROTECTED]> Cc: Sent: Thursday, April 26, 2007 5:59 PM Subject: Re: Using Inline::Java > Alejandro Santillan wrote: > > Hi all: > > > > I was trying

Using Inline::Java

2007-04-26 Thread Alejandro Santillan
Hi all: I was trying to use the module Inline::Java unsuccessfully. The code was: #!/usr/bin/perl use Inline Java => <<'END_OF_JAVA_CODE' ; class Pod_alu { public Pod_alu(){ } public int add(int i, int j){ return i + j ; } public

Re: POST request using LWP help with php forms

2006-11-17 Thread Alejandro Santillan
Thank you Bill!! It worked perfect! - Original Message - From: "$Bill Luebkert" <[EMAIL PROTECTED]> To: "Alejandro Santillan Iturres" <[EMAIL PROTECTED]> Cc: Sent: Friday, November 17, 2006 12:43 AM Subject: Re: POST request using LWP help with p

POST request using LWP help with php forms

2006-11-16 Thread Alejandro Santillan Iturres
I need to download a page which is password-protected (php): http://marketsmart-real.pcquote.com/login.php?redirectLocation=getquote.php?symbol=NDX When accessing the former page, it is requested a user and password via a form. Used AJS2 and password dosmil work fine. Now what I want is to emulate

Re: help with sockets

2006-11-08 Thread Alejandro Santillan
> Untested code : > > use strict; > use warnings; > use IO::Select; > > # Your socket opening code here > > my $read_set = new IO::Select(); > $read_set->add($handle); > > my $file = ''; # accumulated stream data > > while (1) { > > my @ready = $read_set->can_read(0.1); > > # do any other stuff tha

Re: help with sockets

2006-11-07 Thread Alejandro Santillan
> > It seems that increasing the buffer more thant 1024 didn't help in all > > cases. It seems that this stream of data comes in several packets and the > > terminator string is !END! > > I've tried reading one byte at a time, using an $i as offset, and checking > > whenever the END pattern showed

Re: help with sockets

2006-11-07 Thread Alejandro Santillan
> Alejandro Santillan wrote: > > > Bill, I was using your solution successfully to read several messages sent > > by the server, but when trying to work some request, > > which had a longer answer, your buffer only gets: > ... > > How could I modify your routine, w

Re: help with sockets

2006-11-01 Thread Alejandro Santillan
>> The output was >> 8=FIX.4.0.C35=A52=10/26/2006 8:16:10 AM100=PFG10=999 >> What is simply correct, but if I put 58 instead of 57, the program hangs >> indefinitely. >> Obviously I don't know the lengh fo the message beforehand. >> >> Anyone has any idea why this happens and how to avoid it? > >

Re: help with sockets

2006-11-01 Thread Alejandro Santillan
>> The output was >> 8=FIX.4.0.C35=A52=10/26/2006 8:16:10 AM100=PFG10=999 >> What is simply correct, but if I put 58 instead of 57, the program hangs >> indefinitely. >> Obviously I don't know the lengh fo the message beforehand. >> >> Anyone has any idea why this happens and how to avoid it? > >Tr

time manipulation

2006-10-27 Thread Alejandro Santillan
I would like to know if there exists some module that is able con add and substract times. For example, I want to see the time in seconds between the beginning and ending of an application. Something like this: $a="13:12:01"; $b="13:02:01"; $c=$a-$b; I would like $c to be 00:10:00, or 600 secs.

Re: help with sockets

2006-10-26 Thread Alejandro Santillan
A52=10/26/2006 8:16:10 AM100=PFG10=999 What is simply correct, but if I put 58 instead of 57, the program hangs indefinitely. Obviously I don't know the lengh fo the message beforehand. Anyone has any idea why this happens and how to avoid it? Thanks Alejandro - Original Message

Re: help with sockets

2006-10-26 Thread Alejandro Santillan
A52=10/26/2006 8:16:10 AM100=PFG10=999 What is simply correct, but if I put 58 instead of 57, the program hangs indefinitely. Obviously I don't know the lengh fo the message beforehand. Anyone has any idea why this happens and how to avoid it? Thanks Alejandro - Original Message

help with sockets

2006-10-25 Thread Alejandro Santillan
I need to connect to a TCP server that uses a protocol called fix (financial information exchange) Basically the server receives a text string and answers with a text string also. The protocol is pretty simple, and it consists in a series of fields separated by the char alt+1:☺ $message1="8=FIX.4.

help with sockets

2006-10-25 Thread Alejandro Santillan
I need to connect to a TCP server that uses a protocol called fix (financial information exchange) Basically the server receives a text string and answers with a text string also. The protocol is pretty simple, and it consists in a series of fields separated by the char alt+1:☺ $message1="8=FIX.4.

Re: Win32::API problems

2006-10-18 Thread Alejandro Santillan
I've tried to access the application using Win32::OLE   #!/usr/bin/perl   use Win32::OLE;   $ex = Win32::OLE->new('C:\\Program Files\\PFG\\PFGAPI\\PFGAPI.exe') or die "oops\n";   And it died miserably. Any idea?   - Original Message ----- From:

Re: Win32::API problems

2006-10-18 Thread Alejandro Santillan
programming language that supports COM objects.  The examples that will follow demonstrate using the API functions in VB6.  Sample code demonstrating its use in other programming languages will be available separately.    am I in the right way? - Original Message - From: Alejandro

Win32::API problems

2006-10-18 Thread Alejandro Santillan
I am trying to access the method Connect, in the  PGFAPI.exe unsuccessfully. The code is what follows:   #!/usr/bin/perl   use Win32::API;use Win32::Process;   #first I check that I am able to create the process: Win32::Process::Create($obj, "C:\\Program Files\\PFG\\PFGAPI\\PFGAPI.exe",  

Re: Document flow

2006-02-28 Thread Alejandro Santillan
: "Johan Lindstrom" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 28, 2006 4:17 PM Subject: Re: Document flow At 19:31 2006-02-28, Alejandro Santillan Iturres wrote: >Anyone know about a perl module for document flow management? Not sure what you mean by _document_ flow, but

Document flow

2006-02-28 Thread Alejandro Santillan Iturres
Anyone know about a perl module for document flow management? Tks Alejandro ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Executing an external program from a perl scrip.

2005-12-05 Thread Alejandro Santillan
Trying to migrate a perl script from linux to windows (IIS), I need to execute a command line from within the perl script. This snippet worked fine in linux (provided the path is correct), but it didn't work in windows: $sys="C:/antiword/antiword.exe -t -w 1 document.doc > C:/Inetpub/wwwroot/s

Creating a new directory from a script under windows

2005-12-05 Thread Alejandro Santillan
I am programing a cgi that performs a series of tasks while interacting with the client and that should keep a session alive for a week. In order to do that I decided to create a session directory each time a client sings up. The directory is create while the scrip runs under linux, but under windo

Re: book-style output

2005-11-09 Thread Alejandro Santillan Iturres
>Without the hypens, you could use Text::Wrap. The hyphen slitting needs >some sort of splitting dictionary. You could search CPAN and see if >there's anything there under the Text tree. Yes, hyphenation is a necessary feature, definitely. Alejandro

book-style output

2005-11-08 Thread Alejandro Santillan Iturres
I need to format an output in a book-style way, that is, a fixed quantity of chars and splitting exceeding words and inserting a dash whenever the word allows it. Is there a module or a procedure to accomplish this task?   Thank you.   ___ Perl-Win3

I am using **split** incorrectly?

2005-11-06 Thread Alejandro Santillan Iturres
Dear all, I need to separate a text in lines, and print each line, but below each line printed, I need the line printed but each char at a time, separated by colons. I used the following snipet, and it separates right each line, but the splitting of each line in chars happens in a weird manne

Re: convert winword .doc to .txt, or .rtf to .txt

2005-10-20 Thread Alejandro Santillan Iturres
ript? - Original Message - From: "Richard Morse" <[EMAIL PROTECTED]> To: "Alejandro Santillan Iturres" <[EMAIL PROTECTED]> Cc: Sent: Friday, October 14, 2005 6:00 PM Subject: Re: convert winword .doc to .txt, or .rtf to .txt For RTF, search.cpan.o

convert winword .doc to .txt, or .rtf to .txt

2005-10-14 Thread Alejandro Santillan Iturres
I need to manipulate a file in windows word format (or .rtf). The script receives an uploaded file and need to count words, replace words, reformat spaces, tabs and \n's and publish it on the web. For this sake I need first convert the file to plain txt format. I did it successfully in a windows X

Email Attachments

2005-09-28 Thread Alejandro Santillan Iturres
I was trying to get an email attachment downloaded into a file unsuccessfully. I used the following simple script:     use Mail::POP3Client;use MIME::Parser   #email part $pop = new Mail::POP3Client( USER => "aba", PASSWORD => "aba", 

getting the scrip name from the script itself

2005-09-22 Thread Alejandro Santillan Iturres
Is there a way to know the scrip name from within the script itself? Thank you Alejandro ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: warning messages on module Win32::Process::Memory

2005-08-31 Thread Alejandro Santillan Iturres
>It seems to me that when you get a warning, you're doing something wrong >or it wasn't coded to take all possibilities into consideration - so I >never turn off warnings or strict. I already found two legit bugs in that >module, so I'm guessing there are more to find. I agree about the warnings.

Re: warning messages on module Win32::Process::Memory

2005-08-30 Thread Alejandro Santillan Iturres
Bill, this is the snippet I am using: use strict; use warnings; use Win32::Process::Memory; my $line=""; my $proc = Win32::Process::Memory->new({ name=>'Trademaven.exe' }) or die; my %memlist = $proc->get_memlist; foreach (sort { $a <=> $b } keys %memlist) { $line=$proc->hexdump($_, $memlist{$_

warning messages on module Win32::Process::Memory

2005-08-30 Thread Alejandro Santillan Iturres
When using the module Win32::Process::Memory under windows I get a LOT of warning messages like:     "Use of uninitialized value in sprintf at C:/Perl/site/lib/Win32/Process/Memory.pm line 94.substr outside of string at C:/Perl/site/lib/Win32/Process/Memory.pm line 94.substr outside of strin

Re: Win 32 memory access

2005-08-29 Thread Alejandro Santillan Iturres
uot;\n"; #I replaced this line by the three following lines: $line= $proc->hexdump($_, $memlist{$_}) . "\n"; ($begin,$middle,$end)=split(/:/,$line); $everything=$everything.$end; } print $everything; Thank you very much, Alejandro - Original Message - From: "$Bill

Re: Win 32 memory access

2005-08-29 Thread Alejandro Santillan Iturres
he syntax. Maybe something like: my @results = $proc->search_float(1196.00,1197.00); print $proc->hexdump($_, 0x32)."\n" foreach @results; ? Thanks again, Alejandro - Original Message - From: "$Bill Luebkert" <[EMAIL PROTECTED]> To: "Alejandro Santillan I

Re: Win 32 memory access

2005-08-28 Thread Alejandro Santillan Iturres
"\n" foreach @results; As far as I know the search is not documented and I cannot arrive to know what the numbers (92, 87, 105, 110, 51, 50) mean. Bill, are you able to explain it? Alejandro - Original Message ----- From: "Alejandro Santillan Iturres" <[EMAIL PROTECT

Re: Win 32 memory access

2005-08-27 Thread Alejandro Santillan Iturres
AIL PROTECTED]> To: "Alejandro Santillan Iturres" <[EMAIL PROTECTED]> Cc: Sent: Saturday, August 27, 2005 12:20 PM Subject: Re: Win 32 memory access Alejandro Santillan Iturres wrote: Well, the number is 1223.56 for just a couple of seconds (it is the S&P500 value). But i

Re: Win 32 memory access

2005-08-27 Thread Alejandro Santillan Iturres
dump of this program in the form of a text file so I am able to parse it beforehand. Thanks Bill, Alejandro - Original Message - From: "$Bill Luebkert" <[EMAIL PROTECTED]> To: "Alejandro Santillan Iturres" <[EMAIL PROTECTED]> Cc: Sent: Saturday, August

Re: Win 32 memory access

2005-08-27 Thread Alejandro Santillan Iturres
And what module do you suggest to use instead in order to read the memory of a win32 applitation? Thanks, Alejandro - Original Message - From: "Sisyphus" <[EMAIL PROTECTED]> To: "Alejandro Santillan Iturres" <[EMAIL PROTECTED]>; Sent: Friday, Augu

Win 32 memory access

2005-08-26 Thread Alejandro Santillan Iturres
aybe I am not gettin the complete memory allocated by the program. Could someone please point me to any source of knowledge about it. Is there any discussion group a propos? Alejandro Santillan PS: I am adding below the script I am using on a windows XP box, but