[17013] in Perl-Users-Digest
Perl-Users Digest, Issue: 4425 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Sep 25 18:06:45 2000
Date: Mon, 25 Sep 2000 15:05:20 -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: <969919519-v9-i4425@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Mon, 25 Sep 2000 Volume: 9 Number: 4425
Today's topics:
Re: $1 .. $2: odd behavior? <tim@ipac.caltech.edu>
Re: 'use warnings;' versus '-w' <tim@ipac.caltech.edu>
Re: /me bangs head agains't brick wall <darryl@work-thicker.co.uk>
cgi behind proxy server <brandon.bartlett@mouat.com>
Re: cgi behind proxy server <nico@monnet.to>
Re: cgi behind proxy server <nico@monnet.to>
Re: cgi behind proxy server <brandon.bartlett@mouat.com>
Re: cgi behind proxy server <sariq@texas.net>
Re: clickable scrolling list <amonotod@netscape.net>
Re: Converting urls - the other way! <amonotod@netscape.net>
Re: crontab, perl, oracle query kmhanser@my-deja.com
Re: determine where visitors are "living" <amonotod@netscape.net>
Re: determine where visitors are "living" (Abigail)
Re: determine where visitors are "living" <uri@sysarch.com>
Re: determine where visitors are "living" <godzilla@stomp.stomp.tokyo>
Re: determine where visitors are "living" <sariq@texas.net>
Re: determine where visitors are "living" (Craig Berry)
Re: determine where visitors are "living" <godzilla@stomp.stomp.tokyo>
Re: determine where visitors are "living" (Richard J. Rauenzahn)
Re: determine where visitors are "living" <flavell@mail.cern.ch>
Re: determine where visitors are "living" <pilsl@goldfisch.atat.at>
Does a DCOM client module exist? <steve@genome.wi.mit.edu>
Re: Does a DCOM client module exist? <amonotod@netscape.net>
Re: enter unicode in forms (foreign languages) <flavell@mail.cern.ch>
Re: Getting a file from an HTML page nobull@mail.com
Help required for a win newbie padmanab@my-deja.com
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 25 Sep 2000 12:28:52 -0700
From: Tim Conrow <tim@ipac.caltech.edu>
Subject: Re: $1 .. $2: odd behavior?
Message-Id: <39CFA774.ED6CFB15@ipac.caltech.edu>
Brad Baxter wrote:
> Could someone explain why there are warnings (and a 0 return) for line 5,
> but not for lines 4 or 6?
>
> 1 #!/usr/local/bin/perl -w
> 2 use strict;
> 3
> 4 print 'a' .. 'z', "\n";
> 5 if( 'a-z' =~ /([^-]+)-([^-]+)/ ) { print $1 .. $2, "\n"; }
> 6 if( 'a-z' =~ /([^-]+)-([^-]+)/ ) { print $1 .. $2, "\n"; }
> 7
> 8 __DATA__
> 9 Output:
> 10 Argument "a" isn't numeric in flop at ./qt line 5.
> 11 Argument "z" isn't numeric in flop at ./qt line 5.
> 12 Argument "a" isn't numeric in flop at ./qt line 5.
> 13 Argument "z" isn't numeric in flop at ./qt line 5.
> 14 abcdefghijklmnopqrstuvwxyz
> 15 0
> 16 abcdefghijklmnopqrstuvwxyz
Can't reproduce with perl5.6; it works fine.
With 5.00503 I reproduce your behavior. Looks like a bug. Even Deparse says
everything is fine:
> perl5.00503 -MO=Deparse perl/crap
perl/junk syntax OK
print(('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'), "\n");
if ('a-z' =~ /([^-]+)-([^-]+)/) {
print $1 .. $2, "\n";
}
if ('a-z' =~ /([^-]+)-([^-]+)/) {
print $1 .. $2, "\n";
}
--
-- Tim Conrow tim@ipac.caltech.edu |
------------------------------
Date: Mon, 25 Sep 2000 12:21:20 -0700
From: Tim Conrow <tim@ipac.caltech.edu>
Subject: Re: 'use warnings;' versus '-w'
Message-Id: <39CFA5B0.8307AB39@ipac.caltech.edu>
JL Goldstein wrote:
>
> Why would one use the 'use warnings;' pragma rather than the '-w'
> switch? Is there a practical difference?
Practical differences:
a) 'use warnings' only works with perl version >= 5.6
b) 'use warnings' is lexically scoped
c) 'use warnings' can be negated with 'no warnings'. (Yes one can use $^W,
that's soooo ugly; see e.)
d) 'use warnings' allows for user modification (see 'perldoc warnings')
e) 'use warnings' is more visible and more readable
f) 'use warnings' too long for one-liners
g) All the coolest programmers 'use warnings'
... well, OK, I'm not that sure about the last one. :-)
--
-- Tim Conrow tim@ipac.caltech.edu |
------------------------------
Date: Mon, 25 Sep 2000 22:19:05 +0100
From: "CJ Llewellyn" <darryl@work-thicker.co.uk>
Subject: Re: /me bangs head agains't brick wall
Message-Id: <d5joq8.nq1.ln@paulweller>
<brianr@liffe.com> wrote in message news:vtsnqor43i.fsf@liffe.com...
> "CJ Llewellyn" <darryl@work-thicker.co.uk> writes:
-snip-
> > I looked at using find but it's not quite what I wanted.
>
> Hmmm, in your original post you said "I'm having trouble with a script
> that recurses through directories". That's what File::Find does.
>
> If I understand what you are trying to do in the script in your OP, it
> can even be done as a one-liner using File::Find
>
> perl -MFile::Find -e'find(sub{print"$File::Find::name\n" unless -d},
"/usr")'
>
> In what way is that not what you wanted?
Possibly, I have/wanted to use a recursive sub routine as the code is being
used to upload pages to a web site. However being a BASIC programmer some
habbits are deeply ingrained.
Using find is certainly a lot different. I was put off mainly by the
examples in the cookbook introducing new terms I'd not seen before such as
$saved_size = -s _
--
Regards, CJ Llewellyn
http://www.cjll.uklinux.net/
------------------------------
Date: Mon, 25 Sep 2000 13:23:35 -0500
From: "BlueStar" <brandon.bartlett@mouat.com>
Subject: cgi behind proxy server
Message-Id: <ssv61itid54nf0@corp.supernews.com>
Greetings,
We have a IIS server serving ASP and cgi pages, with SSL, sitting behind a
newly installed MS Proxy server.
Before the installation of the proxy server, everything worked fine. Now
with the proxy server, no cgi's run when accessed externally (via Internet),
but still works fine Internally (within LAN). All we get are "Page not
found" messages in the browser (I.E. 5).
Any suggestions?
Thanks in advance for any assistance!!!!!!
Best regards,
Brandon Bartlett
------------------------------
Date: Mon, 25 Sep 2000 20:58:21 +0100
From: "Nicolas MONNET" <nico@monnet.to>
Subject: Re: cgi behind proxy server
Message-Id: <NlNz5.131$My3.2743@tengri.easynet.fr>
Read the docs for your proxy.
Alternatively, get rid of the MS shit.
What the fuck was "BlueStar" <brandon.bartlett@mouat.com> trying to say:
> Greetings,
>
> We have a IIS server serving ASP and cgi pages, with SSL, sitting behind
> a newly installed MS Proxy server.
>
> Before the installation of the proxy server, everything worked fine.
> Now with the proxy server, no cgi's run when accessed externally (via
> Internet), but still works fine Internally (within LAN). All we get are
> "Page not found" messages in the browser (I.E. 5).
>
> Any suggestions?
>
> Thanks in advance for any assistance!!!!!!
>
> Best regards, Brandon Bartlett
>
>
>
>
>
>
--
perl -e 'print `echo Just a Lame Perl Luser | gzip -9 | cat | gzip -cd`'
------------------------------
Date: Mon, 25 Sep 2000 20:59:35 +0100
From: "Nicolas MONNET" <nico@monnet.to>
Subject: Re: cgi behind proxy server
Message-Id: <WmNz5.132$My3.2743@tengri.easynet.fr>
Besides setting up a firewall without knowing how it works
(which is obviously your case) is as good for security as
pissing up in the air.
What the fuck was "BlueStar" <brandon.bartlett@mouat.com> trying to say:
> Greetings,
>
> We have a IIS server serving ASP and cgi pages, with SSL, sitting behind
> a newly installed MS Proxy server.
>
> Before the installation of the proxy server, everything worked fine.
> Now with the proxy server, no cgi's run when accessed externally (via
> Internet), but still works fine Internally (within LAN). All we get are
> "Page not found" messages in the browser (I.E. 5).
>
> Any suggestions?
>
> Thanks in advance for any assistance!!!!!!
>
> Best regards, Brandon Bartlett
>
>
>
>
>
>
--
perl -e 'print `echo Just a Lame Perl Luser | gzip -9 | cat | gzip -cd`'
------------------------------
Date: Mon, 25 Sep 2000 15:24:54 -0500
From: "BlueStar" <brandon.bartlett@mouat.com>
Subject: Re: cgi behind proxy server
Message-Id: <ssvd51ldtq1h6d@corp.supernews.com>
Greetings,
Thank you for your kind and understanding reply! To further explain, I
didn't install the proxy, I just have to deal with it now without access to
the guy who did.
Based on your suggestion, I guess I can ignore the "Urinating Vertically"
section of the proxy documentation, right?
Thanks again!
Brandon
"Nicolas MONNET" <nico@monnet.to> wrote in message
news:WmNz5.132$My3.2743@tengri.easynet.fr...
>
> Besides setting up a firewall without knowing how it works
> (which is obviously your case) is as good for security as
> pissing up in the air.
>
> What the fuck was "BlueStar" <brandon.bartlett@mouat.com> trying to say:
> > Greetings,
> >
> > We have a IIS server serving ASP and cgi pages, with SSL, sitting behind
> > a newly installed MS Proxy server.
> >
> > Before the installation of the proxy server, everything worked fine.
> > Now with the proxy server, no cgi's run when accessed externally (via
> > Internet), but still works fine Internally (within LAN). All we get are
> > "Page not found" messages in the browser (I.E. 5).
> >
> > Any suggestions?
> >
> > Thanks in advance for any assistance!!!!!!
> >
> > Best regards, Brandon Bartlett
> >
> >
> >
> >
> >
> >
>
>
> --
> perl -e 'print `echo Just a Lame Perl Luser | gzip -9 | cat | gzip -cd`'
>
------------------------------
Date: Mon, 25 Sep 2000 20:29:16 GMT
From: Tom Briles <sariq@texas.net>
Subject: Re: cgi behind proxy server
Message-Id: <39CFB591.889A2715@texas.net>
BlueStar wrote:
>
> Greetings,
>
> We have a IIS server serving ASP and cgi pages, with SSL, sitting behind a
> newly installed MS Proxy server.
>
> Before the installation of the proxy server, everything worked fine. Now
> with the proxy server, no cgi's run when accessed externally (via Internet),
> but still works fine Internally (within LAN). All we get are "Page not
> found" messages in the browser (I.E. 5).
>
> Any suggestions?
Yes. Ask in a forum that discusses at least *something* relevant to
your environment.
- Tom
(Don't come back screaming "But the scripts are written in Perl!",
because that has nothing to do with your problem.)
------------------------------
Date: Mon, 25 Sep 2000 19:22:39 GMT
From: amonotod <amonotod@netscape.net>
Subject: Re: clickable scrolling list
Message-Id: <8qo8l6$7so$1@nnrp1.deja.com>
In article <B5F38727.8B57%star@sonic.net>,
arthur <star@sonic.net> wrote:
> Good Day :@),
>
> I am trying to make a clickable scrolling list. I have two forms on my
> page and I want the second form when you click on one of the VALUES to
> fill in the - textfield('name') -space in the first form. Is that
> possible?
Yes, but not through Perl or HTML. You'll need to learn about
JavaScript. If you'd like to see a function like that, go out to
www.geocities.com, get an account, post an HTML file, then use the
geocities utilities to add a counter to the page. On the counter setup
page, they have some (I assume, I haven't actually looked at the source)
JavaScript that populates other parts of a form based on previous
clicks.
HTH,
amonotod
--
`\|||/ amonotod@
(@@) netscape.net
ooO_(_)_Ooo________________________________
_____|_____|_____|_____|_____|_____|_____|_____|
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Mon, 25 Sep 2000 19:56:46 GMT
From: amonotod <amonotod@netscape.net>
Subject: Re: Converting urls - the other way!
Message-Id: <8qoali$apj$1@nnrp1.deja.com>
In article <39CF7F66.960EF540@stomp.stomp.tokyo>,
"Godzilla!" <godzilla@stomp.stomp.tokyo> wrote:
> Richard Lawrence wrote:
> > my $clean = $original_url;
> > $clean =~ tr/+/ /;
> > $clean =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
>
> > which makes $clean show urls with things like %20 and + turned to
> > spaces and so on.
>
> > However converting something back (ie. from "hello there" to "hello%
> > 20there") has me stuck. Can anyone help?
<snip>
> $clean = $original_url;
>
> There, now your variable is back to its
> original url encoded condition.
<snip>
Yeah, but what if you're only given $clean? As always, you assume
either too little, or too much, never giving thought to common sense.
If I am going to store URL references in a database, I would want to
store the 'real' URL, not an encoded version of it. Now, you freakin'
brainless git, as you are often told, shut up, and learn about the use
of modules, like URI::Escape, as Rafael suggested.
amonotod
--
`\|||/ amonotod@
(@@) netscape.net
ooO_(_)_Ooo________________________________
_____|_____|_____|_____|_____|_____|_____|_____|
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Mon, 25 Sep 2000 18:03:35 GMT
From: kmhanser@my-deja.com
Subject: Re: crontab, perl, oracle query
Message-Id: <8qo417$247$1@nnrp1.deja.com>
I'm doing a prepare because I didn't put good error trapping in :)
In other words, there's no "or die" on the end of my connect command.
Well, I was about to post some of my source here, and I noticed my
problem. When I was setting my $ENV{ORACLE_HOME}, I had mistyped and
forgotten to put the / on the front of it. doh!
Changed that, and now it works perfectly.
Thanx,
Kevin
In article <slrn8su4u1.8gj.trammell@nitz.hep.umn.edu>,
trammell@nitz.hep.umn.edu (John J. Trammell) wrote:
> On Mon, 25 Sep 2000 16:01:18 GMT, kmhanser@my-deja.com
> <kmhanser@my-deja.com> wrote:
> >I keep getting this error:
> >
> >DBI->connect failed: Error while trying to retrieve text for error
ORA-
> >12154 (DBD ERROR: OCIServerAttach) at /usr/local/bin/checkquota.pl
line
> >26
>
> Your connect failed. That's pretty bad. What arguments are you
> passing? What environment variables are you setting, and to what?
> What research have you done on ORA error 12154?
>
> >Can't call method "prepare" on an undefined value
> >at /usr/local/bin/checkquota.pl line 31.
>
> Why are you even trying to call prepare() if your connect failed?
>
> --
> John J. Trammell
> johntrammell@yahoo.com
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Mon, 25 Sep 2000 18:54:16 GMT
From: amonotod <amonotod@netscape.net>
Subject: Re: determine where visitors are "living"
Message-Id: <8qo70d$5tm$1@nnrp1.deja.com>
In article <MPG.1439aacbf1c65b139898a5@news.chello.at>,
peter pilsl <pilsl@goldfisch.atat.at> wrote:
> In article <8qnpql$l22$1@nnrp1.deja.com>, kebr@my-deja.com says...
> > I'm looking for a script that will determine the geographic location
<snip>
> You know that the best you can get is the ip-adress of the visitor (or
<snip>
> I remember some windows-tools that make some geographical traceroute
<snip>
> neotrace.
I like VisualRoute (multiplatform), http://www.visualroute.com/
> Maybe some perl-scripts could also grap the visitors timezone and
> language, so you could get more detailed information.
I don't think you could do this from the server, but look into some
client-side javascript. If you want to be able to track it, then you'll
be looking at some self-posting javascript (is that possible?)
HTH,
amonotod
--
`\|||/ amonotod@
(@@) netscape.net
ooO_(_)_Ooo________________________________
_____|_____|_____|_____|_____|_____|_____|_____|
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 25 Sep 2000 19:36:26 GMT
From: abigail@foad.org (Abigail)
Subject: Re: determine where visitors are "living"
Message-Id: <slrn8sva7e.lo9.abigail@alexandra.foad.org>
peter pilsl (pilsl@goldfisch.atat.at) wrote on MMDLXXXII September
MCMXCIII in <URL:news:MPG.1439aacbf1c65b139898a5@news.chello.at>:
\\ In article <8qnpql$l22$1@nnrp1.deja.com>, kebr@my-deja.com says...
\\ > Hello,
\\ >
\\ >
\\ > Based on where my website visitors are coming from I would like to
\\ > serve them another/a modified page. Now I hear you all say, use
\\ > http_referrer and things like that, but this is not what I mean.
\\ > I'm looking for a script that will determine the geographic location of
\\ > a visitor.
\\ > The ultimate goal would be to serve country/region specific pages based
\\ > on the IP-address (?) or some other parameter. Is this at all possible
\\ > or am I dreaming aloud ?
\\ >
\\ >
\\ > I have looked at various code archives and searched the net but haven't
\\ > as yet found something suitable.
\\ > Any ideas for something along this line ?
\\ >
\\
\\ You know that the best you can get is the ip-adress of the visitor (or his
\\ proxy if he is using one). Based on this address you might get
\\ geographical information.
Oh, golly. The people working for large international companies with
offices worldwide will be sooooo happy. Or travellers using their ISPs
pops around the globe.
Anyone trying to map IP addresses to geographical locations is utterly
insane and totally clueless on how the internet works.
\\ I remember some windows-tools that make some geographical traceroute on a
\\ world-map. I dont know if they use a big database or some other tricks.
\\ Maybe you find something on their webpage: The tool I remember is called
\\ neotrace.
This might reasonable work the first few days after updating the database,
because most of the big routers aren't mobile. Yet. But routers get
added, removed, and renumbered daily - there's a reason dynamic routing
tables are updated several times a minute. So, unless you update your
neotrace tables every couple of hours, it's nothing more than a worldmap
with some random lines drawn on it.
\\ Other methods: Let the visitor tell you one time where he lives and store
\\ a cookie. Or use the host-function (or something similar on non-linux-
\\ hosts) to convert the ip to hostname, so you could grap the countrycode.
Buahahahhahha. You really think all those people with .to and .cx domains
live in the Pacific? I guess .com stands for communist China? And .net
for Netherlands?
\\ Maybe some perl-scripts could also grap the visitors timezone and
\\ language, so you could get more detailed information.
The HTTP protocol has a field for preferred language. And that's all you
need to know.
Of course, none of this has anything to do with Perl.
Abigail
--
print v74.117.115.116.32.97.110.111.116.104.101.114.
v32.80.101.114.108.32.72.97.99.107.101.114.10;
------------------------------
Date: Mon, 25 Sep 2000 19:48:32 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: determine where visitors are "living"
Message-Id: <x73diob6cu.fsf@home.sysarch.com>
>>>>> "A" == Abigail <abigail@foad.org> writes:
A> Anyone trying to map IP addresses to geographical locations is utterly
A> insane and totally clueless on how the internet works.
akamai is sorta doing that now. but they have spent millions on it and
went IPO in a big way. and their map is not purely geographic.
A> Of course, none of this has anything to do with Perl.
very true.
uri
--
Uri Guttman --------- uri@sysarch.com ---------- http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page ----------- http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net ---------- http://www.northernlight.com
------------------------------
Date: Mon, 25 Sep 2000 13:03:59 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: determine where visitors are "living"
Message-Id: <39CFAFAF.C59FAACE@stomp.stomp.tokyo>
kebr@my-deja.com wrote:
> Based on where my website visitors are coming from
> I would like to serve them another/a modified page.
> Now I hear you all say, use http_referrer and things
> like that, but this is not what I mean. I'm looking
> for a script that will determine the geographic
> location of a visitor.
There is a method to locate where web vistors live,
with one-hundred percent accuracy.
Create an array containing names of all countries,
principalties, don't forget the Vatican, our Pope
is an avid chatroom enthuiast. Also include all
American state names, territories and such, same
for other countries.
@Where = ( your list of locations )
$where = $Where[rand(@Where)];
Guaranteed to work every single time.
**
Your best accuracy rate for a project of this
nature might be twenty-five percent, even using
a data base the size of a New York city telephone
book. You might as well shoot for validating email
addresses. This would be easier and more accurate,
although impossible.
Should you elect to proceed with a project
like this, you could offer fun and imaginative
selectable regional trivia on an opening page.
This is easy to do simply through a small form
action text field. A visitor may type in, or
not type in, a region of interest and submit.
A clickable world map would be attractive.
Your script will be very busy with this type
of input. Nonetheless, with effective planning
and good data base management, you can return
content offering enjoyable trivia for a specific
region along with your regular content.
Have your visitors indicate their regional interest.
Godzilla!
--
Kira, Professional Poker Player
http://la.znet.com/~callgirl/android/poker.cgi
------------------------------
Date: Mon, 25 Sep 2000 20:20:49 GMT
From: Tom Briles <sariq@texas.net>
Subject: Re: determine where visitors are "living"
Message-Id: <39CFB39E.60DC9762@texas.net>
"Godzilla!" wrote:
>
> Kira, Professional Poker Player
> http://la.znet.com/~callgirl/android/poker.cgi
Ack. I tried a few hands and lost w/A-2-3-4-5. I wonder what it takes
to win...
Is this that "Graphical Poker Game" to which you often refer?
Heh.
- Tom
------------------------------
Date: Mon, 25 Sep 2000 20:21:19 -0000
From: cberry@cinenet.net (Craig Berry)
Subject: Re: determine where visitors are "living"
Message-Id: <ssvctvr17lo416@corp.supernews.com>
kebr@my-deja.com wrote:
: Based on where my website visitors are coming from I would like to
: serve them another/a modified page. Now I hear you all say, use
: http_referrer and things like that, but this is not what I mean.
: I'm looking for a script that will determine the geographic location of
: a visitor.
: The ultimate goal would be to serve country/region specific pages based
: on the IP-address (?) or some other parameter. Is this at all possible
: or am I dreaming aloud ?
This is extremely hard to do. In fact, being able to do this quickly and
accurately is most of what has made Akamai a successful company -- and
their technique is both proprietary and server-intensive. Oh, and also
wrong a significant percentage of the time.
--
| Craig Berry - http://www.cinenet.net/~cberry/
--*-- "Quidquid latine dictum sit, altum viditur."
|
------------------------------
Date: Mon, 25 Sep 2000 13:35:25 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: determine where visitors are "living"
Message-Id: <39CFB70D.D1EDDACB@stomp.stomp.tokyo>
Tom Briles wrote:
> "Godzilla!" wrote:
> > Kira, Professional Poker Player
> > http://la.znet.com/~callgirl/android/poker.cgi
> Ack. I tried a few hands and lost w/A-2-3-4-5.
Although odds of hitting this are near astronomical,
I will add a low ace straight to my poker rules.
Currently, only high ace straights win. Thank you
for pointing this out.
> I wonder what it takes to win...
Intelligence and skill. Your odds of winning
are set to average Las Vegas odds. Single deck.
Are you a poker player?
> Is this that "Graphical Poker Game" to
> which you often refer?
You have any programs similar to this I may
visit and enjoy? Post a link! I would like
to enjoy your programming skills.
Godzilla!
--
Headline News Today
http://la.znet.com/~callgirl/android/news.cgi
------------------------------
Date: 25 Sep 2000 20:24:38 GMT
From: nospam@hairball.cup.hp.com (Richard J. Rauenzahn)
Subject: Re: determine where visitors are "living"
Message-Id: <969913477.437716@hpvablab.cup.hp.com>
abigail@foad.org writes:
>\\ Other methods: Let the visitor tell you one time where he lives and store
>\\ a cookie. Or use the host-function (or something similar on non-linux-
>\\ hosts) to convert the ip to hostname, so you could grap the countrycode.
>
>Buahahahhahha. You really think all those people with .to and .cx domains
>live in the Pacific? I guess .com stands for communist China? And .net
>for Netherlands?
I've seen some sites try to determine if you're from the U.S. -- I
think netscape.com used to attempt this to determine whether or not you
were allowed to download the 128bit encryption version of netscape.
I assumed they did this by querying the whois databases to see where
(geographically) your hostname/domain was registered.
[Not a very reliable way to do it either, and not much to do with
Perl...]
Rich
--
Rich Rauenzahn ----------+xrrauenza@cup.hp.comx+ Hewlett-Packard Company
Technical Consultant | I speak for me, | 19055 Pruneridge Ave.
Development Alliances Lab| *not* HP | MS 46TU2
ESPD / E-Serv. Partner Division +--------------+---- Cupertino, CA 95014
------------------------------
Date: Mon, 25 Sep 2000 23:39:55 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: determine where visitors are "living"
Message-Id: <Pine.GHP.4.21.0009252332480.27863-100000@hpplus03.cern.ch>
On Mon, 25 Sep 2000, Craig Berry wrote:
> This is extremely hard to do.
No Sir. I am confident that on the basis of my headers (and lacking
any external evidence to the contrary), it is not just "extremely
hard", it is in fact impossible, for you to determine that I am right
now in the bedroom of my owner-occupied flat in Glasgow, Scotland.
(This could of course be a complete fabrication, although in fact it's
true.)
And my former colleague, who posts through his company's gateway in
.ca, in fact lives in south-east England (and again, there's nothing
in his headers to say so). So that's just two examples from my own
limited experience, to say nothing of my CSS friends who've never been
anywhere near to .nu
------------------------------
Date: Mon, 25 Sep 2000 21:48:36 GMT
From: peter pilsl <pilsl@goldfisch.atat.at>
Subject: Re: determine where visitors are "living"
Message-Id: <MPG.1439e6febcf4efdf9898aa@news.chello.at>
In article <MPG.1439aacbf1c65b139898a5@news.chello.at>,
pilsl@goldfisch.atat.at says...
<skip>
>
> Maybe some perl-scripts could also grap the visitors timezone and
> language, so you could get more detailed information.
>
sorry for the typo !! I ment to say javsascript of course.
But at least I gave great fun to some of the smartest in this group ;)
peter
--
pilsl@
goldfisch.at
------------------------------
Date: Mon, 25 Sep 2000 16:09:18 -0400
From: Steve Rozen <steve@genome.wi.mit.edu>
Subject: Does a DCOM client module exist?
Message-Id: <39CFB0ED.6391C072@genome.wi.mit.edu>
Is any DCOM client module available?
(I want to make calls to a DCOM server from perl.)
Thank you!
Steve
==============================================================
Steve Rozen, Ph.D.
Whitehead Institute for Biomedical Research
Nine Cambridge Center, Floor 4
Cambridge MA 02142
USA
(617) 258 8629
FAX: (617) 258 5578
rozen@gaiberg.wi.mit.edu
==============================================================
------------------------------
Date: Mon, 25 Sep 2000 21:04:52 GMT
From: amonotod <amonotod@netscape.net>
Subject: Re: Does a DCOM client module exist?
Message-Id: <8qoel4$fon$1@nnrp1.deja.com>
In article <39CFB0ED.6391C072@genome.wi.mit.edu>,
Steve Rozen <steve@genome.wi.mit.edu> wrote:
> Is any DCOM client module available?
> (I want to make calls to a DCOM server from perl.)
http://www.activestate.com/Products/ActivePerl/docs/faq/Windows/ActivePe
rl-Winfaq12.html
HTH,
amonotod
--
`\|||/ amonotod@
(@@) netscape.net
ooO_(_)_Ooo________________________________
_____|_____|_____|_____|_____|_____|_____|_____|
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Mon, 25 Sep 2000 20:32:21 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: enter unicode in forms (foreign languages)
Message-Id: <Pine.GHP.4.21.0009252009090.19401-100000@hpplus03.cern.ch>
On Mon, 25 Sep 2000, peter pilsl wrote:
> when entering foreign languages (russion) and my defaultlanguage mixed in
> a text-input-field in a form I sometimes get the foreign part of input
> back as unicode (i.e: this is a test:еуче) and
> sometimes I get the foreign part of the input back as "normal" code =
> nonsense signs (I guess, ASCII-Code)
This is off-topic here, except the relatively small part (AFAICS) of
your topic that relates to using Unicode in Perl programs. You would
be better on the CGI authoring group for most of this.
If you read the HTML spec, you find that the default form submission
encoding is limited in its applicability. It appears that you are
attempting to use it for data which lies outside of this
specification. Lots of people do that, and many of them get away with
it, but as you are finding, when "push comes to shove" all bets are
off.
From your description I would guess that you have tried it with a
browser from those masters of the "never mind the specification, we'll
think of something to do with your garbaage" implementation, you know
who I mean. There is absolutely no justification in the
specifications for a browser to accept characters that are not in the
encoding defined for the form, and to unilaterally turn them into
&#number; character references. HTML markup has no place in this part
of the machinery: what if you were to type the characters е
literally into the form? The two radically different inputs would be
indistinguishable when they reached the server!
> If I add an uploadfield I get back what I want.
Uploading is not supported by the default form submission format, so
it looks as if you might have nudged the browser into using a
different submission format which not only does support it, but also -
as it happens - supports multinational content.
I really would have to recommend reading and making use of the
specifications that govern the things that you are trying to do.
The HTML4 specification is your starting point, see
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13
particularly the footnote to 17.13.1 and the section 17.13.4,
and the cited RFCs for in-depth detail.
> I didnt find anything about it in the CGI-docs,
CGI.pm doesn't do anything particular to help you with non-Latin-1
codings. You're pretty-much going to have to understand what you're
doing, in detail, if you mean to tackle this area of forms handling.
I'm sure there are plenty of bugs lying in wait to bite. Sorry, but
that seems to be the way it is.
good luck (but preferably on the more-appropriate group)
------------------------------
Date: 25 Sep 2000 19:07:52 +0100
From: nobull@mail.com
Subject: Re: Getting a file from an HTML page
Message-Id: <u9n1gwjqfb.fsf@wcl-l.bham.ac.uk>
Ofir Goldberger <ofir.goldberger@weizmann.ac.il> writes:
> I need to get a file from the user via an HTML page with the tag <input
> type="file">. I tried using CGI::Standared's param() method but all I got
> was the file name.
Are you sure? Are you sure that the thing you got was not magically
both a filename _and_ a filehandle since that is what param() returns
for file fields.
BTW: Are you aware that forms containing file fields but must use the
multipart/form-data encoding?
> does anyone know how I can get a filehandle to this file ?
The upload() method.
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
------------------------------
Date: Mon, 25 Sep 2000 21:39:35 GMT
From: padmanab@my-deja.com
Subject: Help required for a win newbie
Message-Id: <8qogmj$i9q$1@nnrp1.deja.com>
hello,
I am basically a linux programmer and i wish to know as to how to
install the Active perl and start coding so that i can start a
webserver in my Win98 Machine and thereby do coding in PERL- CGI
Please help me out.
thanks and rgds,
padie
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 4425
**************************************