[30783] in Perl-Users-Digest
Perl-Users Digest, Issue: 2028 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Dec 4 00:09:50 2008
Date: Wed, 3 Dec 2008 21:09:09 -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, 3 Dec 2008 Volume: 11 Number: 2028
Today's topics:
Re: How to find cpu utilization for each process on WIn <nospam@somewhere.com>
Re: Mathematica 7 compares to other languages <Chris.Rathman@gmail.com>
Re: Mathematica 7 compares to other languages <xahlee@gmail.com>
Re: Mathematica 7 compares to other languages <tmh.public@gmail.com>
Re: Mathematica 7 compares to other languages <xahlee@gmail.com>
Re: Mathematica 7 compares to other languages <noone@lewscanon.com>
Re: Mathematica 7 compares to other languages <tim@burlyhost.com>
Re: Mathematica 7 compares to other languages <toby@telegraphics.com.au>
Re: Mathematica 7 compares to other languages <toby@telegraphics.com.au>
Re: Mathematica 7 compares to other languages <jurgenex@hotmail.com>
Re: Mathematica 7 compares to other languages <kkylheku@gmail.com>
Re: perl segfault - how to troubleshoot <tim@burlyhost.com>
Re: Problems with table position in a PDF using PDF::Ta <r.ted.byers@gmail.com>
Re: Problems with table position in a PDF using PDF::Ta <uri@stemsystems.com>
Re: Problems with table position in a PDF using PDF::Ta <r.ted.byers@gmail.com>
Web programming: issues with large amounts og data <r.ted.byers@gmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 3 Dec 2008 20:36:46 -0500
From: "Thrill5" <nospam@somewhere.com>
Subject: Re: How to find cpu utilization for each process on WIndows Platform using perl
Message-Id: <gh7c7i$7k4$1@nntp.motzarella.org>
Windows has lots of instrumentation available so I'm sure there is a MIB you
can poll to get this information. A better place to find out how to get
information you need would be a Microsoft newsgroup.
<zigzagdna@yahoo.com> wrote in message
news:18a6720f-772c-4945-af78-32a63fc4b0ec@t11g2000yqg.googlegroups.com...
>I am on Windows 2000 Server. Are there any perl programs which will
> show me cpu utilization of each process. I will like to schedule such
> a program to find which processes are taking most of cpu (similar to
> top or glance in UNIX).
------------------------------
Date: Wed, 3 Dec 2008 15:23:53 -0800 (PST)
From: Chris Rathman <Chris.Rathman@gmail.com>
Subject: Re: Mathematica 7 compares to other languages
Message-Id: <27dd3536-b101-40e4-9db9-c06baac83b1e@k8g2000yqn.googlegroups.com>
Xah Lee wrote:
> Come flying $5 to my paypal account, and i'll give you real code,
> amongest the programing tech geekers here for all to see.
That's the problem with Mathematica - it's so expensive that you even
have to pay for simple benchmark programs.
------------------------------
Date: Wed, 3 Dec 2008 15:26:26 -0800 (PST)
From: Xah Lee <xahlee@gmail.com>
Subject: Re: Mathematica 7 compares to other languages
Message-Id: <7454a7ef-ec19-4d7c-986b-d56c3ed8111b@i24g2000prf.googlegroups.com>
> I'll pay $20 to see your improved version of the code. The only
> references to PayPal I saw on your website were instructions to direct
> the payment to x...@xahlee.org, please let me know if that is correct.
>
> What I want in return is you to execute and time Dr. Harrop's original
> code, posting the results to this thread. Then, I would like you to
> post your code with the timing results to this thread as well.
>
> By Dr. Harrop's original code, I specifically mean the code he posted
> to this thread. I've pasted it below for clarity.
Agreed. My paypal address is =E2=80=9Cxah @@@ xahlee.org=E2=80=9D. (replace=
the triple
@ to single one.) Once you paid thru paypal, you can post receit here
if you want to, or i'll surely acknowledge it here.
Here's what i will do:
I will give a version of Mathematica code that has the same behavior
as his. And i will give timing result. The code will run in
Mathematica version 4. (sorry, but that's what i have) As i
understand, Jon is running Mathematica 6. However, i don't see
anything that'd require Mathematica 6. If my code is not faster or in
other ways not satisfactory (by your judgement), or it turns out
Mathematica 6 is necessary, or any problem that might occure, i offer
money back guarantee.
Xah
=E2=88=91 http://xahlee.org/
=E2=98=84
On Dec 3, 2:12 pm, "Thomas M. Hermann" <tmh.pub...@gmail.com> wrote:
> On Dec 3, 3:15 pm, Xah Lee <xah...@gmail.com> wrote:
>
>
>
> > On Dec 3, 8:24 am, Jon Harrop <j...@ffconsultancy.com> wrote:
>
> > > My example demonstrates several of Mathematica's fundamental limitati=
ons.
>
> > enough babble Jon.
>
> > Come flying $5 to my paypal account, and i'll give you real code,
> > amongest the programing tech geekers here for all to see.
>
> > I'll show, what kinda garbage you cooked up in your Mathematica code
> > for =E2=80=9Ccomparison=E2=80=9D.
>
> > You can actually just post your =E2=80=9Ccomparisons=E2=80=9D to =E2=80=
=9Ccomp.soft-
> > sys.math.mathematica=E2=80=9D, and you'll be ridiculed to death for any
> > reasonable judgement of claim on fairness.
>
> > > Consequently, there is great value in combining Mathematica with perf=
ormant
> > > high-level languages like OCaml and F#. This is what the vast majorit=
y of
> > > Mathematica users do: they use it as a glorified graph plotter.
>
> > glorified your ass.
>
> > Yeah, NASA, Intel, NSA, ... all use Mathematica to glorify their
> > pictures. LOL.
>
> > > What exactly do you believe is wrong with my code?
>
> > come flies $5 to my paypal, and i'll explain further.
>
> > > I am not trying to make Mathematica look bad. It is simply not suitab=
le when
> > > hierarchical solutions are preferable...
>
> > Certainly there are areas other langs are more suitable and better
> > than Mathematica (for example: assembly langs). But not in the ways
> > you painted it to peddle your F# and OCaml books.
>
> > You see Jon, you are this defensive, trollish guy, who takes every
> > opportunity to slight other langs that's not one of your F#, OCml that
> > you make a living of. In every opportunity, you injest your gribes
> > about static typing and other things, and thru ensuring chaos paves
> > the way for you to post urls to your website.
>
> > With your math and functional programing expertise and Doctor label,
> > it can be quite intimidating to many geekers. But when you bump into
> > me, i don't think you have a chance.
>
> > As a scientist, i think perhaps you should check your newsgroup
> > demeanor a bit? I mean, you already have a reputation of being biased.
> > Too much bias and peddling can be detrimental to your career, y'known?
>
> > to be sure, i still respect your expertise and in general think that a
> > significant percentage of tech geeker's posts in debate with you are
> > moronic, especially the Common Moron Lispers, and undoubtably the Java
> > and imperative lang slaving morons who can't grope the simplest
> > mathematical concepts. Throwing your Mathematica bad mouthing at me
> > would be a mistake.
>
> > Come, fly $5 to my paypal account. Let the challenge begin.
>
> > Xah
> > =E2=88=91http://xahlee.org/
>
> > =E2=98=84
>
> Xah,
>
> I'll pay $20 to see your improved version of the code. The only
> references to PayPal I saw on your website were instructions to direct
> the payment to x...@xahlee.org, please let me know if that is correct.
>
> What I want in return is you to execute and time Dr. Harrop's original
> code, posting the results to this thread. Then, I would like you to
> post your code with the timing results to this thread as well.
>
> By Dr. Harrop's original code, I specifically mean the code he posted
> to this thread. I've pasted it below for clarity.
>
> Jon Harrop coded a ray tracer in Mathematica:
>
> > delta =3D Sqrt[$MachineEpsilon];
>
> > RaySphere[o_, d_, c_, r_] :=3D
> > Block[{v, b, disc, t1, t2},
> > v =3D c - o;
> > b =3D v.d;
> > disc =3D Sqrt[b^2 - v.v + r^2];
> > t2 =3D b + disc;
> > If[Im[disc] !=3D 0 || t2 <=3D 0, \[Infinity],
> > t1 =3D b - disc;
> > If[t1 > 0, t1, t2]]
> > ]
>
> > Intersect[o_, d_][{lambda_, n_}, Sphere[c_, r_]] :=3D
> > Block[{lambda2 =3D RaySphere[o, d, c, r]},
> > If[lambda2 >=3D lambda, {lambda, n}, {lambda2,
> > Normalize[o + lambda2 d - c]}]
> > ]
> > Intersect[o_, d_][{lambda_, n_}, Bound[c_, r_, s_]] :=3D
> > Block[{lambda2 =3D RaySphere[o, d, c, r]},
> > If[lambda2 >=3D lambda, {lambda, n},
> > Fold[Intersect[o, d], {lambda, n}, s]]
> > ]
>
> > neglight =3D N@Normalize[{1, 3, -2}];
>
> > nohit =3D {\[Infinity], {0, 0, 0}};
>
> > RayTrace[o_, d_, scene_] :=3D
> > Block[{lambda, n, g, p},
> > {lambda, n} =3D Intersect[o, d][nohit, scene];
> > If[lambda =3D=3D \[Infinity], 0,
> > g =3D n.neglight;
> > If[g <=3D 0, 0,
> > {lambda, n} =3D
> > Intersect[o + lambda d + delta n, neglight][nohit, scene];
> > If[lambda < \[Infinity], 0, g]]]
> > ]
>
> > Create[level_, c_, r_] :=3D
> > Block[{obj =3D Sphere[c, r]},
> > If[level =3D=3D 1, obj,
> > Block[{a =3D 3*r/Sqrt[12], Aux},
> > Aux[x1_, z1_] :=3D Create[level - 1, c + {x1, a, z1}, 0.5 r];
> > Bound[c,
> > 3 r, {obj, Aux[-a, -a], Aux[a, -a], Aux[-a, a], Aux[a, a]}]]]]
>
> > scene =3D Create[1, {0, -1, 4}, 1];
>
> > Main[level_, n_, ss_] :=3D
> > Block[{scene =3D Create[level, {0, -1, 4}, 1]},
> > Table[
> > Sum[
> > RayTrace[{0, 0, 0},
> > N@Normalize[{(x + s/ss/ss)/n - 1/2, (y + Mod[s, ss]/ss)/n - 1/2,
> > 1}], scene], {s, 0, ss^2 - 1}]/ss^2, {y, 0, n - 1},
> > {x, 0, n - 1}]]
>
> > AbsoluteTiming[Export["image.pgm", Graphics@Raster@Main[9, 512, 4]]]
------------------------------
Date: Wed, 3 Dec 2008 16:22:21 -0800 (PST)
From: "Thomas M. Hermann" <tmh.public@gmail.com>
Subject: Re: Mathematica 7 compares to other languages
Message-Id: <6a8f2eef-43e1-4a99-ae41-e4c90e6130e7@x38g2000yqj.googlegroups.com>
On Dec 3, 5:26=C2=A0pm, Xah Lee <xah...@gmail.com> wrote:
> Agreed. My paypal address is =E2=80=9Cxah @@@ xahlee.org=E2=80=9D. (repla=
ce the triple
> @ to single one.) Once you paid thru paypal, you can post receit here
> if you want to, or i'll surely acknowledge it here.
>
> Here's what i will do:
>
> I will give a version of Mathematica code that has the same behavior
> as his. And i will give timing result. The code will run in
> Mathematica version 4. (sorry, but that's what i have) As i
> understand, Jon is running Mathematica 6. However, i don't see
> anything that'd require Mathematica 6. If my code is not faster or in
> other ways not satisfactory (by your judgement), or it turns out
> Mathematica 6 is necessary, or any problem that might occure, i offer
> money back guarantee.
>
> =C2=A0 Xah
> =E2=88=91http://xahlee.org/
>
> =E2=98=84
>
Alright, I've sent $20. The only reason I would request a refund is if
you don't do anything. As long as you improve the code as you've
described and post the results, I'll be satisfied. If the improvements
you've described don't result in better performance, that's OK.
Good luck,
Tom
------------------------------
Date: Wed, 3 Dec 2008 16:32:57 -0800 (PST)
From: Xah Lee <xahlee@gmail.com>
Subject: Re: Mathematica 7 compares to other languages
Message-Id: <a1f1a786-9743-4b73-95d8-0aabad660f1a@v5g2000prm.googlegroups.com>
On Dec 3, 4:22=C2=A0pm, "Thomas M. Hermann" <tmh.pub...@gmail.com> wrote:
> On Dec 3, 5:26=C2=A0pm, Xah Lee <xah...@gmail.com> wrote:
>
>
>
> > Agreed. My paypal address is =E2=80=9Cxah @@@ xahlee.org=E2=80=9D. (rep=
lace the triple
> > @ to single one.) Once you paid thru paypal, you can post receit here
> > if you want to, or i'll surely acknowledge it here.
>
> > Here's what i will do:
>
> > I will give a version of Mathematica code that has the same behavior
> > as his. And i will give timing result. The code will run in
> > Mathematica version 4. (sorry, but that's what i have) As i
> > understand, Jon is running Mathematica 6. However, i don't see
> > anything that'd require Mathematica 6. If my code is not faster or in
> > other ways not satisfactory (by your judgement), or it turns out
> > Mathematica 6 is necessary, or any problem that might occure, i offer
> > money back guarantee.
>
> > =C2=A0 Xah
> > =E2=88=91http://xahlee.org/
>
> > =E2=98=84
>
> Alright, I've sent $20. The only reason I would request a refund is if
> you don't do anything. As long as you improve the code as you've
> described and post the results, I'll be satisfied. If the improvements
> you've described don't result in better performance, that's OK.
>
> Good luck,
>
> Tom
Got the payment. Thanks.
I'll reply back with code tonight or tomorrow. Wee!
Xah
=E2=88=91 http://xahlee.org/
=E2=98=84
------------------------------
Date: Wed, 03 Dec 2008 20:38:44 -0500
From: Lew <noone@lewscanon.com>
Subject: Re: Mathematica 7 compares to other languages
Message-Id: <gh7cb4$a1l$3@news.albasani.net>
Xah Lee wrote:
> enough babble ...
Good point. Plonk. Guun dun!
--
Lew
------------------------------
Date: Wed, 03 Dec 2008 18:43:11 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: Mathematica 7 compares to other languages
Message-Id: <3tHZk.16596$1s7.5735@newsfe02.iad>
Thomas M. Hermann wrote:
> Good luck,
About time this stops being cross posted to comp.lang.perl.misc,
comp.lang.python, and comp.lang.java.programmer, don't you guys think?
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
Date: Wed, 3 Dec 2008 20:15:24 -0800 (PST)
From: toby <toby@telegraphics.com.au>
Subject: Re: Mathematica 7 compares to other languages
Message-Id: <6c702fda-1a8a-4c3d-a7c0-82e45edab2ce@k41g2000yqn.googlegroups.com>
On Dec 2, 5:04 pm, Tamas K Papp <tkp...@gmail.com> wrote:
> On Tue, 02 Dec 2008 13:57:35 -0800, Lew wrote:
> > Xah Lee wrote:
> >> If [yo]u would like to learn [the] [E]nglish lang[uage] and writing
> >> insights from me, peruse:
>
> > /Au contraire/, I was suggesting a higher standard for your posts.
>
> Hi Lew,
>
> It is no use. Xah has been posting irrelevant rants in broken English
> here for ages. No one knows why, but mental institutions must be really
> classy these days if the inmates have internet access. Just filter him
> out with your newsreader.
You think the posts are bad... check out his web site...
--T
>
> Best,
>
> Tamas
------------------------------
Date: Wed, 3 Dec 2008 20:19:01 -0800 (PST)
From: toby <toby@telegraphics.com.au>
Subject: Re: Mathematica 7 compares to other languages
Message-Id: <4b6c3304-2396-4d35-a06f-e5d693cbbb12@f13g2000yqj.googlegroups.com>
On Dec 3, 4:15 pm, Xah Lee <xah...@gmail.com> wrote:
> On Dec 3, 8:24 am, Jon Harrop <j...@ffconsultancy.com> wrote:
>
> > My example demonstrates several of Mathematica's fundamental limitations.
>
> enough babble Jon.
>
> Come flying $5 to my paypal account, and i'll give you real code,
I'll give you $5 to go away
--T
------------------------------
Date: Wed, 03 Dec 2008 20:45:39 -0800
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: Mathematica 7 compares to other languages
Message-Id: <l2oej4141lej4fat3mft05i75je2t6fsmb@4ax.com>
toby <toby@telegraphics.com.au> wrote:
>On Dec 3, 4:15 pm, Xah Lee <xah...@gmail.com> wrote:
>> On Dec 3, 8:24 am, Jon Harrop <j...@ffconsultancy.com> wrote:
>>
>> > My example demonstrates several of Mathematica's fundamental limitations.
>>
>> enough babble Jon.
>>
>> Come flying $5 to my paypal account, and i'll give you real code,
>
>I'll give you $5 to go away
if you add "and never come back" then count me in, too.
jue
------------------------------
Date: Thu, 4 Dec 2008 04:54:31 +0000 (UTC)
From: Kaz Kylheku <kkylheku@gmail.com>
Subject: Re: Mathematica 7 compares to other languages
Message-Id: <20081219033030.559@gmail.com>
On 2008-12-04, Jürgen Exner <jurgenex@hotmail.com> wrote:
> toby <toby@telegraphics.com.au> wrote:
>>On Dec 3, 4:15 pm, Xah Lee <xah...@gmail.com> wrote:
>>> On Dec 3, 8:24 am, Jon Harrop <j...@ffconsultancy.com> wrote:
>>>
>>> > My example demonstrates several of Mathematica's fundamental limitations.
>>>
>>> enough babble Jon.
>>>
>>> Come flying $5 to my paypal account, and i'll give you real code,
>>
>>I'll give you $5 to go away
>
> if you add "and never come back" then count me in, too.
Really? I will trade you one Xah Lee for three Jon Harrops and I will even
throw in a free William James.
------------------------------
Date: Wed, 03 Dec 2008 21:05:23 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: perl segfault - how to troubleshoot
Message-Id: <oyJZk.16783$1s7.10219@newsfe02.iad>
James Harris wrote:
> I've added a Linux group because this has led to other queries:
Oddly, I check the Linux groups before I check the Perl group and I
didn't see your post there.
> 1. Is there a way to tell what file systems are corrupt while the
> machine is running normally? - I.e. was Linux (Ubuntu) telling me of
> the faults somewhere?
fsck, badblocks, smartctl, and various tools for your drive (raid
specific tools/checks for some raid drives and their health, if you use
raid, too).
> 2. If it was where does it report this?
To the output or a log, depending on the tool and option used or
direction of the output, or if you mean to see any warnings/errors as
they happen, check dmesg as it happens and the messages log. Other
logs if you use other tools to check and log automatically.
> 3. If it wasn't why not??? Fsck knew of faults on some of the file
> systems on bootup without having to scan the disks for them. If it
> knows there why not report it sooner?
Ensure your kernel has the proper error logging/debugging enabled and
you're running the checks manually or automatically with the
aforementioned tools.
The above is just a very quick run down and nothing too involved, but
the general idea.
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
Date: Wed, 3 Dec 2008 17:26:37 -0800 (PST)
From: Ted Byers <r.ted.byers@gmail.com>
Subject: Re: Problems with table position in a PDF using PDF::Table
Message-Id: <f44380c9-7963-4f71-bdde-59423b747cc7@x14g2000yqk.googlegroups.com>
On Dec 3, 5:57=A0pm, Jim Gibson <jimsgib...@gmail.com> wrote:
> In article
> <ddaf5feb-1f7a-45e2-b2bd-9db373baa...@l42g2000yqe.googlegroups.com>,
>
> Ted Byers <r.ted.by...@gmail.com> wrote:
> > Here is what I have in my code:
>
> > =A0 ($end_page, $pages_spanned, $table_bot_y) =3D $pdftable->table(
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$pdf,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$page,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\@table2,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0x=3D>$x,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0w=3D>555,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0start_y=3D>$y,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0next_y=3D>$900,
>
> Is that really '$900' in your code? That is probably undefined (unless
> you have a very long regular expression in your code.)
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0start_h=3D> 250,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0next_h=3D>500,
> > # optional parameters
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0padding =3D>2,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0header_props=3D>$hdr_props,
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0column_props=3D>$col_propsM2,
> > =A0 );
>
> --
> Jim Gibson
Yes. A typo. I am surprised, though, that it went undetected given
that the first line of the script is "use strict;" Is that a fluke,
or are there times when use strict won't catch an undeclared variable?
Thanks for spotting that.
Ted
------------------------------
Date: Wed, 03 Dec 2008 21:19:25 -0500
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Problems with table position in a PDF using PDF::Table
Message-Id: <x7d4g8iswi.fsf@stemsystems.com>
>>>>> "TB" == Ted Byers <r.ted.byers@gmail.com> writes:
TB> On Dec 3, 5:57 pm, Jim Gibson <jimsgib...@gmail.com> wrote:
>> > next_y=>$900,
>>
>> Is that really '$900' in your code? That is probably undefined (unless
>> you have a very long regular expression in your code.)
TB> Yes. A typo. I am surprised, though, that it went undetected given
TB> that the first line of the script is "use strict;" Is that a fluke,
TB> or are there times when use strict won't catch an undeclared variable?
strict will detect undeclared vars. that $900 is as jim said a very
large numbered grab variable which never needs declaring. it would be
undef which is valid as a hash value. now if you interpolated it or did
some other stuff it would trigger a warning if warnings were enabled.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Free Perl Training --- http://perlhunter.com/college.html ---------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
------------------------------
Date: Wed, 3 Dec 2008 18:39:20 -0800 (PST)
From: Ted Byers <r.ted.byers@gmail.com>
Subject: Re: Problems with table position in a PDF using PDF::Table
Message-Id: <95b7d912-0cf8-49c7-aa20-9a7a8b1a0dba@u14g2000yqg.googlegroups.com>
On Dec 3, 9:19=A0pm, Uri Guttman <u...@stemsystems.com> wrote:
> >>>>> "TB" =3D=3D Ted Byers <r.ted.by...@gmail.com> writes:
>
> =A0 TB> On Dec 3, 5:57=A0pm, Jim Gibson <jimsgib...@gmail.com> wrote:
> =A0 >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0next_y=3D>$900,
> =A0 >>
> =A0 >> Is that really '$900' in your code? That is probably undefined (un=
less
> =A0 >> you have a very long regular expression in your code.)
>
> =A0 TB> Yes. =A0A typo. =A0I am surprised, though, that it went undetecte=
d given
> =A0 TB> that the first line of the script is "use strict;" =A0Is that a f=
luke,
> =A0 TB> or are there times when use strict won't catch an undeclared vari=
able?
>
> strict will detect undeclared vars. that $900 is as jim said a very
> large numbered grab variable which never needs declaring. it would be
> undef which is valid as a hash value. now if you interpolated it or did
> some other stuff it would trigger a warning if warnings were enabled.
>
> uri
>
> --
> Uri Guttman =A0------ =A0u...@stemsystems.com =A0-------- =A0http://www.s=
ysarch.com--
> ----- =A0Perl Code Review , Architecture, Development, Training, Support =
------
> --------- Free Perl Training ---http://perlhunter.com/college.html-------=
--
> --------- =A0Gourmet Hot Cocoa Mix =A0---- =A0http://bestfriendscocoa.com=
---------
Ah, OK. Learned something new today.
Thanks
Ted
------------------------------
Date: Wed, 3 Dec 2008 15:19:29 -0800 (PST)
From: Ted Byers <r.ted.byers@gmail.com>
Subject: Web programming: issues with large amounts og data
Message-Id: <d009c03e-e0c4-47b2-b8da-c83ddbcf5d76@t11g2000yqg.googlegroups.com>
Running on Windows XP and on Windows Server 2003, Activestate Perl
5.8.8 and 5.10.0.
In the script that is giving me troubles, I am using LWP::RobotUA,
LWP::UserAgent, HTTP::Request, HTTP::Request::Common, and
HTTP::Response. However, I have seen similar issues with
Finance::QuoteHist::Yahoo.
The problem manifests itself as the download terminating and the
script appearing to freeze. This only happens when the download is
large (many megabytes in size). i have a data feed that I can only
access using POST to a given URI (with query parameters specifyin what
data I am trying to retrieve. Never does this result in an error.
The script just freezes and the download ends. So far, I have been
able to work around this by modifying my scripts to break the download
into smaller peices to be handled in a child process. With the one
script, each download is only a few kbytes in size, but there are over
9000 downloads of about the same size, and the total amount of data
across all downloads appeas to be the key, Doing each of those 9000
downloads in its own child process results in a happy, successfully
completed job. Doing them in a loop in a single process results in
unhappy failure.
Does anyone know what I can look at to make these download scripts
either finish successfully or give me a message saying there's too
much data for the script to handle? More importantly, what is the
most likely cause of this misbehaviour and how can it be fixed?
NB: The scripts I'm using work flawlessly when I use parameters that
are guaranteed to restrict the total amount of data to be handled by
the script to a few dozen kbytes, and this is diligently checking for
problems i know about.
Thanks
Ted
------------------------------
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 V11 Issue 2028
***************************************