At 05:53 AM 12/1/2005 -0800, [EMAIL PROTECTED] wrote:
random <> unique.
If you want unique numbers also put your routine above in
your program and discard duplicates.
True but over some interval they should be unique. If they're going to
repeat every 10 or 20 times u hit the submit
Glenn Linderman wrote:
> I'd recommend trying without the quotation marks (as none of your path
> names seem to contain white space), or with quotation marks around some
> or all individual arguments on the command line, as in
>
> C:\>svnnotify "--repos-path" "svn://myserver/taguti/Repo/myProject
On Thu, 01 Dec 2005, Ted Schuerzinger wrote:
> > Just for fun I did a little test.
> > for (1 .. 1) {
> > my $fn = rand();
> > ++$dup and next if exists $num{$fn};
> > $num{$fn} = 1;
> > }
> > print scalar keys %num, " unique numbers. $dup duplicates produced\n";
> >
>
> Just
Jan:
Thanks for the clarification. Even using require instead of use and only using
Win32::OLE inside of a single thread, I was not able to get past the OLE error.
I have since restructured my program to do OLE access from within the main
thread of the service and then let worker threads hand
Well, you certainly have created quite a rant here.
But if you are looking for unique filenames, have you tried this?
use Time::HiRes qw (time);
printf("%0.6f\.txt",time);
Just a thought.
It's also guaranteed no dupes for about 20 years, unless you want lots
of file names in a VERY VERY short a
- Original Message -
From: "Ted Schuerzinger" <[EMAIL PROTECTED]>
To:
Sent: Friday, December 02, 2005 2:53 AM
Subject: Hash limits? (Was: Re: rand() not so random)
> [EMAIL PROTECTED] (Chris Wagner) graced perl with these words of
> wisdom:
>
> > Just for fun I did a little test.
> > f
--- "Brian H. Oak" <[EMAIL PROTECTED]> wrote:
> I'm trying to integrate RSA encryption and signing
> into a couple of
> Perl programs on Windows, using Crypt::RSA. I have
> no problem
> generating keys and using them immediately for
> encryption, decryption,
> signing, and verification. My pro
On Thu, 1 Dec 2005 12:05:11 -0800, you wrote:
>[EMAIL PROTECTED] (Chris Wagner) graced perl with these words of
>wisdom:
>
>> Just for fun I did a little test.
>> for (1 .. 1) {
>> my $fn = rand();
>> ++$dup and next if exists $num{$fn};
>> $num{$fn} = 1;
>> }
>> print scala
At 05:53 AM 12/1/2005 -0800, [EMAIL PROTECTED] wrote:
>random <> unique.
>
>If you want unique numbers also put your routine above in
>your program and discard duplicates.
True but over some interval they should be unique. If they're going to
repeat every 10 or 20 times u hit the submit button, t
[EMAIL PROTECTED] wrote:
I know it "shouldn't" make a difference, but we all know that things that
shouldn't, do. I wasn't seeding it explicitly, was letting perl handle
it.
Unless it's a bug, my theory is that mod_perl is keeping the old seed from
the last compile. Mod_perl does not recompile
Wait, I screwed up that last email. The uniques is the number of hash keys.
At 10:53 AM 12/1/2005 -0500, Ted Schuerzinger wrote:
>> for (1 .. 1) {
>> my $fn = rand();
>> ++$dup and next if exists $num{$fn};
>> $num{$fn} = 1;
>> }
>> print scalar keys %num, " unique numbers.
At 10:52 AM 12/1/2005 -0500, Ted Schuerzinger wrote:
>You weren't expecting *fewer* duplicates, were you?
Well actually, among numbers out to 12 decimal places, yes. I'ld say there
should be no duplicates until the number of iterations gets to some
significant proportion of the combinations. The
At 10:53 AM 12/1/2005 -0500, Ted Schuerzinger wrote:
>Just for fun, I changed one of the lines in that to
>
>for (1 .. 100) {
>
>When I ran the modified script, I got 32768 unique numbers, with 967232
>duplicates! As 32768 is a power of 2, I'm wondering if there's a limit on
>the number of
[EMAIL PROTECTED] (Chris Wagner) graced perl with these words of
wisdom:
> Just for fun I did a little test.
> for (1 .. 1) {
> my $fn = rand();
> ++$dup and next if exists $num{$fn};
> $num{$fn} = 1;
> }
> print scalar keys %num, " unique numbers. $dup duplicates produced\n
I'm trying to integrate RSA encryption and signing into a couple of
Perl programs on Windows, using Crypt::RSA. I have no problem
generating keys and using them immediately for encryption, decryption,
signing, and verification. My problems have been with storing the
keys I've created for later us
[EMAIL PROTECTED] (Chris Wagner) graced perl with these words of
wisdom:
> Just for fun I did a little test.
> for (1 .. 1) {
> my $fn = rand();
> ++$dup and next if exists $num{$fn};
> $num{$fn} = 1;
> }
> print scalar keys %num, " unique numbers. $dup duplicates produced\n
> I know it "shouldn't" make a difference, but we all know that things that
> shouldn't, do. I wasn't seeding it explicitly, was letting perl handle
> it.
> Unless it's a bug, my theory is that mod_perl is keeping the old seed from
> the last compile. Mod_perl does not recompile or even reinitial
Hello,
Anyone using SVN::Notify on Win32?
I'm a new comer to Subversion, and I like to send mail on
the commit time on Subversion running on Windows XP.
Today I installed SVN::Notify by ppm "install SVN-Notify".
Installation seems OK, but installed bat file, "svnnotify.bat"
does'n run well.
C:\>
Whoever it is a Verisign that is subscribed to this list. Fix ur stupid
email address! I don't want to get anymore of these spam messages!
At 10:49 PM 11/30/2005 -0800, [EMAIL PROTECTED] wrote:
>THIS IS AN AUTO-REPLY: On November 18, 2005, VeriSign Payment Services was
acquired by PayPal and we
19 matches
Mail list logo