From dcmertens.perl at gmail.com Tue Nov 1 06:25:33 2011 From: dcmertens.perl at gmail.com (David Mertens) Date: Tue, 1 Nov 2011 08:25:33 -0500 Subject: [Chicago-talk] Perl Weekly Message-ID: Hey everybody - For those of you that are not aware, Gabor Szabo (of Padre fame) has started a weekly Perl news/blog roundup, published every Monday. I don't know enough of the Perlverse to know if he misses things, but it at least helps me feel like I'm generally on top of the current goings on of Perl. I highly recommend checking it out and signing up. You can read this weeks letter at http://perlweekly.com/archive/14.html. Email sign-up is at the bottom of the page. David -- Sent via my carrier pigeon. From shawn.c.carroll at gmail.com Tue Nov 1 06:31:56 2011 From: shawn.c.carroll at gmail.com (Shawn Carroll) Date: Tue, 1 Nov 2011 08:31:56 -0500 Subject: [Chicago-talk] Perl Weekly In-Reply-To: References: Message-ID: On Tue, Nov 1, 2011 at 08:25, David Mertens wrote: > Hey everybody - > > For those of you that are not aware, Gabor Szabo (of Padre fame) has > started a weekly Perl news/blog roundup, published every Monday. I > don't know enough of the Perlverse to know if he misses things, but it > at least helps me feel like I'm generally on top of the current goings > on of Perl. I highly recommend checking it out and signing up. You can > read this weeks letter at http://perlweekly.com/archive/14.html. Email > sign-up is at the bottom of the page. > > David > > -- I want to add onto David's recommendation. Gabor does a great job at filtering the great amount of Perl news out there to a digestible format. shawn.c.carroll at gmail.com Perl Programmer Soccer Referee From dcmertens.perl at gmail.com Tue Nov 1 07:42:50 2011 From: dcmertens.perl at gmail.com (David Mertens) Date: Tue, 1 Nov 2011 09:42:50 -0500 Subject: [Chicago-talk] More on PDL Message-ID: Hey folks - I haven't edited or posted my talk from last Thursday, but I wanted to let everybody know that if you have any questions about PDL, I'll be happy to answer them on this list. If you find yourself using PDL regularly, you should sign-up for the email list, which are detailed here: http://pdl.perl.org/?page=mailing-lists I'm hoping to wrap-up my plotting bindings soon, and I'll send out a note when that happens. :-) David -- Sent via my carrier pigeon. From clydeforrester at gmail.com Fri Nov 4 20:03:27 2011 From: clydeforrester at gmail.com (Clyde Forrester) Date: Fri, 04 Nov 2011 22:03:27 -0500 Subject: [Chicago-talk] Arrays of array references Message-ID: <4EB4A77F.8010806@gmail.com> I've decided that I want to do something which involves having an array of arrays. Technically, I can't. Array elements must be scalar, but that scalar can be a reference to an array. OK, whatever. I'm thinking in terms of an array of (pointers to) objects. So now I'm trying to wrap my brain around the syntax. If I declare an array of references like this: @mess = ( [ "foo" , "bar" ], [ "baz" , "quux" ], ); push @mess, [ "fred" , "wilma" ]; Then I can get the size of the array, or one element like this: print @mess."\n"; # 3, the size of the mess array print $mess[2][1]."\n"; # wilma, the second element of the array pointed # to by the third element of the mess array But I would like to know how to print the contents of the array to which the third element points. Something which would print: fred wilma And I'm quite unsure how I would properly do a shift or pop which would give me the array to which one element points. I've tried a number of forms which either give me an array pointer, a blank stare, or an error. But not a scalar or group of scalars. I have seen foreach constructs which will dump everything, but I'm not trying to dump everything, just extract or print or otherwise fiddle with one array. And, of course, perhaps I'm approaching the problem entirely wrong. I looked at Perl 101. Apparently I am researching the page on arrays of arrays. :-) Can anyone at least point me in the right direction? Clyde From merlyn at stonehenge.com Fri Nov 4 20:06:54 2011 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Fri, 04 Nov 2011 20:06:54 -0700 Subject: [Chicago-talk] Arrays of array references In-Reply-To: <4EB4A77F.8010806@gmail.com> (Clyde Forrester's message of "Fri, 04 Nov 2011 22:03:27 -0500") References: <4EB4A77F.8010806@gmail.com> Message-ID: <86ty6jfesx.fsf@red.stonehenge.com> >>>>> "Clyde" == Clyde Forrester writes: Clyde> @mess = ( [ "foo" , "bar" ], Clyde> [ "baz" , "quux" ], ); Clyde> push @mess, [ "fred" , "wilma" ]; Clyde> Then I can get the size of the array, or one element like this: Clyde> print @mess."\n"; # 3, the size of the mess array Clyde> print $mess[2][1]."\n"; # wilma, the second element of the array pointed Clyde> # to by the third element of the mess array Clyde> But I would like to know how to print the contents of the array to which the Clyde> third element points. Something which would print: Clyde> fred wilma Third element: $mess[2] Third element dereferenced as an array @{$mess[2]} printed: print "@{$mess[2]}\n"; perldoc perlreftut and friends. Alpaca book if you want a lot more detail and exercises. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion From clydeforrester at gmail.com Fri Nov 11 12:03:35 2011 From: clydeforrester at gmail.com (Clyde Forrester) Date: Fri, 11 Nov 2011 14:03:35 -0600 Subject: [Chicago-talk] Arrays of array references Message-ID: <4EBD7F97.4040304@gmail.com> FWIW: The program worked! =:-D It was a program to count the number of occurrences of the sequence "GATTACA" in each chromosome in the standard human genome. It used an array of pointers to state-machine objects. Pretty nifty, I think. Clyde Randal L. Schwartz wrote: >>>>>> "Clyde" == Clyde Forrester writes: > > Clyde> @mess = ( [ "foo" , "bar" ], > Clyde> [ "baz" , "quux" ], ); > Clyde> push @mess, [ "fred" , "wilma" ]; > > Clyde> Then I can get the size of the array, or one element like this: > > Clyde> print @mess."\n"; # 3, the size of the mess array > Clyde> print $mess[2][1]."\n"; # wilma, the second element of the array pointed > Clyde> # to by the third element of the mess array > > Clyde> But I would like to know how to print the contents of the array to which the > Clyde> third element points. Something which would print: > > Clyde> fred wilma > > Third element: $mess[2] > Third element dereferenced as an array @{$mess[2]} > printed: print "@{$mess[2]}\n"; > > perldoc perlreftut and friends. > > Alpaca book if you want a lot more detail and exercises. > From me at heyjay.com Fri Nov 18 08:43:45 2011 From: me at heyjay.com (Jay Strauss) Date: Fri, 18 Nov 2011 10:43:45 -0600 Subject: [Chicago-talk] financial charting Message-ID: Hi, not a Perl question exactly (although I'd probably implement using Perl). I have some price series data. (i.e. date and price). I'd like to chart it against various indices (like the sp500 or Russell, or an individual stock...) What I'd like to do is use yahoo chart or google, but pass them MY data and marry it with their data and produce a graph using their graphing utilities. Can anyone suggest simple ways to do this? I know I can pass ALL the data to google charts api, but it seems crazy to download the data from google, then build all the stuff with my data plus the data I downloaded, just to send it back to the place I got the data from originally. Thanks Jay -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcmertens.perl at gmail.com Fri Nov 18 08:55:41 2011 From: dcmertens.perl at gmail.com (David Mertens) Date: Fri, 18 Nov 2011 10:55:41 -0600 Subject: [Chicago-talk] financial charting In-Reply-To: References: Message-ID: I don't know how to get Google or Yahoo to do what you want. However, making the chart on your own machine should be straight-forward using Perl. A recent post for this can be found here: http://www.preshweb.co.uk/2011/11/graphing-time-based-data-in-perl/ I know that doesn't answer your original question, but if you can't find a way to do what you want, maybe this will work as Plan B. David On Fri, Nov 18, 2011 at 10:43 AM, Jay Strauss wrote: > Hi, > > not a Perl question exactly (although I'd probably implement using Perl). > > I have some price series data. (i.e. date and price). I'd like to chart > it against various indices (like the sp500 or Russell, or an individual > stock...) > > What I'd like to do is use yahoo chart or google, but pass them MY data > and marry it with their data and produce a graph using their graphing > utilities. > > Can anyone suggest simple ways to do this? > > I know I can pass ALL the data to google charts api, but it seems crazy to > download the data from google, then build all the stuff with my data plus > the data I downloaded, just to send it back to the place I got the data > from originally. > > Thanks > Jay > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- Sent via my carrier pigeon. -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at heyjay.com Sat Nov 19 07:20:10 2011 From: me at heyjay.com (Jay Strauss) Date: Sat, 19 Nov 2011 09:20:10 -0600 Subject: [Chicago-talk] financial charting In-Reply-To: References: Message-ID: Hi David, I'll check it out. Thanks Jay On Fri, Nov 18, 2011 at 10:55 AM, David Mertens wrote: > I don't know how to get Google or Yahoo to do what you want. However, > making the chart on your own machine should be straight-forward using Perl. > A recent post for this can be found here: > > http://www.preshweb.co.uk/2011/11/graphing-time-based-data-in-perl/ > > I know that doesn't answer your original question, but if you can't find a > way to do what you want, maybe this will work as Plan B. > > David > > On Fri, Nov 18, 2011 at 10:43 AM, Jay Strauss wrote: > >> Hi, >> >> not a Perl question exactly (although I'd probably implement using Perl). >> >> I have some price series data. (i.e. date and price). I'd like to chart >> it against various indices (like the sp500 or Russell, or an individual >> stock...) >> >> What I'd like to do is use yahoo chart or google, but pass them MY data >> and marry it with their data and produce a graph using their graphing >> utilities. >> >> Can anyone suggest simple ways to do this? >> >> I know I can pass ALL the data to google charts api, but it seems crazy >> to download the data from google, then build all the stuff with my data >> plus the data I downloaded, just to send it back to the place I got the >> data from originally. >> >> Thanks >> Jay >> >> >> >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> http://mail.pm.org/mailman/listinfo/chicago-talk >> > > > > -- > Sent via my carrier pigeon. > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at blanton.com Mon Nov 21 12:06:42 2011 From: sean at blanton.com (Sean Blanton) Date: Mon, 21 Nov 2011 14:06:42 -0600 Subject: [Chicago-talk] financial charting In-Reply-To: References: Message-ID: I started out wanting to use Google or Yahoo, and as mentioned in the last meeting, I ended up using a JQuery-based library, Flot. I use Perl for the website and to generate the JSON data for the plot. I find the dynamic highlighting, resizable and interactive web-based plots very attractive. I use this as a complement to the DataTables plugin (http://datatables.net) for displaying the data in tables, as the name suggests. http://people.iola.dk/olau/flot/examples/ Beware of the JqPlot library, which is also very nice, but does not support error bars last I checked. Regards, Sean On Sat, Nov 19, 2011 at 9:20 AM, Jay Strauss wrote: > Hi David, > > I'll check it out. Thanks > > Jay > > > On Fri, Nov 18, 2011 at 10:55 AM, David Mertens wrote: > >> I don't know how to get Google or Yahoo to do what you want. However, >> making the chart on your own machine should be straight-forward using Perl. >> A recent post for this can be found here: >> >> http://www.preshweb.co.uk/2011/11/graphing-time-based-data-in-perl/ >> >> I know that doesn't answer your original question, but if you can't find >> a way to do what you want, maybe this will work as Plan B. >> >> David >> >> On Fri, Nov 18, 2011 at 10:43 AM, Jay Strauss wrote: >> >>> Hi, >>> >>> not a Perl question exactly (although I'd probably implement using Perl). >>> >>> I have some price series data. (i.e. date and price). I'd like to >>> chart it against various indices (like the sp500 or Russell, or an >>> individual stock...) >>> >>> What I'd like to do is use yahoo chart or google, but pass them MY data >>> and marry it with their data and produce a graph using their graphing >>> utilities. >>> >>> Can anyone suggest simple ways to do this? >>> >>> I know I can pass ALL the data to google charts api, but it seems crazy >>> to download the data from google, then build all the stuff with my data >>> plus the data I downloaded, just to send it back to the place I got the >>> data from originally. >>> >>> Thanks >>> Jay >>> >>> >>> >>> _______________________________________________ >>> Chicago-talk mailing list >>> Chicago-talk at pm.org >>> http://mail.pm.org/mailman/listinfo/chicago-talk >>> >> >> >> >> -- >> Sent via my carrier pigeon. >> >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> http://mail.pm.org/mailman/listinfo/chicago-talk >> > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at heyjay.com Mon Nov 21 17:05:11 2011 From: me at heyjay.com (Jay Strauss) Date: Mon, 21 Nov 2011 19:05:11 -0600 Subject: [Chicago-talk] financial charting In-Reply-To: References: Message-ID: Thanks Sean, I looked at Flot (and amcharts, highcharts, raphael, open flash charts2, dyngraphs...) and starting to get a bit confused. I like the google stuff because all the software sits on their servers, and you just pass the data. On the other hand, the other packages like flot have more options (i think) Jay On Mon, Nov 21, 2011 at 2:06 PM, Sean Blanton wrote: > I started out wanting to use Google or Yahoo, and as mentioned in the last > meeting, I ended up using a JQuery-based library, Flot. I use Perl for the > website and to generate the JSON data for the plot. I find the dynamic > highlighting, resizable and interactive web-based plots very attractive. I > use this as a complement to the DataTables plugin (http://datatables.net) > for displaying the data in tables, as the name suggests. > > http://people.iola.dk/olau/flot/examples/ > > Beware of the JqPlot library, which is also very nice, but does not > support error bars last I checked. > > Regards, > Sean > > > > > > On Sat, Nov 19, 2011 at 9:20 AM, Jay Strauss wrote: > >> Hi David, >> >> I'll check it out. Thanks >> >> Jay >> >> >> On Fri, Nov 18, 2011 at 10:55 AM, David Mertens > > wrote: >> >>> I don't know how to get Google or Yahoo to do what you want. However, >>> making the chart on your own machine should be straight-forward using Perl. >>> A recent post for this can be found here: >>> >>> http://www.preshweb.co.uk/2011/11/graphing-time-based-data-in-perl/ >>> >>> I know that doesn't answer your original question, but if you can't find >>> a way to do what you want, maybe this will work as Plan B. >>> >>> David >>> >>> On Fri, Nov 18, 2011 at 10:43 AM, Jay Strauss wrote: >>> >>>> Hi, >>>> >>>> not a Perl question exactly (although I'd probably implement using >>>> Perl). >>>> >>>> I have some price series data. (i.e. date and price). I'd like to >>>> chart it against various indices (like the sp500 or Russell, or an >>>> individual stock...) >>>> >>>> What I'd like to do is use yahoo chart or google, but pass them MY data >>>> and marry it with their data and produce a graph using their graphing >>>> utilities. >>>> >>>> Can anyone suggest simple ways to do this? >>>> >>>> I know I can pass ALL the data to google charts api, but it seems crazy >>>> to download the data from google, then build all the stuff with my data >>>> plus the data I downloaded, just to send it back to the place I got the >>>> data from originally. >>>> >>>> Thanks >>>> Jay >>>> >>>> >>>> >>>> _______________________________________________ >>>> Chicago-talk mailing list >>>> Chicago-talk at pm.org >>>> http://mail.pm.org/mailman/listinfo/chicago-talk >>>> >>> >>> >>> >>> -- >>> Sent via my carrier pigeon. >>> >>> _______________________________________________ >>> Chicago-talk mailing list >>> Chicago-talk at pm.org >>> http://mail.pm.org/mailman/listinfo/chicago-talk >>> >> >> >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> http://mail.pm.org/mailman/listinfo/chicago-talk >> > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: