Re: Perl v. Python (was OO.o, was METRO, was...)

2006-03-17 Thread John Abreau

Ben Scott wrote:


  The feeling I have is that Python has only started to get
"mainstream attention" in the past few years, while Perl became
popular sooner.  If true, one wonders why.  And if true, that might
also account for some of the "buzz" around Python; Perl isn't as
"interesting", being more established.  It might also be that Perl is
seen more as a "boring every-day problem solver".



Perl leveraged a lot from shell scripting; for someone already 
proficient in ksh, awk, and sed, it was extremely simple to transition 
to perl. Essentially, you didn't have to start from scratch; perl felt 
like the same old familiar shell scripting, minus the pain of wrestling 
with awk and sed.


--
John Abreau / Executive Director, Boston Linux & Unix
ICQ 28611923 / AIM abreauj / JABBER [EMAIL PROTECTED] / YAHOO abreauj
Email [EMAIL PROTECTED] / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: Perl v. Python (was OO.o, was METRO, was...)

2006-03-17 Thread Ben Scott
On 3/17/06, Ted Roche <[EMAIL PROTECTED]> wrote:
>> Nor did I take it as such.  And I was merely observing that, though
>> the languages are both roughly the same age, Perl has significantly
>> more mind-share than Python.
>
> OTOH, other development circles I hang out in are all abuzz about
> Python and Ruby. Perl just sort of "is". Lots of *innovative* things
> seems to be showing up in Python.

  The feeling I have is that Python has only started to get
"mainstream attention" in the past few years, while Perl became
popular sooner.  If true, one wonders why.  And if true, that might
also account for some of the "buzz" around Python; Perl isn't as
"interesting", being more established.  It might also be that Perl is
seen more as a "boring every-day problem solver".

  Do note that the objective factual content of the above paragraph is zero.  :)

-- Ben
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: Perl v. Python (was OO.o, was METRO, was...)

2006-03-17 Thread Christopher Schmidt
On Fri, Mar 17, 2006 at 12:56:13PM -0500, Drew Van Zandt wrote:
> Google: Python vs. Perl

Well Python wins, of course. Google uses Python in way more places than
it uses Perl...

Oh, you probably were using Google as a verb, and not a noun...

-- 
Christopher Schmidt
Web Developer
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: Passwords: does size matter, what characters?

2006-03-17 Thread Dan Jenkins

Jon maddog Hall wrote:


 I use a technique for passwords that I have not seen anyone mention.
 I use the first letters of a phrase that is simple to remember (for
 me) that relates to the site. This makes a "word" that is not in any
 dictionary, and is typically long enough. The truly paranoid could
 put a digit or special symbol between the letters also.


A friend of mine has been using this for about ten years now. I'd never 
heard of it before, but it does work really well.
The Weapon Shops of Isher by A E Van Vogt (tWSoIbAEVV) makes for a 
pretty good password that was easy to associate with the online arms 
dealer. Of course, I'll have to change it now. ;-)


Of course, my friend has lots of ones like wtfitpa (What the f- is that 
password again) and yasptr (Yet another stupid password to remember), so 
I'm not sure it works quite as well for her. :-D

--
Dan Jenkins ([EMAIL PROTECTED])
Rastech Inc., Bedford, NH, USA --- 1-603-206-9951
*** Technical Support for over a Quarter Century

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


get-extern-ip-addr.pl

2006-03-17 Thread Kevin D. Clark

A little hack that I wrote to help a colleague keep track of how
often his broadband IP changes.  I thought others might find this to
be useful too.

Regards,

--kevin
-- 
GnuPG ID: B280F24E And the madness of the crowd
alumni.unh.edu!kdc Is an epileptic fit
   -- Tom Waits



#!/usr/bin/perl -w

# A little program that you can use to keep track of how often your
# broadband IP changes.  This should work through things like NAT boxen, etc.

# author: kevin d. clark (alumni.unh.edu!kdc)

# Usage suggestion: create a crontab for this thusly
#
# 5 0 * * *   $HOME/bin/get-extern-ip-addr.pl >> $HOME/extern-ip
#
# Note:  Think carefully about how often you run this program.
#You're going to be using somebody else's web-server here; it is
#anti-social to hog bandwidth/cputime.

use strict;
use LWP::Simple;

# Here is the part that you need to change in order to use this program.
# It is common in CGI tutorials to include a little program that simply
# dumps out each environment variable.  A common name for this program is
# "cgi.pl".  You need to find a webserver that is running such a program
# and modify the URL in the next line to point at that.  If you can't find
# such a server, then this program probably isn't for you.

my $env_pl = "http://localhost/cgi-bin/env.pl";;  # MODIFY THIS


my $quad_re = qr/([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])/;
my $dotted_quad_re = qr/\b($quad_re\.){3}$quad_re\b/;

my $content = get($env_pl);
die "Couldn't get remote webpage." unless defined $content;

# $remote_addr is the address that the remote webserver thinks that
# we are at
my ($remote_addr) = $content =~ /remote_addr.*($dotted_quad_re)/i;

die "Problem fetching remote addr!\n" if (! defined($remote_addr));

my $date = `date`;  chomp $date;
print "$remote_addr\t$date\n";


Re: Perl v. Python (was OO.o, was METRO, was...)

2006-03-17 Thread Drew Van Zandt
Google: Python vs. Perl

Of course python is also a normal English-language word...

--DTVZ
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Re: Perl v. Python (was OO.o, was METRO, was...)

2006-03-17 Thread Michael ODonnell


> It depends upon the minds you're citing.  Google cites 290 million
> hits on Python versus 365 million on Perl, so you could argue
> that's an edge or around a 4:5 ratio.

Possibly.  Of course, those stats might also be an indication
that Perl is (or "many Perl programs are") so much more
confusing than Python that it results in that many millions
more desperate WWW searches for help in understanding it.;->







N.B.  I'm just fanning the flames since I don't know either language...
 
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


Perl v. Python (was OO.o, was METRO, was...)

2006-03-17 Thread Ted Roche

On Mar 16, 2006, at 10:29 AM, Paul Lussier wrote:


Nor did I take it as such.  And I was merely observing that, though
the languages are both roughly the same age, Perl has significantly
more mind-share than Python.


It depends upon the minds you're citing. Google cites 290 million  
hits on Python versus 365 million on Perl, so you could argue that's  
an edge or around a 4:5 ratio. But three hundred million hits is  
popular enough for me.


OTOH, other development circles I hang out in are all abuzz about  
Python and Ruby. Perl just sort of "is". Lots of *innovative* things  
seems to be showing up in Python.


The Tiobe survey of languages shows a pretty close match-up:

http://www.tiobe.com/index.htm?tiobe_index

Places sixth and eighth, but with Perl at twice the percentage of  
Python.
(This citation falls firmly into the "lies, damned lies and  
statistics" category, imo)


I think most of us know it's not the hammer, it's the hand that  
determines the quality of the piece. But it is interesting to see the  
various tools and the mindsets they convey.




Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss