[15653] in Perl-Users-Digest
Perl-Users Digest, Issue: 3066 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue May 16 18:11:01 2000
Date: Tue, 16 May 2000 15:10:28 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <958515027-v9-i3066@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Tue, 16 May 2000 Volume: 9 Number: 3066
Today's topics:
Re: CVS for perl projects books@jumpspace.net
Re: CVS for perl projects <you.will.always.find.him.in.the.kitchen@parties>
Re: deleting from a hash by reference... <aqumsieh@hyperchip.com>
Re: Forms with Perl <russ_jones@rac.ray.com>
Getopt::Std 1 == 0 ??? gregsptl1962@my-deja.com
Getopt::Std 1 == 0 ??? gregsptl1962@my-deja.com
Re: Getopt::Std 1 == 0 ??? <aperrin@davis.DEMOG.Berkeley.EDU>
Guestbook... Kinda? <kjostudio@hotmail.com>
Re: Guestbook... Kinda? (Jerome O'Neil)
Re: Guestbook... Kinda? <occitan@esperanto.org>
Re: How to COPY a website <russ_jones@rac.ray.com>
Re: How to COPY a website <alan-silver@prestwich-smile-gemach.freeserve.furryferret.co.uk>
Re: How to COPY a website (Jerome O'Neil)
Re: How to COPY a website (Randal L. Schwartz)
Re: How to COPY a website (Jerome O'Neil)
Re: How to COPY a website (Randal L. Schwartz)
Re: How to COPY a website <jeff@vpservices.com>
Re: How to COPY a website (Jerome O'Neil)
Re: How to find distances? <russ_jones@rac.ray.com>
Re: How to find distances? <ewald@electronicfrontiers.com>
Re: Imprecision in perl ? <franl-removethis@world.omitthis.std.com>
Re: Imprecision in perl ? <franl-removethis@world.omitthis.std.com>
Re: insert a link in a specific place in aweb page <rootbeer@redcat.com>
Re: insert a link in a specific place in aweb page <rootbeer@redcat.com>
iPerl V0.53 out now with various fixes (de, en & eo) <occitan@esperanto.org>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 16 May 2000 14:17:58 -0400
From: books@jumpspace.net
Subject: Re: CVS for perl projects
Message-Id: <392190d6@news.hcs.net>
Jean-Philippe Bouchard <jeanphil@sitepak.com> wrote:
> Well, the problem is that we need to keep the sources live at all time.
> So what we do right now is create a dummy checkout where we want the
> sources to be and we do update on that checkout everytime a developer
> does a commit. This brings a lot of overhead (we have a lot of files in
> the repository) and we were wondering if there would be alternative to
> this...
As far as I can tell when you do a commit only the changed files are
written, as you would expect. When you do an update it only updates
those files which have changed. I can't see much less overhead than
moving the changed files into the dummy directory no matter what you
use.
Roger Books
---------------------------------------------------------------------
| Unix sysadmin for food, LF photography and miniautres |
| wargames for fun. books@jumpspace.net, http://www.jumpspace.net |
---------------------------------------------------------------------
------------------------------
Date: Wed, 17 May 2000 08:43:09 +1200
From: "Tintin" <you.will.always.find.him.in.the.kitchen@parties>
Subject: Re: CVS for perl projects
Message-Id: <958509752.343093@shelley.paradise.net.nz>
"Jean-Philippe Bouchard" <jeanphil@sitepak.com> wrote in message
news:39218142.EAA6947A@sitepak.com...
> Jerome O'Neil wrote:
> >
> > In article <39215DC1.67CED0F4@sitepak.com>,
> > Jean-Philippe Bouchard <jeanphil@sitepak.com> writes:
> > > Hello,
> > > We've decided to use CVS to maintain our perl sources tree. We
looked
> > > for perl specific issues but weren't able to find any precedent on the
> > > web or in the documentation. If you are aware of such project going on
> > > (using CVS or any other source control software) could you please let
us
> > > know.
> >
> > I'm not quite sure what your issues would be. Yoy can check perl into
> > a CVS repository just like any other code.
> >
> > What exactly is the problem?
> Well, the problem is that we need to keep the sources live at all time.
> So what we do right now is create a dummy checkout where we want the
> sources to be and we do update on that checkout everytime a developer
> does a commit. This brings a lot of overhead (we have a lot of files in
> the repository) and we were wondering if there would be alternative to
> this...
You will only have a lot of overhead if you are talking about tens of
thousands of files and accessing the CVS repository remotely running over a
slow link and doing many commits (if this is the case, then you are using
CVS in an inefficient way).
Why not make use of CVS modules? That way you can categorise your distinct
CVS trees, so only do an update on the appropriate module.
The other way is to parse the commit log, so that you can do an update on
the specific files. You'll need have some sort of timestamp tracking, but
it shouldn't be too hard.
------------------------------
Date: Tue, 16 May 2000 20:04:30 GMT
From: Ala Qumsieh <aqumsieh@hyperchip.com>
Subject: Re: deleting from a hash by reference...
Message-Id: <7a7lcudzz3.fsf@Merlin.i-did-not-set--mail-host-address--so-shoot-me>
nobull@mail.com writes:
> Ala Qumsieh <aqumsieh@hyperchip.com> writes:
>
> > > I would like to do the following, but of course it doesn't work:
> > >
> > > $ref = \$main{$node}{$key}{$text};
> > > delete ( $ref );
>
> > You can't do it that way (as you have noticed). The reason is that
> > delete() needs to know the hash to delete from, and the key to
> > delete.
>
> But you can do:
>
> undef $$ref;
>
> This is not the same but it is quite likely that it is sufficient for
> your needs.
This doesn't do what the OP wanted. Maybe he/she has some valid undef
values. You can't make any assumptions based on the original question.
> > One trick, which requires a bit of memory, is to keep a record of the
> > keys you used to get to your value:
> >
> > $ref = [\$main{$node}{$key}{$text}, $node, $key, $text];
> >
> > Then, you can delete them later:
> >
> > delete $main{$ref->[1]}{$ref->[2]}{$ref->[3]};
>
> Of course if $ref->[3] was the last subscript at that level it will
> leave you with a dangling empty hash which is probably not what is
> wanted if you are not happy to simply use undef() rather than delete()
> in the first place.
But this will happen with any hash if you delete its last element. So I
don't see the relevance of your point there.
--Ala
------------------------------
Date: Tue, 16 May 2000 14:46:48 -0500
From: Russ Jones <russ_jones@rac.ray.com>
Subject: Re: Forms with Perl
Message-Id: <3921A5A8.B320ECE@rac.ray.com>
Christian Winter wrote:
>
> Ian <duxbury@kentmere23.freeserve.co.uk> schrob:
> > When I try to run this script on my windows ActivePerl I get this prompt "
> > (offline mode: enter name=value pairs on standard input)". Can anyone tell
> > me what it means, I just trying to learn how to send data to forms.Thanks.
>
> Yes, and this is what your script expects. You may now enter
> as meny lines of name=value pairs as you like, e.g.
>
> button1=yes
> button2=yes
> text1='this is a test'
> [CTRL+D]
>
> But you can also specify this values on the command line of
> the script,
>
> perl myscript.cgi button1=yes button2=yes text1='this is a test'
> should spare you input prompt (i'm not quite sure of windows
> likes the single ticks, yous double quotes if you get an error).
>
Or (and I like this one the best) you can create a file that has all
your values in it, like this:
button1=yes
button2=no
etc,
and then run your script
perl myscript.cgi < parm.file
and save yourself all that typing.
--
Russ Jones - HP OpenView IT/Operatons support
Raytheon Aircraft Company, Wichita KS
russ_jones@rac.ray.com 316-676-0747
When cryptography is outlawed, only outlaws will
A2bgg c4dc8 aji0i knS4E 7eFj8 22Rl1
ZdGg3 gu8i6 lu12N s6NoG gn3g3 q835n
------------------------------
Date: Tue, 16 May 2000 18:59:31 GMT
From: gregsptl1962@my-deja.com
Subject: Getopt::Std 1 == 0 ???
Message-Id: <8fs5qa$q3t$1@nnrp1.deja.com>
#!/usr/bin/perl
#!/usr/bin/perl -dw
use Getopt::Std;
getopts ('c:'); # set -c to the skip count
$Getopt::Std::opt_c = '1' unless
$Getopt::Std::opt_c;
# Set count by default to 1
print "$Getopt::Std::opt_c\n"; # Debug Why's -c 0
== 1???
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Tue, 16 May 2000 18:59:30 GMT
From: gregsptl1962@my-deja.com
Subject: Getopt::Std 1 == 0 ???
Message-Id: <8fs5q8$q3s$1@nnrp1.deja.com>
#!/usr/bin/perl
#!/usr/bin/perl -dw
use Getopt::Std;
getopts ('c:'); # set -c to the skip count
$Getopt::Std::opt_c = '1' unless
$Getopt::Std::opt_c;
# Set count by default to 1
print "$Getopt::Std::opt_c\n"; # Debug Why's -c 0
== 1???
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 16 May 2000 13:00:07 -0700
From: Andrew Perrin - Demography <aperrin@davis.DEMOG.Berkeley.EDU>
Subject: Re: Getopt::Std 1 == 0 ???
Message-Id: <u5kog66b708.fsf@davis.DEMOG.Berkeley.EDU>
gregsptl1962@my-deja.com writes:
> #!/usr/bin/perl
> #!/usr/bin/perl -dw
>
> use Getopt::Std;
> getopts ('c:'); # set -c to the skip count
>
> $Getopt::Std::opt_c = '1' unless
> $Getopt::Std::opt_c;
> # Set count by default to 1
Since you provided no actual question, I assume from your comment
below that you're wondering why giving -c 0 as the argument ends up
with $Getopt::Std::opt_c as 1. Your answer can be found by
understanding the truth-value of 0.
As an exercise in understanding, try:
perl -e'0 ? print "True\n" : print "False\n";'
ap
>
> print "$Getopt::Std::opt_c\n"; # Debug Why's -c 0
> == 1???
--
---------------------------------------------------------------------
Andrew J. Perrin - aperrin@demog.berkeley.edu - NT/Unix Admin/Support
Department of Demography - University of California at Berkeley
2232 Piedmont Avenue #2120 - Berkeley, California, 94720-2120 USA
http://demog.berkeley.edu/~aperrin --------------------------SEIU1199
------------------------------
Date: Tue, 16 May 2000 11:31:52 -0700
From: "Kevin Ostrowski" <kjostudio@hotmail.com>
Subject: Guestbook... Kinda?
Message-Id: <#qHIGU2v$GA.230@cpmsnbbsa03>
Does anyone know of a script that does this?
A user fills out a form, lets say it is a concert review...
I need it to be saved as HTML, but not posted live as the content needs to
be approved first.
Ideally I would like to have the content emaild to me with a choice to
approve or decline the message,
it also needs to be able to have the look custumized...
The reason this is so despertally needed is as of now hundred's of reviews
need to be manually coppied and pasted into HTML files every day, and it's
making me go insane!!!!!!!!! Please help
Kevin Ostrowski
------------------------------
Date: Tue, 16 May 2000 18:39:01 GMT
From: jerome@activeindexing.com (Jerome O'Neil)
Subject: Re: Guestbook... Kinda?
Message-Id: <9BgU4.354$Wh6.16302@news.uswest.net>
In article <#qHIGU2v$GA.230@cpmsnbbsa03>,
"Kevin Ostrowski" <kjostudio@hotmail.com> writes:
> The reason this is so despertally needed is as of now hundred's of reviews
> need to be manually coppied and pasted into HTML files every day, and it's
> making me go insane!!!!!!!!! Please help
You should hire a contract programmer to write an application to
meet your needs. However, this isn't an appropriate place to
do that.
Check one of the *.jobs newsgroups, or one of the many websites
dedicated to connecting conractors with contractees.
Good Luck!
------------------------------
Date: Tue, 16 May 2000 21:18:33 GMT
From: Daniel Pfeiffer <occitan@esperanto.org>
Subject: Re: Guestbook... Kinda?
Message-Id: <8fsduo$3rk$1@nnrp1.deja.com>
In article <#qHIGU2v$GA.230@cpmsnbbsa03>,
"Kevin Ostrowski" <kjostudio@hotmail.com> wrote:
> A user fills out a form, lets say it is a concert review...
> I need it to be saved as HTML, but not posted live as the content
> needs to be approved first.
> Ideally I would like to have the content emaild to me with a choice to
> approve or decline the message,
> it also needs to be able to have the look custumized...
My iPerl (see signature below and look at Example1 in the doc section)
has a complete guestbook written in iPerl (HTML-document with embedded
bits of Perl). It doesn't exactly fit your needs, but can easily be
adapted if you know some Perl: For one thing, since it is HTML, you can
edit it with any web editor. For another, you have to look at the
<script> tags which contain the Perl parts.
I'd suggest you write the submitted files a different directory. And
then you'd manually move those files you like to the publicly viewable
guestbook directory and delete the others.
--
Bring text-docs to life! Erwecke Textdokumente zum Leben!
http://beam.to/iperl/
Vivigu tekstodokumentojn!
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Tue, 16 May 2000 15:13:36 -0500
From: Russ Jones <russ_jones@rac.ray.com>
To: Keith Smith <ksmith@firesnacks.com>
Subject: Re: How to COPY a website
Message-Id: <3921ABF0.8B41C180@rac.ray.com>
Keith Smith wrote:
>
> Hi folks:
>
> Are there any good scripts out there for retrieving all the files found at a
> website? Essentially, I would like to point this tool at a URL and have it
> decend all the local links and retrieve all the content associated with
> static html links.
>
> Thoughts/coments?
I wrote a robot once that took a starting url and traversed all its
hyperlinks and reported back the url's of all pages that were newer
than a certain date. Let me tell you, to write any kind of web robot
with any intelligence at all is a real booger.
If you know that you're staying within a certain directory tree, or
even on a certain server, or even a certain domain, it's not too
complex a program, but if you want to pull ALL the pages that are
referenced by a given page, you need to have some kind of limiting
code or before you know it you'll stumble across a link to yahoo and
end up trying to fetch the whole web.
You'll need to maintain a list of all the url's you've already pulled,
so you don't waste time (yours and the poor schlub whose web server
you're banging away at) pulling pages that you've already pulled. You
need a way to standardize the url's in your list, too, since
WWW.YAHOO.COM and www.yahoo.com will both go to the same server and
again, you don't want to pull a pages twice.
Since you say you only want to descend local links, it shouldn't be
too hard. However, if you're using a well mannered robot, and
LWP::RobotUA and common decency will require that you do, you must
wait some ungodly long time in dog years, one minute I think, between
'get' requests to a given server.
With that said, I wrote my robot with the LWP modules, but I don't own
the code so I can't show it to you. It was a lot of fun. Good luck.
Here endeth the lesson. Pax vobiscum.
--
Russ Jones - HP OpenView IT/Operatons support
Raytheon Aircraft Company, Wichita KS
russ_jones@rac.ray.com 316-676-0747
When cryptography is outlawed, only outlaws will
A2bgg c4dc8 aji0i knS4E 7eFj8 22Rl1
ZdGg3 gu8i6 lu12N s6NoG gn3g3 q835n
------------------------------
Date: Tue, 16 May 2000 21:32:36 +0100
From: Alan Silver <alan-silver@prestwich-smile-gemach.freeserve.furryferret.co.uk>
Subject: Re: How to COPY a website
Message-Id: <jM9t7MAkBbI5EwJ4@prestwich-smile-gemach.freeserve.co.uk>
In article <160520001042313969%root@127.0.0.1>, J. C. <root@127.0.0.1>
writes
>In article <GiBzydAHTVI5Ewu9@prestwich-smile-gemach.freeserve.co.uk>,
>Alan Silver
><alan-silver@prestwich-smile-gemach.freeserve.furryferret.co.uk> wrote:
>
>: Have you thought about the legal implications of this ? Unless the site
>: author gives explicit permission for you to copy the site (or any part
>: of it), then it's illegal to copy it.
>
>I think the guy just wants to download it for perusal "offline." Geez,
>net lawyers are everywhere.
I'm not a lawyer, I'm a mathematician actually. I'm just warning him of
the dangers that's all. As a web designer, I get very upset at the
thought of people downloading my entire site without asking. I wouldn't
necessarily say no (depending on what they want it for), but i don't
like people downloading it without asking.
--
Alan Silver
Please remove the "furryferret" if replying by e-mail
------------------------------
Date: Tue, 16 May 2000 20:37:17 GMT
From: jerome@activeindexing.com (Jerome O'Neil)
Subject: Re: How to COPY a website
Message-Id: <1kiU4.459$Wh6.16302@news.uswest.net>
In article <jM9t7MAkBbI5EwJ4@prestwich-smile-gemach.freeserve.co.uk>,
Alan Silver <alan-silver@prestwich-smile-gemach.freeserve.furryferret.co.uk> writes:
> I'm not a lawyer, I'm a mathematician actually. I'm just warning him of
> the dangers that's all. As a web designer, I get very upset at the
> thought of people downloading my entire site without asking. I wouldn't
> necessarily say no (depending on what they want it for), but i don't
> like people downloading it without asking.
Think about what you are saying. The mere fact that you put something
on the internet and made it available through a web server implies
that, in fact, you *intend* for people to download it. Thats the whole
purpose.
What is the difference if a bot does it while they are at work?
------------------------------
Date: 16 May 2000 13:53:05 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: How to COPY a website
Message-Id: <m1puqmi5e6.fsf@halfdome.holdit.com>
>>>>> "Jerome" == Jerome O'Neil <jerome@activeindexing.com> writes:
Jerome> What is the difference if a bot does it while they are at work?
The same difference as someone who fills their pockets with "food for
later, just in case" at a "all you can eat" buffet. If everyone did
that, I might as well close up shop.
I don't mind people crawling all over my site. I get irate at BOTS
that do it in a manner that is completely inconsistent with how a
person would do it (like rapid hits to dynamically generated pages),
especially when a human won't likely be looking at all those pages,
EVER. So they've effectively wasted CPU at my site. Yuck. How
thoughtless of them.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Tue, 16 May 2000 20:55:38 GMT
From: jerome@activeindexing.com (Jerome O'Neil)
Subject: Re: How to COPY a website
Message-Id: <eBiU4.467$Wh6.16302@news.uswest.net>
In article <m1puqmi5e6.fsf@halfdome.holdit.com>,
merlyn@stonehenge.com (Randal L. Schwartz) writes:
>>>>>> "Jerome" == Jerome O'Neil <jerome@activeindexing.com> writes:
>
> Jerome> What is the difference if a bot does it while they are at work?
> I don't mind people crawling all over my site. I get irate at BOTS
> that do it in a manner that is completely inconsistent with how a
> person would do it (like rapid hits to dynamically generated pages),
> especially when a human won't likely be looking at all those pages,
> EVER. So they've effectively wasted CPU at my site. Yuck. How
> thoughtless of them.
Then it would be more fair to say you have an issue with poorly
behaved bots, not the methods that people use to gain access to
your content.
That isn't unreasonable.
------------------------------
Date: 16 May 2000 14:09:44 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: How to COPY a website
Message-Id: <m1bt26i4mf.fsf@halfdome.holdit.com>
>>>>> "Jerome" == Jerome O'Neil <jerome@activeindexing.com> writes:
>> I don't mind people crawling all over my site. I get irate at BOTS
>> that do it in a manner that is completely inconsistent with how a
>> person would do it (like rapid hits to dynamically generated pages),
>> especially when a human won't likely be looking at all those pages,
>> EVER. So they've effectively wasted CPU at my site. Yuck. How
>> thoughtless of them.
Jerome> Then it would be more fair to say you have an issue with poorly
Jerome> behaved bots, not the methods that people use to gain access to
Jerome> your content.
Jerome> That isn't unreasonable.
Absolutely. I routinely look for "mass downloaders" - I have my site
wired to watch for them (based on IP, a little unfair for the people
behind proxies, but I set the threshold pretty high). When I get a
particularly interesting new UserAgent that has tripped over my
throttler, I see if that agent has ever fetched robots.txt, and if not,
they are banished from the get-go. Here's what I've tripped so far:
or m{Offline Explorer/} # bad robot!
or m{www\.gozilla\.com} # bad robot!
or m{pavuk-} # bad robot!
or m{ExtractorPro} # bad robot!
or m{WebCopier} # bad robot!
or m{MSIECrawler} # bad robot!
or m{WebZIP} # bad robot!
or m{Teleport Pro} # bad robot!
or m{NetAttache/} # bad robot!
or m{gazz/} # bad robot!
or m{geckobot} # bad robot!
or m{nttdirectory} # bad robot!
or m{Mister PiX} # bad robot!
or m{ia_archiver} # bad robot!
or m{DIIbot/} # bad robot!
or m{WhizBang!} # bad robot!
or m{WebCopy/} # bad robot!
or m{WebStripper/} # bad robot!
All of these have demonstrated the above behavior - major rapid
sucking and no checking of robots.txt. (The odd syntax is that it's
part of a Perl script with "or" operators between m{regexp}.)
If these had looked for robots.txt, or not routinely triggered my "mass
download" threshold (something a human being would be hard-pressed to
do), then you wouldn't see it here.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Tue, 16 May 2000 14:43:56 -0700
From: Jeff Zucker <jeff@vpservices.com>
Subject: Re: How to COPY a website
Message-Id: <3921C11C.99E66EDC@vpservices.com>
Jerome O'Neil wrote:
>
> In article <m1puqmi5e6.fsf@halfdome.holdit.com>,
> merlyn@stonehenge.com (Randal L. Schwartz) writes:
> >>>>>> "Jerome" == Jerome O'Neil <jerome@activeindexing.com> writes:
> >
> > Jerome> What is the difference if a bot does it while they are at work?
>
> > I don't mind people crawling all over my site. I get irate at BOTS
> > that do it in a manner that is completely inconsistent with how a
> > person would do it (like rapid hits to dynamically generated pages),
> > especially when a human won't likely be looking at all those pages,
> > EVER. So they've effectively wasted CPU at my site. Yuck. How
> > thoughtless of them.
>
> Then it would be more fair to say you have an issue with poorly
> behaved bots, not the methods that people use to gain access to
> your content.
>
> That isn't unreasonable.
Well, even there I disagree. There is a difference between a student
xeroxing one or two pages from a textbook and someone copying the whole
textbook and selling it. There is a difference between someone
listening to a sample track off a cd and someone copying the whole cd
and repackaging it. I may want people to have access to pages within my
site, that isn't the same as saying I encorage them to make a copy of
the whole site. What about dynamic content -- if my site changes
tommorrow and you are distributing outdated copies of my site as though
it were the real thing, what have you done to my credibility? I may not
be able to stop someone from doing this, but that is not the same as
saying I must authorize and legitimize this simply because it is
possible for them to do it.
--
Jeff
------------------------------
Date: Tue, 16 May 2000 21:59:26 GMT
From: jerome@activeindexing.com (Jerome O'Neil)
Subject: Re: How to COPY a website
Message-Id: <2xjU4.497$Wh6.16302@news.uswest.net>
In article <3921C11C.99E66EDC@vpservices.com>,
Jeff Zucker <jeff@vpservices.com> writes:
> Jerome O'Neil wrote:
>> Then it would be more fair to say you have an issue with poorly
>> behaved bots, not the methods that people use to gain access to
>> your content.
>>
>> That isn't unreasonable.
>
> Well, even there I disagree. There is a difference between a student
> xeroxing one or two pages from a textbook and someone copying the whole
> textbook and selling it. There is a difference between someone
> listening to a sample track off a cd and someone copying the whole cd
> and repackaging it. I may want people to have access to pages within my
> site, that isn't the same as saying I encorage them to make a copy of
> the whole site. What about dynamic content -- if my site changes
> tommorrow and you are distributing outdated copies of my site as though
> it were the real thing, what have you done to my credibility? I may not
> be able to stop someone from doing this, but that is not the same as
> saying I must authorize and legitimize this simply because it is
> possible for them to do it.
But you aren't talking about the same things at all.
On the one case you say copy, on the other you say distribute.
They are two different animals. If someone is distributing
your work without your authorization, that is something completely
different than if they download and consume at different times.
------------------------------
Date: Tue, 16 May 2000 15:42:36 -0500
From: Russ Jones <russ_jones@rac.ray.com>
Subject: Re: How to find distances?
Message-Id: <3921B2BC.46083C3D@rac.ray.com>
Jonathan Stowe wrote:
>
> On Mon, 15 May 2000 07:15:56 GMT, smnayeem@my-deja.com Wrote:
> > I need a module in perl so that I can find the distance between two
> > different places. Does anyone know of any module or know where I can
> > find one??
>
> You might have a look at
>
> <http://www.perl.com/reference/query.cgi?geographical>
>
> To get the latitude and longitude. Then the rest is simple trigonometry.
No, distance from latitude and longitude is not simple at all. How far
apart are the meridians of longitude? Depends on your latitude. How do
you want to measure the distance between the points? The arc distance
(over the surface of the earth) or the straight-line distance? If
you're traveling from Kansas to China, the difference in distance
would be considerable.
Actually, we need the problem better defined. What kind of places are
these? How are they referenced? Do you have street addresses? x and y
coordinates, x,y,z coordinates?
--
Russ Jones - HP OpenView IT/Operatons support
Raytheon Aircraft Company, Wichita KS
russ_jones@rac.ray.com 316-676-0747
When cryptography is outlawed, only outlaws will
A2bgg c4dc8 aji0i knS4E 7eFj8 22Rl1
ZdGg3 gu8i6 lu12N s6NoG gn3g3 q835n
------------------------------
Date: Tue, 16 May 2000 17:28:47 -0400
From: "Edward Waldspurger" <ewald@electronicfrontiers.com>
Subject: Re: How to find distances?
Message-Id: <3921bdb2_1@news.siscom.net>
The calculation you want to make is the "great circle distance". This
assumes the Earth is spherical, but is accurate enough for most
applications. I did a search and found a link with a sample Perl program to
calculate this.
http://www.indo.com/distance/distance-details.html
--
Edward Waldspurger
Electronic Frontiers Consulting, Inc.
<smnayeem@my-deja.com> wrote in message news:8fo873$cii$1@nnrp1.deja.com...
> I need a module in perl so that I can find the distance between two
> different places. Does anyone know of any module or know where I can
> find one??
>
> I would really appreciate any help as I am totally stuck on a project
> because of the distances problem. (Even if someone knows where I can
> get the data, ie the distance between places I can make a module and
> give it to the perl community for others to use)
>
> Thanks in advance.
>
> Nayeem
> (please send a copy of the reply to my email smnayeem@agni.com)
>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
Date: Tue, 16 May 2000 18:44:53 GMT
From: Francis Litterio <franl-removethis@world.omitthis.std.com>
To: andkaha@my-deja.com
Subject: Re: Imprecision in perl ?
Message-Id: <m38zxa9vx6.fsf@franl.andover.net>
Andreas Kahari <andkaha@my-deja.com> writes:
> > How precise is perl ?
As precise as the double precision floating point type in the C compiler
used to compile the version of Perl that executes the script.
> > i experience something weird while comparing two floating
> > point numbers. printing them showed two exact same numbers,
> > comparison didnt work out tho
Never compare two floating point numbers for equality. Instead, subtract
them and test their difference for sufficient closeness to zero. That
distance from zero is often called "epsilon", so instead of this:
if (f1 == f2) { ... }
you write:
if (abs(f1 - f2) < $epsilon) { ... }
You get to pick the value of $epsilon.
--
Francis Litterio
franl-removethis@world.std.omit-this.com
PGP public keys available on keyservers.
------------------------------
Date: Tue, 16 May 2000 19:38:35 GMT
From: Francis Litterio <franl-removethis@world.omitthis.std.com>
To: andkaha@my-deja.com
Subject: Re: Imprecision in perl ?
Message-Id: <m3zopq8ev8.fsf@franl.andover.net>
I wrote:
> so instead of this:
>
> if (f1 == f2) { ... }
>
> you write:
>
> if (abs(f1 - f2) < $epsilon) { ... }
Oops. I meant to write:
... so instead of this:
if ($f1 == $f2) { ... }
you write:
if (abs($f1 - $f2) < $epsilon) { ... }
Sorry.
--
Francis Litterio
franl-removethis@world.std.omit-this.com
PGP public keys available on keyservers.
------------------------------
Date: Tue, 16 May 2000 11:13:03 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: insert a link in a specific place in aweb page
Message-Id: <Pine.GSO.4.10.10005161112180.25459-100000@user2.teleport.com>
On Mon, 15 May 2000, Wes wrote:
> Any idea how to do this? What i need to do is insert a link after or
> before another link.
You edit the HTML. But why are you asking here? If you want to make a
Perl program to do this, you should probably use HTML::Parser. Cheers!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Tue, 16 May 2000 14:09:25 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: insert a link in a specific place in aweb page
Message-Id: <Pine.GSO.4.10.10005161408290.25459-100000@user2.teleport.com>
On Tue, 16 May 2000, Jerome O'Neil wrote:
> In article <8fpp56$5bb$2@onion.globeset.com>,
> "Wes" <wesleys@globeset.com> writes:
> > Any idea how to do this? What i need to do is insert a link after or before
> > another link.
>
> Whats a link?
It's what the unlink function works on, of course. :-)
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Tue, 16 May 2000 20:53:05 GMT
From: Daniel Pfeiffer <occitan@esperanto.org>
Subject: iPerl V0.53 out now with various fixes (de, en & eo)
Message-Id: <8fscf9$1td$1@nnrp1.deja.com>
http://beam.to/iperl (de, en & eo)
Deutsch:
Der iPerl Interpreter ist ein transformierender Filter, der wie der C
Präprozessor oder der m4 Makroprozessor funktioniert, nur, daß die
eingebettete Sprache Perl in seiner ganzen Macht ist. Per HTML/XML u.a.
ist dies auch im Internet sehr interessant, wie mitgelieferte Beispiele
zeigen. Man kann es auch als Vorlagenmechanismus sehen.
Die Webseite kommt automatisch auf Deutsch, wenn Dein Browser so
eingestellt
ist.
English:
The iPerl interpreter is a transforming filter that works much like the
C preprocessor or the m4 macro processor, only that the language
embedded into a document is full powered Perl. With HTML/XML among
others this is also very interesting in web-pages, as included examples
show. You can also see it as a template mechanism.
The web-pages automatically appear in English, if your browser is so
configured.
Esperanto:
La iPerl interpretilo estas aliformiga filtrilo kiu funkcias kiel la C
anta^uprocezilo a^u la m4 makroprocezilo, nur ke ^gi enmetebligas
plenpovan Perl en viajn dokumentojn. Kun HTML/XML i.a. tio estas
interesega por TTT-pa^goj, kiel kunliveritaj ekzemploj montras. Oni
povas anka^u ^gin vidi kiel me^hanismo por kompletigi tekstojn.
La pa^garo memstare aperas esperante, se vi tiel instruis vian krozilon.
-- Daniel Pfeiffer
--
Bring text-docs to life! Erwecke Textdokumente zum Leben!
http://beam.to/iPerl/
Vivigu tekstodokumentojn!
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 99)
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: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
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 V9 Issue 3066
**************************************