From not.com at gmail.com Fri Oct 3 15:41:25 2008 From: not.com at gmail.com (yary) Date: Fri, 3 Oct 2008 15:41:25 -0700 Subject: [sf-perl] Slinging two handles into __DATA__ Message-ID: <75cbfa570810031541t18167303hec514fc7639c2b33@mail.gmail.com> I just solved my issue, but since I had this email half typed up & still have questions, thought I'd share. My goal was to have two chunks to compare in a __DATA__ section and a file handle pointing to each. I want to read from DATA and OLD_DATA as if they are separate files, interleaving reads from them, doing calculations on a lines from each, then continuing. There was a bug and it seems to be in perl (v5.10.0 for cygwin), but it might be something amiss with my usage (I haven't duped an input file handle before). The code is below. Why is "seek DATA" required- as only OLD_DATA has been read, why is the position of DATA disturbed? (I know I could use a file, or two external files, or a database, or in-memory variables, etc as other ways to do this- just curious.) #!/usr/bin/perl -w use strict; my $pos = tell DATA; open (OLD_DATA,"<&DATA"); # Skip ahead to the blank line while () {last if /^\s*$/} # Uncomment the next line to make it work better at first # but even with this seek, the handles get out of sync later #seek DATA, $pos, 0; # Print first line after the first blank line- works print scalar ,"\n"; # I want it to print the first line of the data, but # instead it prints some info from partway through print scalar ,"\n"; # Print corresponding lines # they stop corresponding after a while, even with the seek while () { print "new row is $_, corresponding old row was ",scalar(),"\n"; } # 11000+ lines follow __DATA__ row 1 row 2 ... row 5100 old row 1 old row 2 .... old row 5100 From merlyn at stonehenge.com Fri Oct 3 15:49:37 2008 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Fri, 03 Oct 2008 15:49:37 -0700 Subject: [sf-perl] Slinging two handles into __DATA__ In-Reply-To: <75cbfa570810031541t18167303hec514fc7639c2b33@mail.gmail.com> (not.com@gmail.com's message of "Fri, 3 Oct 2008 15:41:25 -0700") References: <75cbfa570810031541t18167303hec514fc7639c2b33@mail.gmail.com> Message-ID: <868wt5jnum.fsf@blue.stonehenge.com> >>>>> "yary" == yary writes: yary> I just solved my issue, but since I had this email half typed up & yary> still have questions, thought I'd share. yary> My goal was to have two chunks to compare in a __DATA__ section and a yary> file handle pointing to each. I want to read from DATA and OLD_DATA as yary> if they are separate files, interleaving reads from them, doing yary> calculations on a lines from each, then continuing. use Inline::Files; # from the CPAN my @first_data = ; my @second_data = ; ... rest of your code ... __FIRST_DATA__ first line of first data second line of first data __SECOND_DATA__ first line of second data second line of second data -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion From cweyl at alumni.drew.edu Fri Oct 3 15:56:03 2008 From: cweyl at alumni.drew.edu (Chris Weyl) Date: Fri, 3 Oct 2008 15:56:03 -0700 Subject: [sf-perl] Slinging two handles into __DATA__ In-Reply-To: <868wt5jnum.fsf@blue.stonehenge.com> References: <75cbfa570810031541t18167303hec514fc7639c2b33@mail.gmail.com> <868wt5jnum.fsf@blue.stonehenge.com> Message-ID: <7dd7ab490810031556u38e911c0sc9ecd4b1e39c0546@mail.gmail.com> On Fri, Oct 3, 2008 at 3:49 PM, Randal L. Schwartz wrote: >>>>>> "yary" == yary writes: > > yary> I just solved my issue, but since I had this email half typed up & > yary> still have questions, thought I'd share. > > yary> My goal was to have two chunks to compare in a __DATA__ section and a > yary> file handle pointing to each. I want to read from DATA and OLD_DATA as > yary> if they are separate files, interleaving reads from them, doing > yary> calculations on a lines from each, then continuing. > > use Inline::Files; # from the CPAN Data::Section works similarly, but minus the source filters and with scalar references rather than filehandles. -Chris -- Chris Weyl Ex astris, scientia From not.com at gmail.com Fri Oct 3 15:56:48 2008 From: not.com at gmail.com (yary) Date: Fri, 3 Oct 2008 15:56:48 -0700 Subject: [sf-perl] Slinging two handles into __DATA__ In-Reply-To: <868wt5jnum.fsf@blue.stonehenge.com> References: <75cbfa570810031541t18167303hec514fc7639c2b33@mail.gmail.com> <868wt5jnum.fsf@blue.stonehenge.com> Message-ID: <75cbfa570810031556r7ffc9e47w289e101958747302@mail.gmail.com> CPAN == my friend. Thanks! installing them now. From cba at groundworkopensource.com Mon Oct 6 12:54:31 2008 From: cba at groundworkopensource.com (Chris B. Anderson) Date: Mon, 6 Oct 2008 12:54:31 -0700 Subject: [sf-perl] Ganglia Get-together at Wednesday's Monitoring SIG (Oct 8, 7PM) Message-ID: (Hi: You're invited to the BayLISA Monitoring SIG, Weds, Oct 8 2008, 7PM. See the meeting announcement pasted below: feel free to post it and/or forward it along to anyone else who might be interested. Many thanks, and hope to see you there!) ================================================= BayLISA Monitoring SIG XVIII (October 8, 2008): Ganglia Get-Together, Q&A Bernard Li, Carlo Marcelo Arenas Belon, and other members of the Ganglia Project Team (www.ganglia.info) will be on hand for impromptu Q&A on monitoring using Ganglia ("It's not just for grids and clusters!"). Spike Morelli from Linden Lab and Jonah Horowitz from LookSmart will also be on hand to provide background and insight on real-world Ganglia implementations. What: BayLISA Monitoring SIG XVIII: Ganglia Get-Together, Q&A Who: Anyone interested in IT monitoring issues and tools (newbies particularly welcome!) When: Wednesday, Oct 8 2008, 7PM Where: GroundWork Open Source, 139 Townsend St., San Francisco How: 139 Townsend St. is very near AT&T Ballpark. It is one and a half blocks from the CalTrain Depot. Take the MUNI N or T or trolley to 2nd and King (ballpark stop) or take the 30 or 45 bus (among others) crosstown. Free evening street parking can probably be found, and there are several fee-based parking garages around in case of parking difficulty. Cost: Free!! Piping hot pizza, a variety of high-fructose corn syrup fizzy drinks (and other drinks too), and a potpourri of snack foods provided by GroundWork. We'll open up the doors at 6:30 or so and start the formal part of the meeting promptly at 7PM. RSVP (not necessary, but helpful): Peter Mui, pmui at groundworkopensource.com, 415-992-4573, www.groundworkopensource.com ================================================= NOTICE: This email is intended only for the use of the party to which it is addressed and may contain information that is privileged, confidential, or protected by law. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this email or its contents is strictly prohibited.If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Thank You. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rdm at cfcl.com Fri Oct 17 10:56:49 2008 From: rdm at cfcl.com (Rich Morin) Date: Fri, 17 Oct 2008 10:56:49 -0700 Subject: [sf-perl] BASS Meeting (SF), Wed. October 22 Message-ID: The Beer and Scripting SIG rides again! If you'd like to eat good Italian food, chat with other local scripters, and possibly take a look at laptop-demoed scripting hacks, this is the place to do it! For your convenience, here are the critical details: Date: Wednesday, October 22, 2008 (4th. Wed.) Time: 8:00 pm Place: Pasquales Pizzeria 701 Irving St. (At 8th. Ave.) San Francisco, California, USA 415/661-2140 See the BASS web page for more information: http://cfcl.com/rdm/bass/ We now have two (2) mailing lists, which you are welcome to join: * http://groups.google.com/group/bass-announce This will be used mostly for BASS announcements, though I may send an occasional notice about other events that look nifty. Expect 1-2 messages per month. * http://groups.google.com/group/bass-discuss This should have relatively little traffic, but no guarantees. The basic idea is that it gives BASS attendees (etc) a place to discuss scripting (and topics of interest to scripters). Like BASS, but more than one evening a month... -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development From quinn at fairpath.com Tue Oct 21 18:38:29 2008 From: quinn at fairpath.com (Quinn Weaver) Date: Tue, 21 Oct 2008 18:38:29 -0700 Subject: [sf-perl] Meeting in one week: Szechwan and Perl Message-ID: Our next meeting is Tuesday, October 26, one week from today. It's a dinner munch at Wild Pepper (Szechwan). Come down and join us to chat about Perl, scripting, and whatever's on your mind. Date: October 26 Time: 7:00 pm Location: Wild Pepper, 3601 26th St. (at San Jose Ave.) http://tinyurl.com/3wnp7r Map from 24th St. BART: http://tinyurl.com/5y4tc2 RSVP: quinn at fairpath.com (helps with reservations) Thanks, __ Quinn Weaver Full-stack web consultant http://fairpath.com/ 510-520-5217 (mobile) From rdm at cfcl.com Tue Oct 21 22:21:14 2008 From: rdm at cfcl.com (Rich Morin) Date: Tue, 21 Oct 2008 22:21:14 -0700 Subject: [sf-perl] Meeting in one week: Szechwan and Perl In-Reply-To: References: Message-ID: At 18:38 -0700 10/21/08, Quinn Weaver wrote: > Our next meeting is Tuesday, October 26, one week from today. ?? I assume this is supposed to be Tuesday the 28th? -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development From quinn at fairpath.com Tue Oct 21 22:47:09 2008 From: quinn at fairpath.com (Quinn Weaver) Date: Tue, 21 Oct 2008 22:47:09 -0700 Subject: [sf-perl] Meeting in one week: Szechwan and Perl In-Reply-To: References: Message-ID: On Oct 21, 2008, at 10:21 PM, Rich Morin wrote: > At 18:38 -0700 10/21/08, Quinn Weaver wrote: >> Our next meeting is Tuesday, October 26, one week from today. > ?? > > I assume this is supposed to be Tuesday the 28th? Yes. Tuesday, October 28. Curse you, Gregorian calendar! Again you mock me! __ Quinn Weaver Full-stack web consultant http://fairpath.com/ 510-520-5217 (mobile) From Sean.Schluntz at ucsf.edu Thu Oct 23 12:54:38 2008 From: Sean.Schluntz at ucsf.edu (Schluntz, Sean) Date: Thu, 23 Oct 2008 12:54:38 -0700 Subject: [sf-perl] Seeking Perl Programmer for Short Term Contract Message-ID: <2D46FEA65DAB164DB0DEDD768A2A739A041EFADE@EXVS05.net.ucsf.edu> Greetings, I am looking for someone to work in-house (San Francisco near 16th/Mission BART) to build an internal web app based on our technical specification and designs. Quick overview: We are looking for a web based network device registration system. It needs to be written in Perl with Catalyst and The Template Toolkit. The app will be run under UNIX with Apache utilizing MySQL for storage and Radius user authentication. We do require fairly comprehensive documentation for all of our coding projects. If you are interested please contact me directly as I don't want to make any more noise on the list than I already have :) Thank you. -Sean --- Sean J. Schluntz Pr. Security Engineer, OAAIS: EIS University of California San Francisco Voice: 1-415-476-0718 sean.schluntz at ucsf.edu From quinn at fairpath.com Thu Oct 23 15:11:36 2008 From: quinn at fairpath.com (Quinn Weaver) Date: Thu, 23 Oct 2008 15:11:36 -0700 Subject: [sf-perl] Seeking Perl Programmer for Short Term Contract In-Reply-To: <2D46FEA65DAB164DB0DEDD768A2A739A041EFADE@EXVS05.net.ucsf.edu> References: <2D46FEA65DAB164DB0DEDD768A2A739A041EFADE@EXVS05.net.ucsf.edu> Message-ID: Thanks for the job posting (the concise description was a breath of fresh air). Reminder to all: in future postings, please remember to start the Subject header with "[job]". Thanks, __ Quinn Weaver Full-stack web consultant http://fairpath.com/ 510-520-5217 (mobile) From bg at capitalmarketsp.com Tue Oct 28 07:58:52 2008 From: bg at capitalmarketsp.com (Beau Gould) Date: Tue, 28 Oct 2008 10:58:52 -0400 Subject: [sf-perl] [JOB] Engineering Lead, San Francisco - 130-190k DOE Message-ID: <019b01c9390d$b1363e50$13a2baf0$@com> Job Title: Engineering Lead Location: San Francisco - Relocation assistance provided Duration: Full Time/Permanent Salary: 130-190k DOE Our client is home to a new type of search that makes it easy to find subjective information. Starting in early 2008 the company raised seed financing from a number of premier angel investors and carefully grew a high-caliber engineering team. Today, the company includes founders from more than a half-dozen successful startups, including Google, four AI Ph.D.s, and engineers from Silicon Valley's major technology companies. The Engineering Lead is a careful implementer who is curious about how things work. S/he leans on large levers to get more done, faster, and enjoys applying new tools to the new opportunities afforded by today's web. S/he endeavors to solve real-world problems for real people (including the rest of the company), and aren't afraid to think big. They are looking for a strong engineering lead with impeccable technical chops and a willingness to manage a growing team. General requirements: * Graduate degree or PhD preferably in CS or closely related field, from a leading institution * 5+ years of solid individual contributions to significant, interesting, new, or important projects * 5+ years of leadership experience in leading both technical teams and managing engineering organizations. Their ideal candidate has both because on the software engineering side they will likely transition from individual contributor to team leader to organization manager * Startup experience: at least one (preferably more) significant startup company / project experiences building an organization and wearing the many planning, mentoring, nurturing, and envisioning hats that are necessary at the early stage * Proven experience related to what we're doing: search engines, information retrieval, web servers, distributed systems, social networking, consumer web properties, large-scale IM networks * Excited to come in as an individual contributor and grow into the leadership role as the company matures * Very technical, down-to-earth, and not title-hungry * Some web experience required (scripting, widgets, browsers, web servers, etc * Affinity for rapid prototyping * Flexibility when faced with complex challenges To be considered, please submit your resume along with your salary requirements to bg @ capitalmarketsp.com Beau Gould Executive Advisor Capital Markets Placement www.cmp.jobs bg at capitalmarketsp.com From quinn at fairpath.com Tue Oct 28 12:32:50 2008 From: quinn at fairpath.com (Quinn Weaver) Date: Tue, 28 Oct 2008 12:32:50 -0700 Subject: [sf-perl] RSVP reminder for tonight Message-ID: Reminder: there's a dinner meeting tonight (see http://sf.pm.org/ weblog for details). If you plan to come, RSVP to quinn at fairpath.com; this helps with reservations. Thanks, -- Quinn Weaver Full-stack web developer http://fairpath.com/ 510-520-5217 (mobile) From quinn at fairpath.com Tue Oct 28 17:33:36 2008 From: quinn at fairpath.com (Quinn Weaver) Date: Tue, 28 Oct 2008 17:33:36 -0700 Subject: [sf-perl] Changing of the guard Message-ID: <5DA0863A-1530-44B1-9711-CC6672D4E5C5@fairpath.com> For those of you who won't be at tonight's meeting... I've decided to step down from being president so I can focus on my business. It's been a great seven years, but it's time to move on. I'm handing the presidency back to Matt Lanier, the group's founder. Thanks to everyone, and best of luck to Matt, who is graciously stepping in on short notice. Watch this space for meeting announcements and other news. Thanks again for seven awesome years, __ Quinn Weaver Full-stack web consultant http://fairpath.com/ 510-520-5217 (mobile) -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at lanier.org Wed Oct 29 10:47:03 2008 From: matt at lanier.org (Matthew Lanier) Date: Wed, 29 Oct 2008 10:47:03 -0700 (PDT) Subject: [sf-perl] Changing of the guard In-Reply-To: <5DA0863A-1530-44B1-9711-CC6672D4E5C5@fairpath.com> References: <5DA0863A-1530-44B1-9711-CC6672D4E5C5@fairpath.com> Message-ID: quinn- thanks for all you've done over the last 7 years. you rock. ALL- I'm stepping in to lead the SFPUG until a new leader can be found, and that might be you. Are you interested in learning the inner workings of a bay area open source users groups? If so, here's the place to learn it. Drop me a line. See ya'll at the next meeting, which will probably be a discussion of memcache, hosted by sixapart. Onward and updard- m@ On Tue, 28 Oct 2008, Quinn Weaver wrote: > For those of you who won't be at tonight's meeting... > > I've decided to step down from being president so I can focus on my business. > It's been a great seven years, but it's time to move on. I'm handing the > presidency back to Matt Lanier, the group's founder. > > Thanks to everyone, and best of luck to Matt, who is graciously stepping in > on short notice. Watch this space for meeting announcements and other news. > > Thanks again for seven awesome years, > > __ > Quinn Weaver > Full-stack web consultant > http://fairpath.com/ > 510-520-5217 (mobile) > -- Matthew D. P. K. Strelchun-Lanier matt at lanier.org http://www.bearlywornpacifica.com