From jhannah at mutationgrid.com Thu Dec 2 09:45:29 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Thu, 2 Dec 2010 11:45:29 -0600 Subject: [Omaha.pm] hammock-driven development In-Reply-To: <20101202104214.74fa9dfd.stephen@exigencecorp.com> References: <20101202104214.74fa9dfd.stephen@exigencecorp.com> Message-ID: <206502F2-B728-4F6B-9FD3-912B2B2118D5@mutationgrid.com> On Dec 2, 2010, at 10:42 AM, Stephen Haberman wrote: > Here's a cool presentation from the author of Clojure, Rich Hickey, > though the topic is software development in general: > > http://clojure.blip.tv/file/4457042/ A very good talk! I wonder how my accountant wants me to bucket hammock purchases...? :) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From jhannah at mutationgrid.com Thu Dec 2 09:49:30 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Thu, 2 Dec 2010 11:49:30 -0600 Subject: [Omaha.pm] hammock-driven development In-Reply-To: <206502F2-B728-4F6B-9FD3-912B2B2118D5@mutationgrid.com> References: <20101202104214.74fa9dfd.stephen@exigencecorp.com> <206502F2-B728-4F6B-9FD3-912B2B2118D5@mutationgrid.com> Message-ID: <65A02BFA-33B7-4970-8338-7FACC7854C5E@mutationgrid.com> On Dec 2, 2010, at 11:45 AM, Jay Hannah wrote: > On Dec 2, 2010, at 10:42 AM, Stephen Haberman wrote: >> Here's a cool presentation from the author of Clojure, Rich Hickey, >> though the topic is software development in general: >> >> http://clojure.blip.tv/file/4457042/ > > A very good talk! > > I wonder how my accountant wants me to bucket hammock purchases...? :) And/or my mileage to the only work-hammock I'm aware of in the greater Omaha area... http://www.maloneandcoblog.com/2010/08/new-studio-1-0/#panel-5 Yellow/black hung in the right side of the shelving. :) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From jay at jays.net Thu Dec 2 16:57:39 2010 From: jay at jays.net (Jay Hannah) Date: Thu, 2 Dec 2010 18:57:39 -0600 Subject: [Omaha.pm] FIXED: DBICSL can't 'can' Message-ID: <92A62D4F-7FBB-4FC1-B200-439C87F8902C@jays.net> http://blogs.perl.org/users/jhannah_mutation_grid/2010/12/fixed-dbicsl-cant-can.html (open source)++ :) j From jhannah at mutationgrid.com Mon Dec 6 09:57:48 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Mon, 6 Dec 2010 11:57:48 -0600 Subject: [Omaha.pm] Fwd: Perl Oasis 2011 References: Message-ID: I've yet to make it out to a Perl Oasis. Orlando sure sounds good. :) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 ------------------ From: Chris Prather Date: December 5, 2010 3:08:27 PM CST To: yapc , Discussion about YAPC conferences , PM Groups Subject: [yapc] Perl Oasis 2011 With London Perl Workshop closing up this weekend, I realized So Perl Oasis 2011 (http://www.perloasis.info) is rapidly approaching. It will in fact be happening January 15th, 2011, and the deadline for Talk Submissions is December 17th. Worse yet the deadline for booking the hotel rooms with our discount rate is December 16th! The call for speakers is open and we have had some speakers submit talks already on Catalyst, Moose, Javascript, Template::Zoom, MozRepl. However we need more! Additionally there will be space for a hackathon on the Sunday after for people who are interested in getting together and working on a project or two. The cost for the workshop is $20 USD for non-students, and $10 for students. Finally for the first year we are offering the Introduction to Moose corporate training course on January 14th. This class was developed by Dave Rolsky. It has been presented several times at YAPC's here and in Europe, as well as at various Perl Workshops around the country. The cost for this course is $180 USD, which for corporate style training is dirt cheap. I look forward to seeing as many people as possible come! -Chris (Apologies to those who received multiple copies from my cross posting.) From jay at jays.net Tue Dec 7 09:06:30 2010 From: jay at jays.net (Jay Hannah) Date: Tue, 7 Dec 2010 11:06:30 -0600 Subject: [Omaha.pm] Fwd: Beer && Code Holiday Party References: Message-ID: <3E145A4D-3417-4C9B-BC4F-3FC03AD1CCB4@jays.net> FYI. Same night as our meeting, for which we don't yet have an agenda set. j -------- From: Andy Peters Date: December 7, 2010 10:27:57 AM CST To: Omaha Dynamic Language User Group Subject: [odynug] Beer && Code Holiday Party Reply-To: odynug at googlegroups.com I am not sure if you all have heard of Beer && Code (thats okay), I wanted to pass on the word that we are having a Holiday Party and every programmer is invited. Beer && Code is simple, programmers get together at bars/pubs with their laptops, work, share and socialize. We usually do it twice a month. This month we are only doing one event and it is this Holiday Party. The party is the Tuesday, December 14 and its more of a social thing. Feel free to bring your laptop though. Show what you are doing off a bit. Get some help from some of the folks there. Etc. More info - http://www.beerandcode.org/post/2133382201/we-are-having-a-holiday-party Follow us on Twitter - twitter.com/beercodeomaha Website - www.beerandcode.org I hope to see you there! From jhannah at mutationgrid.com Tue Dec 7 09:40:32 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Tue, 7 Dec 2010 11:40:32 -0600 Subject: [Omaha.pm] Don't blame Perl for all ugly code! Message-ID: <833770C3-5B14-4EB4-8D85-FA3DCBF5954F@mutationgrid.com> Another exploration of the massive diversity that is Perl. :) http://blog.nu42.com/2010/12/dont-blame-perl-for-all-ugly-code.html Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From dan at linder.org Mon Dec 13 06:58:53 2010 From: dan at linder.org (Dan Linder) Date: Mon, 13 Dec 2010 08:58:53 -0600 Subject: [Omaha.pm] Strftime between Linux/Unix and Windows differences. Message-ID: Ran into an interesting gotcha between Perl on Linux and Perl on Windows. See this example code: $ cat -n ./d0039.pl 1 #!perl 2 use strict; 3 use POSIX; 4 my $epoc_sec = 1296482400; 5 printf ("%s\n", strftime("%A, %B %e %Y at %l:%M%p", localtime($epoc_sec))); 6 my $TT=localtime($epoc_sec); 7 print qq{$TT \n}; On my Linux system: $ perl ./d0039.pl Monday, January 31 2011 at 8:00AM Mon Jan 31 08:00:00 2011 But when run from my Windows box (Win 7, 64bit) using ActiveState: C:\temp>perl d0039.pl %A, %B %e %Y at %l:%M%p Mon Jan 31 08:00:00 2011 After a bit of Googling, I found this section from the POSIX documentation: http://perldoc.perl.org/POSIX.html > If you want your code to be portable, your format (fmt ) argument should > use only the conversion specifiers defined by the ANSI C standard (C89, to > play safe). These are aAbBcdHIjmMpSUwWxXyYZ% . But even then, the results of > some of the conversion specifiers are non-portable. For example, the > specifiers aAbBcpZchange according to the locale settings of the user, and > both how to set locales (the locale names) and what output to expect are > non-standard. The specifier c changes according to the timezone settings of > the user and the timezone computation rules of the operating system. > The Z specifier is notoriously unportable since the names of timezones are > non-standard. Sticking to the numeric specifiers is the safest route. What I don't get is why ALL of my formatting code entries don't seem to be accepted in the strftime() call... DanL -- ***************** ************* *********** ******* ***** *** ** "Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the Satires of Juvenal "I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author) ** *** ***** ******* *********** ************* ***************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhannah at mutationgrid.com Mon Dec 13 10:01:27 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Mon, 13 Dec 2010 12:01:27 -0600 Subject: [Omaha.pm] Strftime between Linux/Unix and Windows differences. In-Reply-To: References: Message-ID: <8880A07F-2F9B-4C9A-83FE-72FD9D95C3E9@mutationgrid.com> On Dec 13, 2010, at 8:58 AM, Dan Linder wrote: > On my Linux system: > $ perl ./d0039.pl > Monday, January 31 2011 at 8:00AM > Mon Jan 31 08:00:00 2011 > > But when run from my Windows box (Win 7, 64bit) using ActiveState: > C:\temp>perl d0039.pl > %A, %B %e %Y at %l:%M%p > Mon Jan 31 08:00:00 2011 Curious. I don't use Windows so don't have any insights into this. Have you tried using DateTime instead of POSIX? (Or Strawberry Perl instead of ActiveState?) I don't know how POSIX friendly Windows is/isn't. $0.02, Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From jhannah at mutationgrid.com Mon Dec 13 10:40:47 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Mon, 13 Dec 2010 12:40:47 -0600 Subject: [Omaha.pm] Holiday party tomorrow 6pm Message-ID: This month we're skipping the tech meeting. See you tomorrow and in January. Enjoy the holidays! http://odlug.org Holiday party: Beer && Code Omaha http://www.beerandcode.org/ Tuesday December 14, 2010 @ 6pm. Upstream Brewery Legacy - 171st and Center Next meeting: Tuesday January 11 2010, 7pm (2nd Tuesday of every month.) UNO's Peter Kiewit Institute (PKI) Room PKI 276 1110 South 67th Street Omaha, NE USA Call for speakers: Excited about anything you've been working on lately? Willing to share with us for 5 minutes or 50? Speak up! :) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From rob.townley at gmail.com Tue Dec 14 00:05:19 2010 From: rob.townley at gmail.com (Rob Townley) Date: Tue, 14 Dec 2010 02:05:19 -0600 Subject: [Omaha.pm] Strftime between Linux/Unix and Windows differences. In-Reply-To: <8880A07F-2F9B-4C9A-83FE-72FD9D95C3E9@mutationgrid.com> References: <8880A07F-2F9B-4C9A-83FE-72FD9D95C3E9@mutationgrid.com> Message-ID: Do you have posix enabled on your windows system? It is not on by default and you probably have to set it in the local policy. From jhannah at mutationgrid.com Tue Dec 14 11:48:12 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Tue, 14 Dec 2010 13:48:12 -0600 Subject: [Omaha.pm] Oops! next out of a sub Message-ID: <4A87885E-A82C-4534-AB3A-55A9F76579AE@mutationgrid.com> Ever accidentally put 'next if' in a subroutine to end further processing of that sub? 'return undef if' returns out of the sub as expected, but 'next' "magically" jumps out of the sub and iterates your loop miles away. :) D'oh! Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From dan at linder.org Tue Dec 14 14:30:40 2010 From: dan at linder.org (Dan Linder) Date: Tue, 14 Dec 2010 16:30:40 -0600 Subject: [Omaha.pm] Strftime between Linux/Unix and Windows differences. In-Reply-To: References: <8880A07F-2F9B-4C9A-83FE-72FD9D95C3E9@mutationgrid.com> Message-ID: The Windows system is my boss's laptop. :-) I'll have to review the code and rewrite the small script to use "safe" strftime() calls. Dan On Tue, Dec 14, 2010 at 02:05, Rob Townley wrote: > Do you have posix enabled on your windows system? It is not on by > default and you probably have to set it in the local policy. > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -- ***************** ************* *********** ******* ***** *** ** "Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the Satires of Juvenal "I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author) ** *** ***** ******* *********** ************* ***************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhannah at mutationgrid.com Thu Dec 23 13:58:22 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Thu, 23 Dec 2010 15:58:22 -0600 Subject: [Omaha.pm] Code Golf: Piano Message-ID: http://stackoverflow.com/questions/2202897/code-golf-piano/2203549#2203549 Solutions are listed in GolfScript (hadn't heard of this - http://www.golfscript.com/golfscript/) Perl Ruby LilyPond RetroGolf C# Python C Octave PostScript F# PianoScript (haha) sed JavaScript Python3 SETL D2 Haskell :) Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 From jhannah at mutationgrid.com Wed Dec 29 11:24:41 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Wed, 29 Dec 2010 13:24:41 -0600 Subject: [Omaha.pm] Fwd: the joys of encoding References: <396CEDAA86B38646ACE2FEAA22C3FBF1044DCF51@l3exchange.omnihotels.net> Message-ID: <5E6C30B3-A088-49DF-8700-5175EDCFA566@mutationgrid.com> Hmm... Sean: Looks like this is a 5.10.0 bug that people prepped patches for in 2008/2009 but I can't tell based on that thread if the patches got applied or not. http://groups.google.com/group/perl.perl5.porters/browse_thread/thread/94914fe2d844f5ec/2860ab39fbae7c9c?lnk=raot&pli=1 You might check the little program George Greer posted on Apr 19 2009 and see if that fails on your perl but works on more recent ones. And try isolating your real-data test too...? HTH, Jay Hannah Software Architect jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782 > On Dec 28, 2010, at 4:54 PM, Sean Baker wrote: >> This seems to work in Perl 5.8 and dies in Perl 5.10: >> >> DB<2> x encode_entities($str, "\200-\377") >> Assertion rx->sublen >= (s - rx->subbeg) + i failed: file "regcomp.c", line 5109 at (eval 4652)[/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/HTML/Entities.pm:456] line 1. >> DB<3> x $str >> 0 'Ce forfait inclut:
Chambre Luxueuse, petit d?jeuner buffet par jour, par personne, sac \x{201C}Omni\x{201D} pour les enfants, lait & biscuits (soir de l\x{2019}arriv?e).' > > Is HTML::Entities current (3.68)? > > Can this go on Omaha.pm? From: "Sean Baker" Date: December 29, 2010 8:00:15 AM CST To: "Jay Hannah" > Sure. Yes, it's on a current version. I'm going to go through production packages and compare against QA & dev and roll anything up or back that I need too. > > Module id = HTML::Entities > DESCRIPTION Encode/decode HTML entities > CPAN_USERID LWWWP (The libwww-perl mailing list ) > CPAN_VERSION 3.68 > CPAN_FILE G/GA/GAAS/HTML-Parser-3.68.tar.gz > UPLOAD_DATE 2010-09-01 > DSLIP_STATUS Rmpf? (released,mailing-list,perl,functions,) > MANPAGE HTML::Entities - Encode or decode strings with HTML entities > INST_FILE /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/HTML/Entities.pm > INST_VERSION 3.68