[25306] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 7551 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Dec 22 11:06:18 2004

Date: Wed, 22 Dec 2004 08:05:13 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 22 Dec 2004     Volume: 10 Number: 7551

Today's topics:
    Re: [OT] ASCIIgram for square root <dak@gnu.org>
        copy mysql database with perl <wangpenghui@realss.com>
    Re: copy mysql database with perl <wherrera@lynxview.com>
    Re: generating a session id ioneabu@yahoo.com
    Re: generating a session id ioneabu@yahoo.com
    Re: generating a session id <1usa@llenroc.ude.invalid>
    Re: help for exec with command lines with spaces <zen13097@zen.co.uk>
    Re: input <>; not working? <bustanut2020@yahoo.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 22 Dec 2004 11:18:24 +0100
From: David Kastrup <dak@gnu.org>
Subject: Re: [OT] ASCIIgram for square root
Message-Id: <x5sm5y4owf.fsf@lola.goethe.zz>

Ed Murphy <emurphy42@socal.rr.com> writes:

> On Wed, 22 Dec 2004 01:56:47 +0000, Nicholas O. Lindan wrote:
>
>> Slightly OT,
>
> Only slightly?
>
>> is there an accepted ASCII-gram for square root?
>
>                                  _______
>  _                              /(x+y)*z
> v2 would be my suggestion, or  / ------- for more complex expressions.
>                               v    a+2
>
> sqrt(2) or 2^.5 is generally more manageable, though.

Well Emacs Calc suggests

  ___________
 | (x + y) z
 | ---------
\|   a + 2

and there is something to be said for your Usenet reader to be able to
manipulate simple formulas graphically.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


------------------------------

Date: Wed, 22 Dec 2004 20:36:24 +0800
From: Wang Penghui <wangpenghui@realss.com>
Subject: copy mysql database with perl
Message-Id: <32t835F3pe79hU1@individual.net>

Hi all.

Could perl copy mysql database just like mysqlhotcopy do?
Such as i have a database named "a" in mysql. Then i want to get a 
snapshot of it. And the snapshot called "b" as another database in 
mysql. Is it possible or not?

Thanks advance!

Wang


------------------------------

Date: 22 Dec 2004 05:52:26 -0800
From: "Bill" <wherrera@lynxview.com>
Subject: Re: copy mysql database with perl
Message-Id: <1103723546.464370.324260@c13g2000cwb.googlegroups.com>

use CPAN;

use DBIx::Admin::BackupRestore;

Merry Christmas;



------------------------------

Date: 21 Dec 2004 21:31:17 -0800
From: ioneabu@yahoo.com
Subject: Re: generating a session id
Message-Id: <1103693477.935232.4960@f14g2000cwb.googlegroups.com>

I see your point.  I was wrong to respond the way I did.  I really do
want to be a great Perl programmer.  I did learn a valuable lesson
today.  There is a lot to be learned in the code of cpan modules.  I
will study the code of the masters and do my best to understand it
before posting another dumb, poorly worded question.  Thanks for still
taking the effort to help me out even after I was so disrespectful.
Sorry.

wana



------------------------------

Date: 22 Dec 2004 00:11:08 -0800
From: ioneabu@yahoo.com
Subject: Re: generating a session id
Message-Id: <1103703068.527377.224900@c13g2000cwb.googlegroups.com>

http://userpages.umbc.edu/~mabzug1/cs/md5/md5.html

The unofficial MD5 home page has information on collision weakness of
MD5.  This could be a potential security risk since, hypothetically, an
attacker could calculate a collision pair and use that information to
get a working session id illegitimately.  If the point of using MD5 is
to ensure a unique value for the session id, it would seem that
querying the database table of session ids to ensure that a new id is
unique prior to entering it in the table would be a good idea.



------------------------------

Date: 22 Dec 2004 14:33:32 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: generating a session id
Message-Id: <Xns95C7613DD7C5Casu1cornelledu@132.236.56.8>

ioneabu@yahoo.com wrote in news:1103703068.527377.224900
@c13g2000cwb.googlegroups.com:

> http://userpages.umbc.edu/~mabzug1/cs/md5/md5.html
> 
> The unofficial MD5 home page has information on collision weakness of
> MD5.  

Thank you for pointing that out. I am not sure exactly what this means for 
the validity of using MD5 for session keys, but it is good to keep in mind.

> to ensure a unique value for the session id, it would seem that
> querying the database table of session ids to ensure that a new id is
> unique prior to entering it in the table would be a good idea.

You are missing the point of session hijacking. 

-- 
A. Sinan Unur
1usa@llenroc.ude.invalid 
(remove '.invalid' and reverse each component for email address)



------------------------------

Date: 22 Dec 2004 08:34:29 GMT
From: Dave Weaver <zen13097@zen.co.uk>
Subject: Re: help for exec with command lines with spaces
Message-Id: <41c93195$0$27242$db0fefd9@news.zen.co.uk>

On 28 Nov 2004 10:23:32 -0800, PilotMI80 <pilotmi80@hotmail.com> wrote:
>  Finally I managed to do what I wished :
>  my $ProgramExe = "\"C:\\The path to the\\executable.exe\"";

FYI, Perl has many quoting operators to help you make your code readable.
You could write the above in a much neater way:

  my $ProgramExe = '"C:\The path to the\executable.exe"';
or
  my $ProgramExe = q("C:\The path to the\executable.exe");

Future maintainers of your code (yourself included) will thank you
for doing it this way! :-)


------------------------------

Date: Wed, 22 Dec 2004 12:27:28 GMT
From: "Billy" <bustanut2020@yahoo.com>
Subject: Re: input <>; not working?
Message-Id: <QKdyd.694315$mD.286162@attbi_s02>


"A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
news:Xns95C6EFA2B8759asu1cornelledu@132.236.56.8...
> C:\Dload> perl -v
>
> This is perl, v5.8.6 built for MSWin32-x86-multi-thread
> (with 3 registered patches, see perl -V for more detail)

Perl version 5.6.0 built for IP27-irix

Billy




------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 7551
***************************************


home help back first fref pref prev next nref lref last post