[29101] in Perl-Users-Digest
Perl-Users Digest, Issue: 345 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Apr 16 06:09:45 2007
Date: Mon, 16 Apr 2007 03:09:04 -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 Mon, 16 Apr 2007 Volume: 11 Number: 345
Today's topics:
Re: ActiveState vs. "C:\Program Files\" and "C:\Progra~ <wahab-mail@gmx.de>
Re: ActiveState vs. "C:\Program Files\" and "C:\Progra~ <sisyphus1@nomail.afraid.org>
Re: is laziness a programer's virtue? <dherring@at.tentpost.dot.com>
Re: is laziness a programer's virtue? <ken@theoryyalgebra.com>
Re: is laziness a programer's virtue? <spamtrap@dot-app.org>
Re: is laziness a programer's virtue? <spamtrap@dot-app.org>
Re: is laziness a programer's virtue? <randomgeek@cyberspace.net>
Re: is laziness a programer's virtue? (Rob Warnock)
Re: is laziness a programer's virtue? (Torben =?iso-8859-1?Q?=C6gidius?= Mogensen)
new CPAN modules on Mon Apr 16 2007 (Randal Schwartz)
Re: Running perl scripts on the fly <veatchla@yahoo.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 16 Apr 2007 10:08:15 +0200
From: Mirco Wahab <wahab-mail@gmx.de>
Subject: Re: ActiveState vs. "C:\Program Files\" and "C:\Progra~1\"
Message-Id: <evvb8k$ktd$1@mlucom4.urz.uni-halle.de>
Sisyphus wrote:
> "pt" <mnemotronic@gmail.com> wrote in message
> news:1176619812.713068.276460@y80g2000hsf.googlegroups.com...
>> After the install, I changed the "Program
>> files" part of the ActiveState dirs in my PATH env var from long DOS
>> format to 8.3 format:
>> "C:\Program Files\ActiveState.com\Perl\site\bin"
>> to
>> "C:\Progra~1\ActiveState.com\Perl\site\bin"
>
> Does that location actually exist ? I've never known ActivePerl to
> create a perl\site\bin folder.
This was introduced with Build 820 (Jan 2007),
these directories ( /site/bin and /site/lib )
are empty after installation.
Regards
M.
------------------------------
Date: Mon, 16 Apr 2007 19:52:57 +1000
From: "Sisyphus" <sisyphus1@nomail.afraid.org>
Subject: Re: ActiveState vs. "C:\Program Files\" and "C:\Progra~1\"
Message-Id: <46234761$0$23643$afc38c87@news.optusnet.com.au>
"Mirco Wahab" <wahab-mail@gmx.de> wrote in message
news:evvb8k$ktd$1@mlucom4.urz.uni-halle.de...
> Sisyphus wrote:
>> "pt" <mnemotronic@gmail.com> wrote in message
>> news:1176619812.713068.276460@y80g2000hsf.googlegroups.com...
>>> After the install, I changed the "Program
>>> files" part of the ActiveState dirs in my PATH env var from long DOS
>>> format to 8.3 format:
>>> "C:\Program Files\ActiveState.com\Perl\site\bin"
>>> to
>>> "C:\Progra~1\ActiveState.com\Perl\site\bin"
>>
>> Does that location actually exist ? I've never known ActivePerl to create
>> a perl\site\bin folder.
>
> This was introduced with Build 820 (Jan 2007),
> these directories ( /site/bin and /site/lib )
> are empty after installation.
>
I think the empty site/lib folder started with build 819 (accompanied by a
change in the order of the @INC directories), but I hadn't heard anything
about the creation of a site\bin folder. (I have the 32-bit build of 819 and
the 64-bit build of 820, neither of which contain a site\bin folder.)
Thanks for the info, Mirco.
Cheers,
Rob
------------------------------
Date: Sun, 15 Apr 2007 21:37:04 -0400
From: D Herring <dherring@at.tentpost.dot.com>
Subject: Re: is laziness a programer's virtue?
Message-Id: <LZ6dnQCswJaETr_bnZ2dnUVZ_gqdnZ2d@comcast.com>
Blatherskite!
http://innovators.vassar.edu/innovator.html?id=8
http://www.itweek.co.uk/itweek/comment/2160655/laziness-mother-invention
------------------------------
Date: Sun, 15 Apr 2007 22:39:03 -0400
From: Ken Tilton <ken@theoryyalgebra.com>
Subject: Re: is laziness a programer's virtue?
Message-Id: <flBUh.346$LM1.81@newsfe12.lga>
Jürgen Exner wrote:
> Ken Tilton wrote:
>
>>Jürgen Exner wrote:
>>
>>>Ken Tilton wrote:
>>>
>>>
>>>>Xah Lee wrote:
>>>
>>>
>>>PLEEEEEASE DO NOT FEED THE TROLL
>>
>>I understand that you mean well, but the fact is that the only NG
>>pollution arising from Xah's posts begins with some people abusing Xah
>>for perceived trolling and others who feel differenty stepping in to
>>support his right to post. ie, If you /really/ do not want to see a
>>long thread, well, don't feed it by saying don't feed it. That works
>>for real trolls when folks miss that they are trolling and you can
>>draw their attention to the trollishness, but not when someone is
>>making a heartfelt post, no matter what you think of it.
>
>
> You must be new to CLPM. I suggest you read his way off-topic,
> unsubstantiated, and just plain wrong posting in the archives of DejaNews.
I enjoy Xah's writings on comp.lang.lisp.
kzo
--
http://www.theoryyalgebra.com/
"Algebra is the metaphysics of arithmetic." - John Ray
"As long as algebra is taught in school,
there will be prayer in school." - Cokie Roberts
"Stand firm in your refusal to remain conscious during algebra."
- Fran Lebowitz
"I'm an algebra liar. I figure two good lies make a positive."
- Tim Allen
------------------------------
Date: Sun, 15 Apr 2007 22:39:33 -0400
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: is laziness a programer's virtue?
Message-Id: <m2abx911qy.fsf@local.wv-www.com>
Ken Tilton <ken@theoryyalgebra.com> writes:
> Jürgen Exner wrote:
>>
>> PLEEEEEASE DO NOT FEED THE TROLL
>>
> I understand that you mean well, but the fact is that the only NG
> pollution arising from Xah's posts begins with some people abusing Xah
> for perceived trolling and others who feel differenty stepping in to
> support his right to post.
Which is precisely why Xah cross-posts. His intent is to start a cross-
group argument - the very definition of trolling. He not only admits to
being a troll, he *brags* about it on his web site.
> If you /really/ do not want to see a
> long thread, well, don't feed it by saying don't feed it. That works
> for real trolls when folks miss that they are trolling
That's exactly why Jürgen posted as he did, because you've missed that
Xah is *always* trolling.
> and you can
> draw their attention to the trollishness, but not when someone is
> making a heartfelt post, no matter what you think of it.
Xah hasn't made a heartfelt post in his life. Even if his opinion of Larry
Wall's statements *were* valid, it wouldn't matter - what makes him a troll
is the way he cross-posted it to multiple irrlevant groups in an attempt to
spart an argument over it.
He's done this time and time again. Check his history on Google Groups -
you'll see.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
------------------------------
Date: Sun, 15 Apr 2007 22:41:06 -0400
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: is laziness a programer's virtue?
Message-Id: <m2647x11od.fsf@local.wv-www.com>
Ken Tilton <ken@theoryyalgebra.com> writes:
> I enjoy Xah's writings on comp.lang.lisp.
Then you can keep him.
Followups set.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
------------------------------
Date: Sun, 15 Apr 2007 22:53:28 -0500
From: Dan Bensen <randomgeek@cyberspace.net>
Subject: Re: is laziness a programer's virtue?
Message-Id: <evurm8$s73$1@wildfire.prairienet.org>
Ken Tilton wrote:
> This and several other responses miss that Xah understands that
> distinction, witness this excerpt, and especially the very last clause:
>
>> When the sorcerer Larry Wall said “The three chief virtues of a
>> programmer are: Laziness, Impatience and Hubris”, he used the word
>> “laziness” to loosely imply “natural disposition that results in being
>> economic”. As you can see now, “Resistant to work or exertion” is
>> clearly not positive and not a virtue,
Actually, I disagree with this assertion. The gung-ho kind of person
who revels in brute effort often won't even think of good programming
ideas because he|she is so intent on solving the problem through sheer
force, and also derives a sense of pride from that.
In programming, on the other hand, laziness can be an excellent
motivator in coming up with ideas. That's one thing that's so great
about Lisp. With macros and functional programming, you don't have to
type or paste in lots of similar code like you do in most other
languages. It's laziness that inspires the programmer to write more and
more abstract code. The only thing that Larry is *not* referring to is
intellectual laziness.
> I will leave it to you to re-read the rest of what Xah wrote to find out
> about what he was in fact complaining.
Xah Lee wrote:
> When Larry Wall said one of programer's virtue is laziness, he wants
> the unix morons to conjure up in their brains the following
> proposition as true: “Resistant to work or exertion is a natural human
> disposition and such disposition actually results behaviors being
> economic”. This statement may be true, which means that human laziness
> may be intuitively understood from evolution. However, this statement
> is a proposition on all human beings, and is not some “virtue” that
> can be applied to a group of people such as programers.
Laziness (physical, not intellectual) is exceedingly useful in
programming.
I also disagree with the idea that Larry is any more dangerous than
Guido, Matz, or Gosling. They're all part of a reaction against
the difficulties of C++ that started somewhere around 1990 or so.
I don't seen any merit in singling out Larry and Perl for special
treatment.
--
Dan
www.prairienet.org/~dsb/
------------------------------
Date: Mon, 16 Apr 2007 02:22:33 -0500
From: rpw3@rpw3.org (Rob Warnock)
Subject: Re: is laziness a programer's virtue?
Message-Id: <aJ6dndNxTfukub7bnZ2dnUVZ_v_inZ2d@speakeasy.net>
Daniel Gee <zefria@gmail.com> wrote:
+---------------
| You fail to understand the difference between passive laziness and
| active laziness. Passive laziness is what most people have. It's
| active laziness that is the virtue. It's the desire to go out and /
| make sure/ that you can be lazy in the future by spending just a
| little time writing a script now. It's thinking about time
| economically and acting on it.
+---------------
Indeed. See Robert A. Heinlein's short story (well, actually just
a short section of his novel "Time Enough For Love: The Lives of
Lazarus Long") entitled "The Tale of the Man Who Was Too Lazy To
Fail". It's about a man who hated work so much that he worked
very, *very* hard so he wouldn't have to do any (and succeeded).
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607
------------------------------
Date: Mon, 16 Apr 2007 11:16:19 +0200
From: torbenm@app-5.diku.dk (Torben =?iso-8859-1?Q?=C6gidius?= Mogensen)
Subject: Re: is laziness a programer's virtue?
Message-Id: <7zr6qk1xy4.fsf@app-5.diku.dk>
Dan Bensen <randomgeek@cyberspace.net> writes:
> Xah Lee wrote:
>> Laziness, Perl, and Larry Wall
>> When the sorcerer Larry Wall said “The three chief virtues of a
>> programmer are: Laziness, Impatience and Hubris”, he used the word
>> “laziness” to loosely imply “natural disposition that results in being
>> economic”.
>
> Programming by definition is the process of automating repetitive
> actions to reduce the human effort required to perform them. A good
> programmer faced with a hard problem always looks for ways to make
> his|her job easier by delegating work to a computer. That's what
> Larry means. Automation is MUCH more effective than repetition.
Indeed. A programmer is someone who, after doing similar tasks by
hand a few times, writes a program to do it. This extends to
programming tasks, so after writing similar programs a few times, a
(good) programmer will use programming to make writing future similar
programs easier. This can be by abstracting the essence of the task
into library functions so new programs are just sequences of
parameterized calls to these, or it can be by writing a program
generator (such as a parser generator) or it can be by designing a
domain-specific language and writing a compiler or interpreter for
this.
Torben
------------------------------
Date: Mon, 16 Apr 2007 04:42:13 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Mon Apr 16 2007
Message-Id: <JGKqED.6sz@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.
Bundle-Encode-0.01
http://search.cpan.org/~ski/Bundle-Encode-0.01/
A bundle to install Encode modules and dependencies
----
Data-Convert-MicrochipTechnology-Float-0.03
http://search.cpan.org/~mrdvt/Data-Convert-MicrochipTechnology-Float-0.03/
Converts Microchip Technology 32-bit float to a number
----
Data-Visitor-Encode-0.05
http://search.cpan.org/~dmaki/Data-Visitor-Encode-0.05/
Encode/Decode Values In A Structure
----
Devel-ebug-Wx-0.07
http://search.cpan.org/~mbarbon/Devel-ebug-Wx-0.07/
GUI interface for your (d)ebugging needs
----
Document-Tools-0.11
http://search.cpan.org/~ingy/Document-Tools-0.11/
Parsing and Emitting Tools for Text Documents
----
Email-LocalDelivery-0.215
http://search.cpan.org/~rjbs/Email-LocalDelivery-0.215/
Deliver a piece of email - simply
----
File-Searcher-0.92
http://search.cpan.org/~astubbs/File-Searcher-0.92/
Searches for files and performs search/replacements on matching files
----
Games-Nintendo-Wii-Mii-0.02
http://search.cpan.org/~zigorou/Games-Nintendo-Wii-Mii-0.02/
Mii in Nintendo Wii data parser and builder.
----
Getopt-Lazy-v0.0.1
http://search.cpan.org/~rueycheng/Getopt-Lazy-v0.0.1/
Yet another lazy, minimal way of using Getopt::Long
----
HTML-Template-Compiled-0.85
http://search.cpan.org/~tinita/HTML-Template-Compiled-0.85/
Template System Compiles HTML::Template files to Perl code
----
Jifty-DBI-0.40
http://search.cpan.org/~jesse/Jifty-DBI-0.40/
An object-relational persistence framework
----
Lemonldap-NG-Handler-0.81
http://search.cpan.org/~guimard/Lemonldap-NG-Handler-0.81/
The Apache protection module part of Lemonldap::NG Web-SSO system.
----
Lemonldap-NG-Manager-0.63
http://search.cpan.org/~guimard/Lemonldap-NG-Manager-0.63/
Perl extension for managing Lemonldap::NG Web-SSO system.
----
Log-Dispatch-MacGrowl-0.01
http://search.cpan.org/~ryochin/Log-Dispatch-MacGrowl-0.01/
Log messages via Growl
----
Log-Handler-0.12
http://search.cpan.org/~bloonix/Log-Handler-0.12/
A simple handler to log messages to log files.
----
Modbus-Client-1.01
http://search.cpan.org/~dvklein/Modbus-Client-1.01/
----
Modbus-Client-1.02
http://search.cpan.org/~dvklein/Modbus-Client-1.02/
----
Net-Jaiku-0.01
http://search.cpan.org/~rickm/Net-Jaiku-0.01/
A perl interface to jaiku.com's API
----
Net-Pavatar-0.693
http://search.cpan.org/~karjala/Net-Pavatar-0.693/
Pavatar client
----
Template-Declare-0.07
http://search.cpan.org/~jesse/Template-Declare-0.07/
Perlish declarative templates
----
WWW-Mixi-0.49
http://search.cpan.org/~tsukamoto/WWW-Mixi-0.49/
Perl extension for scraping the MIXI social networking service.
----
WWW-Monitor-0.22
http://search.cpan.org/~yaron/WWW-Monitor-0.22/
Monitor websites for updates and changes
----
Wx-Perl-TreeView-0.01
http://search.cpan.org/~mbarbon/Wx-Perl-TreeView-0.01/
virtual tree control interface
----
XML-MyXML-0.0973
http://search.cpan.org/~karjala/XML-MyXML-0.0973/
A simple-to-use XML module, for parsing and creating XML documents
----
version-0.7201
http://search.cpan.org/~jpeacock/version-0.7201/
Perl extension for Version Objects
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: Sun, 15 Apr 2007 20:32:29 -0500
From: l v <veatchla@yahoo.com>
Subject: Re: Running perl scripts on the fly
Message-Id: <1325kh7im6quq8b@news.supernews.com>
jrosik@gmail.com wrote:
> Yes Len, I need to do more complex things. The scenario can look like
> this:
>
> 1. I open a text editor - for example Notepad, Wordpad, Word.
> 2. I paste some text into this text editor.
> 3. I press a magic key - let's say I double press the Shift key.
> 4. A magic window appears and I enter the following script:
> while (<>) {
> next if (/Start ignoring HERE/) .. (/End ingnoring HERE/);
> s/AAA(\d+)(.+?)BBB(\d+)/AAA$3$2BBB$1/;
> print;
> }
> 5. I execute the script.
> 6. Now there are two text editor windows - one with the source text
>
> Another variant of the 4th step could be just the removal of comment
> marks from the line beginnings:
> 4.
> while (<>) {
> s/^> >//;
> print;
> }
>
> I am trying to accomplish the most simple way to filter text data
> using perl script.
>
> The text data usually come from a "text editor" (it also can be a web
> form). I need to pick the data -> process it -> put it back as
> simple / fast as possible.
>
> The problem with common perl filtering process is that:
> - I need to save the source data somewhere,
> - I need to save the perl script somewhere,
> - I need to execute the perl script .. "perl script.pl data.txt",
> - I need to capture the output,
>
> Regards,
> Jiri Rosicky
>
> l v napsal:
>> jrosik@gmail.com wrote:
>>> Hi all,
>>>
>>> I would like to run perl scripts as in the following scenario:
>>>
>>> 1. I open a text editor - for example Notepad, Wordpad, Word.
>>> 2. I paste some text into this text editor.
>>> 3. I press a magic key - let's say I double press the Shift key.
>>> 4. A magic window appears and I enter the following script:
>>> while (<>) {
>>> s/you/You/;
>>> print;
>>> }
>>> 5. I execute the script.
>>> 6. Now there are two text editor windows - one with the source text
>>> and another with the output text.
>>>
>>> Is this possible?
>>>
>>> One note: I have not saved any document during my scenario!
>>>
>>> Regards,
>>> Jiri Rosicky
>>>
>> Are you trying to run more complex Perl scripts than what you listed in
>> step 4? If not, the magic key in notepad is Control-H.
>>
>> What are you really trying to accomplish?
>>
>> --
>>
>> Len
>
I think you need a better IDE in which allows you edit all types of
files you need to edit. Perhaps Eclipse or Notepad++. Both allow you
to run external commands. Some may already have built-in regular
expression search and replace abilities. Both, I think, have the
ability for syntax highlighting. Both are free.
--
Len
------------------------------
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 345
**************************************