Extracting digits from images

2006-11-07 Thread h-taguchi
Hello, I'm making a script to operate 2 diffirent applications by Win32::GuiTest and to check the mumbers displayed by the 2 apps. The mumbers are displayed in the corner of its windows in images so I must extract the digits from these images. I tried Image::Compare, but this is too strict. 2 ap

Re: help with sockets

2006-11-07 Thread $Bill Luebkert
Alejandro Santillan wrote: > The $i reaches the number 57, before hanging. It seems that well before > reaching > the !END! string it reads some char undef or something. You need to check $bytes for error and EOF before reading again. >>>whereas: >>> >>> >my $buffer; >my $bytes = sysread

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: What do you do?

2006-11-07 Thread Thomas, Mark - BLS CTR
You can encrypt the passwords in a file, but keep in mind that anyone that can access the code can retrieve the password. It's best to also make sure that the user account only has permission to do what it needs, and nothing else. -- Mark Thomas Internet Systems Architect __

Re: What do you do?

2006-11-07 Thread Dennis Daupert
Mark Funk said: >I keep the username and password hardcode >(in plain text) in the script. >I would like to use an encrypted method. >What do you do? I use Crypt::CBC with Blowfish cipher. I encrypt the password, record in config file. Then in scripts that use that password, I have a routine t

What do you do?

2006-11-07 Thread Mark Funk
Folks, I have several Perl scripts that log into servers and I keep the username and password hardcode (in plain text) in the script. I would like to use an encrypted method. Just wondering what options are out there. What do you do? Thanks, David M. Funk President/CEO Tivoli Certified Enterpr

Re: help with sockets

2006-11-07 Thread $Bill Luebkert
Alejandro Santillan wrote: >>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 ro

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, which is the following: > > > > my