From jay at jays.net Sat Feb 3 06:14:58 2007 From: jay at jays.net (Jay Hannah) Date: Sat, 3 Feb 2007 08:14:58 -0600 Subject: [Omaha.pm] Job Snag-O (WWW::Mechanize) In-Reply-To: <918A98520F3FCE409850AB28CDC2E3D501100013@OMAEXMB01.corp.westworlds.com> References: <918A98520F3FCE409850AB28CDC2E3D501100013@OMAEXMB01.corp.westworlds.com> Message-ID: <7F5E405C-4FF4-4C01-9EF7-FA27E5E0132C@jays.net> On Jan 31, 2007, at 11:07 AM, Hanson, Paul M. wrote: > If he has a cell phone that accepts text messages, couldn't you send a > short "Nothing" to that device? Indeed. But alas he has no mobile phone. There are however, other mobile phones in the house that they don't use at night anyway. Perhaps he could sleep with one of those and I could send an email to that phone? Update: So far the Job Snag-O tool has only kicked out a long, depressing series of "No jobs available at this time" emails. One every 15 minutes for 3 hours a day. I'm not yet sure if I'm not checking frequently enough or if there are a dozen desperate subs clicking every 5 seconds at 5:30am or what... j From rob.townley at gmail.com Sun Feb 4 04:34:51 2007 From: rob.townley at gmail.com (Rob Townley) Date: Sun, 4 Feb 2007 06:34:51 -0600 Subject: [Omaha.pm] Job Snag-O (WWW::Mechanize) In-Reply-To: <7F5E405C-4FF4-4C01-9EF7-FA27E5E0132C@jays.net> References: <918A98520F3FCE409850AB28CDC2E3D501100013@OMAEXMB01.corp.westworlds.com> <7F5E405C-4FF4-4C01-9EF7-FA27E5E0132C@jays.net> Message-ID: <7e84ed60702040434o3f09b1c6k1169c8e34b833ad4@mail.gmail.com> You could email it to an perl based X-10 service that relays it to a bed shaking alarm clock. On 2/3/07, Jay Hannah wrote: > > On Jan 31, 2007, at 11:07 AM, Hanson, Paul M. wrote: > > If he has a cell phone that accepts text messages, couldn't you send a > > short "Nothing" to that device? > > Indeed. But alas he has no mobile phone. There are however, other > mobile phones in the house that they don't use at night anyway. > Perhaps he could sleep with one of those and I could send an email to > that phone? > > Update: So far the Job Snag-O tool has only kicked out a long, > depressing series of "No jobs available at this time" emails. One > every 15 minutes for 3 hours a day. I'm not yet sure if I'm not > checking frequently enough or if there are a dozen desperate subs > clicking every 5 seconds at 5:30am or what... > > j > > > > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/omaha-pm/attachments/20070204/a8f71f36/attachment.html From jay at jays.net Sun Feb 4 06:21:47 2007 From: jay at jays.net (Jay Hannah) Date: Sun, 4 Feb 2007 08:21:47 -0600 Subject: [Omaha.pm] Job Snag-O (WWW::Mechanize) In-Reply-To: <7e84ed60702040434o3f09b1c6k1169c8e34b833ad4@mail.gmail.com> References: <918A98520F3FCE409850AB28CDC2E3D501100013@OMAEXMB01.corp.westworlds.com> <7F5E405C-4FF4-4C01-9EF7-FA27E5E0132C@jays.net> <7e84ed60702040434o3f09b1c6k1169c8e34b833ad4@mail.gmail.com> Message-ID: On Feb 4, 2007, at 6:34 AM, Rob Townley wrote: > You could email it to an perl based X-10 service that relays it to > a bed shaking alarm clock. I like that idea! http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=110084332024 Sonic BOMB Vibrating Alarm Clock 12V Bed Shaker sbb500 ? Turbo charged, extra loud alarm ? Supercharged bed shaker ? Adjustable volume & tone ? Explosive red display ? Pulsating alert light http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=200075632150 X10 Large PowerHorn Alarm Siren PH508 for DS7000 +BONUS Should put him in a great mood to get up at the crack of dawn and teach da yoots. :) j From jay at jays.net Mon Feb 5 04:05:33 2007 From: jay at jays.net (Jay Hannah) Date: Mon, 5 Feb 2007 06:05:33 -0600 Subject: [Omaha.pm] Job Snag-O In-Reply-To: <200702051236.l15CaMeN010986@ferret.jays.net> References: <200702051236.l15CaMeN010986@ferret.jays.net> Message-ID: <6D5571E1-C739-4C38-9983-D9942A251083@jays.net> Boo-ya!!! Did you want to teach Spanish today? Should I page you? :) ok... so now we have to start figuring out the rules about when I should click where... and how I automate that... j On Feb 5, 2007, at 6:36 AM, Jay wrote: > I found something? > > Parsed text: > > Job ID > Employee > Position > Site > Description > > DIECIDUE, PAMELA Spanish William Chrisman 2/5/2007 > at 6:55AM until 2/5/2007 at 2:40PM (A) HAMILTON, SARAH > HS English William Chrisman 2/5/2007 at 6:55AM until 2/5/2007 > at 2:40PM (A) (A)- Employee's Schedule (S)- Same Times > Every Day > > > > > --- > > Raw text: > *** SNIPPED 82 TONS OF JAVASCRIPT UP HERE *** > > > > Substitute Available Jobs > > > > > > table>Click on Job ID to select job. > name=SubAvailSelectForm> > >
6:04 AM td>
Available > Jobs
width="30%">2/5/2007
> > > > > > > tr>
Job ID
Employee
Position
Site
Description
value="Select" name=Select LANGUAGE=javascript > onclick="SubAvailSelect_onclick(5955)">DIECIDUE, > PAMELASpanish td>William Chrisman2/5/2007 at > 6:55AM until 2/5/2007 at 2:40PM (A)
value="Select" name=Select LANGUAGE=javascript > onclick="SubAvailSelect_onclick(5956)">HAMILTON, > SARAHHS English td>William Chrisman2/5/2007 at > 6:55AM until 2/5/2007 at 2:40PM (A)
FORM>
(A)- Employee's Schedule font>
(S)- Same Times Every Day
> > From jay at jays.net Thu Feb 8 13:39:34 2007 From: jay at jays.net (Jay Hannah) Date: Thu, 8 Feb 2007 15:39:34 -0600 Subject: [Omaha.pm] Fwd: UG News--February is Web Design and Development Month at O'Reilly Message-ID: Begin forwarded message: > From: "Marsee Henon" > Date: February 7, 2007 1:56:09 PM CST > To: jay at jays.net > Subject: UG News--February is Web Design and Development Month at > O'Reilly > > Hi, > > Can you share the following with your members if you think they > might be interested? > > It's Web Design and Development Month here at O'Reilly and we just put > together a special resource page dedicated to web development > essentials > including books, PDF Short Cuts, articles, and author events: > http://www.oreilly.com/go/webdev > > > Don't forget your members can receive 35% off any of these titles when > they use discount code DSUG on our site. There's also free ground > shipping in the US on orders over $29.95. > > Happy FebWeb, > > Marsee > > ================================================================ > O'Reilly > 1005 Gravenstein Highway North > Sebastopol, CA 95472 > http://ug.oreilly.com/ http://ug.oreilly.com/creativemedia/ > ================================================================ From ryan at cfwebtools.com Fri Feb 9 09:38:05 2007 From: ryan at cfwebtools.com (Ryan Stille) Date: Fri, 09 Feb 2007 11:38:05 -0600 Subject: [Omaha.pm] Fwd: UG News--February is Web Design and Development Month at O'Reilly In-Reply-To: References: Message-ID: <45CCB17D.1000608@cfwebtools.com> Anyone planning on ordering something? I was thinking about ordering one book, but that still leaves me under the free shipping amount. -Ryan Jay Hannah wrote: > Begin forwarded message: > > >> From: "Marsee Henon" >> Date: February 7, 2007 1:56:09 PM CST >> To: jay at jays.net >> Subject: UG News--February is Web Design and Development Month at >> O'Reilly >> >> Hi, >> >> Can you share the following with your members if you think they >> might be interested? >> >> It's Web Design and Development Month here at O'Reilly and we just put >> together a special resource page dedicated to web development >> essentials >> including books, PDF Short Cuts, articles, and author events: >> http://www.oreilly.com/go/webdev >> >> >> Don't forget your members can receive 35% off any of these titles when >> they use discount code DSUG on our site. There's also free ground >> shipping in the US on orders over $29.95. >> >> Happy FebWeb, >> >> Marsee >> >> ================================================================ >> O'Reilly >> 1005 Gravenstein Highway North >> Sebastopol, CA 95472 >> http://ug.oreilly.com/ http://ug.oreilly.com/creativemedia/ >> =============================================================== >> From jay at jays.net Fri Feb 9 17:49:51 2007 From: jay at jays.net (Jay Hannah) Date: Fri, 9 Feb 2007 19:49:51 -0600 Subject: [Omaha.pm] Fwd: UG News--February is Web Design and Development Month at O'Reilly In-Reply-To: <45CCB17D.1000608@cfwebtools.com> References: <45CCB17D.1000608@cfwebtools.com> Message-ID: <85bc83bf49044b82d1ea5f2dd32a078f@jays.net> On Feb 9, 2007, at 11:38 AM, Ryan Stille wrote: > Anyone planning on ordering something? I was thinking about ordering > one book, but that still leaves me under the free shipping amount. I'm in for this one: http://www.oreilly.com/catalog/blast/index.html j From jay at jays.net Tue Feb 13 02:52:51 2007 From: jay at jays.net (Jay Hannah) Date: Tue, 13 Feb 2007 04:52:51 -0600 Subject: [Omaha.pm] shh.... secret meeting tonight @ 7pm Message-ID: Don't tell anybody, but tonight is your favorite day of the month - Perl Monger night! http://omaha.pm.org/ Pizza for all! Meetings are sponsored by Paragon IT Professionals. Thanks Jimmy Smith!! What kind of pizza? Its a mystery. "A mystery wrapped in an enigma, smothered in secret sauce." - Phil Hartman, News Radio Perly stuff I've been working on lately: - http://seqlab.net: Help me optimize some genetic sequencing regex's I wrote over the weekend. - Job Snag-O: My brother the substitute teacher doesn't want to wake up at 05:30 to check for jobs, so my robot does it for him. Isn't WWW::Mechanize neat? See you there! j From jay at jays.net Tue Feb 13 03:53:45 2007 From: jay at jays.net (Jay Hannah) Date: Tue, 13 Feb 2007 05:53:45 -0600 Subject: [Omaha.pm] Our wiki is back again Message-ID: <2D34F70B-0A6B-42F5-8EAD-DAF7933962A7@jays.net> I re-whacked our wiki again: http://omaha.pm.org/kwiki/ j Don't these people have anything better to do? -sigh- 1.97 Feb 13 Jay fixes the wiki again 1.96 Feb 12 Hacked By CooLLTurk 1.95 Jan 23 BHT LamerLik yapma ! GeL hack ?~V?~_ren ;) 1.94 Jan 23 HaCK?d ?~_y Penguen-Team 1.93 Jan 23 http://ker****et.sitemynet.com/hacked.htm 1.92 Jan 07 HACKED BY MEMOL? 1.91 Jan 05 Hacked By D3L1 URFA TEAM 1.90 Jan 04 Hacked By musanmaz and Sanal Optik 1.89 Dec 22 HACKED BY SRNA 1.88 Dec 22 Huge MS-FrontPage 1.87 Dec 21 HaCKeD By ErD@@L 1.86 Sep 28 Jay fixes the wiki again From jay at jays.net Tue Feb 13 19:08:54 2007 From: jay at jays.net (Jay Hannah) Date: Tue, 13 Feb 2007 21:08:54 -0600 Subject: [Omaha.pm] One-liner file clean-up Message-ID: <6b49fda87eda3cc81f46623a2123359d@jays.net> PROBLEM: Given a file like this: -------- A01100 Metabolism$ B$ B 01110 Carbohydrate Metabolism$ C$ C 00010 Glycolysis / Gluconeogenesis [PATH:sac00010]$ D$ D SACOL1604 glk; glucokinase [EC:2.7.1.2]; K00845 glucokinase $ D SACOL0966 pgi; glucose-6-phosphate isomerase [EC:5.3.1.9]; K01810 glucose-6-phosphate isomerase $ -------- Strip out all the HTML, and the leading capital letter and spaces. So it ends up looking like this: -------- 01100 Metabolism 01110 Carbohydrate Metabolism 00010 Glycolysis / Gluconeogenesis [PATH:sac00010] SACOL1604 glk; glucokinase [EC:2.7.1.2]; K00845 glucokinase SACOL0966 pgi; glucose-6-phosphate isomerase [EC:5.3.1.9]; K01810 glucose-6-ph osphate isomerase -------- SOLUTION: $ perl -pe 's/<.*?>//g; s/^[A-Z] *//;' filename.txt Grin, j From jay at jays.net Sun Feb 18 09:25:54 2007 From: jay at jays.net (Jay Hannah) Date: Sun, 18 Feb 2007 11:25:54 -0600 Subject: [Omaha.pm] pods2html / Pod::Tree::HTML Message-ID: <8E5F3876-2B45-47F4-8325-A02D066D1010@jays.net> Hi Steven -- Have you ever considered adding arguments to allow arbitrary header and footer blocks to be tacked onto the top and bottom of the output HTML? pods2html created this beautifully: http://seqlab.net/pods2html/ But I want to add my site-wide headers and footers http://seqlab.net/lib/header http://seqlab.net/lib/footer So the pods2html output pages look like all my other pages on my site (Template Toolkit driven). Thanks, j From jay at jays.net Sun Feb 18 17:52:44 2007 From: jay at jays.net (Jay Hannah) Date: Sun, 18 Feb 2007 19:52:44 -0600 Subject: [Omaha.pm] Fwd: pods2html / Pod::Tree::HTML Message-ID: ... hmm ... j Begin forwarded message: > From: Steven W McDougall > Date: February 18, 2007 2:31:47 PM CST > To: jay at jays.net (Jay Hannah) > Subject: Re: pods2html / Pod::Tree::HTML > >> Have you ever considered adding arguments to allow arbitrary header >> and footer blocks to be tacked onto the top and bottom of the output >> HTML? > > It could happen. > I've had another Pod::Tree release on my todo list for a while now. > I'll see if I can put something together. > > > - SWM From jay at jays.net Wed Feb 21 17:40:44 2007 From: jay at jays.net (Jay Hannah) Date: Wed, 21 Feb 2007 19:40:44 -0600 Subject: [Omaha.pm] Fwd: ref to a ref? circular refs? Message-ID: <6da8aae3ea6b321800941ab88e8054b4@jays.net> -laugh- Here's me back in January having fun with references to references... I stumbled into this entirely by mistake. Has anyone on the list ever *intentionally* made a reference to a reference? j Begin forwarded message: > From: Jay > Date: January 19, 2007 3:15:01 PM CST > To: jay at jays.net > Subject: ref to a ref? circular refs? > > > my $a = 10; > my $b = \$a; > my $c = \$b; > my $d = \$c; > my $e = \$d; > > exit; > > > > main::(j.pl:2): my $a = 10; > auto(-1) DB<1> o pager=less > pager = '|less' > > DB<2> n > main::(j.pl:3): my $b = \$a; > > DB<2> n > main::(j.pl:4): my $c = \$b; > > DB<2> n > main::(j.pl:5): my $d = \$c; > > DB<2> n > main::(j.pl:6): my $e = \$d; > > DB<2> n > main::(j.pl:8): exit; > > DB<2> x $e > 0 REF(0x830439c) > -> REF(0x812e2b0) > -> REF(0x812e244) > -> SCALAR(0x812e1f0) > -> 10 > > DB<3> q > > > > > $ cat j.pl > > my $a = 10; > my $b = \$a; > $a = $b; > > exit; > > > main::(j.pl:2): my $a = 10; > auto(-1) DB<1> o pager=less > pager = '|less' > > DB<2> n > main::(j.pl:3): my $b = \$a; > > DB<2> n > main::(j.pl:4): $a = $b; > > DB<2> n > main::(j.pl:6): exit; > > DB<2> x $a > 0 REF(0x812e1f0) > -> REF(0x812e1f0) > -> REUSED_ADDRESS > > DB<3> x $b > 0 REF(0x812e1f0) > -> REF(0x812e1f0) > -> REUSED_ADDRESS > > > / > From jay at jays.net Wed Feb 21 16:44:48 2007 From: jay at jays.net (Jay Hannah) Date: Wed, 21 Feb 2007 18:44:48 -0600 Subject: [Omaha.pm] Fwd: [pm_groups] The Perl Quiz Night Kit Message-ID: Interested? I'll buy the winner a Ferrari*. :) j Begin forwarded message: > From: Grant McLean > Date: December 14, 2006 5:27:04 AM CST > Subject: [pm_groups] The Perl Quiz Night Kit > > Hi PM Group Leaders > > You may recall that a month ago I was planning to run a quiz night at > Wellington.PM and asking if anyone had any helpful advice. > > Well we ran the quiz night for our December meeting and it was a lot of > fun. If you'd like to do something similar in your group then I can > now > offer you "The Perl Quiz Night Kit". It would kind of defeat the > purpose of a quiz if the questions and answers were readily > downloadable > from the Internet, so if you're interested email me at: > > grant at mclean.net.nz > > Cheers > Grant McLean > Coordinator Wellington.PM * MatchBox :) From dan at linder.org Thu Feb 22 04:13:17 2007 From: dan at linder.org (Daniel Linder) Date: Thu, 22 Feb 2007 06:13:17 -0600 (CST) Subject: [Omaha.pm] Fwd: ref to a ref? circular refs? In-Reply-To: <6da8aae3ea6b321800941ab88e8054b4@jays.net> References: <6da8aae3ea6b321800941ab88e8054b4@jays.net> Message-ID: <57766.72.255.115.236.1172146397.squirrel@www.linder.org> On Wed, February 21, 2007 19:40, Jay Hannah wrote: > -laugh- > > Here's me back in January having fun with references to references... > > I stumbled into this entirely by mistake. Has anyone on the list ever > *intentionally* made a reference to a reference? Oh sure, this happens *ALL* the time in the Government::Accountability module. You'd be surprised how many times the entire function of variables is just to point back to another module. I think the module President::Truman[1] was the last one that had a special flag ("BuckStopsHere=1"), but I can't remember if it affected the entire Government package... :) Dan Note 1: http://www.trumanlibrary.org/buckstop.htm - - - - "Wait for that wisest of all counselors, time." -- Pericles "I do not fear computers, I fear the lack of them." -- Isaac Asimov From jay at jays.net Fri Feb 23 01:14:09 2007 From: jay at jays.net (Jay Hannah) Date: Fri, 23 Feb 2007 03:14:09 -0600 Subject: [Omaha.pm] Fwd: ref to a ref? circular refs? In-Reply-To: <57766.72.255.115.236.1172146397.squirrel@www.linder.org> References: <6da8aae3ea6b321800941ab88e8054b4@jays.net> <57766.72.255.115.236.1172146397.squirrel@www.linder.org> Message-ID: <69C2F32D-6533-40E6-A991-A09440477F0D@jays.net> On Feb 22, 2007, at 6:13 AM, Daniel Linder wrote: > Oh sure, this happens *ALL* the time in the Government::Accountability > module. You'd be surprised how many times the entire function of > variables is just to point back to another module. I would think that most modules would have critical work to do... sub do_x { my ($self) = @_; $self->spin(@_); $self->use_for_political_gain(@_); $self->fundraise_by_exploiting_x(@_); $self->congratulate; $self->delegate_x(@_); $self->contradict; $self->golf; return "vote for $self!"; } With a pure reference to a reference valuable opportunities would be missed. :) j From robert.fulkerson at gmail.com Sat Feb 24 12:08:31 2007 From: robert.fulkerson at gmail.com (Robert Fulkerson) Date: Sat, 24 Feb 2007 14:08:31 -0600 Subject: [Omaha.pm] Perl, Python, Ruby or PHP ... Message-ID: <6cb6eebc0702241208o31a3a2dcvac27cc4f2e11a492@mail.gmail.com> Greetings All! UNO would like to create a two-course sequence of web-related programming. We currently have my course, which is taught in Perl and another course that covers similar content but doesn't require any previous programming experience that is taught in Python. Essentially, we're going use the current Python course as the intro course and then my course as the advanced course. We're going to standardize on one language, however, and Perl, Ruby and Python (and heck, even PHP) are all candidates. The two languages at the top of the heap are Perl and Python, since work has already been done in both languages, thus reducing the amount of work to create the two-course sequence. I, of course, want the language to be Perl and have my own set of reasons, but I thought I'd cast a wide net out to everyone for ideas that I can bring to the table on Tuesday. So, fire away. Why should we continue to teach Perl instead of Python at UNO? Other than the fact that it's the coolest language ever? :) Thanks! -- b -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/omaha-pm/attachments/20070224/cac887fd/attachment.html From gotosleep at gmail.com Sat Feb 24 12:35:43 2007 From: gotosleep at gmail.com (Jesse Andersen) Date: Sat, 24 Feb 2007 14:35:43 -0600 Subject: [Omaha.pm] Perl, Python, Ruby or PHP ... In-Reply-To: <6cb6eebc0702241208o31a3a2dcvac27cc4f2e11a492@mail.gmail.com> References: <6cb6eebc0702241208o31a3a2dcvac27cc4f2e11a492@mail.gmail.com> Message-ID: I took your class in spring 2006 and shortly after that was hired on to my first programming job. We do a ton of scripting where I work, and your class definitely gave me a huge advantage. We do all our scripting in either korn shell, perl, or tcl, I of course chose perl whenever I can :) I can honestly say that the perl I learned in your class was one of the most useful things I've ever learned at UNO. I don't think Python would have been nearly as useful for me. From my limited experience, it seems like most of the big companies use perl for most of their scripting needs. Perl is the most practical (and the best) choice, in my opinion. On 2/24/07, Robert Fulkerson wrote: > > Greetings All! > > UNO would like to create a two-course sequence of web-related > programming. We currently have my course, which is taught in Perl and > another course that covers similar content but doesn't require any previous > programming experience that is taught in Python. Essentially, we're going > use the current Python course as the intro course and then my course as the > advanced course. We're going to standardize on one language, however, and > Perl, Ruby and Python (and heck, even PHP) are all candidates. The two > languages at the top of the heap are Perl and Python, since work has already > been done in both languages, thus reducing the amount of work to create the > two-course sequence. I, of course, want the language to be Perl and have my > own set of reasons, but I thought I'd cast a wide net out to everyone for > ideas that I can bring to the table on Tuesday. > > So, fire away. Why should we continue to teach Perl instead of > Python at UNO? Other than the fact that it's the coolest language ever? :) > > Thanks! > -- b > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/omaha-pm/attachments/20070224/baba93ef/attachment.html From kiranbina at gmail.com Sat Feb 24 13:18:32 2007 From: kiranbina at gmail.com (kiran bina) Date: Sat, 24 Feb 2007 15:18:32 -0600 Subject: [Omaha.pm] Perl, Python, Ruby or PHP ... In-Reply-To: References: <6cb6eebc0702241208o31a3a2dcvac27cc4f2e11a492@mail.gmail.com> Message-ID: <531681ec0702241318s589917d8t901475d85f43684a@mail.gmail.com> I vote for Perl coz. I agree bob, it is the coolest language ever :-) .However, most importantly it is useful for wide variety of things you do later in your career (like the previous post). Additional reason for beginners like me is that fact that I get to find more people who can and are willing to help. Unlike other languages you depend on limited few who may or may not have time to spare. Since I was interested in processing biological data I chose to learn bioperl and your class definitely gave a strong foundation. However, I would request you, if possible, to include the section on database interaction. Kiran On 2/24/07, Jesse Andersen wrote: > > I took your class in spring 2006 and shortly after that was hired on to my > first programming job. We do a ton of scripting where I work, and your > class definitely gave me a huge advantage. We do all our scripting in > either korn shell, perl, or tcl, I of course chose perl whenever I can :) I > can honestly say that the perl I learned in your class was one of the most > useful things I've ever learned at UNO. I don't think Python would have > been nearly as useful for me. From my limited experience, it seems like most > of the big companies use perl for most of their scripting needs. Perl is > the most practical (and the best) choice, in my opinion. > > On 2/24/07, Robert Fulkerson wrote: > > > Greetings All! > > > > UNO would like to create a two-course sequence of web-related > > programming. We currently have my course, which is taught in Perl and > > another course that covers similar content but doesn't require any previous > > programming experience that is taught in Python. Essentially, we're going > > use the current Python course as the intro course and then my course as the > > advanced course. We're going to standardize on one language, however, and > > Perl, Ruby and Python (and heck, even PHP) are all candidates. The two > > languages at the top of the heap are Perl and Python, since work has already > > been done in both languages, thus reducing the amount of work to create the > > two-course sequence. I, of course, want the language to be Perl and have my > > own set of reasons, but I thought I'd cast a wide net out to everyone for > > ideas that I can bring to the table on Tuesday. > > > > So, fire away. Why should we continue to teach Perl instead of > > Python at UNO? Other than the fact that it's the coolest language ever? :) > > > > Thanks! > > -- b > > > > _______________________________________________ > > Omaha-pm mailing list > > Omaha-pm at pm.org > > http://mail.pm.org/mailman/listinfo/omaha-pm > > > > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -- Dhundy R. Bastola Assistant Professor Department of Pediatrics University of Nebraska Medical Center Omaha NE 68198 Always reply to: dbastola at unmc.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/omaha-pm/attachments/20070224/1f4239db/attachment.html From mkolakow at yahoo.com Sat Feb 24 14:16:58 2007 From: mkolakow at yahoo.com (Michael Kolakowski) Date: Sat, 24 Feb 2007 14:16:58 -0800 (PST) Subject: [Omaha.pm] Perl, Python, Ruby or PHP ... In-Reply-To: Message-ID: <970485.5904.qm@web54210.mail.yahoo.com> Hi, I have learned both languages so perhaps I can add something useful to this discussion. I first learned Perl in Bob's class and I learned Python a couple years later for a job. I'll try to be objective, but we all know that's nearly impossible. -First, saying that most big companies use perl might be a bit of a misnomer. Both Google and NASA use Python. See here: http://www.python.org/about/success/ -Second, there is actually a lot of support for Python out there. Mailing lists and even O'Reilly books are available. -Python has grown a lot over the past 10 years and there is, in fact, a lot you can do with it. There are many more packages, I think, than most people realize. So, now for the opinion part. I learned a heck of a lot in Bob's class. It was one of my favorite classes at UNO. I'm also pleased to hear that there is now a Python class...I'm a bit out of the loop. My experience is that they are both cool languages, but a year later I can still read my Python code, whereas I have to work at it quite a bit to figure out what I was doing in Perl. Perl just lends itself to being obfuscated (hence the contest). Anyhow, I'm just trying to add some food for thought. I'm not really advocating one over the other... Take care, Michael Kolakowski --- Jesse Andersen wrote: > I took your class in spring 2006 and shortly after that was hired on to my > first programming job. We do a ton of scripting where I work, and your > class definitely gave me a huge advantage. We do all our scripting in > either korn shell, perl, or tcl, I of course chose perl whenever I can :) I > can honestly say that the perl I learned in your class was one of the most > useful things I've ever learned at UNO. I don't think Python would have > been nearly as useful for me. From my limited experience, it seems like most > of the big companies use perl for most of their scripting needs. Perl is > the most practical (and the best) choice, in my opinion. > > On 2/24/07, Robert Fulkerson wrote: > > > > Greetings All! > > > > UNO would like to create a two-course sequence of web-related > > programming. We currently have my course, which is taught in Perl and > > another course that covers similar content but doesn't require any previous > > programming experience that is taught in Python. Essentially, we're going > > use the current Python course as the intro course and then my course as the > > advanced course. We're going to standardize on one language, however, and > > Perl, Ruby and Python (and heck, even PHP) are all candidates. The two > > languages at the top of the heap are Perl and Python, since work has already > > been done in both languages, thus reducing the amount of work to create the > > two-course sequence. I, of course, want the language to be Perl and have my > > own set of reasons, but I thought I'd cast a wide net out to everyone for > > ideas that I can bring to the table on Tuesday. > > > > So, fire away. Why should we continue to teach Perl instead of > > Python at UNO? Other than the fact that it's the coolest language ever? :) > > > > Thanks! > > -- b > > > > _______________________________________________ > > Omaha-pm mailing list > > Omaha-pm at pm.org > > http://mail.pm.org/mailman/listinfo/omaha-pm > > > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ From jay at jays.net Sat Feb 24 14:32:44 2007 From: jay at jays.net (Jay Hannah) Date: Sat, 24 Feb 2007 16:32:44 -0600 Subject: [Omaha.pm] Perl, Python, Ruby or PHP ... In-Reply-To: <6cb6eebc0702241208o31a3a2dcvac27cc4f2e11a492@mail.gmail.com> References: <6cb6eebc0702241208o31a3a2dcvac27cc4f2e11a492@mail.gmail.com> Message-ID: <159d20181775b5534b21a36f39b6d2c7@jays.net> On Feb 24, 2007, at 2:08 PM, Robert Fulkerson wrote: > Why should we continue to teach Perl instead of Python at UNO? Wow. http://en.wikipedia.org/wiki/Flamebait -laugh- Your best shot at finding Pythonistas in Omaha: Omaha Dynamic Language User Group http://www.blainebuxton.com/odynug/ I've only made it out to one meeting so far. It was great. I started a list of companies in Omaha that I know for a fact are using Perl in important ways: http://omaha.pm.org/kwiki/index.cgi?LocalOrganizationsWhoUsePerl Please add to it. And/or feel free to add a Python page/section/list too. The Perl wiki is open minded and unafraid. :) j (I vote for Perl. I am interested in learning Python some day.) From jay at jays.net Sat Feb 24 14:48:22 2007 From: jay at jays.net (Jay Hannah) Date: Sat, 24 Feb 2007 16:48:22 -0600 Subject: [Omaha.pm] Perl, Python, Ruby or PHP ... In-Reply-To: <159d20181775b5534b21a36f39b6d2c7@jays.net> References: <6cb6eebc0702241208o31a3a2dcvac27cc4f2e11a492@mail.gmail.com> <159d20181775b5534b21a36f39b6d2c7@jays.net> Message-ID: <8fa79d63e000553f772eb9106d1d99c6@jays.net> On Feb 24, 2007, at 4:32 PM, Jay Hannah wrote: > http://omaha.pm.org/kwiki/index.cgi?LocalOrganizationsWhoUsePerl By the way, a Linux in Omaha list lives here: http://linux.phpconsulting.com/ j From dthacker9 at cox.net Thu Feb 22 05:28:33 2007 From: dthacker9 at cox.net (Dave Thacker) Date: Thu, 22 Feb 2007 07:28:33 -0600 Subject: [Omaha.pm] Fwd: ref to a ref? circular refs? In-Reply-To: <57766.72.255.115.236.1172146397.squirrel@www.linder.org> References: <6da8aae3ea6b321800941ab88e8054b4@jays.net> <57766.72.255.115.236.1172146397.squirrel@www.linder.org> Message-ID: <200702220728.33201.dthacker9@cox.net> On Thursday 22 February 2007 06:13, Daniel Linder wrote: > On Wed, February 21, 2007 19:40, Jay Hannah wrote: > > -laugh- > > > > Here's me back in January having fun with references to references... > > > > I stumbled into this entirely by mistake. Has anyone on the list ever > > *intentionally* made a reference to a reference? > > Oh sure, this happens *ALL* the time in the Government::Accountability > module. You'd be surprised how many times the entire function of > variables is just to point back to another module. > > I think the module President::Truman[1] was the last one that had a > special flag ("BuckStopsHere=1"), but I can't remember if it affected the > entire Government package... > This is also a frequent occurence in the Family::Accountability::Sibling modules,which tend to point back to another sibling module. Sometimes all the functions of the Sibling variables end up pointing to the Family::Accountability::Dog module, but this module's output is limited and rather smelly. Dave > :) > > Dan > Note 1: http://www.trumanlibrary.org/buckstop.htm > > - - - - > "Wait for that wisest of all counselors, time." -- Pericles > "I do not fear computers, I fear the lack of them." -- Isaac Asimov > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm From jhannah at omnihotels.com Mon Feb 26 10:39:24 2007 From: jhannah at omnihotels.com (Jay Hannah) Date: Mon, 26 Feb 2007 12:39:24 -0600 Subject: [Omaha.pm] s/[^ -~]//g; strikes again Message-ID: Yet again this morning a program was choking on "binary characters", this time in a Spanish address field that our XML library doesn't handle gracefully by default. Once again instead of actually making a system smart enough to handle Unicode I opted instead to just whack any characters that aren't in SPACE (" ") through TILDE ("~") in the ASCII chart. $conv_xml =~ s/[^ -~]//g; Works like a dream. I live in the rural midwest, USA; why would I care about anything not in that range in the good-ole' ASCII table? :) Just curious: Does anyone on the list explicitly process Unicode w/ Perl? I think we've had some stuff that just magically works without us understanding it, but it's 2007 and I still have never explicitly handled such things. :) j lives a sheltered life From jay at jays.net Wed Feb 28 01:40:43 2007 From: jay at jays.net (Jay Hannah) Date: Wed, 28 Feb 2007 03:40:43 -0600 Subject: [Omaha.pm] "Command-Line Bioinformatics" References: Message-ID: Reading this article: http://www.linuxjournal.com/article/6977 Sequencing the SARS Virus - Linux Journal, Nov 2003 This guy needs Perl and/or BioPerl. :) > The sequence file is in FASTA format consisting of a header line > and the sequence, split into fixed-width lines. The following > counts the number of Gs and Cs in the sequence and presents the > total as a fraction of the total number of bases: > > > grep -v "^>" AY274119.fa | fold -w 1 | > tr "ATGC" "..xx" | sort | uniq -c | > sed 's/[^0-9]//g' | t -s "\012" " " | > sed 's/\([0-9]*\) \([0-9]*\)/scale = 3; > ?\2 \/ (\1+\2)/' | > bc -i > scale = 3; 12127 / (17624+12127) > .407 > > Out of the 29,751 bases in our sequence, 12,127 are either G or C, > giving a GC content of 41%. BioPerl version: use Bio::SeqIO; my $io = Bio::SeqIO->new( -file => 'AY274119.fa', -format => 'Fasta' ); my $seq = $io->next_seq->seq; print ( ($seq =~ tr/GC/GC/) / length ($seq) ); Command-line Perl: perl -e '$/ = undef; $_ = <>; s/>.*//; s/\n//g; print tr/GC/GC/ / length($_)' AY274119.fa I'm sure you can Perl Golf my stabs at it. :) j seqlab.net http://www.bioperl.org/wiki/User:Jhannah From kiranbina at gmail.com Wed Feb 28 07:07:55 2007 From: kiranbina at gmail.com (kiran bina) Date: Wed, 28 Feb 2007 09:07:55 -0600 Subject: [Omaha.pm] "Command-Line Bioinformatics" In-Reply-To: References: Message-ID: <531681ec0702280707q2fb4fedexc3668c88ed4021a6@mail.gmail.com> I am glad I am using perl and not python or any thing else. Thanks to Bob who got me started with perl and Jay with bio-perl helping me every step of the way. :-) On 2/28/07, Jay Hannah wrote: > > Reading this article: > http://www.linuxjournal.com/article/6977 > Sequencing the SARS Virus - Linux Journal, Nov 2003 > > This guy needs Perl and/or BioPerl. :) > > > The sequence file is in FASTA format consisting of a header line > > and the sequence, split into fixed-width lines. The following > > counts the number of Gs and Cs in the sequence and presents the > > total as a fraction of the total number of bases: > > > > > grep -v "^>" AY274119.fa | fold -w 1 | > > tr "ATGC" "..xx" | sort | uniq -c | > > sed 's/[^0-9]//g' | t -s "\012" " " | > > sed 's/\([0-9]*\) \([0-9]*\)/scale = 3; > > ?\2 \/ (\1+\2)/' | > > bc -i > > scale = 3; 12127 / (17624+12127) > > .407 > > > > Out of the 29,751 bases in our sequence, 12,127 are either G or C, > > giving a GC content of 41%. > > BioPerl version: > > use Bio::SeqIO; > my $io = Bio::SeqIO->new( > -file => 'AY274119.fa', > -format => 'Fasta' > ); > my $seq = $io->next_seq->seq; > print ( ($seq =~ tr/GC/GC/) / length ($seq) ); > > Command-line Perl: > > perl -e '$/ = undef; $_ = <>; s/>.*//; s/\n//g; print tr/GC/GC/ / > length($_)' AY274119.fa > > I'm sure you can Perl Golf my stabs at it. :) > > j > seqlab.net > http://www.bioperl.org/wiki/User:Jhannah > > > > > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm -- Dhundy R. Bastola Assistant Professor Department of Pediatrics University of Nebraska Medical Center Omaha NE 68198 Always reply to: dbastola at unmc.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/omaha-pm/attachments/20070228/8536b9ab/attachment.html From dthacker9 at cox.net Wed Feb 28 11:25:23 2007 From: dthacker9 at cox.net (Dave Thacker) Date: Wed, 28 Feb 2007 13:25:23 -0600 Subject: [Omaha.pm] Perl, Python, Ruby or PHP ... In-Reply-To: <6cb6eebc0702241208o31a3a2dcvac27cc4f2e11a492@mail.gmail.com> References: <6cb6eebc0702241208o31a3a2dcvac27cc4f2e11a492@mail.gmail.com> Message-ID: <200702281325.23179.dthacker9@cox.net> On Saturday 24 February 2007 14:08, Robert Fulkerson wrote: > Greetings All! > > UNO would like to create a two-course sequence of web-related > programming. We currently have my course, which is taught in Perl and > another course that covers similar content but doesn't require any previous > programming experience that is taught in Python. Essentially, we're going > use the current Python course as the intro course and then my course as the > advanced course. We're going to standardize on one language, however, and > Perl, Ruby and Python (and heck, even PHP) are all candidates. The two > languages at the top of the heap are Perl and Python, since work has > already been done in both languages, thus reducing the amount of work to > create the two-course sequence. I, of course, want the language to be Perl > and have my own set of reasons, but I thought I'd cast a wide net out to > everyone for ideas that I can bring to the table on Tuesday. > > So, fire away. Why should we continue to teach Perl instead of Python > at UNO? Other than the fact that it's the coolest language ever? :) Perl has done some very heavy lifting in the Web app world. Python is gaining favor among the admin community: One Laptop Per Child-OS and GUI written in python Ubuntu Linux-All scripting done in python. Since the course is for the Web, I'd vote for perl. DT > > Thanks! > -- b From reynacho at gmail.com Wed Feb 28 12:18:39 2007 From: reynacho at gmail.com (Jake Churchill) Date: Wed, 28 Feb 2007 14:18:39 -0600 Subject: [Omaha.pm] Perl, Python, Ruby or PHP ... In-Reply-To: <200702281325.23179.dthacker9@cox.net> References: <6cb6eebc0702241208o31a3a2dcvac27cc4f2e11a492@mail.gmail.com> <200702281325.23179.dthacker9@cox.net> Message-ID: Having also taken Bob's Programming on the Internet course, I would like to post my vote for the continued use of Perl. I think once you learn Perl, all other scripting languages are pretty easy to learn. Similar to how after learning C/C++, Java is a breeze. -Jake On 2/28/07, Dave Thacker wrote: > > On Saturday 24 February 2007 14:08, Robert Fulkerson wrote: > > Greetings All! > > > > UNO would like to create a two-course sequence of web-related > > programming. We currently have my course, which is taught in Perl and > > another course that covers similar content but doesn't require any > previous > > programming experience that is taught in Python. Essentially, we're > going > > use the current Python course as the intro course and then my course as > the > > advanced course. We're going to standardize on one language, however, > and > > Perl, Ruby and Python (and heck, even PHP) are all candidates. The two > > languages at the top of the heap are Perl and Python, since work has > > already been done in both languages, thus reducing the amount of work to > > create the two-course sequence. I, of course, want the language to be > Perl > > and have my own set of reasons, but I thought I'd cast a wide net out to > > everyone for ideas that I can bring to the table on Tuesday. > > > > So, fire away. Why should we continue to teach Perl instead of > Python > > at UNO? Other than the fact that it's the coolest language ever? :) > > Perl has done some very heavy lifting in the Web app world. Python is > gaining > favor among the admin community: > > One Laptop Per Child-OS and GUI written in python > Ubuntu Linux-All scripting done in python. > > Since the course is for the Web, I'd vote for perl. > > DT > > > > Thanks! > > -- b > _______________________________________________ > Omaha-pm mailing list > Omaha-pm at pm.org > http://mail.pm.org/mailman/listinfo/omaha-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/omaha-pm/attachments/20070228/559b0bd5/attachment.html From KThompson at heiskell.com Wed Feb 28 12:27:49 2007 From: KThompson at heiskell.com (Thompson, Kenn) Date: Wed, 28 Feb 2007 12:27:49 -0800 Subject: [Omaha.pm] Perl, Python, Ruby or PHP ... Message-ID: <16F8D15756891C4EA961565331A3B350066CDFB1@JDHEXC01.heiskell.com> On 2/28/07, Dave Thacker > wrote: On Saturday 24 February 2007 14:08, Robert Fulkerson wrote: [Thompson, Kenn] Snip > UNO would like to create a two-course sequence of web-related > programming. We currently have my course, which is taught in Perl and > another course that covers similar content but doesn't require any previous > programming experience that is taught in Python. [Thompson, Kenn] SNIP > So, fire away. Why should we continue to teach Perl instead of Python > at UNO? Other than the fact that it's the coolest language ever? :) [Thompson, Kenn] Here's food for thought... Given it's an "Internet" programming course, with no previous experience needed (meaning it would be unlikely that the student would know/understand concepts such as OO, typecasting/etc), wouldn't it be better to start the series with a crash course in JavaScript, then follow up with a strong language like Perl? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/omaha-pm/attachments/20070228/512317aa/attachment.html From jhannah at omnihotels.com Wed Feb 28 16:09:40 2007 From: jhannah at omnihotels.com (Jay Hannah) Date: Wed, 28 Feb 2007 18:09:40 -0600 Subject: [Omaha.pm] DBI::Profile Message-ID: Whoah... DBI comes with a built-in profiler now. Just set the DBI_PROFILE environment variable and run your program. It's magic! Cool! Thanks http://perlcast.com/ ! j $ export DBI_PROFILE=2 $ pwd /home/jhannah/Omni/MVC/Control/Rates/t $ time perl Avail_demo.pl DBI::Profile: 0.546727s 54.67% (1062 calls) Avail_demo.pl @ 2007-02-26 13:20:13 '' => 0.086300s / 28 = 0.003082s avg (first 0.078487s, min 0.000002s, max 0.078487s) 'SELECT * FROM surcharges where prop = 'ATLCNN' ' => 0.003786s / 10 = 0.000379s avg (first 0.001137s, min 0.000072s, max 0.001137s) 'SELECT * FROM gtd_policy_dates WHERE prop = 'ATLCNN' and edate >= '05/23/2007' and sdate <= '05/23/2007' ' => 0.009707s / 41 = 0.000237s avg (first 0.000948s, min 0.000137s, max 0.001818s) 'SELECT * FROM master_rate_info where prop = "ATLCNN" and rate_abbrv IN ("AA1DLX", "AA2DLX", "AR1DLX", "BABDLX", "BARDLX", "BARPRE", "CEDLX", "CEPRE", "CORDLX", "HD2DLX", "HDPDLX", "HOHDLX", "LESDLX", "PK1DLX", "PK4DLX", "PK6DLX", "PK7DLX", "PK8DLX", "PK9DLX", "PKBDLX", "R42CDX", "R42RDX", "R4CHDX", "REVDLX", "TEST1") ' => 0.011639s / 28 = 0.000416s avg (first 0.002047s, min 0.000003s, max 0.002047s) 'SELECT * FROM rates where rate_code = ? and (eff_start_date <= ? and eff_stop_date >= ?) ' => ...etc... Yes, we're hitting the database 1,062 times. :) :( ?