Re: WWW:Mechanize and Proxies

2006-03-09 Thread willem
nt variables. You might specify proxies like this (sh-syntax): gopher_proxy=http://proxy.my.place/ wais_proxy=http://proxy.my.place/ no_proxy="localhost,my.domain" export gopher_proxy wais_proxy no_proxy willem ___ Perl-Win32-U

Re: FW: Win32::API help

2006-03-09 Thread willem
: todptr=00046770 1141891285,1614923216,8,1,25,80,-60,310,9,3,2006,4 willem use strict; use warnings; use Win32::API; use Encode qw(encode); my $GetTOD = new Win32::API('Netapi32','NetRemoteTOD','PP','N') or die "NetRemoteTOD\n"; my $native_string = "thinktop";

Re: FW: Win32::API help

2006-03-09 Thread willem
nters as an integer, and pass it the pointer to something you got from another api, as integer value. willem ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Win32::API help

2006-03-08 Thread willem
Bullock, Howard A. wrote: >With the help of willem my new code follows. It returns zero (0) as the >return code but the buffer does not appear to contain the expected data. >Any additional insights would be appreciated. > >tod_elapsedt = 388696 <- this val always the same >

Re: Win32::API help

2006-03-08 Thread willem
ts in your code everything seems perfecty aligned to dwords. you should write this with one unpack call, like this: ( undef, undef, $tod_hours, $tod_mins, $tod_secs, undef, $tod_timezone, undef, $tod_day, $tod_month, $tod_year, undef )= unpack("L6lL5", $lpBuffer); willem ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Win32::API Help

2006-02-18 Thread willem
ry for you to show how you could solve this: i use a memcpy with one int param instead of a ptr, to copy the contents of the allocated buffer to a perl string. this example prints the message for error code '0' : 'The operation completed successfully.' willem

Re: Win32::API Help

2006-02-16 Thread willem
Sisyphus wrote: >>my $DsEnumerateDomainTrusts = new Win32::API('Netapi32', >>'DsEnumerateDomainTrusts', 'PNPP', 'N'); >> >> > > in my netapi32.dll there is no DsEnumerateDomainTrusts, it contains a DsEnumerateDo

Re: [OT] Number logic puzzle

2005-10-17 Thread willem
($res+$_)*$x for @poly; return $res/2520; } printf(" %2d", int(30/8*$_)+1+poly($_%8)) for (0..20); for 2,3,5 and 7 you would have to start with 210/48 .. and find a 48 order polynomial. willem ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: involuntarily daly a script

2005-09-08 Thread willem
; trigger the unwanted sleep of my scripts? > your process gets delayed when you output stuff to the console. if you redirect your output to a file, your process will not get delayed. also, you can disable 'quickedit' in the options of a dosbox. willem __

Re: "How do I make a PPM package?" - don't have tar or gzip

2005-04-26 Thread willem
a version >for Windows, or is there an alternate way to create the tarball? > > get http://www.cygwin.com can't live without it under windows. willem ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubsc

Re: Help for debugging Win32::API DLL interface

2005-02-04 Thread willem
support api's declared with 'cdecl'. maybe your dll has functions declared that way? If this is the case, see a patch I made to Win32::API, to support cdecl type functions too: see http://www.xs4all.nl/~itsme/projects/perl/ willem ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: How to use "#! perl " to directly run perl script on Win32 platform?

2005-01-21 Thread willem
ension must be associated with appropriate perl executable. and add ".pl" to the PATHEXT environment variable. willem ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Atrocious performance on W2K PIII

2004-12-06 Thread willem
Laurent Duperval wrote: It looks like the issue is at the Perl level. Whenever I run a script (for example, the PPM script), the CPU run amok. When I launch PPM, it takes 10-15 seconds before I get the prompt. are you maybe running a virus scanner? that is scanning every file access? willem

Re: DH horsepower using InlineC and CryptoAPI

2004-11-01 Thread Willem Hengeveld
bout using diffiehellman, there is no need to generate new primes. it works just fine with fixed published primes. http://www.faqs.org/rfcs/rfc3526.html for instance provides primes of various sizes. these primes are all proven to be primes, and

Re: Random?

2004-10-12 Thread Willem Hengeveld
d " you can use openssl from cygwin. or maybe use http://search.cpan.org/~iroberts/Crypt-OpenSSL-Random-0.03/Random.pm ( haven't tried to see if it works under windows. ) willem ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: h

Re: How to write verify code program in perl?

2004-09-04 Thread Willem Hengeveld
t to tell Computers and Humans Apart) or HIP (Human Interactive Proof) one of the most commonly used is called 'ez-gimpy' look for it in google. willem ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.Acti

Re: Perl and RC4: Understanding Extremely Compact Script

2004-08-19 Thread Willem Hengeveld
On Thu, Aug 19, 2004 at 04:09:05AM -0700, Jeremy Junginger wrote: > In attempting to better understand the underlying mechanisms at work with the > RC4 encryption algorithm and its associated weaknesses, I began writing a > perl script to replicate it (for educational purposes only). Just At the >

Re: Any way to process passwords in Archive::Zip ????

2004-07-29 Thread Willem Hengeveld
zip.org/pub/infozip/ download from ftp://ftp.icce.rug.nl/infozip/src/ if you are looking for zip password cracking software: http://www.elcomsoft.com/azpr.html or a paper on problems with the new winzip encryption: http://www.cs.ucsd.edu/users/tkohno/pa

Re: Editor - finding lines

2004-05-27 Thread Willem Hengeveld
, and then pipe the whole contents of my current window through perl, with '!Gperl' so I can easily experiment with the data while keeping it in my editor. ( always fun to have a 'my XYZ is better'-type discussion. ) willem ___ P