From jon at hogue.org Wed May 5 04:56:07 2010 From: jon at hogue.org (Jonathan Hogue) Date: Wed, 5 May 2010 07:56:07 -0400 Subject: [Columbus-pm] May PM Meeting Message-ID: Start: 05/20/2010 07:00 Timezone: America/New York We will be talking about git and Perl. We will be back at 2checkout.com HQ this month. 1785 O?Brien Road Columbus, Ohio 43228 Pizza and drinks will be provided. http://columbus.pm.org/node/141 From jon at hogue.org Sat May 8 08:07:16 2010 From: jon at hogue.org (Jonathan Hogue) Date: Sat, 8 May 2010 11:07:16 -0400 Subject: [Columbus-pm] we on today? Message-ID: fields soggy? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lenjaffe at jaffesystems.com Sat May 8 08:17:52 2010 From: lenjaffe at jaffesystems.com (Len Jaffe) Date: Sat, 8 May 2010 11:17:52 -0400 Subject: [Columbus-pm] we on today? In-Reply-To: References: Message-ID: I am out of town. On May 8, 2010 11:07 AM, "Jonathan Hogue" wrote: fields soggy? _______________________________________________ Columbus-pm mailing list http://columbus.pm.org/ Columbus-pm at pm.org http://mail.pm.org/mailman/listinfo/columbus-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From jon at hogue.org Sat May 8 08:21:52 2010 From: jon at hogue.org (Jonathan Hogue) Date: Sat, 8 May 2010 11:21:52 -0400 Subject: [Columbus-pm] we on today? In-Reply-To: References: Message-ID: sorry folks, got the wrong e-mail On Sat, May 8, 2010 at 11:17 AM, Len Jaffe wrote: > I am out of town. > > On May 8, 2010 11:07 AM, "Jonathan Hogue" wrote: > > fields soggy? > _______________________________________________ > Columbus-pm mailing list > http://columbus.pm.org/ > Columbus-pm at pm.org > http://mail.pm.org/mailman/listinfo/columbus-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rob.kinyon at gmail.com Sat May 8 08:22:15 2010 From: rob.kinyon at gmail.com (Rob Kinyon) Date: Sat, 8 May 2010 11:22:15 -0400 Subject: [Columbus-pm] we on today? In-Reply-To: References: Message-ID: My wife is out of town. :) 2010/5/8 Len Jaffe : > I am out of town. > > On May 8, 2010 11:07 AM, "Jonathan Hogue" wrote: > > fields soggy? > _______________________________________________ > Columbus-pm mailing list > http://columbus.pm.org/ > Columbus-pm at pm.org > http://mail.pm.org/mailman/listinfo/columbus-pm > > _______________________________________________ > Columbus-pm mailing list > http://columbus.pm.org/ > Columbus-pm at pm.org > http://mail.pm.org/mailman/listinfo/columbus-pm > -- Thanks, Rob Kinyon From jon at hogue.org Sat May 8 08:24:12 2010 From: jon at hogue.org (Jonathan Hogue) Date: Sat, 8 May 2010 11:24:12 -0400 Subject: [Columbus-pm] we on today? In-Reply-To: References: Message-ID: On auto-complete, columbus-pm@ is right next to columbus at gokickball.com :-) On Sat, May 8, 2010 at 11:22 AM, Rob Kinyon wrote: > My wife is out of town. :) > > 2010/5/8 Len Jaffe : > > I am out of town. > > > > On May 8, 2010 11:07 AM, "Jonathan Hogue" wrote: > > > > fields soggy? > > _______________________________________________ > > Columbus-pm mailing list > > http://columbus.pm.org/ > > Columbus-pm at pm.org > > http://mail.pm.org/mailman/listinfo/columbus-pm > > > > _______________________________________________ > > Columbus-pm mailing list > > http://columbus.pm.org/ > > Columbus-pm at pm.org > > http://mail.pm.org/mailman/listinfo/columbus-pm > > > > > > -- > Thanks, > Rob Kinyon > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jon at hogue.org Sun May 16 13:05:28 2010 From: jon at hogue.org (Jonathan Hogue) Date: Sun, 16 May 2010 16:05:28 -0400 Subject: [Columbus-pm] Perl Mongers this week Message-ID: http://columbus.pm.org/node/141 Start: 05/20/2010 07:00 Timezone: America/New York We will be talking about git and Perl. Bring your laptops. We will be doing hands on with git and a Perl library (probably DBM::Deep), downloading the code, fixing a bug, and submitting the fix. We will be back at 2checkout.com HQ this month. 1785 O?Brien Road Columbus, Ohio 43228 Pizza and drinks will be provided. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jon at hogue.org Tue May 18 12:51:42 2010 From: jon at hogue.org (Jonathan Hogue) Date: Tue, 18 May 2010 15:51:42 -0400 Subject: [Columbus-pm] weird datetime / push behavior Message-ID: see this sample script. use strict; use DateTime; use Data::Dumper; my $d = DateTime->now; my @days; foreach my $i ( 1..7 ) { push( @days, $d ); $d->add( 'days' => 1); } print Dumper \@days; It adds the first datetime object... but isn't doing what you expect for the next iterations... what's going on here? $VAR1 = [ bless( { ..... }, 'DateTime' ), $VAR1->[0], $VAR1->[0], $VAR1->[0], $VAR1->[0], $VAR1->[0], $VAR1->[0] ]; From smithde at oclc.org Tue May 18 13:07:02 2010 From: smithde at oclc.org (Smith,Devon) Date: Tue, 18 May 2010 16:07:02 -0400 Subject: [Columbus-pm] weird datetime / push behavior In-Reply-To: References: Message-ID: It adds the fist and only DateTime object. Dumper is showing that all successive additions are in fact references to that first object. You might want to create a new object for each iteration, depending on actual needs. /dev -- Devon Smith Consulting Software Engineer OCLC Research http://www.oclc.org/research/people/smith.htm -----Original Message----- From: columbus-pm-bounces+smithde=oclc.org at pm.org [mailto:columbus-pm-bounces+smithde=oclc.org at pm.org] On Behalf Of Jonathan Hogue Sent: Tuesday, May 18, 2010 3:52 PM To: columbus-pm Subject: [Columbus-pm] weird datetime / push behavior see this sample script. use strict; use DateTime; use Data::Dumper; my $d = DateTime->now; my @days; foreach my $i ( 1..7 ) { push( @days, $d ); $d->add( 'days' => 1); } print Dumper \@days; It adds the first datetime object... but isn't doing what you expect for the next iterations... what's going on here? $VAR1 = [ bless( { ..... }, 'DateTime' ), $VAR1->[0], $VAR1->[0], $VAR1->[0], $VAR1->[0], $VAR1->[0], $VAR1->[0] ]; _______________________________________________ Columbus-pm mailing list http://columbus.pm.org/ Columbus-pm at pm.org http://mail.pm.org/mailman/listinfo/columbus-pm From jon at hogue.org Tue May 18 13:17:03 2010 From: jon at hogue.org (Jonathan Hogue) Date: Tue, 18 May 2010 16:17:03 -0400 Subject: [Columbus-pm] weird datetime / push behavior In-Reply-To: References: Message-ID: ah, thanks. I was misunderstanding the meaning of this "$VAR1->[0]" I added this in my loop, and it seems to work. (just creating a new object from the old) $d = DateTime->from_object( object => $d ); On Tue, May 18, 2010 at 4:07 PM, Smith,Devon wrote: > It adds the fist and only DateTime object. Dumper is showing that all > successive additions are in fact references to that first object. You > might want to create a new object for each iteration, depending on > actual needs. > > /dev > > -- > Devon Smith > Consulting Software Engineer > OCLC Research > http://www.oclc.org/research/people/smith.htm > > > -----Original Message----- > From: columbus-pm-bounces+smithde=oclc.org at pm.org > [mailto:columbus-pm-bounces+smithde=oclc.org at pm.org] On Behalf Of > Jonathan Hogue > Sent: Tuesday, May 18, 2010 3:52 PM > To: columbus-pm > Subject: [Columbus-pm] weird datetime / push behavior > > see this sample script. > > use strict; > use DateTime; > use Data::Dumper; > > my $d = DateTime->now; > > my @days; > foreach my $i ( 1..7 ) > { > ? ?push( @days, $d ); > ? ?$d->add( 'days' => 1); > } > > print Dumper \@days; > > It adds the first datetime object... but isn't doing what you expect > for the next iterations... what's going on here? > > $VAR1 = [ > ? ? ? ? ?bless( { > ?..... > ? ? ? ? ? ? ? ? }, 'DateTime' ), > ? ? ? ? ?$VAR1->[0], > ? ? ? ? ?$VAR1->[0], > ? ? ? ? ?$VAR1->[0], > ? ? ? ? ?$VAR1->[0], > ? ? ? ? ?$VAR1->[0], > ? ? ? ? ?$VAR1->[0] > ? ? ? ?]; > _______________________________________________ > Columbus-pm mailing list > http://columbus.pm.org/ > Columbus-pm at pm.org > http://mail.pm.org/mailman/listinfo/columbus-pm > > > _______________________________________________ > Columbus-pm mailing list > http://columbus.pm.org/ > Columbus-pm at pm.org > http://mail.pm.org/mailman/listinfo/columbus-pm > From jon at hogue.org Tue May 18 12:51:42 2010 From: jon at hogue.org (Jonathan Hogue) Date: Tue, 18 May 2010 15:51:42 -0400 Subject: [Columbus-pm] weird datetime / push behavior Message-ID: see this sample script. use strict; use DateTime; use Data::Dumper; my $d = DateTime->now; my @days; foreach my $i ( 1..7 ) { push( @days, $d ); $d->add( 'days' => 1); } print Dumper \@days; It adds the first datetime object... but isn't doing what you expect for the next iterations... what's going on here? $VAR1 = [ bless( { ..... }, 'DateTime' ), $VAR1->[0], $VAR1->[0], $VAR1->[0], $VAR1->[0], $VAR1->[0], $VAR1->[0] ]; From smithde at oclc.org Tue May 18 13:27:40 2010 From: smithde at oclc.org (Smith,Devon) Date: Tue, 18 May 2010 16:27:40 -0400 Subject: [Columbus-pm] weird datetime / push behavior In-Reply-To: References: Message-ID: I'm not sure if it's actually clearer, but I've switched to using YAML for dumping data. I mainly like the formatting, but it also shows that the subsequent objects are references to the first. Again, though, only if you understand the syntax. --- - &1 !!perl/hash:DateTime - *1 - *1 - *1 - *1 - *1 - *1 /dev -----Original Message----- From: jon.hogue at gmail.com [mailto:jon.hogue at gmail.com] On Behalf Of Jonathan Hogue Sent: Tuesday, May 18, 2010 4:17 PM To: Smith,Devon Cc: columbus-pm Subject: Re: [Columbus-pm] weird datetime / push behavior ah, thanks. I was misunderstanding the meaning of this "$VAR1->[0]" I added this in my loop, and it seems to work. (just creating a new object from the old) $d = DateTime->from_object( object => $d ); On Tue, May 18, 2010 at 4:07 PM, Smith,Devon wrote: > It adds the fist and only DateTime object. Dumper is showing that all > successive additions are in fact references to that first object. You > might want to create a new object for each iteration, depending on > actual needs. > > /dev > > -- > Devon Smith > Consulting Software Engineer > OCLC Research > http://www.oclc.org/research/people/smith.htm > > > -----Original Message----- > From: columbus-pm-bounces+smithde=oclc.org at pm.org > [mailto:columbus-pm-bounces+smithde=oclc.org at pm.org] On Behalf Of > Jonathan Hogue > Sent: Tuesday, May 18, 2010 3:52 PM > To: columbus-pm > Subject: [Columbus-pm] weird datetime / push behavior > > see this sample script. > > use strict; > use DateTime; > use Data::Dumper; > > my $d = DateTime->now; > > my @days; > foreach my $i ( 1..7 ) > { > ? ?push( @days, $d ); > ? ?$d->add( 'days' => 1); > } > > print Dumper \@days; > > It adds the first datetime object... but isn't doing what you expect > for the next iterations... what's going on here? > > $VAR1 = [ > ? ? ? ? ?bless( { > ?..... > ? ? ? ? ? ? ? ? }, 'DateTime' ), > ? ? ? ? ?$VAR1->[0], > ? ? ? ? ?$VAR1->[0], > ? ? ? ? ?$VAR1->[0], > ? ? ? ? ?$VAR1->[0], > ? ? ? ? ?$VAR1->[0], > ? ? ? ? ?$VAR1->[0] > ? ? ? ?]; > _______________________________________________ > Columbus-pm mailing list > http://columbus.pm.org/ > Columbus-pm at pm.org > http://mail.pm.org/mailman/listinfo/columbus-pm > > > _______________________________________________ > Columbus-pm mailing list > http://columbus.pm.org/ > Columbus-pm at pm.org > http://mail.pm.org/mailman/listinfo/columbus-pm > From jon at hogue.org Wed May 19 19:34:56 2010 From: jon at hogue.org (Jonathan Hogue) Date: Wed, 19 May 2010 22:34:56 -0400 Subject: [Columbus-pm] Perl Mongers this week In-Reply-To: References: Message-ID: Perl Mongers tomorrow. Bring your laptop. We'll get hands on with Git and maybe squash a DBM::Deep (although, I heard it's been hard to find any... ) On Sun, May 16, 2010 at 4:05 PM, Jonathan Hogue wrote: > http://columbus.pm.org/node/141 > > Start: 05/20/2010 07:00 > Timezone: America/New York > > We will be talking about git and Perl. > > Bring your laptops. We will be doing hands on with git and a Perl library > (probably DBM::Deep), downloading the code, fixing a bug, and submitting the > fix. > > We will be back at 2checkout.com HQ this month. > > 1785 O?Brien Road > Columbus, Ohio 43228 > > Pizza and drinks will be provided.