From topher-pm at zyp.org Thu Jul 1 10:10:43 2010 From: topher-pm at zyp.org (Christopher Cashell) Date: Thu, 1 Jul 2010 12:10:43 -0500 Subject: [Omaha.pm] map, grep in the debugger In-Reply-To: <396CEDAA86B38646ACE2FEAA22C3FBF103862AF1@l3exchange.omnihotels.net> References: <396CEDAA86B38646ACE2FEAA22C3FBF103862AF1@l3exchange.omnihotels.net> Message-ID: 2010/6/29 Jay Hannah : [. . .] > DB<3> x grep { /DAY/ } keys %hash > ?? 0? 'DAYTIME' > ?? 1 ?'DAYLIGHT' [. . .] > DB<4> x map { $_ => $hash{$_} } grep { /DAY/ } keys %hash > ?? 0? 'DAYTIME' > ?? 1? 3 > ?? 2? 'DAYLIGHT' > ?? 3? 2 I can't believe I never thought about how useful map and grep would be in the debugger. That is really slick. ;-) > j -- Christopher From jhannah at mutationgrid.com Mon Jul 12 19:39:54 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Mon, 12 Jul 2010 21:39:54 -0500 Subject: [Omaha.pm] Meeting tomorrow night, 7pm Message-ID: <4CA49CFF-26C8-42C9-8A30-5DA10FDFB724@mutationgrid.com> http://odlug.org We're back in our OLD ROOM NUMBER - 276 I've been out of town for two weeks and too lazy to write the git workshop scenarios; and Stephen got called out of state for a few days. So, the git workshop has been pushed to next month. We'll use tomorrow night's meeting to prep for the git workshop and/or whatever else people want to chat about / present. Perhaps early retirement to SIG-BEER/COFFEE? :) See you there! http://odlug.org Jay Hannah Software Architect jhannah at mutationgrid.com 1-402-578-3976 From jhannah at omnihotels.com Wed Jul 21 09:25:31 2010 From: jhannah at omnihotels.com (Jay Hannah) Date: Wed, 21 Jul 2010 11:25:31 -0500 Subject: [Omaha.pm] XML::Twig usage In-Reply-To: <396CEDAA86B38646ACE2FEAA22C3FBF103A2C47F@l3exchange.omnihotels.net> References: <396CEDAA86B38646ACE2FEAA22C3FBF103A2C47F@l3exchange.omnihotels.net> Message-ID: <396CEDAA86B38646ACE2FEAA22C3FBF103A2C514@l3exchange.omnihotels.net> Oh! :) Searching the XML::Twig POD for "att" the very first hit says, quote: Other useful methods include: att: "$elt->{'att'}->{'foo'}" return the "foo" attribute for an element, So for all these years I've assumed there was no public accessor method for attributes. :) Live and learn! Thanks! I find the POD confusing. ->{'att'} is not a *method* at all, so why he calls that a "useful method" is beyond me. -shrug- j ________________________________ From: Sean Baker Sent: Wednesday, July 21, 2010 9:08 AM Works: my $att = $pack->{att}->{postingRhythm} Works better: my $att = $pack->att("postingRhythm"); -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhannah at omnihotels.com Wed Jul 21 10:53:38 2010 From: jhannah at omnihotels.com (Jay Hannah) Date: Wed, 21 Jul 2010 12:53:38 -0500 Subject: [Omaha.pm] regex preference In-Reply-To: <201007211621.o6LGLB7d032525@omares-etl.omnihotels.com> References: <201007211621.o6LGLB7d032525@omares-etl.omnihotels.com> Message-ID: <396CEDAA86B38646ACE2FEAA22C3FBF103A2C571@l3exchange.omnihotels.net> Re: if ( $in_string =~ /$code/mgi || $in_string =~ /$code/mgi ) { I prefer if ( $in_string =~ /<(HotelCode|mfResort)>$code/mgi ) { Or a full XML parse. :) $0.02, j -------------- next part -------------- An HTML attachment was scrubbed... URL: From jay at jays.net Sat Jul 24 09:24:24 2010 From: jay at jays.net (Jay Hannah) Date: Sat, 24 Jul 2010 11:24:24 -0500 Subject: [Omaha.pm] Fwd: Are the people in your PM group IRC savvy? References: Message-ID: <6609A65D-CC08-42BF-A5F1-0D4CDD7BAF26@jays.net> I put IRC links on our homepage about a year ago. Other than my coworkers at Omni, I don't recall if anyone has dropped by. irc.perl.org #perl-help, #catalyst, #moose are my most-used channels. Saves me many hours of banging my forehead. Also, irc.freenode.net #omaha.dev is for Omaha developers, of any language. :) j Begin forwarded message: > From: Gabor Szabo > Date: July 24, 2010 6:41:21 AM CDT > To: PM Groups > Subject: [pm_groups] Are the people in your PM group IRC savvy? > > Hi, > > As part of my Perl 6 series of screencasts I created an episode > showing people how can they use IRC to ask Perl 6 related questions > and how can they try Perl 6 without installing anything on their computer: > > http://szabgab.com/blog/2010/07/1279932344.html > > Then, today - on the 2nd birthday of Padre - I created a screencast > showing how one can join the #padre IRC channel and other Perl > related IRC channels: > > http://szabgab.com/blog/2010/07/1280012145.html > > It would be nice to see more people join the various Perl related > IRC channels and get active there. > > > So I'd like to ask you to either forward the links to your local mailing list > or maybe prepare a better screencast that shows how to use the channel of > your PM group - if you have one - or other perl channels that your > members might > be interested in. > > > If you have never user IRC I hope these short videos will help you > learn how to use it. > If you use IRC 10-15 years ago and are surprised that it is still around, > well I was surprised to a couple of years ago when I started to use it > again after a 10 year break. > > It turns out it became quite main-stream. > At least among the geeks :) > I think it might also be important to explain about the bots: > http://www.youtube.com/watch?v=zf2wbRWb9xI > > > In the meantime, I hope you'll come by the Padre channel and > say happy birthday to the developers. > > > regards > Gabor > http://szabgab.com/ From jhannah at mutationgrid.com Fri Jul 30 07:50:59 2010 From: jhannah at mutationgrid.com (Jay Hannah) Date: Fri, 30 Jul 2010 09:50:59 -0500 Subject: [Omaha.pm] Fwd: running Rakudo * at your PM group | and other stuff References: <201007271414.52390.scratchcomputing@gmail.com> Message-ID: Has anybody in Omaha done any Perl6? The email below is an interesting idea, but I only have 3 hours of experience with Perl6, so I probably shouldn't lead such a meeting. --- I've launched my own consulting company. If you have any overflow work, keep me ("us") in mind. :) http://mutationgrid.com Software / database consulting So now my company will be sponsoring food at the meetings where we don't have another sponsor lined up. My wife's checkbook is off the hook. :) --- I've been pondering moving our website from MediaWiki (which almost no one ever uses) to a hosted Linux virtual server where everyone that shows up to any meeting can have root access (sudoers), and the website is driven by whatever technologies people want to install on that box. So lots of live demos and sandbox areas built into our website server / community dev server. linode.com is $20/month, which Mutation Grid could sponsor if people would use it. And/or we could start a $12/year group membership fee to support the linode? I'm all about more participation, buy-in from our members... Thoughts? --- Eeek, I really need to flush out the git workshop scenarios some more. Stephan's fled the state, so you're stuck with me as git poobah. Should be OK, only with far less dictatorial confidence. :) OK, I've probably stirred enough pots for one email. Signing off. :) Jay Hannah Software Architect jhannah at mutationgrid.com 1-402-598-7782 Begin forwarded message: > From: Eric Wilhelm > Date: July 27, 2010 4:14:52 PM CDT > To: pm_groups at pm.org > Subject: [pm_groups] running Rakudo * at your PM group > > Hi all, > > We had a "Rakudo Feet Wettening" at pdx.pm for our July meeting. This > was planned and announced a few weeks in advance, but required > relatively little preparation and was a lot of fun. > > If you want to try this with your group, here is roughly how we did it. > > Preparation: > > * announce the meeting 1-2 weeks in advance > (cross-posted to a few other local programmer groups) > * post the install instructions and documentation links > * print some copies of the cheatsheet to take to the meeting > > Agenda: > > * Introductions / questions > * 90 minutes of hacking > * Conclusion > * Beer > > > I printed 10 copies of the cheatsheet (should have been 20) and handed > them out, wrote some links / info on the whiteboard, facilitated the > introductions. Then I said "go", answered questions, wrote notes on > the board, and wrapped everything up at the end. > > For introductions, each person introduces themselves and says what they > want to try / learn about Rakudo Perl 6. This helped people find > potential pairings or groups of similar interests. > > During the hacking, I offered help to anyone who looked lost (pointing > them at the appropriate docs or pairing them up with someone slightly > less lost.) I think it was a slightly directed chaos, but didn't have > any time to experiment with things myself and the time went by very > quickly. If you have food at your meeting, you might be able to go for > 3 hours with a break in the middle. There was visible fatigue after 90 > minutes of intense concentration. > > To conclude the meeting, we went around the room again to ask each > person what they accomplished or learned. Each person said "I was > working on $x and I learned $y". Some examples of where people spent > their time: > > * class / object definitions > * how to create and use a module / include paths > * reading / parsing a file > * introspection > > > This was not a lot of structure or time, but I think it gives just > enough time and excuse to get Perl 5 users exposed to the current state > of things in Perl 6 and Rakudo. Many people spent the entire time > learning some basic differences and getting a feel for Perl 6. > > > --Eric > -- > We who cut mere stones must always be envisioning cathedrals. > --Quarry worker's creed > --------------------------------------------------- > http://scratchcomputing.com > ---------------------------------------------------