[28242] in Perl-Users-Digest
Perl-Users Digest, Issue: 9606 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Aug 15 03:06:09 2006
Date: Tue, 15 Aug 2006 00:05:05 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 15 Aug 2006 Volume: 10 Number: 9606
Today's topics:
Re: [VOTE] Publicly flog David Filmer for writing multi <mumia.w.18.spam+nospam.usenet@earthlink.net>
Re: My multipost-detecting usenet bot (David Filmer) axel@white-eagle.invalid.uk
Re: My multipost-detecting usenet bot (David Filmer) usenet@DavidFilmer.com
Re: My multipost-detecting usenet bot (David Filmer) <john@castleamber.com>
Re: My multipost-detecting usenet bot (David Filmer) <john@castleamber.com>
new CPAN modules on Tue Aug 15 2006 (Randal Schwartz)
Re: PerlDoc used in CPAN?--MULTIPOSTED <zhushenli@gmail.com>
Re: PerlDoc used in CPAN?--MULTIPOSTED <mritty@gmail.com>
Re: PerlDoc used in CPAN?--MULTIPOSTED usenet@DavidFilmer.com
Re: Publicly flog David Filmer for writing multi-post f <mumia.w.18.spam+nospam.usenet@earthlink.net>
Re: Publicly flog David Filmer for writing multi-post f <john@castleamber.com>
string and time question <a@mail.com>
Re: string and time question <simon@unisolve.com.au>
Re: string and time question <simon@unisolve.com.au>
Re: system command won't let go rallabs@adelphia.net
Template::Plugin::GD - drawing graph <anchi.chen@gmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 15 Aug 2006 05:01:51 GMT
From: "Mumia W." <mumia.w.18.spam+nospam.usenet@earthlink.net>
Subject: Re: [VOTE] Publicly flog David Filmer for writing multi-post flagging 'bot
Message-Id: <3zcEg.9010$0e5.8106@newsread4.news.pas.earthlink.net>
On 08/14/2006 02:35 PM, Michele Dondi wrote:
> On Mon, 14 Aug 2006 18:19:47 GMT, "Mumia W."
> <mumia.w.18.spam+nospam.usenet@earthlink.net> wrote:
>
>> Publicly flog David Filmer for writing multi-post flagging 'bot:
>>
>> Yea
>
> Naaah! David Filmer is a good contributor to the group. This is
> orthogonal to the fact that I don't like his bot myself. BTW: I'll
> never really know when (if) it's disabled, since I already killfiled
> it.
>
>
> Michele
Hey, I didn't say run him out of the group. :-)
I agree he contributes a lot, but the 'bot was a really, bad,
bad idea.
------------------------------
Date: Tue, 15 Aug 2006 01:26:43 GMT
From: axel@white-eagle.invalid.uk
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <np9Eg.13798$lv.11207@fed1read12>
usenet@davidfilmer.com wrote:
> Greetings. As many of you are doubtless aware, I recently wrote and
> deployed a usenet 'bot which identifies multiposted messages. After
> manually flagging such messages for some time, it occurred to me that I
> could let Perl do the work for me, and laziness took over.
> This topic is presently being discussed in a number of threads:
> http://tinyurl.com/rdedx, http://tinyurl.com/m2e2r, and
> http://tinyurl.com/oubbn (and possibly others), and the topic is
> certainly OT to the first two threads (and the third thread is postured
> as an attack article). Multiple threads are an ineffective way to
Now you have hit *my* pet annoyance... posting URLs in Usenet
postings without good cause... sorry, I'm not firing up a browser
to read them.
Axel
------------------------------
Date: 14 Aug 2006 19:21:26 -0700
From: usenet@DavidFilmer.com
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <1155608486.170121.321480@p79g2000cwp.googlegroups.com>
axel@white-eagle.invalid.uk wrote:
> Now you have hit *my* pet annoyance... posting URLs in Usenet
> postings without good cause...
sorry...
<news:JoPDg.386093$Mn5.194189@pd7tw3no>
<news:1MudndoQatEWq0LZRVn_vQ@giganews.com>
<news:793Eg.5010$Qf.2216@newsread2.news.pas.earthlink.net>
--
David Filmer (http://DavidFilmer.com)
------------------------------
Date: 15 Aug 2006 02:58:51 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <Xns981FDF97E7A7Bcastleamber@130.133.1.4>
Sherm Pendley <sherm@Sherm-Pendleys-Computer.local> wrote:
> For myself, I'd prefer to answer the posted question, and include a
> comment in the answer about multi-posting, netiquette, and the group
> guidelines. If constructive criticism of that sort is given *along
> with* an answer to the posted question, it's more likely to be taken
> seriously. If it's given on its own, the receiver is (IMO) more likely
> to dismiss the sender as a crank and ignore the advice.
AOL.
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
------------------------------
Date: 15 Aug 2006 03:04:02 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: My multipost-detecting usenet bot (David Filmer)
Message-Id: <Xns981FE079278F7castleamber@130.133.1.4>
usenet@DavidFilmer.com wrote:
> John Bokma wrote:
[..]
>> Make sure that you provide a contact email address.
>
> That has also been done. It's my catch-all domain - I'll probably
> spam-safe it like I do with usenet@davidfilmer.com (which is a
> blackhole with an informative autoresponder)
What seems (or seemed) to work is usenet+bot@
spam harvesting bots seem to get only the bot@ :-D (The + is allowed in
email addresses).
>> Only post a reply if there hasn't been made one yet.
>
> That's probably a good idea (although it's not uncommon for manual
> flagging to be done subsequent to other replies). Making such a
> change, however, would require some significant changes to the flow of
> the program...
A programming challenge :-D
>> Also, some people who multipost understand the issue, and cancel the
>> wrong post. Cancels always run after the facts. What you really want
>> to avoid is having your bot reply to a message that has been canceled
>> a few seconds earlier.
>
> I agree that would be an undesirable situation (though generally
> unlikely, IMHO), but I'm not sure how to avoid it. Even posting
> manually, I believe it's possible something like this could happen.
Yes. I am sure that I have replied to canceled messages more then once
in the past years.
> I'm pretty sure I've replied (manually) to posts that got pulled out
> from under my feet, and only my reply remained (one such post, if I
> recall, was in German, but I answered it anyway only to find the
> original was gone - probably in favor of a .de group). I don't know
> if it's possible to avoid this situation programmatically any more
> than it is manually (but I'm open to ideas!)
You could check control.cancel, but it might be overkill.
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
------------------------------
Date: Tue, 15 Aug 2006 04:42:08 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Tue Aug 15 2006
Message-Id: <J40vq8.ovH@zorch.sf-bay.org>
The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN). You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.
Alvis-Pipeline-0.10
http://search.cpan.org/~mirk/Alvis-Pipeline-0.10/
Perl extension for passing XML documents along the Alvis pipeline
----
Apache2-FixRemote-0.01
http://search.cpan.org/~dorian/Apache2-FixRemote-0.01/
Reset remote IP with contents of X-Forwarded-For header
----
Apache2-FixupContentLanguage-0.01
http://search.cpan.org/~dorian/Apache2-FixupContentLanguage-0.01/
Fixup handler for Last-Modified header
----
Apache2-FixupLastModified-0.01
http://search.cpan.org/~dorian/Apache2-FixupLastModified-0.01/
Fixup handler for Last-Modified header
----
Apache2-SQLRequest-0.02
http://search.cpan.org/~dorian/Apache2-SQLRequest-0.02/
Supply SQL queries to an Apache request object
----
Apache2-SiteControl-1.04
http://search.cpan.org/~awkay/Apache2-SiteControl-1.04/
Perl web site authentication/authorization system
----
Apache2-TomKit-0.01_6
http://search.cpan.org/~tomson/Apache2-TomKit-0.01_6/
Perl Module used to Transform Content
----
App-SimpleScan-1.17
http://search.cpan.org/~mcmahon/App-SimpleScan-1.17/
simple_scan's core code
----
Archive-Any-0.09
http://search.cpan.org/~cmoore/Archive-Any-0.09/
Single interface to deal with file archives.
----
Archive-Any-0.091
http://search.cpan.org/~cmoore/Archive-Any-0.091/
Single interface to deal with file archives.
----
CGI-Application-Dispatch-2.01
http://search.cpan.org/~wonko/CGI-Application-Dispatch-2.01/
Dispatch requests to CGI::Application based objects
----
CGI-Session-Driver-memcached-0.01
http://search.cpan.org/~oinume/CGI-Session-Driver-memcached-0.01/
CGI::Session driver for memcached
----
Catalyst-Plugin-Server-0.20
http://search.cpan.org/~michiel/Catalyst-Plugin-Server-0.20/
Base Server plugin for RPC-able protocols
----
Class-Accessor-Named-0.004
http://search.cpan.org/~jesse/Class-Accessor-Named-0.004/
Better profiling output for Class::Accessor
----
Crypt-MySQL-0.03
http://search.cpan.org/~ikebe/Crypt-MySQL-0.03/
emulate MySQL PASSWORD() function.
----
Crypt-MySQL-0.04
http://search.cpan.org/~ikebe/Crypt-MySQL-0.04/
emulate MySQL PASSWORD() function.
----
DBIx-SimplePerl-1.50
http://search.cpan.org/~landman/DBIx-SimplePerl-1.50/
Perlish access to DBI
----
Devel-PPPort-3.10
http://search.cpan.org/~mhx/Devel-PPPort-3.10/
Perl/Pollution/Portability
----
Exception-NoException-0.01
http://search.cpan.org/~jjore/Exception-NoException-0.01/
An exception object that's always false.
----
Finance-Bank-LaPoste-2.00
http://search.cpan.org/~pixel/Finance-Bank-LaPoste-2.00/
Check your "La Poste" accounts from Perl
----
HTML-Perlinfo-1.42
http://search.cpan.org/~accardo/HTML-Perlinfo-1.42/
Display a lot of Perl information in HTML format
----
HTML-Widget-1.08
http://search.cpan.org/~cfranks/HTML-Widget-1.08/
HTML Widget And Validation Framework
----
Mail-Summary-Tools-0.01
http://search.cpan.org/~nuffin/Mail-Summary-Tools-0.01/
Tools for mailing list summarization.
----
MediaWiki-1.05
http://search.cpan.org/~spectrum/MediaWiki-1.05/
OOP MediaWiki engine client
----
NetAddr-IP-4.003
http://search.cpan.org/~luismunoz/NetAddr-IP-4.003/
Manages IPv4 and IPv6 addresses and subnets
----
PAR-Filter-Squish-0.01
http://search.cpan.org/~smueller/PAR-Filter-Squish-0.01/
PAR filter for reducing code size
----
PDF-API2-0.55
http://search.cpan.org/~areibens/PDF-API2-0.55/
A Perl Module Chain to faciliate the Creation and Modification of High-Quality "Portable Document Format (aka. PDF)" Files.
----
SVN-Mirror-0.69_2
http://search.cpan.org/~clkao/SVN-Mirror-0.69_2/
Mirror remote repository to local Subversion repository
----
SVN-Mirror-0.69_3
http://search.cpan.org/~clkao/SVN-Mirror-0.69_3/
Mirror remote repository to local Subversion repository
----
XML-Compile-0.02
http://search.cpan.org/~markov/XML-Compile-0.02/
Compilation based XML processing
----
XML-Feed-0.12
http://search.cpan.org/~btrott/XML-Feed-0.12/
Syndication feed parser and auto-discovery
If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.
This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
http://www.stonehenge.com/merlyn/LinuxMag/col82.html
print "Just another Perl hacker," # the original
--
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: 14 Aug 2006 18:52:16 -0700
From: "Davy" <zhushenli@gmail.com>
Subject: Re: PerlDoc used in CPAN?--MULTIPOSTED
Message-Id: <1155606736.158145.87510@i3g2000cwc.googlegroups.com>
usenet.cop@3955291010.com wrote:
> "Davy" <zhushenli@gmail.com> wrote:
> >> [ snip and ignore MULTIPOSTED message ]
[snip]
Hi all,
I am who do the multipost, sorry for the inconvenience!
I have read the bot information thoroughly, and have three solutions.
[1] Idea from email's "CC". Partition target forum to "primary forum"
and "not primary forum". When we multipost, we must choose only one
"primary forum" and several "not primary forum". When someone reply on
"not primary forum", the post will be post to the "primary forum" but
can be show on all the "not primary forum". Is it possible in
techniques?
[2] When the person who reply the multipost, he can choose to reply to
all the multipost forums (all follower can view his post, and I prefer
that) or only reply to the forum he choose.
[3] When multipost, the system add a tag to the source post and show
where post is multiposted.
Any discussions are welcome!
Davy
>
> **********************************************************************
> ********** PLEASE DO NOT RESPOND TO THIS THREAD ***********
> **********************************************************************
>
> This message has been multiposted as indicated by these message IDs:
> <1155479132.418250.248360@p79g2000cwp.googlegroups.com>
> <1155479132.418250.248360@p79g2000cwp.googlegroups.com>
>
> This is the 1st auto-detected multiposted message by this author.
>
> ######################################################################
> # TO THE USENET COMMUNITY: This message has been multiposted, which #
> # is universally considered rude. Therefore, it is requested that #
> # you DO NOT reply to this thread. Doing so only encourages rudeness.#
> # #
> # NOTE: This "Multipost Detector" has been recently-deployed as a #
> # service to the Perl community. Questions or comments are welcome #
> # (just reply to this message). See the NAQ at the end of this post. #
> ######################################################################
>
> ######################################################################
> # TO THE ORIGINAL POSTER (OP): You have posted a multiposted message.#
> # (see below for an explanation of what that is and why it is bad). #
> # Many regular participants in technical newsgroups will not respond #
> # to a multiposted message if they realize it is multiposted. #
> # #
> # This thread is therefore (probably) burned (meaning you won't get #
> # any helpful replies). If you wish, you may open a new thread which #
> # conforms to ordinary standards of usenet etiquette (see below). #
> # #
> # This is NOT a flame. This is a COURTESY notice to usenet & the OP. #
> # Other participants are respectfully requested to NOT flame, ignore #
> # or killfile the OP unless s/he persists in multiposting. #
> ######################################################################
>
> ######################################################################
> # WHAT IS MULTIPOSTING ? If you post the same question to two (or #
> # more) different newsgroups as separate messages (without #
> # indicating that you have done so) then you have multiposted. This #
> # is NEVER an acceptable practice in usenet. There are two things #
> # which will get you killfiled in a hurry--you can flame a respected #
> # group participant (like flaming Randal in a Perl group) or you can #
> # multipost. These are usenet mortal sins which you should avoid if #
> # you wish to have a productive usenet experience. #
> # #
> # WHY IS MULTIPOSTING RUDE? A question posted in one newsgroup might #
> # receive a prompt and expert reply, because some nice person is #
> # kind enough to provide this assistance (free of charge). However, #
> # if the question is multiposted to another newsgroup, ANOTHER nice #
> # person might spend his/her time providing the SAME assistance, #
> # unaware that the question has ALREADY been answered elsewhere. #
> # This WASTES THE TIME of the second person, who was only trying to #
> # be helpful but was actually 'tricked' into wasting his/her time. #
> # The second person has NO WAY to know the question was multiposted #
> # (and already answered) elsewhere unless s/he happens to visit the #
> # other group and notice the multipost (before replying). #
> # #
> # Most new posters are given the benefit of doubt and are assumed #
> # to have violated these conventions due to a lack of understanding. #
> # Posters who persist in such behavior, however, will likely be #
> # flamed, ignored, and/or killfiled by regular group participants. #
> ######################################################################
>
> ######################################################################
> # ABOUT THIS REPLY: This reply was posted by an automated process #
> # which scans selected newsgroups for evidence of multiposting. #
> # #
> # This is a service to the usenet community to let folks know when #
> # a message has been multiposted. Many folks prefer not to reply #
> # to such messages, but they might do so 'accidentally' because #
> # they don't realize the message is multiposted. #
> # #
> # This reply is also a service to the OP (it is not an attempt to #
> # be "mean" to the OP). Hopefully the OP will become more aware of #
> # usenet etiquette. Someone who takes offense at helpful correction #
> # will probably not have a very satisfying usenet experience. #
> ######################################################################
>
> ######################################################################
> # WHEN/HOW IS MULTIPOSTING OK? If you post in one newsgroup #
> # but later realize (for whatever reason) that you would prefer to #
> # post the message elsewhere, it is OK to do so provided your new #
> # message references your original post (preferably with a link). #
> # You should also respond to your original post indicating it has #
> # been re-posted elsewhere (preferably with a link). This gives both #
> # newsgroup communities visibility to the others' work. If you post #
> # in this manner, this process will NOT flag it as multiposted. #
> ######################################################################
>
> ######################################################################
> # REFERENCES: The following information may be helpful: #
> # http://www.faqs.org/faqs/usenet/primer/part1/ #
> # http://www.catb.org/~esr/faqs/smart-questions.html #
> # http://web.presby.edu/~nnqadmin/nnq/nquote.html #
> # http://www.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html #
> ######################################################################
>
> ######################################################################
> # WHY DOES THIS AUTOMATED PROCESS EXIST? Mainly because of Google #
> # Groups. GG has made it very easy for anybody to post anything in #
> # usenet (and many GG users don't know much about usenet, and may #
> # not even realize they're posting to a worldwide network which has #
> # nothing to do with Google). Many folks (especially GG users) are #
> # not familiar with usenet etiquette conventions and thus annoy #
> # other participants (the very people whom they are asking for help).#
> # This is counterproductive to both the OP and the usenet community #
> # at large. Posters are encouraged to consult the references above #
> # to learn how to ask a good question in a polite manner; doing so #
> # is beneficial to everyone (especially the OP). #
> ######################################################################
>
> ######################################################################
> # NAQ (the Never Asked Questions - TEMPORARY SECTION) #
> # Q-What ruleset defines a multipost? A--Two MD5 digests are #
> # calculated (one forwards, one backwards) on the message body #
> # and stored in a small database. If a new post (new message ID) #
> # matches these digests, it's a multipost. Author and subject #
> # lines are not taken into account. Reply messages are ignored. #
> # Q-Are crossposts flagged? A--No. A message must have an identical #
> # body but a unique message ID to be flagged. A crosspost which is #
> # ALSO multiposted, however, will be flagged. I may one-day add #
> # the ability to post a much milder message for crossposts between #
> # Perl groups (it is rarely, if ever, appropriate to crosspost #
> # between similar groups, and such crossposting is discouraged). #
> # Q-What groups are scanned? A-The main Perl Groups in Google Groups,#
> # namely: comp.lang.perl.misc, perl.beginners, perl.dbi.users, #
> # comp.lang.perl.modules , perl.beginners.cgi, and alt.perl #
> # Q-You dummy, it's EASY to defeat this scanner! A--Of course it is. #
> # But it's rare to see multiposts which differ in the message body.#
> # An author who deliberately tweaked the content to defeat a scan #
> # reveals his/her deliberately rude intent (& should be killfiled) #
> # Q-Why am I doing this? A--For a better usenet. Some folks try to #
> # discourage job postings; some discourage off-topic posts. I try #
> # to discourage multiposts - that's my little pet peeve (and, #
> # unlike OT posts and the like, it's not obvious when it happens) #
> # If you don't wish to be bothered with these auto-generated #
> # responses, please killfile the scanner. #
> # Q-Who wrote this program? A-- I am not trying to keep my identity #
> # a big secret (it's easy enough to find out who I am, and group #
> # regulars probably recognize my rants). But I choose to run this #
> # scanner anonymously because some posters will be determined to #
> # take offense at this. If they get mad at me, their anger may #
> # spill over into future postings that I participate in. I just #
> # get tired of newbies pitching tantrums any time someone offers #
> # friendly and helpful correction, so I deny them an easy target. #
> # #
> # I will reply (under my own handle) to questions or comments #
> ########
> msg_hash: 22 - 734d3325737f0e962b9a66865f90c4d0
------------------------------
Date: 14 Aug 2006 19:09:44 -0700
From: "Paul Lalli" <mritty@gmail.com>
Subject: Re: PerlDoc used in CPAN?--MULTIPOSTED
Message-Id: <1155607784.929698.169170@i3g2000cwc.googlegroups.com>
Davy wrote:
> usenet.cop@3955291010.com wrote:
> > "Davy" <zhushenli@gmail.com> wrote:
> > >> [ snip and ignore MULTIPOSTED message ]
> [snip]
> Hi all,
>
> I am who do the multipost, sorry for the inconvenience!
You did not mulitpost, and you have nothing to apologize for. David's
bot has a bug, in that it detected your crosspost as a multipost.
Paul Lalli
------------------------------
Date: 14 Aug 2006 19:17:50 -0700
From: usenet@DavidFilmer.com
Subject: Re: PerlDoc used in CPAN?--MULTIPOSTED
Message-Id: <1155608270.500004.78600@b28g2000cwb.googlegroups.com>
Davy wrote:
> I am who do the multipost, sorry for the inconvenience!
You didn't actually multipost - you crossposted. My bot mis-identified
your post as a multipost because of a mistake on my part which happened
when I did some testing (I'm very sorry about that, and I've fixed the
problem).
However, you should also be aware that crossposting to similar
newsgroups is also frowned upon (see
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html). It's not as bad as
multiposting, but its usually a good idea to pick a "primary group"
only (if you are not sure which one to post to, it's good to browse
around and lurk a bit to see the types of topics and the level of
participation and expertise).
You got caught up in quite a storm here that really has nothing to do
with your post - that was not what I expected. I was quite surprised at
the level of interest in this (and another) thread.
I have established another thread for ongoing discussions about this
whole multipost-bot thing which is OT to your post but which has been
the subject of most of the replies (which is also poor nettiquite on
our part - sorry). Hopefully folks will leave your thread alone now.
--
David Filmer (http://DavidFilmer.com)
------------------------------
Date: Tue, 15 Aug 2006 05:01:57 GMT
From: "Mumia W." <mumia.w.18.spam+nospam.usenet@earthlink.net>
Subject: Re: Publicly flog David Filmer for writing multi-post flagging 'bot
Message-Id: <9zcEg.9013$0e5.4920@newsread4.news.pas.earthlink.net>
On 08/14/2006 02:08 PM, usenet@DavidFilmer.com wrote:
> Mumia W. wrote:
>> VOTE:
>> Publicly flog David Filmer for writing multi-post flagging 'bot:
>
> I've been having a profitable discussion with John Bokma (another
> critic of this idea) in another thread (http://tinyurl.com/rdedx) where
> various aspects of this have been hashed out. Before binding me to the
> pillar, prehaps folks might consider some of the issues we've both
> raised.
>
> I have been quite surprized by some of the negative reaction to my bot.
> I will freely admit that it can be improved upon, but I hadn't expected
> many people to object (or really care very much).
>
> I had intended to open a thread to discuss the matter (prehaps with a
> somewhat less prejudicial subject line). I'm always open to suggestions
> and constructive criticism (which John has furnished, but which has
> been somewhat lacking in other complaints).
>
Okay, let's ax the flogging until the discussion is complete.
It does look like Bokma's avenue is going to be fruitful.
I don't give kudos to Bokma too often, but I do right now.
Thanks John Bokma.
------------------------------
Date: 15 Aug 2006 05:31:07 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: Publicly flog David Filmer for writing multi-post flagging 'bot
Message-Id: <Xns9820544D7CC9castleamber@130.133.1.4>
"Mumia W." <mumia.w.18.spam+nospam.usenet@earthlink.net> wrote:
> I don't give kudos to Bokma too often, but I do right now.
> Thanks John Bokma.
You're welcome ;-)
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
------------------------------
Date: Tue, 15 Aug 2006 06:16:02 GMT
From: "a" <a@mail.com>
Subject: string and time question
Message-Id: <CEdEg.398543$iF6.381564@pd7tw2no>
Hi,
Have two questions.
1> Let say,
my $str = "abcd";
How can I do the following,
$str = $str + 1 make $str becomes "abce"?
2> Is it possible to do the following?
for(k=1;k<9;k++){
do something
wait for 10second
}
Thanks
------------------------------
Date: Tue, 15 Aug 2006 16:27:12 +1000
From: Simon Taylor <simon@unisolve.com.au>
Subject: Re: string and time question
Message-Id: <ebrplj$4u9$1@otis.netspace.net.au>
a wrote:
> Hi,
> Have two questions.
> 1> Let say,
> my $str = "abcd";
> How can I do the following,
> $str = $str + 1 make $str becomes "abce"?
The auto-increment operator ++ will do this for you.
See the "Auto-increment and Auto-decrement" section in perldoc perlop
or online at:
http://perldoc.perl.org/perlop.html#Auto-increment-and-Auto-decrement-increment-auto-increment-%2b%2b-decrement-auto-decrement---
- Simon Taylor
--
http://www.perlmeme.org
------------------------------
Date: Tue, 15 Aug 2006 16:34:25 +1000
From: Simon Taylor <simon@unisolve.com.au>
Subject: Re: string and time question
Message-Id: <ebrq2u$51m$1@otis.netspace.net.au>
Hello again 'a'
> 2> Is it possible to do the following?
> for(k=1;k<9;k++){
> do something
> wait for 10second
> }
Try
perldoc -f sleep
ie:
for (my $k=1;$k<9;$k++){
print 'doing something' . "\n";
sleep 10;
}
or using the '..' range operator:
for (1..8) {
print 'doing something' . "\n";
sleep 10;
}
- Simon Taylor
--
http://www.perlmeme.org
------------------------------
Date: 14 Aug 2006 22:47:26 -0700
From: rallabs@adelphia.net
Subject: Re: system command won't let go
Message-Id: <1155620846.560486.18740@m79g2000cwm.googlegroups.com>
Brian McCauley wrote:
> rallabs@adelphia.net wrote:
> > Tad McClellan wrote:
> > > rallabs@adelphia.net <rallabs@adelphia.net> wrote:
> > >
> > > Then redirect the program's STDOUT:
> > >
> > > system "~/runsgood.exe >/dev/null <point.$newID";
> >
> > Thanks very much. This does stop the STDOUT output from 'runsgood.exe'
> > from appearing on the screen. The script also then goes on to run the
> > last line of my script. Running the process in the background also
> > accomplishes this. I guess there really is "more than one way to do
> > it"
>
> Yes, but some are conceptually flawed even if they happen to work.
>
> You don't want A to happen _before_ B.
>
> (A is the output of the ~/runsgood.exe being sent to the web server
> process. B is the redirect header being sent to the web server
> process).
>
> You can try the following
>
> 1. Prevent A happening (what Tad and I suggest)
> 2. Cause B to happen and then cause A to happen.
> 3. Cause A and B to happen in paralell and rely on the fact that A
> takes longer so its effect is seen after B.
>
> Option 3, your "Running the process in the background" option works,
> but any solution based on a race condtion is conceptually flawed.
>
> > Don't ask me where the STDOUT goes to when I run 'system' in the
> > background.
>
> I won't ask you, I'll tell you. It goes into the HTTP response body
> because it arrives at the web server process after the headers.
>
> Solution 2, generating the redirect header and then running
> ~/runsgood.exe without bothering to redirect the output would give the
> same result as option 3 without the race condition.
>
> Since you don't actually _want_ A to happen at all then solution 1 has
> to be the best.
Thanks very much to you and to Tad for the answer and the explanations.
Mike
------------------------------
Date: 14 Aug 2006 21:14:18 -0700
From: "AC" <anchi.chen@gmail.com>
Subject: Template::Plugin::GD - drawing graph
Message-Id: <1155615257.988366.140240@i3g2000cwc.googlegroups.com>
Hi
There's probably a very trivial answer to my question but I just can't
find it.
I'm trying to incorporate a line graph into a webpage by:
<html>
<body>
<table> ....</table>
[%
FILTER null;
USE im = GD.Graph.lines();
...
...
im.plot(data).png | stdout(1);
END;
%]
</body>
</html>
-----------------------
-- Problem: --
-----------------------
When using stdout(1):
* webpage content: will not show
* graph: will show
Without using the stdout(1):
* webpage content: will show
* graph: will not show
Is there a way of making both the webpage content and graph visible?
Thanks
AC
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 9606
***************************************