From grant at mclean.net.nz Wed May 4 02:33:26 2016 From: grant at mclean.net.nz (Grant McLean) Date: Wed, 04 May 2016 21:33:26 +1200 Subject: [Wellington-pm] Meeting next Tuesday Message-ID: <1462354406.20236.2.camel@kereru> Hi Mongers The May meeting is on next Tuesday. Andrew is lined up to talk about Devel::NYTProf. However he can't stay too long due to his sporting commitments so there's plenty of time for another talk - any volunteers? Cheers Grant From grant at mclean.net.nz Mon May 9 13:02:14 2016 From: grant at mclean.net.nz (Grant McLean) Date: Tue, 10 May 2016 08:02:14 +1200 Subject: [Wellington-pm] Meeting this evening In-Reply-To: <1462354406.20236.2.camel@kereru> References: <1462354406.20236.2.camel@kereru> Message-ID: <1462824134.12902.9.camel@kereru> Hi Mongers Just a quick reminder that the Perl Mongers meeting is on this evening at the usual place and time: 6:00pm Tuesday 10 May 2016 Level 3, Catalyst House 150 Willis Street Wellington http://wellington.pm.org/ Regards Grant On Wed, 2016-05-04 at 21:33 +1200, Grant McLean wrote: > Hi Mongers > > The May meeting is on next Tuesday. > > Andrew is lined up to talk about Devel::NYTProf. However he can't stay > too long due to his sporting commitments so there's plenty of time for > another talk - any volunteers? > > Cheers > Grant > > _______________________________________________ > Wellington-pm mailing list > Wellington-pm at pm.org > http://mail.pm.org/mailman/listinfo/wellington-pm From florent.mara at nzregen.co.nz Mon May 9 14:17:15 2016 From: florent.mara at nzregen.co.nz (Florent Mara) Date: Tue, 10 May 2016 09:17:15 +1200 Subject: [Wellington-pm] Meeting this evening In-Reply-To: <1462824134.12902.9.camel@kereru> References: <1462354406.20236.2.camel@kereru> <1462824134.12902.9.camel@kereru> Message-ID: Great. See you all tonight. I have done very little progress on packaging ... but I have questions about recompiling perl. :-) On Tue, May 10, 2016 at 8:02 AM, Grant McLean wrote: > Hi Mongers > > Just a quick reminder that the Perl Mongers meeting is on this evening > at the usual place and time: > > 6:00pm Tuesday 10 May 2016 > Level 3, Catalyst House > 150 Willis Street > Wellington > http://wellington.pm.org/ > > Regards > Grant > > On Wed, 2016-05-04 at 21:33 +1200, Grant McLean wrote: > > Hi Mongers > > > > The May meeting is on next Tuesday. > > > > Andrew is lined up to talk about Devel::NYTProf. However he can't stay > > too long due to his sporting commitments so there's plenty of time for > > another talk - any volunteers? > > > > Cheers > > Grant > > > > _______________________________________________ > > Wellington-pm mailing list > > Wellington-pm at pm.org > > http://mail.pm.org/mailman/listinfo/wellington-pm > > > _______________________________________________ > Wellington-pm mailing list > Wellington-pm at pm.org > http://mail.pm.org/mailman/listinfo/wellington-pm -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Piner at signify.co.nz Tue May 10 15:44:12 2016 From: Steve.Piner at signify.co.nz (Steve Piner) Date: Wed, 11 May 2016 10:44:12 +1200 Subject: [Wellington-pm] Meeting this evening In-Reply-To: References: <1462354406.20236.2.camel@kereru> <1462824134.12902.9.camel@kereru> Message-ID: <5732643C.9060703@signify.co.nz> Oh yeah, I forgot to say that it's straightforward enough to compile Perl, even without using perlbrew - though you'll end up answering a lot of questions. It's basically tar zxf perl-(whatever).tgz ./configure make make test make install Configure will ask you where Perl should be installed, and a million other things. Make the changes you want (otherwise, why are you compiling Perl?), and accept the defaults for the rest. It'll take about 40 minutes to build. And all of Grant's caveats still apply. :-) Steve On 10/05/16 09:17, Florent Mara wrote: > Great. See you all tonight. > > I have done very little progress on packaging ... but I have questions > about recompiling perl. :-) > > On Tue, May 10, 2016 at 8:02 AM, Grant McLean > wrote: > > Hi Mongers > > Just a quick reminder that the Perl Mongers meeting is on this evening > at the usual place and time: > > 6:00pm Tuesday 10 May 2016 > Level 3, Catalyst House > 150 Willis Street > Wellington > http://wellington.pm.org/ > > Regards > Grant > > On Wed, 2016-05-04 at 21:33 +1200, Grant McLean wrote: > > Hi Mongers > > > > The May meeting is on next Tuesday. > > > > Andrew is lined up to talk about Devel::NYTProf. However he > can't stay > > too long due to his sporting commitments so there's plenty of > time for > > another talk - any volunteers? > > > > Cheers > > Grant > > > > _______________________________________________ > > Wellington-pm mailing list > > Wellington-pm at pm.org > > http://mail.pm.org/mailman/listinfo/wellington-pm > > > _______________________________________________ > Wellington-pm mailing list > Wellington-pm at pm.org > http://mail.pm.org/mailman/listinfo/wellington-pm > > -- > > > _______________________________________________ > Wellington-pm mailing list > Wellington-pm at pm.org > http://mail.pm.org/mailman/listinfo/wellington-pm -- Steve Piner Lead Developer *P:*+64 4 803 3211*M:*+64 27 588 5995 Level 9, LG House, 35 Victoria St, Wellington P.O. Box 24-068, Manners St, Wellington *E: *steve.piner at signify.co.nz *S:*http://www.signify.co.nz Signify Logo *Signify *is an innovative web and mobile development company. We are about creating websites and mobile applications that are usable, accessible, functional, and striking while at the same time meeting the goals of our clients. We have considerable experience with Drupal, Plone, SilverStripe and Umbraco content management systems. ___________________________________________________________________________________________________________________________ This communication, including any attachment, is confidential. If you are not the intended recipient, you should delete/destroy this communication; you may not read and must not copy, send or retain any part of this communication. Please do not disclose to any third party anything about this communication. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cbeedeca.gif Type: image/gif Size: 3924 bytes Desc: not available URL: From grant at mclean.net.nz Tue May 10 16:45:24 2016 From: grant at mclean.net.nz (Grant McLean) Date: Wed, 11 May 2016 11:45:24 +1200 Subject: [Wellington-pm] DBM tied hash example In-Reply-To: <1462824134.12902.9.camel@kereru> References: <1462354406.20236.2.camel@kereru> <1462824134.12902.9.camel@kereru> Message-ID: <1462923924.2507.80.camel@putnam.wgtn.cat-it.co.nz> Further to my brief aside on using a tied hash as a crude IPC mechanism to allow multiple independent scripts to communicate via shared state, I've pasted an example script below. When invoked like this: ./tied-hash-example day Wednesday It will set the 'day' key in the hash to 'Wednesday'. You could retrieve the value of the 'day' key like this: ./tied-hash-example day Or dump all the keys like this: ./tied-hash-example The script doesn't have an example of deleting a key but you can just do that using Perl's built-in 'delete' function. Cheers Grant #!/usr/bin/perl use 5.014; use strict; use warnings; use autodie; use Fcntl qw(O_RDWR O_CREAT :flock); use SDBM_File; my $db_file = '/home/grant/state.db'; my $fh_lock; my %state_db; tie_db_file($db_file); if(@ARGV > 1) { # Put key/values into DB while(@ARGV) { my $key = shift; $state_db{$key} = shift; } } elsif(@ARGV == 1) { # Print out one value my $key = shift; say "$key=$state_db{$key}"; } else { # Dump all values foreach my $key (sort keys %state_db) { say "$key=$state_db{$key}"; } } untie_db_file(); exit; sub tie_db_file { my($filename) = @_; open $fh_lock, '>>', $filename . '.lck'; flock($fh_lock, LOCK_EX); tie(%state_db, 'SDBM_File', $filename, O_RDWR|O_CREAT, 0660); } sub untie_db_file { untie %state_db; flock($fh_lock, LOCK_UN); } From grant at mclean.net.nz Tue May 10 20:14:33 2016 From: grant at mclean.net.nz (Grant McLean) Date: Wed, 11 May 2016 15:14:33 +1200 Subject: [Wellington-pm] [Fwd: New Zealand Open Source Awards - Nominations open] Message-ID: <1462936473.2507.84.camel@putnam.wgtn.cat-it.co.nz> -------- Forwarded Message -------- From: Alison Aldred To: awards at nzosa.org.nz Subject: New Zealand Open Source Awards - Nominations open Date: Tue, 10 May 2016 11:16:47 +1200 Good morning The New Zealand Open Source Awards work to raise awareness of the free and open source technology advantage for New Zealand by telling powerful success stories based on real achievements that are already making a difference for our country. The biennial awards are designed to recognise and promote: - the contributions of New Zealanders to free and open source projects and free and open source philosophy - exemplary use of free and open source by New Zealand organisations The awards are happening this year, and details of the award categories and the nomination form are now available on the NZOSA website: http://www.nzosa.org.nz/nomination/ We look forward to receiving your nominations which are welcome from now until Monday 13 June. If you have any questions, please let me know or email awards at nzosa.org.nz Thanks Alison From florent.mara at nzregen.co.nz Wed May 11 19:27:24 2016 From: florent.mara at nzregen.co.nz (Florent Mara) Date: Thu, 12 May 2016 14:27:24 +1200 Subject: [Wellington-pm] Meeting this evening In-Reply-To: <5732643C.9060703@signify.co.nz> References: <1462354406.20236.2.camel@kereru> <1462824134.12902.9.camel@kereru> <5732643C.9060703@signify.co.nz> Message-ID: Many thanks for the great evening and discussions. That gave me a lot to think about. I recompiled Perl for fun yesterday and completely agree with all the feedback received. (1) It is indeed easy as long as default options are used (2) It would be one more thing to worry about when changing things and I change things all the time. And I can't find any good reason to bother about it. Performance gains appear minimal while the trouble of recompiling is real. On Wed, May 11, 2016 at 10:44 AM, Steve Piner wrote: > Oh yeah, I forgot to say that it's straightforward enough to compile Perl, > even without using perlbrew - though you'll end up answering a lot of > questions. > > It's basically > > tar zxf perl-(whatever).tgz > ./configure > make > make test > make install > > Configure will ask you where Perl should be installed, and a million other > things. Make the changes you want (otherwise, why are you compiling Perl?), > and accept the defaults for the rest. > > It'll take about 40 minutes to build. > > And all of Grant's caveats still apply. :-) > > Steve > > > > On 10/05/16 09:17, Florent Mara wrote: > > Great. See you all tonight. > > I have done very little progress on packaging ... but I have questions > about recompiling perl. :-) > > On Tue, May 10, 2016 at 8:02 AM, Grant McLean wrote: > >> Hi Mongers >> >> Just a quick reminder that the Perl Mongers meeting is on this evening >> at the usual place and time: >> >> 6:00pm Tuesday 10 May 2016 >> Level 3, Catalyst House >> 150 Willis Street >> Wellington >> http://wellington.pm.org/ >> >> Regards >> Grant >> >> On Wed, 2016-05-04 at 21:33 +1200, Grant McLean wrote: >> > Hi Mongers >> > >> > The May meeting is on next Tuesday. >> > >> > Andrew is lined up to talk about Devel::NYTProf. However he can't stay >> > too long due to his sporting commitments so there's plenty of time for >> > another talk - any volunteers? >> > >> > Cheers >> > Grant >> > >> > _______________________________________________ >> > Wellington-pm mailing list >> > Wellington-pm at pm.org >> > http://mail.pm.org/mailman/listinfo/wellington-pm >> >> >> _______________________________________________ >> Wellington-pm mailing list >> Wellington-pm at pm.org >> http://mail.pm.org/mailman/listinfo/wellington-pm > > -- > > > _______________________________________________ > Wellington-pm mailing listWellington-pm at pm.orghttp://mail.pm.org/mailman/listinfo/wellington-pm > > > -- > > Steve Piner > > Lead Developer > > *P:* +64 4 803 3211 *M:*+64 27 588 5995 > > Level 9, LG House, 35 Victoria St, Wellington P.O. Box 24-068, Manners St, > Wellington > > *E: * steve.piner at signify.co.nz *S:* > http://www.signify.co.nz > > > [image: Signify Logo] > > *Signify *is an innovative web and mobile development company. We are > about creating websites and mobile applications that are usable, > accessible, functional, and striking while at the same time meeting the > goals of our clients. We have considerable experience with Drupal, Plone, > SilverStripe and Umbraco content management systems. > > > ___________________________________________________________________________________________________________________________ > > This communication, including any attachment, is confidential. If you are > not the intended recipient, you should delete/destroy this communication; > you may not read and must not copy, send or retain any part of this > communication. Please do not disclose to any third party anything about > this communication. > > _______________________________________________ > Wellington-pm mailing list > Wellington-pm at pm.org > http://mail.pm.org/mailman/listinfo/wellington-pm -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cbeedeca.gif Type: image/gif Size: 3924 bytes Desc: not available URL: