Re: Kung Foo and PIMB

2001-01-15 Thread Greg McCarroll

* Mark Fowler ([EMAIL PROTECTED]) wrote:
 
 P.S. PINE may be silly, but the multiple reply option rocks.
 

err *clickity click*, guess what i just discovered mutt could do ;-)


* Aaron Trevena ([EMAIL PROTECTED]) wrote:
 
 This reminds me of the conversation Case, norm  I had after crouching
 

cool name Case - sorry this was just a bad attempt to justify my
experimental use of replying to multiple emails

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: Mailman in Perl (Re: the list is dead, long live the list)

2001-01-15 Thread Michael Stevens

On Sun, Jan 14, 2001 at 11:26:28PM -0500, Mark Rogaski wrote:
 It's also sheer idiocy to pipe arbitrary code from an untrusted, unverified
 source directly to the shell.

How is it less secure than downloading a tar file and typing ./configure?

Admittedly you *could* check several meg of source for trojans, but I
don't believe you *do*.

Michael



Re: PIMB T-shirts

2001-01-15 Thread David Hodgkinson

Simon Wistow [EMAIL PROTECTED] writes:

 David Hodgkinson wrote:
  
  Are there any of these left?
 
 Yeah, I've got about 10 or so left I think.

Can I reserve 2 to go to the States? I guess I should enquire about
sizes...


-- 
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star   http://www.deep-purple.com
  Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -



Re: Super Perl Sites

2001-01-15 Thread Simon Wistow


 http://perl.apache.org/stories/

Specifically http://perl.apache.org/stories/winamillion.html

Makes me laugh anyway.



Re: Access Control Lists and Functions

2001-01-15 Thread Robin Houston

On Mon, Jan 15, 2001 at 02:29:38PM +, Simon Wistow wrote:
 How would the user get round this? I mean sure they could if they had
 access to the source code but ...
 
 
 I'm writing something at the moment that's got lots of 
 
 
 sub do_summat
 {
   my ($self, $userid, $arg1, $arg2) = @_;
   
   return access_denied('do_summat') unless (grep {/^$userid$/}
 $self-acl-{do_summat});
 }
 
 so this was just a way of automating that.

I think I misunderstood you before. I thought you were trying
to restrict what could be done by code which uses your module.
Obviously that's not what you're doing; because in the code
above, anyone could pass in any userid (not necessarily their own).

OTOH, if your program is running locally then it can't do
anything that the user couldn't do directly anyway (unless
it's SUID, which is too frightening to contemplate). So
presumably it's some sort of network-available service.

I think I see where you're coming from now. Sorry for the
confusion.

 .robin.

-- 
"Have you been certain you came to me the real reason explain anything
else that I came to you the real reason explain anything else that I
came to you the real reason explain anything else?" --eliza



Re: Access Control Lists and Functions

2001-01-15 Thread Simon Wistow

Mark Fowler wrote:

 May I suggest that we die at this point?  And throw a Error::AccessDenyed
 object or something?

Dieing's probably a bad idea. The idea was for it to set an error stack
so that even if you were using this module you would do stuff like

   my $do = new DO;
   $do-something();
   warn ACL::last_error()."\n" if ACL::error();

which would print out something like "Access to DO::something denied for
user x";



Re: OT : DVD

2001-01-15 Thread Greg McCarroll

* mallum ([EMAIL PROTECTED]) wrote:
 I've seen this in electronics botique on Oxford Street.
 

as in the DVD version to be run on a DVD player? as for it being bad gameplay
i don't really care i just want it for historic sake - if i wanted gameplay
i'd play NetHack, phear me and my B,Fp,+3 BDSM ;-)

   

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: OT : DVD

2001-01-15 Thread Greg McCarroll

* James Powell ([EMAIL PROTECTED]) wrote:
 
 You can't beat marble madness for old arcade games though...
 and it runs nicely in MAME.
 

apparently its one of the most in demand video game cabinet/controller
combo's as the whell broke so much

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: Super Perl Sites

2001-01-15 Thread Philip Newton

Philip Newton wrote:
 James Royan wrote:
  Just so that I get my facts straight, could the list suggest 
  maybe 4 or 5 really well known sites that I could point to
  which are definitely known to use Perl in a big way?
 
 Besides Blackstar? :-)
 
 This question was posted to clpmisc (I think. Or maybe 
 de.clpmisc) just a couple of days ago. I'll try to find it.
 If I do, I'll post the followups.
 
 Amazon.com was one of them, I believe. I think mp3.com was 
 also mentioned.

Yes. The question is 93ku8m$h25$[EMAIL PROTECTED] (aka
http://x52.deja.com/threadmsg_ct.xp?AN=714612447.1 which also shows you the
thread). Author "webqueen, queen of the web [EMAIL PROTECTED]", Subject
"are there sites with Perl Advocacy examples?", Date "Thu, 11 Jan 2001
18:32:54 GMT".

Someone using the pseudonym "David H. Adler" pointed webqueen to
http://perl.oreilly.com/news/success_stories.html , which Dave Cross also
pointed to. "Maggert" listed mp3.com, NASA, and Sandia Labs.

Cheers,
Philip



Re: Access Control Lists and Functions

2001-01-15 Thread Andy Wardley

On Jan 15,  1:50pm, Simon Wistow wrote:
 Something like that, probably called it Symbol::ACL or summat. I'll
 stick it in my todo list right after Flash stuff, Mail::Hotmail,
 Net::IP2LL, Fuky widget set thingy, WMLScript compiler in Perl and
 learning Japanese.

I started learning Japanese when I joined Canon as they were offering
free lessons to all research staff.  I stopped soon after.

philosophical
Success is (partly) about being able to differentiate between the things
you're good at and the things that you'll never be good at. Spend time
on the former and don't waste time getting nowhere with the latter.
/philosophical

In my case, Japanese was very much the latter.  I have deep respect for
anyone who can master it.


A



-- 
Andy Wardley [EMAIL PROTECTED]   Signature regenerating.  Please remain seated.
 [EMAIL PROTECTED]   For a good time: http://www.kfs.org/~abw/



Re: OT : DVD

2001-01-15 Thread mallum

Yes its the DVD version. At the front of the shop, think they were about 15
quid each.

On the subject of games, anyone see the 'bits' special on C4 the weekend about 
violent games - its was pretty good for 'bits' ? 

mallum

On Mon, Jan 15, 2001 at 04:22:39PM +, Greg McCarroll wrote:
 * mallum ([EMAIL PROTECTED]) wrote:
  I've seen this in electronics botique on Oxford Street.
  
 
 as in the DVD version to be run on a DVD player? as for it being bad gameplay
 i don't really care i just want it for historic sake - if i wanted gameplay
 i'd play NetHack, phear me and my B,Fp,+3 BDSM ;-)
 

 
 -- 
 Greg McCarroll  http://www.mccarroll.uklinux.net
 



Re: Access Control Lists and Functions

2001-01-15 Thread Greg McCarroll

* Andy Wardley ([EMAIL PROTECTED]) wrote:
 On Jan 15,  1:50pm, Simon Wistow wrote:
  Something like that, probably called it Symbol::ACL or summat. I'll
  stick it in my todo list right after Flash stuff, Mail::Hotmail,
  Net::IP2LL, Fuky widget set thingy, WMLScript compiler in Perl and
  learning Japanese.
 
 I started learning Japanese when I joined Canon as they were offering
 free lessons to all research staff.  I stopped soon after.
 

I started learning Japanese when the NI administration decided to teach
it to joint classes of catholic children and protestant children. Hence
it was a good way to meet a brand new batch of girls. I stopped soon after.
 

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



RE: Super Perl Sites

2001-01-15 Thread Jonathan Peterson


 Slashdot?

If the guy in question has never _heared_ of Perl, I'm not sure Slashdot
will mean much to him..





RE: Access Control Lists and Functions

2001-01-15 Thread Matthew Jones

In my case, Japanese was very much the latter.  I have deep respect 
for anyone who can master it.

The only Japanese I know:

"Anata no zubon wa taihen kirena desu!"

Not many applications.

-- 
matt
"What? I don't speak your crazy moon-language." 



Re: Access Control Lists and Functions

2001-01-15 Thread Greg McCarroll

* Matthew Jones ([EMAIL PROTECTED]) wrote:
 In my case, Japanese was very much the latter.  I have deep respect 
 for anyone who can master it.
 
 The only Japanese I know:
 
 "Anata no zubon wa taihen kirena desu!"
 

the only japanese i know is - 

hi, i don't think i've spoke to you before, i'm greg 
X
why thats a lovely name
X
oh really, what do you think of this japanese class
X
yes i have exactly the same opinion as you
X
etc 

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: Access Control Lists and Functions

2001-01-15 Thread Leon Brocard

Marcel Grunauer sent the following bits through the ether:

 Do it like Memoize.pm (i.e., generalize the wrapper mechanism or just nick

... http://search.cpan.org/doc/JDPORTER/Hook-WrapSub-0.03/lib/Hook/WrapSub.pm

Leon
-- 
Leon Brocard.http://www.astray.com/
yapc::Europehttp://yapc.org/Europe/

... All new improved Brocard, now with Template Toolkit!



Re: Access Control Lists and Functions

2001-01-15 Thread Robin Houston

On Mon, Jan 15, 2001 at 05:17:08PM +, Marcel Grunauer wrote:
 
 Sounds like the business. There have been quite a number of Perl modules
 lately that are more about the syntax and the way the language is being
 used than for any specific tasks, such as:

Lingua::Romana::Perligata   :-)

I don't know when the module was actually released onto CPAN,
but I saw it for the first time at the weekend. It is ...
staggering ...

Anyone written any programs using it?

 .robin.

-- 
"do not assume that you are in control of your own actions,
 but take responsibility for them anyway."



Re: Access Control Lists and Functions

2001-01-15 Thread Tony Bowden

On Mon, Jan 15, 2001 at 04:53:57PM +, Greg McCarroll wrote:
 I started learning Japanese when the NI administration decided to teach
 it to joint classes of catholic children and protestant children. Hence
 it was a good way to meet a brand new batch of girls. I stopped soon after.

Hey ... I never got opportunities like that!

Was this only out in strange places? Or just after/before my time?

Tony
-- 
-
 Tony Bowden | Belfast, NI | [EMAIL PROTECTED] | www.tmtm.com | www.blackstar.co.uk
  paradox  contrast variety  change history repeats but it's never the same
-



Re: Access Control Lists and Functions

2001-01-15 Thread Greg McCarroll

* Tony Bowden ([EMAIL PROTECTED]) wrote:
 On Mon, Jan 15, 2001 at 04:53:57PM +, Greg McCarroll wrote:
  I started learning Japanese when the NI administration decided to teach
  it to joint classes of catholic children and protestant children. Hence
  it was a good way to meet a brand new batch of girls. I stopped soon after.
 
 Hey ... I never got opportunities like that!
 

well you had to a particular ``sensitive'' and ``caring'' individual,
able to deal with the harsh realities of the ``enforced prejudices''

 Was this only out in strange places? 

Ballymena is not a strange place! But i think it was across N.I. even
the more backward places such as Cullybacy, Carnlough and of course
Belfast

 Or just after/before my time?
 

way after your time Tony, way way way after --- just the hip young
things like me got this sort of thing (this is my attempt to hang
on the every slipping idea that i am still young)

anyway back to watching Detroit Rock City

Greg

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: Access Control Lists and Functions

2001-01-15 Thread Mark Fowler

 Dieing's probably a bad idea. The idea was for it to set an error stack
 so that even if you were using this module you would do stuff like

   my $do = new DO;
   $do-something();
   warn ACL::last_error()."\n" if ACL::error();

 which would print out something like "Access to DO::something denied for
 user x";

Why can't you do this with the standard die semantics?

eval
{
my $do = new DO;
$do-something();
}
if ($@)
{
warn $@;
}

(will work if both $@ is a string or a object that is overriden)

Of course if you were using Error.pm you could even use 'try' and 'catch'
as syntatic suger.  See the Error perldoc.

Later.

Mark.

-- 
print "\n",map{my$a="\n"if(length$_6);' 'x(36-length($_)/2)."$_\n$a"} (
   Name  = 'Mark Fowler',Title = 'Technology Developer'  ,
   Firm  = 'Profero Ltd',Web   = 'http://www.profero.com/'   ,
   Email = '[EMAIL PROTECTED]',   Phone = '+44 (0) 20 7700 9960'  )










Re: Mailman in Perl (Re: the list is dead, long live the list)

2001-01-15 Thread David H. Adler

On Mon, Jan 15, 2001 at 10:42:34AM +, Steve Mynott wrote:
 "David H. Adler" [EMAIL PROTECTED] writes:
  
  Oh, you're much too kind.  My redhat box is disintigrating before my
  very eyes.  root partition filled up for no reason and, thus I looked
  at the partition table:
  
  /
  /boot
  /home
  
  With home being the largest.
  
  What *were* they thinking when they configured this?
 
 I don't think you can really blame the distribution (which allows you
 to partition the disk how you want) for someone partitioning the disk
 wrongly.

Except that the box came to me like this.  I intend to rectify this in
a bit by scaping red hat off with a large trowel and installing
something useful, but I'm still trying to figure out why *anyone*
would partition it this way... :-/

dha

-- 
David H. Adler - [EMAIL PROTECTED] - http://www.panix.com/~dha/
There are 6 billion people in the world, and only 30 billion of those
are Canadians   - Headline in the Toronto Globe and Mail



Re: PIMB T-shirts

2001-01-15 Thread David H. Adler

On Mon, Jan 15, 2001 at 11:37:57AM +, Simon Wistow wrote:
 David Hodgkinson wrote:
 
  Can I reserve 2 to go to the States? I guess I should enquire about
  sizes...
 
 Sure, no problem.

Shall I enquire at NY.pm tomorrow about demand?

-- 
David H. Adler - [EMAIL PROTECTED] - http://www.panix.com/~dha/
"I... would... like... the... Screamin'... Jay... Hawkins...  box
set... and DVD... please"
  - #9 Sign Someone Has Cast a Spell On You



Re: PIMB T-shirts

2001-01-15 Thread Simon Wistow

"David H. Adler" wrote:

 Shall I enquire at NY.pm tomorrow about demand?

Yup. Might eb up for doing anohter run if necessary.

Plus I have some other ideas.



Re: PIMB T-shirts

2001-01-15 Thread Greg McCarroll

* Simon Wistow ([EMAIL PROTECTED]) wrote:
 "David H. Adler" wrote:
 
  Shall I enquire at NY.pm tomorrow about demand?
 
 Yup. Might eb up for doing anohter run if necessary.
 
 Plus I have some other ideas.

Apparently Amsterdam.pm are looking for a design for YAPC::Europe 2001 ;-)

however, having said that, still like the # , ! , perl one ;-)


 

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: PIMB T-shirts

2001-01-15 Thread David H. Adler

On Mon, Jan 15, 2001 at 06:04:42PM +, Simon Wistow wrote:
 "David H. Adler" wrote:
 
  Shall I enquire at NY.pm tomorrow about demand?
 
 Yup. Might eb up for doing anohter run if necessary.
 
 Plus I have some other ideas.

Doctor incarnation=secondI think this is one of those instances were
discretion is the better part of valour. Simon has an idea./Doctor

dha :-)
-- 
David H. Adler - [EMAIL PROTECTED] - http://www.panix.com/~dha/
"Life is so hard, you know that sometimes it seems the good guys only
win, when the bad guys leave." - The Jim Basnight Thing



Re: Speaking Japanese (Re: Access Control Lists and Functions)

2001-01-15 Thread David H. Adler

On Mon, Jan 15, 2001 at 04:51:38PM +, Aaron Trevena wrote:
 On Mon, 15 Jan 2001, Andy Wardley wrote:
 
  On Jan 15,  4:24pm, Robin Houston wrote:
   Lingua::Romana::Perligata   :-)
  
  Conway-san, your programming challenge for this week is:
  
 Lingua::Nihon::Perldes
  
  (but with an English - Japanese translation interface for those of
  us who didn't last out the Japanese classes)
  
 
 does lingua::nadsat exist yet? or anything along those lines?

Never mind all that.  Does anyone speak enough (I think) Klingon to
understand what the status of the Lingua::tlhIngan::yIghun module is
(see http://yetanother.org/damian/projects.html)???

dha

-- 
David H. Adler - [EMAIL PROTECTED] - http://www.panix.com/~dha/
I drink to my coming cirrhosis...   - Charles Aznavour



Re: Perl commandments - index .vs. //

2001-01-15 Thread Chris Benson

On Tue, Jan 09, 2001 at 12:50:08PM +, Piers Cawley wrote:
 David Cantrell [EMAIL PROTECTED] writes:
  Also index.  These two snippets are equivalent:
if($foo=~/foo/) { ... }
if(index($foo, 'foo')!=-1) { ... }
  I always want to do just plain if(index(...)) though.
 
 ISTR that (for weird reasons), the regex version of that is faster.

If it is, it appears to be hidden by the other code ...

beta:~ $ perl match-cmp
Name "main::words" used only once: possible typo at match-cmp line 5.
Benchmark: running index, index_, regex, regex_, each for at least 10 CPU seconds...
 index: 19 wallclock secs (18.71 usr +  0.00 sys = 18.71 CPU) @  1.50/s (n=28)
index_: 19 wallclock secs (19.41 usr +  0.00 sys = 19.41 CPU) @  1.49/s (n=29)
 regex: 19 wallclock secs (19.11 usr +  0.01 sys = 19.12 CPU) @  1.36/s (n=26)
regex_: 19 wallclock secs (18.62 usr +  0.00 sys = 18.62 CPU) @  1.50/s (n=28)
beta:~ $ cat match-cmp 
#!/usr/bin/perl -w
use Benchmark;
push @ARGV, '/usr/dict/words';
@words = ;
timethese( -10, {
regex = 'foreach $word (@words) { $word =~ /foo/ }',
regex_ = 'foreach (@words) { /foo/ }',
index = 'foreach $word (@words) { index $word, "foo" }',
index_ = 'foreach (@words) { index $_, "foo" }',
}
);


-- 
Chris Benson