From grant at mclean.net.nz Thu Sep 2 20:58:09 2004 From: grant at mclean.net.nz (Grant McLean) Date: Thu Sep 2 20:58:13 2004 Subject: [Wellington-pm] Looking for an easier, clearer way to ... Message-ID: <36419.202.49.159.7.1094176689.squirrel@drs.registerdirect.net.nz> A local Perl newbie sent me the following message directly. Let's show him what a helpful bunch of mongers we are ... -- Original Message Follows -- I'm sure there must be an easier, clearer way to do this; my $diskdescr = `snmpwalk $hostname -c $communityname -Oqs -v1 extOutput`; chomp $diskdescr; # $diskdescr looks like this; # extOutput.1 8,0,148646203,16523952,1112455874,132122251,2116450096:8,1,638055135,362646180,795647676,275408955,3348765608 # $diskdescr has extOutput.1 at the beginning, I need to drop that my ($rubbish,$rest) = split ' ', $diskdescr; my @diskioentries = split ':', $rest; Suggestions welcome! From grant at mclean.net.nz Fri Sep 3 23:05:55 2004 From: grant at mclean.net.nz (Grant McLean) Date: Fri Sep 3 23:06:09 2004 Subject: [Wellington-pm] Looking for an easier, clearer way to ... In-Reply-To: <36419.202.49.159.7.1094176689.squirrel@drs.registerdirect.net.nz> References: <36419.202.49.159.7.1094176689.squirrel@drs.registerdirect.net.nz> Message-ID: <1094270755.3274.18.camel@localhost> Someone anonymous (let's call him 'Steve') wrote: > I'm sure there must be an easier, clearer way to do this; > > my $diskdescr = > `snmpwalk $hostname -c $communityname -Oqs -v1 extOutput`; > chomp $diskdescr; > > # $diskdescr looks like this; > # extOutput.1 > 8,0,148646203,16523952,1112455874,132122251,2116450096:8,1,638055135,362646180,795647676,275408955,3348765608 > # $diskdescr has extOutput.1 at the beginning, I need to drop that > my ($rubbish,$rest) = split ' ', $diskdescr; > > my @diskioentries = split ':', $rest; 'Steve' It appears you want @diskioentries to end up containing two strings of comma separated numbers. If we assume you want the string of non-space characters either side of the colon then you could do this: my @diskioentries = $diskdescr =~ /(\S+):(\S+)/; There's no need to chomp the newline off the end or strip the word off the beginning since the regex ignores them anyway. If you wanted to go one step further and split the strings on commas then you could do this: my @diskioentries = map { [ split /,/ ] } $diskdescr =~ /(\S+):(\S+)/; Which would have an equivalent result to: my @diskioentries = ( [ 8, 0, 148646203, 16523952, 1112455874, 132122251, 2116450096 ], [ 8, 1, 638055135, 362646180, 795647676, 275408955, 3348765608 ] ) Whether that's useful to you or not is a whole other question :-) Cheers Grant From jarich at perltraining.com.au Sat Sep 4 00:00:32 2004 From: jarich at perltraining.com.au (Jacinta Richardson) Date: Sat Sep 4 00:00:37 2004 Subject: [Wellington-pm] Looking for an easier, clearer way to ... In-Reply-To: <36419.202.49.159.7.1094176689.squirrel@drs.registerdirect.net.nz> References: <36419.202.49.159.7.1094176689.squirrel@drs.registerdirect.net.nz> Message-ID: <41394BF0.8050800@perltraining.com.au> Grant McLean wrote: > A local Perl newbie sent me the following message directly. > Let's show him what a helpful bunch of mongers we are ... > > > -- Original Message Follows -- > > I'm sure there must be an easier, clearer way to do this; > > my $diskdescr = > `snmpwalk $hostname -c $communityname -Oqs -v1 extOutput`; > chomp $diskdescr; > > # $diskdescr looks like this; > # extOutput.1 8,0,148646203,16523952,1112455874,132122251,2116450096:8,1,638055135,362646180,795647676,275408955,3348765608 > # $diskdescr has extOutput.1 at the beginning, I need to drop that > my ($rubbish,$rest) = split ' ', $diskdescr; > > my @diskioentries = split ':', $rest; > > Suggestions welcome! First of all, this code appears to do what is required and is easy to read and understand (at least to me), so thumbs up to that. I can offer alternative ways, to solve the problem but I can't say they'll be easier or clearer. The original code is: my $diskdescr = `result of some command`; chomp $diskdescr; my ($rubbish,$rest) = split ' ', $diskdescr; my @diskioentries = split ':', $rest; This could be rewritten: my $diskdescr = `result of some command`; chomp $diskdescr; # Throw away first item, as rubbish, and keep the rest my $useful = (split ' ', $diskdescr, 2)[1]; my @diskioentries = split ':', $useful; This could be condensed to: my $diskdescr = `result of some command`; chomp $diskdescr; # Throw away first item, as rubbish, split rest of fields up my @diskioentries = split ':', ((split ' ', $diskdescr, 2)[1]); But I'm not sure if that passes the requirements. ;) You could also use a regular expression: my $diskdescr = `result of some command`; # Split disk entries up on colons my @diskioentries = ($diskdescr =~ m/([\d,]+)(?::|$)/g); Whether or not that's easier or clearer though... I can't say, it depends on your familiarity with regexps. If you need/want an explanation of the regexp, feel free to ask. All the best, Jacinta -- ("`-''-/").___..--''"`-._ | Jacinta Richardson | `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | (_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001 | _..`--'_..-_/ /--'_.' ,' | contact@perltraining.com.au | (il),-'' (li),' ((!.-' | www.perltraining.com.au | From enkidu at cliffp.com Sat Sep 4 00:46:32 2004 From: enkidu at cliffp.com (Enkidu) Date: Sat Sep 4 00:47:48 2004 Subject: [Wellington-pm] Looking for an easier, clearer way to ... In-Reply-To: <1094270755.3274.18.camel@localhost> References: <36419.202.49.159.7.1094176689.squirrel@drs.registerdirect.net.nz> <1094270755.3274.18.camel@localhost> Message-ID: On Sat, 04 Sep 2004 16:05:55 +1200, you wrote: >Someone anonymous (let's call him 'Steve') wrote: >> I'm sure there must be an easier, clearer way to do this; >> >> my $diskdescr = >> `snmpwalk $hostname -c $communityname -Oqs -v1 extOutput`; >> chomp $diskdescr; >> >> # $diskdescr looks like this; >> # extOutput.1 >> 8,0,148646203,16523952,1112455874,132122251,2116450096:8,1,638055135,362646180,795647676,275408955,3348765608 >> # $diskdescr has extOutput.1 at the beginning, I need to drop that >> my ($rubbish,$rest) = split ' ', $diskdescr; >> >> my @diskioentries = split ':', $rest; > >'Steve' > >It appears you want @diskioentries to end up containing two strings >of comma separated numbers. If we assume you want the string of >non-space characters either side of the colon then you could do this: > > my @diskioentries = $diskdescr =~ /(\S+):(\S+)/; > >There's no need to chomp the newline off the end or strip the word >off the beginning since the regex ignores them anyway. > >If you wanted to go one step further and split the strings on commas >then you could do this: > >my @diskioentries = map { [ split /,/ ] } $diskdescr =~ /(\S+):(\S+)/; > >Which would have an equivalent result to: > >my @diskioentries = ( > [ 8, 0, 148646203, 16523952, 1112455874, 132122251, 2116450096 ], > [ 8, 1, 638055135, 362646180, 795647676, 275408955, 3348765608 ] >) > Another example of the power of REs. Another would be the analysis of logfiles. These are almost always a fixed number of fields and can be split up using a single RE. Imagine writing code to do it - several lines long and lots of loops..... Cheers, Cliff From michael at diaspora.gen.nz Sat Sep 4 20:23:15 2004 From: michael at diaspora.gen.nz (michael@diaspora.gen.nz) Date: Sat Sep 4 20:23:24 2004 Subject: [Wellington-pm] Looking for an easier, clearer way to ... In-Reply-To: Your message of "Fri, 03 Sep 2004 13:58:09 +1200." <36419.202.49.159.7.1094176689.squirrel@drs.registerdirect.net.nz> Message-ID: >I'm sure there must be an easier, clearer way to do this; > >my $diskdescr = > `snmpwalk $hostname -c $communityname -Oqs -v1 extOutput`; >chomp $diskdescr; Backticks always make me nervous. I probably would have written that as the much longer, but safer and one less process (no /bin/sh involved): my $fh; open $fh, "-|", "snmpwalk", $hostname, "-c", $communityname, qw(-Oqs -v1 extOutput); my $diskdescr = <$fh>; chomp $diskdescr; In terms of a native Perl solution, I had a quick look at Net::SNMP, but it assumes far too good a knowledge of SNMP to expose such useful functions. A quick look on search.cpan.org says that SNMP::Util has a walk function, but requires the ucdsnmp package to be installed, and then SNMP.pm. -- michael. From grant at mclean.net.nz Sat Sep 4 23:55:58 2004 From: grant at mclean.net.nz (Grant McLean) Date: Sat Sep 4 23:56:21 2004 Subject: [Wellington-pm] Looking for an easier, clearer way to ... In-Reply-To: References: Message-ID: <1094360158.4235.2.camel@localhost> On Sun, 2004-09-05 at 13:23, michael@diaspora.gen.nz wrote: > >I'm sure there must be an easier, clearer way to do this; > > > >my $diskdescr = > > `snmpwalk $hostname -c $communityname -Oqs -v1 extOutput`; > >chomp $diskdescr; > > Backticks always make me nervous. It certainly pays to be wary, but when used with the -T option in this type of application then I don't think there's too much to be worried about. Grant From stevew at catalyst.net.nz Sun Sep 12 16:01:17 2004 From: stevew at catalyst.net.nz (Steve Wray) Date: Sun Sep 12 16:01:35 2004 Subject: [Wellington-pm] tidying up output from naughty backticked commands? Message-ID: <200409130901.31069.stevew@catalyst.net.nz> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, This may seem really obvious but its bothering me. I've found that one of the programs I'm using in backticked expressions in perl scripts returns a bothersome and non obvious format. I've enclosed it in angle brackets so that you can see what it looks like. The number is purely an example; <4750 > So, the command outputs an extra line. chomp doesn't seem to get rid of it, and nor do multiple invocations of chomp (that was my first reaction; get rid of two newlines with two chomps). Currently I have this; my $messy_mode = `svn propget file:mode "$filename"`; my ($tidy_mode) = $messy_mode =~ m/^(\d+)\D+$/; so that I get the digits and nothing but the digits. I was thinking that this is a bit of a shotgun approach. Can anyone offer some perl insights as to a more, uh, surgical approach? :) Thanks! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBRLkqmVx2hyhuTucRAvVjAJ9uMhLn9gWdI5K48+m1USsm6GJ3/QCcC6yb 5N+hP0DGuvSxWGRhN69ZQP4= =XRlm -----END PGP SIGNATURE----- From grant at mclean.net.nz Sun Sep 12 16:15:04 2004 From: grant at mclean.net.nz (Grant McLean) Date: Sun Sep 12 16:15:23 2004 Subject: [Wellington-pm] tidying up output from naughty backticked commands? In-Reply-To: <200409130901.31069.stevew@catalyst.net.nz> References: <200409130901.31069.stevew@catalyst.net.nz> Message-ID: <1095023704.7682.7.camel@localhost> On Mon, 2004-09-13 at 09:01, Steve Wray wrote: > I've found that one of the programs I'm using in backticked expressions > in perl scripts returns a bothersome and non obvious format. > > I've enclosed it in angle brackets so that you can see what it looks > like. The number is purely an example; > > <4750 > > > You're right, it is non-obvious :-) Perhaps if you piped the command through xxd or cat -e you might get some clue about what the extra characters are. To strip off all space characters including space, tab, carriage return and line feed just use '\s' in a regex my $tidy_mode = `svn propget file:mode "$filename"`; $tidy_mode =~ s/\s+$//s; Cheers Grant From grant at mclean.net.nz Sun Sep 12 16:26:53 2004 From: grant at mclean.net.nz (Grant McLean) Date: Sun Sep 12 16:26:56 2004 Subject: [Wellington-pm] Reminder: Perlmongers meeting tonight Message-ID: <1095024413.7682.19.camel@localhost> Hi Perlers Just a quick reminder, tonight's meeting is at the Catalyst IT office (downstairs from LAN Place): 6:00pm Monday 13 September 2004 Level 2, Eagle Technology House 150-154 Willis Street Wellington http://wellington.pm.org/ I recommend punctuality since the main doors into the building lock at 6:00pm. If you have any thoughts on things you'd like to see covered at future meetings then bring them along. Regards Grant From jarich at perltraining.com.au Sun Sep 12 19:11:57 2004 From: jarich at perltraining.com.au (Jacinta Richardson) Date: Sun Sep 12 19:12:04 2004 Subject: [Wellington-pm] tidying up output from naughty backticked commands? In-Reply-To: <200409130901.31069.stevew@catalyst.net.nz> References: <200409130901.31069.stevew@catalyst.net.nz> Message-ID: <4144E5CD.2050303@perltraining.com.au> Steve Wray wrote: > Hi there, > > This may seem really obvious but its bothering me. > > I've found that one of the programs I'm using in backticked expressions > in perl scripts returns a bothersome and non obvious format. > > I've enclosed it in angle brackets so that you can see what it looks > like. The number is purely an example; > > <4750 > > > > So, the command outputs an extra line. "4750 " When taken in a list context, backticks return one line per list item. Thus you may be able to take merely the first list position to get what you want: # Only want the first line of output returned. my $mode = ( `svn propget file:mode "$filename"` )[0]; I'm not sure why chomp isn't working. I hope this helps. Jacinta -- ("`-''-/").___..--''"`-._ | Jacinta Richardson | `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | (_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001 | _..`--'_..-_/ /--'_.' ,' | contact@perltraining.com.au | (il),-'' (li),' ((!.-' | www.perltraining.com.au | From sam at vilain.net Mon Sep 13 00:31:27 2004 From: sam at vilain.net (Sam Vilain) Date: Mon Sep 13 00:32:00 2004 Subject: [Wellington-pm] tidying up output from naughty backticked commands? In-Reply-To: <200409130901.31069.stevew@catalyst.net.nz> References: <200409130901.31069.stevew@catalyst.net.nz> Message-ID: <414530AF.9060708@vilain.net> Steve Wray wrote: > Currently I have this; > my $messy_mode = `svn propget file:mode "$filename"`; > my ($tidy_mode) = $messy_mode =~ m/^(\d+)\D+$/; s/\s//xg will strip all whitespace in the string This distribution and related modules from clkao probably has lots of pieces you could use, if you're wrapping SVN: http://search.cpan.org/~clkao/SVK-0.20/bin/svk -- Sam Vilain, sam /\T vilain |><>T net, PGP key ID: 0x05B52F13 (include my PGP key ID in personal replies to avoid spam filtering) From matt at dessicated.org Mon Sep 13 04:29:05 2004 From: matt at dessicated.org (Matthew Hunt) Date: Mon Sep 13 04:29:10 2004 Subject: [Wellington-pm] Thanks! Message-ID: <20040913092905.GA95403@chorlton.dessicated.org> Thanks to Grant for organising an interesting first (or first again, whatever) meeting and thanks to Catalyst for providing a good room and beer. It was good to see so many people at the meeting. Someone was after a session on PHP stuff in a future meeting. Whilst I wouldn't want to put anyone off doing a presentation on it, I've found this page helpful for a quick reminder when I'm moving between Perl and PHP: http://www.cs.wcupa.edu/~rkline/perl2php/ Cheers, Matt. -- Matthew Hunt From Peter.Love at netkno.com Mon Sep 13 16:02:56 2004 From: Peter.Love at netkno.com (Peter Love) Date: Mon Sep 13 16:03:38 2004 Subject: [Wellington-pm] Thanks! In-Reply-To: <20040913092905.GA95403@chorlton.dessicated.org> References: <20040913092905.GA95403@chorlton.dessicated.org> Message-ID: <41460B00.9040106@netkno.com> > found this page helpful for a quick reminder when I'm moving between > Perl and PHP: > > http://www.cs.wcupa.edu/~rkline/perl2php/ That looks like a good summary - thanks - just what I need. I enjoyed the meeting. Thanks Grant and Catalyst. Cheers, Peter From grant at mclean.net.nz Mon Sep 13 17:16:20 2004 From: grant at mclean.net.nz (Grant McLean) Date: Mon Sep 13 17:16:24 2004 Subject: [Wellington-pm] Notes from last night's meeting Message-ID: <1095113780.28422.69.camel@localhost> Hi Mongers We had a good turn out last night and I enjoyed presenting to an enthusiastic crowd. The slides from my presentation (complete with errors) are up in the 'archive' section of the web site: http://wellington.pm.org/ The discussion about future meetings covered the following points: * Future meetings will be held monthly (let's maintain the momentum) * There was clear support for scheduling future meetings to coincide with the WellyLUG meetings (PM 6:00-730, LUG 7:30-???) which are on the second Monday of each month * Catalyst are happy to continue to host Perl Mongers and this is convenient for moving on to the WellyLUG meeting upstairs, but alternative venues are possible * In addition to the regular technical meeting, there is interest in organising regular social meets (ie: at a pub). Sam suggested meeting a week before the tech meeting although it was noted that Monday is possibly not the best night - discussion on the list please * We had a few people volunteer to present at future tech meetings (yay!): * Sam Vilain offered to talk on Tangram (or was it specifically Class::Tangram?) at the next meeting in October * Michael Robinson said he could talk about Maypole and about DBI some time after next month * Grant requested a talk introducing Python to Perl programmers and Douglas (Bagnall?) kindly offered to oblige * Subjects that people would like covered included: * Regular expressions * IDE's for Perl development * PHP (compared to Perl?) (Peter, did the link cover this?) * GUI programming * References and OO Sam, how much time do you want for your Tangram talk? I'd be happy to put something together on regexes for next month if we took say 30-40 minutes each. (If someone else would like to do the regex talk then speak up). Regards Grant From Peter.Love at netkno.com Tue Sep 14 16:14:18 2004 From: Peter.Love at netkno.com (Peter Love) Date: Tue Sep 14 16:15:07 2004 Subject: [Wellington-pm] Notes from last night's meeting In-Reply-To: <1095113780.28422.69.camel@localhost> References: <1095113780.28422.69.camel@localhost> Message-ID: <41475F2A.5050409@netkno.com> > * PHP (compared to Perl?) (Peter, did the link cover this?) It'll keep me happy for a while, so unless anyone else wants a Perl/PHP comparison, strike it off the list. > * Regular expressions > * IDE's for Perl development > * GUI programming > * References and OO Of the rest, if we're overwhelmed with presentation volunteers, I'd vote for IDEs and GUI ahead of the others, From grant at mclean.net.nz Tue Sep 14 17:02:01 2004 From: grant at mclean.net.nz (Grant McLean) Date: Tue Sep 14 17:02:14 2004 Subject: [Wellington-pm] Notes from last night's meeting In-Reply-To: <41475F2A.5050409@netkno.com> References: <1095113780.28422.69.camel@localhost> <41475F2A.5050409@netkno.com> Message-ID: <1095199320.18918.9.camel@localhost> On Wed, 2004-09-15 at 09:14, Peter Love wrote: > > * PHP (compared to Perl?) (Peter, did the link cover this?) > > It'll keep me happy for a while, so unless anyone else wants a Perl/PHP > comparison, strike it off the list. > > > * Regular expressions > > * IDE's for Perl development > > * GUI programming > > * References and OO > > Of the rest, if we're overwhelmed with presentation volunteers, I'd vote > for IDEs and GUI ahead of the others, I'd also like to point out that there is absolutely no requirement that presenters be experts on the chosen subject. I have found more than once that volunteering to present on a subject I know little about has been an excellent motivation to learn. If anyone wants to take on one of the intermediate topics like regexes, references or OO, then I'd be more than happy to assist with the preparation in a mentoring role. Like many things in life, the more you put in the more you stand to get out. Cheers Grant From michael at diaspora.gen.nz Tue Sep 14 17:42:00 2004 From: michael at diaspora.gen.nz (michael@diaspora.gen.nz) Date: Tue Sep 14 17:42:11 2004 Subject: [Wellington-pm] Notes from last night's meeting In-Reply-To: Your message of "Wed, 15 Sep 2004 10:02:01 +1200." <1095199320.18918.9.camel@localhost> Message-ID: I'd also be happy to present a primer for Perl Golf (http://terje2.perlgolf.org/). Vomit bags and/or plenty of beer may be required for the people with coding taste in the audience, though. -- michael. From douglas at paradise.net.nz Wed Sep 15 06:47:43 2004 From: douglas at paradise.net.nz (Douglas Bagnall) Date: Wed Sep 15 06:47:45 2004 Subject: [Wellington-pm] Notes from last night's meeting In-Reply-To: <1095113780.28422.69.camel@localhost> References: <1095113780.28422.69.camel@localhost> Message-ID: <41482BDF.4050708@paradise.net.nz> Grant McLean wrote: > * Grant requested a talk introducing Python to Perl programmers > and Douglas (Bagnall?) kindly offered to oblige yep, that is me. If you don't object I'll use the examples from your slides as the basis of side by side comparisons. But nobody gets lollies for spotting the equatoral cross-section area calculation for a second time. douglas bagnall From grant at mclean.net.nz Fri Sep 17 03:11:31 2004 From: grant at mclean.net.nz (Grant McLean) Date: Fri Sep 17 03:11:52 2004 Subject: [Wellington-pm] [Fwd: Newsletter from O'Reilly UG Program, September 16] Message-ID: <1095408691.3271.0.camel@localhost> -----Forwarded Message----- > From: Marsee Henon > To: perlmongers@catalyst.net.nz > Subject: Newsletter from O'Reilly UG Program, September 16 > Date: Thu, 16 Sep 2004 18:07:53 -0700 > > ================================================================ > O'Reilly UG Program News--Just for User Group Leaders > September 16, 2004 > ================================================================ > -O'Reilly User Group Program in Germany > -Want to speak to user groups? > -Put Up an O'Reilly Mac OS X Conference Banner, Get a Free Book > ---------------------------------------------------------------- > Book Info > ---------------------------------------------------------------- > ***Review books are available > Copies of our books are available for your members to review-- > send me an email and please include the book's ISBN number on > your request. Let me know if you need your book by a certain date. > Allow at least four weeks for shipping. > > ***Please send copies of your book reviews > Email me a copy of your newsletters or book reviews. > For tips and suggestions on writing book reviews, go to: > http://ug.oreilly.com/bookreviews.html > > ***Discount information > Don't forget to remind your members about our 20% discount on O'Reilly, > No Starch, Paraglyph, Pragmatic Bookshelf, SitePoint, and Syngress books > and O'Reilly conferences. > Just use code DSUG. > > ***Group purchases with better discounts are available > Please let me know if you are interested and I can put you in > touch with our sales department. > > ---------------------------------------------------------------- > General News > ---------------------------------------------------------------- > ***O'Reilly User Group Program in Germany > We are pleased to announce we now have a User Group program in Germany. > German-speaking User Groups can now belong to both our US and German > programs. > For more information or to sign up, go to: > http://www.oreilly.de/ug/ > > > ***Want to speak to user groups? > If you or someone you know are looking for groups to speak to > make sure you add your name here. You don't have to be affiliated with > O'Reilly to be on the list. > http://wiki.oreillynet.com/usergroups/mt.cgi?SpeakersLookingforUGs > > > ***Put Up an O'Reilly Mac OS X Conference Banner, Get a Free Book > We are looking for user groups to display our conference banner on > their web sites. If you send me the link to your user group site with > our O'Reilly Mac OS X Conference banner, I will send you the O'Reilly > book of your choice. > > O'Reilly Mac OS X Conference Banners: > http://ug.oreilly.com/banners/macosx2004/ > > ================================================================ > O'Reilly News for User Group Members > September 16, 2004 > ================================================================ > ---------------------------------------------------------------- > Book News > ---------------------------------------------------------------- > -iLife: The Missing Manual > -The Mezonic Agenda: Hacking the Presidency > -sendmail 8.13 Companion > -PayPal Hacks > -Camera Phone Obsession > -Linux iptables Pocket Reference > -ASP.NET Cookbook > -Building the Perfect PC > -NUnit Pocket Reference > -Head First Servlets & JSP > -Oracle Initialization Parameters Pocket Reference > -Oracle Application Server 10g Essentials > ---------------------------------------------------------------- > Upcoming Events > ---------------------------------------------------------------- > -Digital Lifestyle Expo, New York, NY--September 25-26 > -Richard Thieme Visiting Bookstores in WI and IL--September 27-October 2 > -Northern California Independent Bookseller's Association Fall Trade Show > --October 1-3 > -O'Reilly Authors at Windows Connections 2004--October 24-27 > ---------------------------------------------------------------- > Conference News > ---------------------------------------------------------------- > -Early-Bird Deadline Extended > -Call for Participation: O'Reilly Emerging Technology Conference > ---------------------------------------------------------------- > News > ---------------------------------------------------------------- > -Study Shows Safari Saves Time > -A Conversation Between Dan Gillmor and Jay Rosen > -Fiddling with Nero 6 Ultra Edition > -O'Reilly Launches Digital Media Web Site > -Tasteful Food Photography > -Machinima: Filmmaking's Destiny > -Linux/Unix SysAdmin Certification Special Offer for September > -The Best Tips from the Great Linux Desktop Migration Contest > -More Inside News on O'Reilly's Mac OS X Conference > -Acrobat to a Paperless Office > -Mac OS X for the Traveler > -Site Surveys--Windows DevCenter & ONDotnet > -Lightweight XML Editing in Word 2003 > -Site Navigation in ASP.NET 2.0 > -IRC Text to Speech with Java > -Developing Your First Enterprise Beans, Part 1 > ================================================ > Book News > ================================================ > Did you know you can request a free book to review for your > group? Ask your group leader for more information. > > For book review writing tips and suggestions, go to: > http://ug.oreilly.com/bookreviews.html > > Don't forget, you can receive 20% off any O'Reilly, No Starch, Paraglyph, > Pragmatic Bookshelf, SitePoint, or Syngress book you purchase directly > from O'Reilly. > Just use code DSUG when ordering online or by phone 800-998-9938. > http://www.oreilly.com/ > > > ***Free ground shipping is available for online orders of at > least $29.95 that go to a single U.S. address. This offer > applies to U.S. delivery addresses in the 50 states and Puerto Rico. > For more details, go to: > http://www.oreilly.com/news/freeshipping_0703.html > > ---------------------------------------------------------------- > New Releases > ---------------------------------------------------------------- > ***iLife: The Missing Manual > Publisher: O'Reilly > ISBN: 0596006942 > "iLife: The Missing Manual" gives you everything you need to unleash your > creative genius with iLife '04, Apple's suite of five programs--iTunes > 4.6, iPhoto 4, iMovie 4, iDVD 4, and GarageBand--that's revolutionizing > the way we work and play. Celebrated author David Pogue makes sure there's > nothing standing between you and professional-caliber music, photos, > movies, and more. He highlights the newest features and improvements, > covers the capabilities and limitations of each program, and delivers > countless goodies you won't find anywhere else: undocumented tips, tricks, > and secrets for getting the very best performance out of every one of > these applications. > http://www.oreilly.com/catalog/ilifetmm/ > > > ***The Mezonic Agenda: Hacking the Presidency > Publisher: Syngress > ISBN: 1931836833 > The Mezonic Agenda: Hacking the Presidency is the first cyber-thriller > that allows readers to "hack along" with the heroes and villians of this > fictional narrative. It tells the tale of criminal hackers attempting to > compromise the results of a U.S. presidential election for their own gain. > The book deals with some of the most pressing topics in technology and > computer security today--reverse engineering, cryptography, buffer > overflows, and steganography--and includes a CD that contains real, > working versions of all the applications described and exploited in this > thriller. > http://www.oreilly.com/catalog/1931836833/ > > Hack along at www.mezonicagenda.com > > > ***sendmail 8.13 Companion > Publisher: O'Reilly > ISBN: 0596008457 > For a simple dot release, V8.13 sendmail has added more features, options, > and fundamental changes than any other single dot release to date. An > excellent companion to our popular "sendmail, 3rd Edition," this book > documents the improvements in V8.13 in parallel with its release. > Highlighting important changes in the new version, the book points out not > only what is handy or nice to have, but also what's critical in getting > the best behavior from sendmail. > http://www.oreilly.com/catalog/sendmailcomp/ > > Chapter 3, "Tune sendmail with Compile-Time Macros," is available online: > http://www.oreilly.com/catalog/sendmailcomp/chapter/index.html > > > ***PayPal Hacks > Publisher: O'Reilly > ISBN: 0596007515 > Learn how to make the most of PayPal to get the most out of your online > business or transactions. Presented in a clear and logical format, each > hack consists of a task to accomplish or a creative solution to a problem. > You'll learn everything from how to protect yourself while buying and > selling on eBay, to how to handle online subscriptions, affiliations, and > donations. This collection of tips and tricks provides the tools and > details necessary to make PayPal more profitable, more flexible, and more > convenient. > http://www.oreilly.com/catalog/payhks/index.html > > Sample hacks are available online: > http://www.oreilly.com/catalog/payhks/chapter/index.html > > > ***Camera Phone Obsession > Publisher: Paraglyph Press > ISBN: 1932111964 > "Camera Phone Obsession" is a unique guide that marries the technology of > camera phones with the emerging culture. Author Peter Aitken shows you how > to purchase the best camera phones, how to best shoot and print photos, > what the best services are for sharing photos, and how to use your camera > phones with your PCs. > http://www.oreilly.com/catalog/1932111964/ > > > ***Linux iptables Pocket Reference > Publisher: O'Reilly > ISBN: 0596005695 > "Linux iptables Pocket Reference" will help you at those critical moments > when you have to open or close a port in a hurry to enable important > traffic or block an attack. The book helps you keep the subtle syntax > straight and remember all the values you have to enter to be as secure as > possible. Listings of all iptables options are organized by suitability > for firewalling, accounting, and Network Address Translation (NAT). This > unique quick reference format is ideal for Linux administrators who have a > firewall in place but need to be prepared for frequent changes in their > environment. > http://www.oreilly.com/catalog/lnxiptablespr/ > > > ***ASP.NET Cookbook > Publisher: O'Reilly > ISBN: 0596003781 > ASP.NET brings rapid drag-and-drop productivity to web applications and > web services. There are many benefits to using ASP.NET, and one major > drawback: the time developers must devote to mastering this new web > application technology. "ASP.NET Cookbook" provides a wealth of solutions > to problems commonly encountered when developing in ASP.NET. Appealing to > a wide range of developers, each recipe provides an immediate solution to > a pressing problem, followed by discussion so developers can learn to > adapt techniques to similar situations. > http://www.oreilly.com/catalog/aspnetckbk/ > > Chapter 12, "Dynamic Images," is available online: > http://www.oreilly.com/catalog/aspnetckbk/chapter/index.html > > > ***Building the Perfect PC > Publisher: O'Reilly > ISBN: 0596006632 > For many computer users, a ready-made system is about as satisfying as a > frozen microwave dinner: sure, it works, but it's not exactly what you > need or want. Don't accept the assortment of components bundled for your > price point; build your own PC. With straight-forward language, clear > end-to-end instructions, and extensive illustrations, this book covers a > variety of complete systems and their components. Regardless of your > experience, you can take control and create your ideal machine. > > Chapter 1, "Fundamentals," is available online: > http://www.oreilly.com/catalog/buildpc/chapter/index.html > > > ***NUnit Pocket Reference > Publisher: O'Reilly > ISBN: 0596007396 > "NUnit Pocket Reference" is a complete reference to this popular and > practical new open source framework. Filling in the blanks left by > existing documentation and online discussion, this little book offers > developers everything they need to know to install, configure, and use > NUnit and the NUnit user interface. It includes a reference to the NUnit > framework classes, and offers practical, real-world "NUnit examples." With > NUnit Pocket Reference, IT managers will know what to expect when they > implement unit testing in their projects. > http://www.oreilly.com/catalog/nunitpr/ > > A sample excerpt, "Unit Testing with NUnit," is available online: > http://www.oreilly.com/catalog/nunitpr/chapter/index.html > > > ***Head First Servlets & JSP > Publisher: O'Reilly > ISBN: 0596005407 > "Head First Servlets & JSP" will help you truly understand the latest > version, J2EE 1.4, of Servlets and JSP. You'll learn how to write servlets > and JSPs, what makes the Container tick, how to use the new JSP Expression > Language (EL), and even some server-side design patterns. Written by the > creators of the Sun Certified Web Component Developer (SCWCD) 1.4 exam, > this book will help you pass the exam, talk about Struts at dinner > parties, and put Servlets and JSP to work right away. > http://www.oreilly.com/catalog/headservletsjsp/ > > > ***Oracle Initialization Parameters Pocket Reference > Publisher: O'Reilly > ISBN: 0596007701 > "Oracle Initialization Parameters Pocket Reference" provides the > information Oracle DBAs need to keep databases operating at peak > performance. The book describes each initialization parameter, including > what category it's in--from auditing to multi-threaded server MTS--and > whether it can be modified dynamically via the ALTER SESSION or ALTER > SYSTEM commands. You'll also find performance tips, such as how the > various parameters interact and optimal settings for different > configurations. No other reference focuses exclusively on these > initialization parameters; this book is an absolute must for anyone > working with an Oracle database. > http://www.oreilly.com/catalog/oracleippr/ > > > ***Excel 2003 Programming: A Developer's Notebook > Publisher: O'Reilly > ISBN: 0596007671 > Light on theory and heavy on practical application, this guide takes > intermediate to advanced Excel VBA programmers directly to Excel 2003's > new features. With the help of dozens of practical labs, you'll learn to > work with lists and XML data, secure Excel applications, use Visual Studio > Tools for Office, consume Web Services, and collect data with Infopath. If > you'd like to work with Excel 2003 but don't know where to start, this > book is the solution. > http://www.oreilly.com/catalog/exceladn/ > > Chapter 2, "Share Workspaces and Lists," is available online: > http://www.oreilly.com/catalog/exceladn/chapter/index.html > > > ***Oracle Application Server 10g Essentials > Publisher: O'Reilly > ISBN: 0596006217 > "Oracle Application Server 10g Essentials" is a tightly focused, > all-in-one technical overview for Oracle Application Server users of every > level. Divided into three concise sections, the book covers server basics, > core components, and server functionality. If you're concerned with using > and managing web servers, doing Java development and deployment, using or > developing for Oracle Portal, or using and administering business > intelligence and mobile or integration software, this guide will provide a > foundation for understanding and using OracleAS effectively and > efficiently. > http://www.oreilly.com/catalog/appserver/ > > Chapter 2, "Architecture," is available online: > http://www.oreilly.com/catalog/appserver/chapter/index.html > > ================================================ > Upcoming Events > ================================================ > ***For more events, please see: > http://events.oreilly.com/ > > > ***Digital Lifestyle Expo, New York, NY--September 25-26 > Author and Mac guru David Pogue (Missing Manual Series) is a keynote > speaker at this event. > Marriott Marquis Hotel > New York, NY > http://www.dlexpo.com/ > > > ***Richard Thieme Visiting Bookstores in WI and IL--September 27- > October 2 > Richard is author of "Islands in the Clickstream" (Syngress) and is one > of the most visible commentators on technology and society, appearing > regularly on CNN, TechTV, and various other national media outlets. > > Schwartz Bookshops--7pm, September 27 > 4093 North Oakland Avenue, > Shorewood, WI 53211 > > Transitions Bookplace--7pm, September 28 > 1000 W. North Avenue > Chicago, IL 60622 > > Bookworld--October 1 & 2 > Friday, October 1 from 4-7:30 > Saturday, October 2 9AM to noon > 320 Watson Street > Ripon, WI 54971 > > For more information on Richard Thieme, go to: > http://www.thiemeworks.com/ > > > ***Northern California Independent Bookseller's Association Fall > Trade Show--October 1-3 > If you're going, be sure to stop by our booth, say "hey," and peruse > our wares. > Oakland Convention Center > Oakland, CA > http://www.nciba.com/tradeshow2004.html > > > ***O'Reilly Authors at Windows Connections 2004--October 24-27 > Authors Robbie Allen ("DNS on Windows Server 2003" & "Active Directory > Cookbook"), Mike Danseglio ("Securing Windows Server 2003"), and Roger > Grimes ("Malicious Mobile Code") are featured speakers at this event. > Hyatt Grand Cypress > Orlando, FL > http://www.winconnections.com/devconnections/win/defaultfall2004.asp > > ================================================ > Conference News > ================================================ > ***Early-Bird Deadline Extended > The O'Reilly Mac OS X Conference is October 25-28. This conference brings > together what you need to know and what you want to experience. You'll > learn how to solve the day in-day out problems of connected computing, > leverage the power of scripting, improve the performance of your network, > and protect your systems from intrusion. You'll also get up to speed on > grid computing, home automation, streaming media, how to build your own TV > studio, and much more. > > User Group members who register before September 20, 2004 get a double > discount. Use code DSUG when you register, and receive 20% off the > "Early Bird" price. > > To register, go to: > http://conferences.oreillynet.com/cs/macosx2004/create/ord_mac04 > > O'Reilly Mac OS X Conference > October 25-28, 2004 > Westin Santa Clara, Santa Clara, CA > http://conferences.oreilly.com/macosxcon/ > > > ***Call for Participation: O'Reilly Emerging Technology Conference > What alpha geeks do today can radically alter the future of technology for > everyone tomorrow. O'Reilly's Emerging Technology Conference (ETech) > frames the ideas, projects, and technologies that the alpha geeks are > thinking about, hacking on, and inventing right now into a coherent > picture that we can build upon. If you've got your eye on nascent > technological transformations, send us a proposal (due September 27), and > join us in San Diego, California March 14-17 for ETech 2005. > http://conferences.oreillynet.com/cs/et2005/create/e_sess > > O'Reilly Emerging Technology Conference > March 14-17, 2005 > Westin Horton Plaza, San Diego, California > http://conferences.oreilly.com/etech/ > > ================================================ > News From O'Reilly & Beyond > ================================================ > --------------------- > General News > --------------------- > ***Study Shows Safari Saves Time > A recent study by The Ridge Group of Princeton, New Jersey found that > Safari Bookshelf delivers savings of about 24 times its cost. The group > found that without the use of an Electronic Reference Library (ERL), the > typical technology professional spends an average of 31 hours per month > looking for answers, researching issues, and helping colleagues do the > same. Safari subscribers, however, report an average of 13.5 hours saved > per month--nearly half the amount of time lost by people who don't > subscribe. > Test it out: oreilly.com/go/safari-ug > > > ***A Conversation Between Dan Gillmor and Jay Rosen > Jay Rosen talks to Dan Gillmor about the current state of journalism and > the impact technology is having on traditional media. For a full expose on > the deep shift in how we make and consume the news, see Dan's recently > released "We the Media." > http://www.oreillynet.com/pub/a/network/2004/09/14/gillmor.html > > > ***Fiddling with Nero 6 Ultra Edition > Wallace Wang, author of "The Book of Nero" writes a review of the latest > version of Nero > for Computing Unplugged. > http://www.computingunplugged.com/issues/issue200408/00001349001.html > > --------------------- > Digital Media > --------------------- > ***O'Reilly Launches Digital Media Web Site > To inspire digital media users to new heights of creativity and expertise, > we've unveiled our new Digital Media Web Site: > http://digitalmedia.oreilly.com/ > > For more information check out Derrick Story's blog "Doing Digital > Media Right": > http://www.oreillynet.com/pub/wlg/5487 > > Or the official Digital Media Web Site press release: > http://press.oreilly.com/pub/pr/1221 > > > ***Tasteful Food Photography > Food photography traditionally has been the realm of a handful of > weathered professionals. So for the casual shooter or even the ambitious > amateur, getting great food shots can seem like an intimidating and > daunting task at best. But it doesn't have to be that way. > http://digitalmedia.oreilly.com/2004/09/15/food_photos.html > > > ***Machinima: Filmmaking's Destiny > Machinima is filmmaking redefined--a merging of three creative mediums: > filmmaking, animation, and 3D game technology. Think animated filmmaking > within a real-time 3D virtual environment. Here's a guided tour from Paul > Marion, author of Paraglyph's recently released "3D Game-Based Filmmaking: > The Art of Machinima." > http://digitalmedia.oreilly.com/2004/09/08/machinima.html > > --------------------- > Open Source > --------------------- > ***Linux/Unix SysAdmin Certification Special Offer for September > Learn how to administer Linux/Unix systems and gain real experience with a > root access account. This four-course series from the O'Reilly Learning > Lab covers the Unix file system, networking, Unix services, and scripting. > Upon completion of the series, you'll get a Certificate for Professional > Development from the University of Illinois. And this month, when you > enroll in three of the online courses, you get the fourth free. > http://oreilly.useractive.com/courses/sysadmin.php3 > > Find out more about the O'Reilly Learning Lab go to: > http://learninglab.oreilly.com > > > ***The Best Tips from the Great Linux Desktop Migration Contest > What's the best way to move an organization to a Linux desktop? Here's a > collection of the best tips we received from our Great Linux Desktop > Migration contest. > http://www.linuxdevcenter.com/pub/a/linux/2004/09/10/migrationtips.html > > --------------------- > Mac > --------------------- > ***More Inside News on O'Reilly's Mac OS X Conference > We've added top-level Apple-employed speakers to the conference faculty. > And yes, some have been approved to talk about Tiger. Here's the latest > inside scoop on the upcoming Mac OS X event. > http://www.macdevcenter.com/pub/a/mac/2004/09/16/osx_conf.html > > > ***Acrobat to a Paperless Office > Adobe Acrobat is an excellent program for document distribution. Most > users are familiar with the freely available Acrobat Reader, allowing > anyone to view PDF documents. The full-blown version of Acrobat offers a > range of tools to manage document distribution beyond just converting > other formats to PDF. Julie Starr shows you how to use these tools to > design the paperless office. > http://www.macdevcenter.com/pub/a/mac/2004/09/14/pdf.html > > > ***Mac OS X for the Traveler > In this ongoing series about traveling safely with your PowerBook or > iBook, you'll learn that preparation is one of the keys to peace of mind. > F.J. helps you get your equipment in order. > > Part One: > http://www.macdevcenter.com/pub/a/mac/2004/08/31/traveller.html > > Part Two: > http://www.macdevcenter.com/pub/a/mac/2004/09/03/traveller.html > > Part Three: > http://www.macdevcenter.com/pub/a/mac/2004/09/10/traveller.html > > --------------------- > Windows > --------------------- > ***Site Surveys--Windows DevCenter & ONDotnet > We're asking our readers to participate in a couple of online surveys: the > Windows DevCenter Survey and the ONDotnet Survey. This is your opportunity > to help shape our online editorial direction and influence which book > titles we pursue. You'll also have a chance to win some of our most > popular Windows or .NET books. > > Windows DevCenter Survey: > http://www.zoomerang.com/recipient/survey-intro.zgi?p=WEB2HMXUEFSE > > ONDotnet Survey: > http://www.zoomerang.com/recipient/survey-intro.zgi?p=WEB2PYHVA5GV > > ***Lightweight XML Editing in Word 2003 > Strictly speaking, you can edit custom XML in Word, but there are > limitations that make the process needlessly complex. This article > presents a lightweight approach to XML editing in Word that works in all > editions of Word 2003. All you need besides Word is an XSLT processor. > Evan Lenz, coauthor of Office 2003 XML, shows you how. > http://www.windowsdevcenter.com/pub/a/windows/2004/09/07/XMLnword2003.html > > > ***Site Navigation in ASP.NET 2.0 > As your web site grows in complexity, it is imperative that you make the > effort to make your site much more navigable. A common technique employed > by web sites today uses a site map to display a breadcrumb navigational > path on the page. ASP.NET 2.0 comes with the SiteMapPath control to help > you in site navigation. Wei-Meng Lee shows you how it all works. > http://www.ondotnet.com/pub/a/dotnet/2004/09/13/site_nav_aspnet20.html > > --------------------- > Java > --------------------- > ***IRC Text to Speech with Java > Paul Mutton creates a multi-platform IRC bot that uses the FreeTTS Java > speech synthesizer library to convert IRC messages into audible speech. > Why would you want to use an IRC text-to-speech system? By reading out > messages as they arrive, you can keep working, diverting your attention to > IRC only when necessary. Paul is the author of "IRC Hacks." > http://www.onjava.com/pub/a/onjava/2004/09/08/IRCinJava.html > > > ***Developing Your First Enterprise Beans, Part 1 > In this first installment of a two-part series of excerpts from Chapter 4 > of Enterprise JavaBeans, 4th Edition, you'll learn how to develop your > first entity bean. This segment covers how to define the remote interface, > how to create a deployment descriptor, how to deploy, and more. Code > examples step you through everything you need to do to create and use your > first entity bean. > http://www.onjava.com/pub/a/onjava/excerpt/ejb4_chap4/index.html > > ================================================ > O'Reilly User Group Wiki > ================================================ > Don't forget to check out the O'Reilly UG wiki to see what user groups > across the globe are up to: > http://wiki.oreillynet.com/usergroups/lpt?HomePage > > > Until next time-- > > Marsee From enkidu at cliffp.com Sun Sep 19 01:49:26 2004 From: enkidu at cliffp.com (Enkidu) Date: Sun Sep 19 01:49:57 2004 Subject: [Wellington-pm] Notes from last night's meeting In-Reply-To: <41475F2A.5050409@netkno.com> References: <1095113780.28422.69.camel@localhost> <41475F2A.5050409@netkno.com> Message-ID: <5uaqk0t5fgot06v0j8qeta62iv4v0utvt3@4ax.com> On Wed, 15 Sep 2004 09:14:18 +1200, you wrote: > > * PHP (compared to Perl?) (Peter, did the link cover this?) > >It'll keep me happy for a while, so unless anyone else wants a Perl/PHP >comparison, strike it off the list. > >> * Regular expressions >> * IDE's for Perl development >> * GUI programming >> * References and OO > >Of the rest, if we're overwhelmed with presentation volunteers, I'd vote >for IDEs and GUI ahead of the others, > Does anyone use "motor"? Cheers, Cliff From grant at mclean.net.nz Thu Sep 30 03:29:22 2004 From: grant at mclean.net.nz (Grant McLean) Date: Thu Sep 30 03:29:32 2004 Subject: [Wellington-pm] Next meeting Monday Oct 11th Message-ID: <1096532961.4055.39.camel@localhost> Hi Mongers Only a week and a half till the next meeting (where did that last month go?), so make sure you have it in your diary. http://wellington.pm.org/ We have Sam lined up first to speak on Tangram. I had hoped to bully Hamish into giving a demo of the EPIC Perl plugin for the Eclipse IDE but given that he'll be in Palmerston North on the 11th I've had to admit defeat on that one. The second item on the agenda is an introduction to Perl regular expressions. As no one has put their hand up to do that, I guess I'll be doing it. (Sam, how much time do you think you'll need?) See you there on the 11th. Regards Grant -----Forwarded Message----- > From: Grant McLean > To: wellington-pm@mail.pm.org > Subject: [Wellington-pm] Notes from last night's meeting > Date: Tue, 14 Sep 2004 10:16:20 +1200 > > Hi Mongers > > We had a good turn out last night and I enjoyed presenting to an > enthusiastic crowd. The slides from my presentation (complete > with errors) are up in the 'archive' section of the web site: > > http://wellington.pm.org/ > > The discussion about future meetings covered the following points: > > * Future meetings will be held monthly (let's maintain the momentum) > > * There was clear support for scheduling future meetings to > coincide with the WellyLUG meetings (PM 6:00-730, LUG 7:30-???) > which are on the second Monday of each month > > * Catalyst are happy to continue to host Perl Mongers and this is > convenient for moving on to the WellyLUG meeting upstairs, but > alternative venues are possible > > * In addition to the regular technical meeting, there is interest > in organising regular social meets (ie: at a pub). Sam suggested > meeting a week before the tech meeting although it was noted > that Monday is possibly not the best night - discussion on the > list please > > * We had a few people volunteer to present at future tech meetings > (yay!): > > * Sam Vilain offered to talk on Tangram (or was it specifically > Class::Tangram?) at the next meeting in October > > * Michael Robinson said he could talk about Maypole and about > DBI some time after next month > > * Grant requested a talk introducing Python to Perl programmers > and Douglas (Bagnall?) kindly offered to oblige > > * Subjects that people would like covered included: > > * Regular expressions > * IDE's for Perl development > * PHP (compared to Perl?) (Peter, did the link cover this?) > * GUI programming > * References and OO > > Sam, how much time do you want for your Tangram talk? I'd be happy > to put something together on regexes for next month if we took say > 30-40 minutes each. (If someone else would like to do the regex > talk then speak up). > > Regards > Grant > > > _______________________________________________ > Wellington-pm mailing list > Wellington-pm@mail.pm.org > http://www.pm.org/mailman/listinfo/wellington-pm