From rdm at cfcl.com Wed Nov 2 11:45:53 2005 From: rdm at cfcl.com (Rich Morin) Date: Wed, 2 Nov 2005 11:45:53 -0800 Subject: [sf-perl] SF Beer & Pizza SIG - review and forecast Message-ID: [I'm copying this notice to the SFPUG list, as there isn't any SFPUG meeting this month and some of you may be interested in talking with local Rubyists about these two (or other :-) languages. -r] Last week's Beer & Pizza SIG was attended by about a dozen Rubyists. Beer and Pizza (among other things) were consumed, Ruby (among other things) was discussed, and everyone appeared to have a good time. The upcoming SIG will, as announced previously, be held just up the street at the Delancey Street Restaurant. Note that it will be on a _Tuesday_ in November! Here are the details: Beer and T{ofu,urkey} SIG: RSVP: RSVPs are required for this one. Send me the number of folks in your party. If you are not on my list, you may end up eating alone! Date: Tuesday, November 22, 2005 ======= Time: 8:00 pm Place: Delancey Street Restaurant, 600 Embarcadero St. (at Brannan) San Francisco, California, USA http://mappoint.msn.com/(fospfkrfx0dys5mkyjtj0rvu)/map.aspx?L=USA&C=37.78467%2c-122.38818&A=7.16667&P=|37.78467%2c-122.38818|1|600+The+Embarcadero%2c+San+Francisco%2c+CA+94107|L1| Food: slightly trendy American/European food; moderate prices There should be vegetarian dishes, etc. Parking: Unless there's a monster baseball game, parking should be no problem after 6 pm. BART: Be prepared for a bit of a crowd, as this is the end of the prime commute time. Get off at the Embarcadero station. Within the station, exit BART, enter MUNI, and catch the N (inbound). Get off at the train station. Caltrain: (Don't take Caltrain if you can avoid it. Trains run back at 10:00 p.m. and 11:59 p.m. only!) From the train station, walk Northeast on King to the restaurant. -r -- email: rdm at cfcl.com; phone: +1 650-873-7841 http://www.cfcl.com - Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc. From rdm at cfcl.com Wed Nov 9 21:23:23 2005 From: rdm at cfcl.com (Rich Morin) Date: Wed, 9 Nov 2005 21:23:23 -0800 Subject: [sf-perl] "Object Role Modeling"? Message-ID: I recently ran across "Object Role Modeling" (yet another ORM :-/), as described in Information Modeling and Relational Databases: From Conceptual Analysis to Logical Design Terry Halpin Morgan Kaufmann, 2001, ISBN 1-55860-672-6 It seems quite interesting; I'm wondering if any of the DBMS wonks on this list know about it, can offer comments, etc. -r -- email: rdm at cfcl.com; phone: +1 650-873-7841 http://www.cfcl.com - Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc. From rdm at cfcl.com Fri Nov 18 13:49:26 2005 From: rdm at cfcl.com (Rich Morin) Date: Fri, 18 Nov 2005 13:49:26 -0800 Subject: [sf-perl] Beer & T{ofu,urkey} SIG; 8 pm, 11/22 Message-ID: At this point, I have a total of eight reservations for the SIG. If you don't see your name below, and you'd like to attend, get in touch!. I'm about ready to call in the reservation... AkbarP, DanB, DavidF, RichM, ShannonP, TylerK, VickiB, WilliamS -r Beer and T{ofu,urkey} SIG RSVP: RSVPs are absolutely required for this one. Send me the number of folks in your party. If you show up and are not on my list, you may end up eating alone! Date: Tuesday, November 22, 2005 Time: 8:00 p.m. Place: Delancey Street Restaurant, 600 Embarcadero St. (around 3rd and King) San Francisco, California, USA http://local.google.com/local?hl=en&output=html&q=%22Delancey+Street+Restaurant%22&btnG=Search&latlng=37630556,-122410000,10427011748318943022 Food: slightly trendy American/European food; moderate prices There should be vegetarian dishes, etc. Parking: Unless there's a monster baseball game, parking should be no problem after 6 pm. BART: Be prepared for a bit of a crowd, as this is the end of the prime commute time. Get off at the Embarcadero station. Within the station, exit BART, enter MUNI, and catch the N (inbound). Get off at the train station. Caltrain: (Don't take Caltrain if you can avoid it. Trains run back at 10:00 p.m. and 11:59 p.m. only!) From the train station, walk Northeast on King to the restaurant. -- email: rdm at cfcl.com; phone: +1 650-873-7841 http://www.cfcl.com - Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc. From doom at kzsu.stanford.edu Mon Nov 21 11:35:45 2005 From: doom at kzsu.stanford.edu (Joseph Brenner) Date: Mon, 21 Nov 2005 11:35:45 -0800 Subject: [sf-perl] Comparing structures, ignoring floating point roundoff differences Message-ID: <200511211935.jALJZil65544@mail0.rawbw.com> I've got a problem where I need to compare structures that have floating point numbers stashed in them. I want to test the structures for identity (ala is_deeply from Test::More), but ignore tiny differences in the floating point numbers. This seems like something that ought to be a solved problem by now, but I'm having trouble finding it. I had some hopes for Test::Deep, which at least has a "num" comparison operation where you can set a tolerance to ignore, but it looks to me like that's only for comparing a computed value to an expected constant value: I need to compare computed values that are expected to match each other. Does that ring any bells with anyone? From garth at perijove.com Mon Nov 21 23:19:23 2005 From: garth at perijove.com (Garth Webb) Date: Mon, 21 Nov 2005 23:19:23 -0800 Subject: [sf-perl] Comparing structures, ignoring floating point roundoff differences In-Reply-To: <200511211935.jALJZil65544@mail0.rawbw.com> References: <200511211935.jALJZil65544@mail0.rawbw.com> Message-ID: <1132643964.7449.2.camel@localhost.localdomain> How about: use strict; use constant TOLERANCE => 0.01; sub is_equal { my ($v1, $v2) = @_; return unless ref $v1 eq ref $v2; if (ref $v1 eq 'HASH') { return hash_eq($v1, $v2); } elsif (ref $v2 eq 'ARRAY') { return array_eq($v1, $v2); } elsif (not ref $v1) { return scalar_eq($v1, $v2); } else { return; } } sub hash_eq { my ($h1, $h2) = @_; foreach my $k (keys %$h1) { return unless is_equal($h1->{$k}, $h2->{$k}); } return 1; } sub array_eq { my ($a1, $a2) = @_; foreach my $i (0..$#$a1) { return unless is_equal($a1->[$i], $a2->[$i]); } return 1; } sub scalar_eq { my ($s1, $s2) = @_; return $s1 =~ /[0-9\.]+/ ? abs($s1 - $s2) < TOLERANCE : $s1 eq $s2; } On Mon, 2005-11-21 at 11:35 -0800, Joseph Brenner wrote: > I've got a problem where I need to compare structures that have > floating point numbers stashed in them. I want to test the > structures for identity (ala is_deeply from Test::More), but > ignore tiny differences in the floating point numbers. > > This seems like something that ought to be a solved problem by > now, but I'm having trouble finding it. I had some hopes for > Test::Deep, which at least has a "num" comparison operation where > you can set a tolerance to ignore, but it looks to me like that's > only for comparing a computed value to an expected constant > value: I need to compare computed values that are expected to > match each other. > > Does that ring any bells with anyone? > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From qw at sf.pm.org Wed Nov 23 12:38:54 2005 From: qw at sf.pm.org (Quinn Weaver) Date: Wed, 23 Nov 2005 12:38:54 -0800 Subject: [sf-perl] [job] Full-time text categorization / knowledge base coding gig Message-ID: <20051123203854.GC172@cfcl.com> Dear Mongers, I received this brief job description the other day. If you are interested, please reply to Neal; don't reply to me! Neal Rosenblum neal at atssi.com tel: (408) 371-9897 * * * * Text Categorization AI and analysis code * Knowledge-Base creation * Fast web delivery * Cluster management * Continual product improvement The ideal candidate is: * Fluent in Perl, C, and HTML. * Knowledgeable about Linux and Apache. * Able to quickly learn a large code base. * Comfortable in a dynamic, start-up environment. * Creative, with a passion to build the greatest news site on earth * A strong verbal and written communicator Neal Rosenblum neal at atssi.com tel: (408) 371-9897 From matt at cloudfactory.org Tue Nov 29 09:42:45 2005 From: matt at cloudfactory.org (Matthew Lanier) Date: Tue, 29 Nov 2005 09:42:45 -0800 (PST) Subject: [sf-perl] [ping] joe brenner, give me a ring! Message-ID: joe brenner, give me a ring! thanks- Matthew D. P. K. Strelchun-Lanier matt at cloudfactory.org bring them home. Now!