From sky at erupt.com Thu Jul 1 16:49:31 2004 From: sky at erupt.com (Nick Johnston) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Volunteers? Message-ID: <40E486EB.2060805@erupt.com> Hello I realise that there was a meeting for volunteers a few weeks ago but I've had a few personal problems over the past few weeks so wasn't able to attend. Are any volunteers still needed for YAPC in Belfast? Thanks, Nick From marty+belfast-pm at kasei.com Thu Jul 1 17:36:34 2004 From: marty+belfast-pm at kasei.com (Marty Pauley) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Volunteers? In-Reply-To: <40E486EB.2060805@erupt.com> References: <40E486EB.2060805@erupt.com> Message-ID: <20040701223634.GT17320@soto.kasei.com> On Thu Jul 1 22:49:31 2004, Nick Johnston wrote: > > Are any volunteers still needed for YAPC in Belfast? Yes. :) We'll find something for you to do. Also, registration is now open: http://belfast.yapc.org/register/ -- Marty From marty+belfast-pm at kasei.com Thu Jul 1 19:43:58 2004 From: marty+belfast-pm at kasei.com (Marty Pauley) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] YAPC::Europe registration and stuff Message-ID: <20040702004358.GZ17320@soto.kasei.com> YAPC::Europe registration opened a few days ago. http://belfast.yapc.org/register/ We've also made a call for Lightning Talks http://www.justanotherperlhacker.org/cgi-local/lightning/submit.pl?conference=yapceu2004 and sponsorship http://belfast.yapc.org/sponsors/ Have fun! -- Marty From lacravate at mongueurs.net Fri Jul 2 01:06:26 2004 From: lacravate at mongueurs.net (David lacravate) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Volunteers? In-Reply-To: <20040701223634.GT17320@soto.kasei.com> References: <40E486EB.2060805@erupt.com> <20040701223634.GT17320@soto.kasei.com> Message-ID: <20040702080626.5df96779.lacravate@mongueurs.net> Hi Marty , En ce jour du Thu, 1 Jul 2004 23:36:34 +0100, Marty Pauley parlait ainsi : > > Are any volunteers still needed for YAPC in Belfast? > Yes. :) > We'll find something for you to do. > Also, registration is now open: http://belfast.yapc.org/register/ Just to make sure : does the world knows it ? :) -- David 'lacravate' lacravate@mongueurs.net tresorier@mongueurs.net Perl en France http://www.mongueurs.net From vishal at cs.may.ie Fri Jul 2 03:50:19 2004 From: vishal at cs.may.ie (Vishal Vatsa) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] YAPC::Europe registration and stuff In-Reply-To: <20040702004358.GZ17320@soto.kasei.com> References: <20040702004358.GZ17320@soto.kasei.com> Message-ID: <200407020950.19806.vishal@cs.may.ie> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Do you guys have student rates? On Friday 02 July 2004 01:43, Marty Pauley wrote: > YAPC::Europe registration opened a few days ago. > http://belfast.yapc.org/register/ > > We've also made a call for Lightning Talks > > http://www.justanotherperlhacker.org/cgi-local/lightning/submit.pl?conferen >ce=yapceu2004 > > and sponsorship http://belfast.yapc.org/sponsors/ > > Have fun! - -- Vishal Vatsa Dept. of Computer Sc. NUI Maynooth -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA5SHLJF0YUd7wiaIRAhxgAJ4qaVzuwwu1AKC4aQXNF3xFz7Ku1ACggP9J KuP5RPz5G4kDM5gfiaEJi9w= =VTsZ -----END PGP SIGNATURE----- From Tim.Bunce at pobox.com Fri Jul 2 08:46:15 2004 From: Tim.Bunce at pobox.com (Tim Bunce) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] (Fwd) Re: [Dub-pm] YAPC::Europe registration is open Message-ID: <20040702134615.GC89281@dansat.data-plan.com> ----- Forwarded message from Tim Bunce ----- Delivered-To: tim.bunce@pobox.com X-SPF-Guess: pass (seems reasonable for dublin-pm-bounces@mail.pm.org to mail through 64.49.222.22) Date: Fri, 2 Jul 2004 10:29:38 +0100 From: Tim Bunce To: dublin-pm@mail.pm.org Subject: Re: [Dub-pm] YAPC::Europe registration is open In-Reply-To: <20040702004518.GA17320@soto.kasei.com> X-BeenThere: dublin-pm@mail.pm.org List-Id: Dublin Perl Mongers List-Archive: On Fri, Jul 02, 2004 at 01:45:18AM +0100, Marty Pauley wrote: > YAPC::Europe registration opened a few days ago. > http://belfast.yapc.org/register/ Doesn't work for me using Mozilla 1.6 (yes, I know it's old but that's what I'm using at the moment). When I click into the Name field the text cursor appears but then immediately disappears again. (Similar story for the T-Shirt Size drop down. It drops down but won't stay down. I can select a size if I do it in one click-n-drag but there's little point if I can't enter a name :) I'll try from my laptop later. Tim. > We've also made a call for Lightning Talks > http://www.justanotherperlhacker.org/cgi-local/lightning/submit.pl?conference=yapceu2004 > > and sponsorship http://belfast.yapc.org/sponsors/ _______________________________________________ Dublin-pm mailing list - Dublin-pm@mail.pm.org http://dublin.pm.org/ - IRC irc.linux.ie #dublin-pm ----- End forwarded message ----- From simon at asidua.com Fri Jul 2 09:02:06 2004 From: simon at asidua.com (Simon McCartney) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] (Fwd) Re: [Dub-pm] YAPC::Europe registration is open In-Reply-To: <20040702134615.GC89281@dansat.data-plan.com> References: <20040702134615.GC89281@dansat.data-plan.com> Message-ID: <20040702140206.GI22594@asidua.com> On Fri, Jul 02, 2004 at 02:46:15PM +0100, Tim Bunce wrote: > > On Fri, Jul 02, 2004 at 01:45:18AM +0100, Marty Pauley wrote: > > YAPC::Europe registration opened a few days ago. > > http://belfast.yapc.org/register/ > > Doesn't work for me using Mozilla 1.6 (yes, I know it's old but > that's what I'm using at the moment). > > When I click into the Name field the text cursor appears but then > immediately disappears again. > > (Similar story for the T-Shirt Size drop down. It drops down but > won't stay down. I can select a size if I do it in one click-n-drag > but there's little point if I can't enter a name :) FWIW, holding the mouse button down allowed my to type & select my t-shirt. -simonm (E: simon@asidua.com W: +44 28 9072 5060 M: +44 7710 836915) I invented ctrl-alt-del but Bill Gates made it famous -- Dave Bradly IBM PC designer -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 185 bytes Desc: not available Url : http://mail.pm.org/pipermail/belfast-pm/attachments/20040702/c42305e6/attachment.bin From Tim.Bunce at pobox.com Fri Jul 2 12:46:59 2004 From: Tim.Bunce at pobox.com (Tim Bunce) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] (Fwd) Re: [Dub-pm] YAPC::Europe registration is open In-Reply-To: <20040702140206.GI22594@asidua.com> References: <20040702134615.GC89281@dansat.data-plan.com> <20040702140206.GI22594@asidua.com> Message-ID: <20040702174659.GA94845@dansat.data-plan.com> On Fri, Jul 02, 2004 at 03:02:06PM +0100, Simon McCartney wrote: > On Fri, Jul 02, 2004 at 02:46:15PM +0100, Tim Bunce wrote: > > > > On Fri, Jul 02, 2004 at 01:45:18AM +0100, Marty Pauley wrote: > > > YAPC::Europe registration opened a few days ago. > > > http://belfast.yapc.org/register/ > > > > Doesn't work for me using Mozilla 1.6 (yes, I know it's old but > > that's what I'm using at the moment). > > > > When I click into the Name field the text cursor appears but then > > immediately disappears again. > > > > (Similar story for the T-Shirt Size drop down. It drops down but > > won't stay down. I can select a size if I do it in one click-n-drag > > but there's little point if I can't enter a name :) > > FWIW, holding the mouse button down allowed my to type & select my t-shirt. There's always a way - but it's worth fixing. I'd also suggest that a field be added for a donation to be included in the total. I'm sure some useful extra money would be raised that way. Tim. From marty+belfast-pm at kasei.com Sat Jul 3 12:23:54 2004 From: marty+belfast-pm at kasei.com (Marty Pauley) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Volunteers? In-Reply-To: <20040702080626.5df96779.lacravate@mongueurs.net> References: <40E486EB.2060805@erupt.com> <20040701223634.GT17320@soto.kasei.com> <20040702080626.5df96779.lacravate@mongueurs.net> Message-ID: <20040703172354.GC17320@soto.kasei.com> On Fri Jul 2 08:06:26 2004, David lacravate wrote: > > Just to make sure : does the world knows it ? :) Almost. I've posted to the mongers lists I belong to, and I've posted to the YAPC::Europe list. I've also submitted a post to use.perl.org a few days ago, but nobody has accepted it yet. -- Marty From marty+belfast-pm at kasei.com Sun Jul 4 17:16:47 2004 From: marty+belfast-pm at kasei.com (Marty Pauley) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] YAPC::Europe registration and stuff In-Reply-To: <200407020950.19806.vishal@cs.may.ie> References: <20040702004358.GZ17320@soto.kasei.com> <200407020950.19806.vishal@cs.may.ie> Message-ID: <20040704221647.GD17320@soto.kasei.com> On Fri Jul 2 09:50:19 2004, Vishal Vatsa wrote: > > Do you guys have student rates? ?65 _is_ a student rate. In YAPC, everyone pays the cheap price. That's the entire point of the conference. The regular Perl conference would cost you ?1000+, so I think ?65 is a great deal. -- Marty From marty+belfast-pm at kasei.com Sun Jul 4 17:21:13 2004 From: marty+belfast-pm at kasei.com (Marty Pauley) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] (Fwd) Re: [Dub-pm] YAPC::Europe registration is open In-Reply-To: <20040702174659.GA94845@dansat.data-plan.com> References: <20040702134615.GC89281@dansat.data-plan.com> <20040702140206.GI22594@asidua.com> <20040702174659.GA94845@dansat.data-plan.com> Message-ID: <20040704222113.GE17320@soto.kasei.com> On Fri Jul 2 18:46:59 2004, Tim Bunce wrote: > > > > > > Doesn't work for me using Mozilla 1.6 (yes, I know it's old but > > > that's what I'm using at the moment). It does now. Thanks to Andrew McFarland for identifying the problem. > > > When I click into the Name field the text cursor appears but then > > > immediately disappears again. For those who want the details, the problem was caused by a hidden 'input' field inside the same 'label' element as the visible 'input' fields. It's smells like a Mozilla bug, but it was easy to fix. > I'd also suggest that a field be added for a donation to be included > in the total. I'm sure some useful extra money would be raised that way. I'll see if we can do that. -- Marty From simon at thebreakfasttable.com Tue Jul 6 04:21:39 2004 From: simon at thebreakfasttable.com (Simon McCartney) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Template Toolkit, passing in a hash? Message-ID: <20040706092138.GB17804@mail.thebreakfasttable.com> I've been playing with TT on Debian, I've used it to prototype some stuff using DBI calls in the template, but I want to move to the next level. (I'm using Apache, MySQL & have the handler registered etc) I have a couple of routines that generate a hash of information, and I want to display these in the processed template. My understanding is that I would pass the hash in using $vars in the process method. But this means that the calculations take place for every page served by that handler, hardly efficient. My next option would be to pass the subroutine in and only call it when needed in the template. But this means changing my handler everytime I want to add a new subroutine to the module. Is there a better way? Am I missing something? I guess I want to be able to use it as a plugin without writing a plugin..is a plugin the correct way to go? Thanks, Simon. -- Simon McCartney simon@thebreakfasttable.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available Url : http://mail.pm.org/pipermail/belfast-pm/attachments/20040706/08ae4f62/attachment.bin From alandpearson at yahoo.com Tue Jul 6 04:27:51 2004 From: alandpearson at yahoo.com (=?iso-8859-1?q?alan=20pearson?=) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Template Toolkit, passing in a hash? In-Reply-To: <20040706092138.GB17804@mail.thebreakfasttable.com> Message-ID: <20040706092751.25572.qmail@web11402.mail.yahoo.com> So is the hash they generate passed in as a reference or do they return (Ughhh) one of their local hashes ? Why not wrap the call to the Calculate function with an if ($FreshStats), or at the top of the function chech if the last time is called is older than the refresh interval ?? PS got the video and photos.... you do look spiffing !!! --- Simon McCartney wrote: > I've been playing with TT on Debian, I've used it to > prototype some stuff > using DBI calls in the template, but I want to move > to the next level. > (I'm using Apache, MySQL & have the handler > registered etc) > > I have a couple of routines that generate a hash of > information, and I want > to display these in the processed template. > > My understanding is that I would pass the hash in > using $vars in the > process method. But this means that the calculations > take place for every > page served by that handler, hardly efficient. > > My next option would be to pass the subroutine in > and only call it when > needed in the template. But this means changing my > handler everytime I > want to add a new subroutine to the module. > > Is there a better way? Am I missing something? > I guess I want to be able to use it as a plugin > without writing a > plugin..is a plugin the correct way to go? > > Thanks, > > Simon. > > -- > Simon McCartney > simon@thebreakfasttable.com > > ATTACHMENT part 1.2 application/pgp-signature > _______________________________________________ > Belfast-pm mailing list > Belfast-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/belfast-pm > ___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com From alandpearson at yahoo.com Tue Jul 6 04:31:15 2004 From: alandpearson at yahoo.com (=?iso-8859-1?q?alan=20pearson?=) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Template Toolkit, passing in a hash? In-Reply-To: <20040706092751.25572.qmail@web11402.mail.yahoo.com> Message-ID: <20040706093115.26107.qmail@web11402.mail.yahoo.com> Errrrr ignore that last comment perl folk, didn't realise that went to the list !! Before the smart comments start.... He was best man at my wedding.... --- alan pearson wrote: > So is the hash they generate passed in as a > reference > or do they return (Ughhh) one of their local hashes > ? > > Why not wrap the call to the Calculate function with > an if ($FreshStats), or at the top of the function > chech if the last time is called is older than the > refresh interval ?? > > PS got the video and photos.... you do look spiffing > !!! > > --- Simon McCartney > wrote: > I've been playing with TT on Debian, I've > used it to > > prototype some stuff > > using DBI calls in the template, but I want to > move > > to the next level. > > (I'm using Apache, MySQL & have the handler > > registered etc) > > > > I have a couple of routines that generate a hash > of > > information, and I want > > to display these in the processed template. > > > > My understanding is that I would pass the hash in > > using $vars in the > > process method. But this means that the > calculations > > take place for every > > page served by that handler, hardly efficient. > > > > My next option would be to pass the subroutine in > > and only call it when > > needed in the template. But this means changing > my > > handler everytime I > > want to add a new subroutine to the module. > > > > Is there a better way? Am I missing something? > > I guess I want to be able to use it as a plugin > > without writing a > > plugin..is a plugin the correct way to go? > > > > Thanks, > > > > Simon. > > > > -- > > Simon McCartney > > simon@thebreakfasttable.com > > > > > ATTACHMENT part 1.2 application/pgp-signature > > _______________________________________________ > > Belfast-pm mailing list > > Belfast-pm@mail.pm.org > > http://mail.pm.org/mailman/listinfo/belfast-pm > > > > > > > > ___________________________________________________________ALL-NEW > Yahoo! Messenger - sooooo many all-new ways to > express yourself http://uk.messenger.yahoo.com > _______________________________________________ > Belfast-pm mailing list > Belfast-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/belfast-pm > ___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com From simon at asidua.com Tue Jul 6 04:36:15 2004 From: simon at asidua.com (Simon McCartney) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Template Toolkit, passing in a hash? In-Reply-To: <20040706092751.25572.qmail@web11402.mail.yahoo.com> References: <20040706092138.GB17804@mail.thebreakfasttable.com> <20040706092751.25572.qmail@web11402.mail.yahoo.com> Message-ID: <20040706093615.GH28624@asidua.com> On Tue, Jul 06, 2004 at 10:27:51AM +0100, alan pearson wrote: > So is the hash they generate passed in as a reference > or do they return (Ughhh) one of their local hashes ? Umm, I'm not sure, but that's not the point, I'm trying to reduce the knock on effect ad adding functionality, i.e. I don't want to have to write the code, update a TT plugin or update the handler & restart apache. Garbage collection in Perl is beyond me, I convinced my perl leaks memory at a huge rate... > PS got the video and photos.... you do look spiffing > !!! Cool! -simonm (E: simon@asidua.com W: +44 28 9072 5060 M: +44 7710 836915) I'm too lazy to make a sig -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 185 bytes Desc: not available Url : http://mail.pm.org/pipermail/belfast-pm/attachments/20040706/5f3b6679/attachment.bin From tony at kasei.com Tue Jul 6 05:06:53 2004 From: tony at kasei.com (Tony Bowden) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Template Toolkit, passing in a hash? In-Reply-To: <20040706092138.GB17804@mail.thebreakfasttable.com> References: <20040706092138.GB17804@mail.thebreakfasttable.com> Message-ID: <20040706100653.GA27709@soto.kasei.com> On Tue, Jul 06, 2004 at 10:21:39AM +0100, Simon McCartney wrote: > I've been playing with TT on Debian, I've used it to prototype some stuff > using DBI calls in the template, but I want to move to the next level. > (I'm using Apache, MySQL & have the handler registered etc) > > I have a couple of routines that generate a hash of information, and I want > to display these in the processed template. > > My understanding is that I would pass the hash in using $vars in the > process method. But this means that the calculations take place for every > page served by that handler, hardly efficient. > > My next option would be to pass the subroutine in and only call it when > needed in the template. But this means changing my handler everytime I > want to add a new subroutine to the module. > > Is there a better way? Am I missing something? You can pass in subrefs: #!/usr/bin/perl use strict; use warnings; use Template; my $tt = Template->new(); $tt->process(\*DATA, { foo => sub { 1 + 2 }, bar => sub { 3 ** 8 }, }); __DATA__ [% foo %] [% bar %] However, this is probably not what you really want to be doing. Without more information though, we probably won't know the better way. If you're doing DBI stuff with TT, you might want to look at Class::DBI, which plays very nicely with TT... Tony From simon at asidua.com Tue Jul 6 05:23:34 2004 From: simon at asidua.com (Simon McCartney) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Template Toolkit, passing in a hash? In-Reply-To: <20040706100653.GA27709@soto.kasei.com> References: <20040706092138.GB17804@mail.thebreakfasttable.com> <20040706100653.GA27709@soto.kasei.com> Message-ID: <20040706102334.GI28624@asidua.com> On Tue, Jul 06, 2004 at 11:06:53AM +0100, Tony Bowden wrote: > > My next option would be to pass the subroutine in and only call it when > > needed in the template. But this means changing my handler everytime I > > want to add a new subroutine to the module. > > > > Is there a better way? Am I missing something? > > You can pass in subrefs: > > #!/usr/bin/perl > > use strict; > use warnings; > > use Template; > > my $tt = Template->new(); > $tt->process(\*DATA, { > foo => sub { 1 + 2 }, > bar => sub { 3 ** 8 }, > }); > > __DATA__ > [% foo %] > [% bar %] > > > However, this is probably not what you really want to be doing. Without > more information though, we probably won't know the better way. I'm trying to limit the knock on effect of adding functionality. Your fragment suggests not using a template handler and just using straight CGI (with mod_perl), this is maybe what I'm looking for, the best way to do the processing. > If you're doing DBI stuff with TT, you might want to look at Class::DBI, > which plays very nicely with TT... Yeah, I've been working on Class::DBI'ing my existing non-presentation code.. -simonm (E: simon@asidua.com W: +44 28 9072 5060 M: +44 7710 836915) I'm not an alcholic, I'm a liquid crusader fighting the evils of the tee-total taliban. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 185 bytes Desc: not available Url : http://mail.pm.org/pipermail/belfast-pm/attachments/20040706/f2b92f37/attachment.bin From marty+belfast-pm at kasei.com Tue Jul 6 19:08:55 2004 From: marty+belfast-pm at kasei.com (Marty Pauley) Date: Mon Aug 2 21:24:19 2004 Subject: [Belfast-pm] Template Toolkit, passing in a hash? In-Reply-To: <20040706093615.GH28624@asidua.com> References: <20040706092138.GB17804@mail.thebreakfasttable.com> <20040706092751.25572.qmail@web11402.mail.yahoo.com> <20040706093615.GH28624@asidua.com> Message-ID: <20040707000855.GC17428@soto.kasei.com> On Tue Jul 6 10:36:15 2004, Simon McCartney wrote: > > Garbage collection in Perl is beyond me, I convinced my perl leaks memory > at a huge rate... Perl uses reference counting garbage collection. It will leak memory if you have a self-referencing data structure. For example: my %data = ( foo => "bar" ); $data{loopy} = \%data; Each instance of %data will survive until Perl exits. If you want it to be gc'd you need to undef $data{loopy}. -- Marty