From jamarks at jamarks.com Thu Apr 1 00:40:49 2004 From: jamarks at jamarks.com (James marks) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] DBD::mysql In-Reply-To: References: <24DB5FBA-8217-11D8-8520-000A956EF5EC@jamarks.com> Message-ID: <83A25CE6-83A7-11D8-8BA8-000A956EF5EC@jamarks.com> OK, some progress but no success. (I'm beginning to feel like a real bonehead.) > From the top level build directory, as root, try doing: > > chmod u+rwx `find .` Tried: [iMac:~/.cpan/build] jamesmar% chmod u+rwx `find .` Did not observe any change in the write permissions of the files in the subdirectories. They all show (unless I'm misunderstanding it) that I have read, write and execute permission: drwxr-xr-x -rwxr-xr-x > "...Edit > > /System/Library/Perl/5.8.1/darwin-thread-multi-2level/Config.pm > > and change the line > > ld="MACOSX_...." > > to read > > ld="env MACOSX_...." I changed: ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc' to: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc' and got a lot farther in the install but still had a lot of failures: (snip) Can't exec "mysql_config": No such file or directory at Makefile.PL line 174. readline() on closed filehandle PIPE at Makefile.PL line 176. (snip) Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lgz (snip) Warning: duplicate function definition 'do' detected in mysql.xs, line 192 Warning: duplicate function definition 'rows' detected in mysql.xs, line 290 (snip) t/40numrows........DBI connect('test','',...) failed: Access denied for user: 'root@localhost' (Using password: NO) at t/40numrows.t line 59 Cannot connect: Access denied for user: 'root@localhost' (Using password: NO) Either your server is not up and running or you have no permissions for acessing the DSN DBI:mysql:test. This test requires a running server and write permissions. Please make sure your server is running and you have permissions, then retry. (snip) t/mysql............Mysql connect('database=test;host=','',...) failed: Access denied for user: 'root@localhost' (Using password: NO) at t/mysql.t line 55 not ok 1: Access denied for user: 'root@localhost' (Using password: NO) It looks as if your server is not up and running. This test requires a running server. Please make sure your server is running and retry. (snip) Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------ ------- t/10dsnlist.t 10 2560 9 17 188.89% 1-9 t/20createdrop.t 10 2560 5 9 180.00% 1-5 t/30insertfetch.t 10 2560 11 21 190.91% 1-11 t/40bindparam.t 10 2560 28 55 196.43% 1-28 t/40blobs.t 10 2560 11 21 190.91% 1-11 t/40listfields.t 10 2560 18 35 194.44% 1-18 t/40nulls.t 10 2560 11 21 190.91% 1-11 t/40numrows.t 10 2560 25 49 196.00% 1-25 t/50chopblanks.t 10 2560 35 69 197.14% 1-35 t/50commit.t 255 65280 30 59 196.67% 1-30 t/ak-dbd.t 255 65280 90 175 194.44% 1 4-90 t/akmisc.t 10 2560 351 701 199.72% 1-351 t/dbdadmin.t 10 2560 21 41 195.24% 1-21 t/insertid.t 255 65280 12 24 200.00% 1-12 t/mysql.t ?? ?? % ?? t/mysql2.t 255 65280 ?? ?? % ?? 1 test skipped. Failed 16/18 test scripts, 11.11% okay. 723/730 subtests failed, 0.96% okay. make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force It appears to me that I have two problems: 1) I'm unable to connect to the web server 2) I'm unable to connect to the MySQL server My web server is running, verified by entering the URL of a local file, "phpTest.php" in the browser and seeing PHP correctly executed and returned by the Apache server. I"m assuming, therefore, that the problem is with write permissions but I'm currently logged in as the root and should have all permissions, correct? My MySQL server is also running, verified by observing mysqld included in the current processes and by successfully logging in and out of MySQL as a user. I can create a MySQL user and GRANT access without requiring a password, but nowhere in the install procedure does it instruct me to do that. Suggestions? From jamarks at jamarks.com Thu Apr 1 01:06:42 2004 From: jamarks at jamarks.com (James marks) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] DBD::mysql In-Reply-To: <83A25CE6-83A7-11D8-8BA8-000A956EF5EC@jamarks.com> References: <24DB5FBA-8217-11D8-8520-000A956EF5EC@jamarks.com> <83A25CE6-83A7-11D8-8BA8-000A956EF5EC@jamarks.com> Message-ID: <21476608-83AB-11D8-84FC-000A956EF5EC@jamarks.com> Ok. I appear to be going backward. Now I can't even log into CPAN: [iMac:/] jamesmar% perl -MCPAN -eshell Your configuration suggests that CPAN.pm should use a working directory of /Users/jamesmarks/.cpan Unfortunately we could not create the lock file /Users/jamesmarks/.cpan/.lock due to permission problems. Please make sure that the configuration variable $CPAN::Config->{cpan_home} points to a directory where you can write a .lock file. You can set this variable in either /System/Library/Perl/5.8.1/CPAN/Config.pm or /Users/jamesmarks/.cpan/CPAN/MyConfig.pm Could not open >/Users/jamesmarks/.cpan/.lock: Permission denied [iMac:/] jamesmar% James From chromatic at wgz.org Thu Apr 1 01:52:57 2004 From: chromatic at wgz.org (chromatic) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] DBD::mysql In-Reply-To: <83A25CE6-83A7-11D8-8BA8-000A956EF5EC@jamarks.com> References: <24DB5FBA-8217-11D8-8520-000A956EF5EC@jamarks.com> <83A25CE6-83A7-11D8-8BA8-000A956EF5EC@jamarks.com> Message-ID: <1080805977.25588.82.camel@localhost> On Wed, 2004-03-31 at 22:40, James marks wrote: > It appears to me that I have two problems: > > 1) I'm unable to connect to the web server > 2) I'm unable to connect to the MySQL server Wait a minute. #2 is indeed a problem, but what do you intend to do when installing DBD::mysql that requires a web server? It looks like you can solve #2 by specifying a username and password to Makefile.PL or by temporarily removing the password for the root user and reloading MySQL (or flushing the grant tables manually). I have no idea what #1 has to do with this. If you're spending time on that, stop and try the other suggestions first. :) -- c From schwern at pobox.com Thu Apr 1 15:16:20 2004 From: schwern at pobox.com (Michael G Schwern) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] DBD::mysql cont. In-Reply-To: <7FFC576F-82E9-11D8-8BA8-000A956EF5EC@jamarks.com> References: <4069210D.60308@webiphany.com> <20040330084124.GV1249@gblx.net> <8709AB7E-82D4-11D8-8BA8-000A956EF5EC@jamarks.com> <20040331053959.GB1249@gblx.net> <0209DC1D-82D8-11D8-8BA8-000A956EF5EC@jamarks.com> <20040331065623.GC1249@gblx.net> <7AE5F6BE-82E4-11D8-8BA8-000A956EF5EC@jamarks.com> <20040331074438.GE1249@gblx.net> <7FFC576F-82E9-11D8-8BA8-000A956EF5EC@jamarks.com> Message-ID: <20040401211620.GA849@localhost.telerama.com> On Wed, Mar 31, 2004 at 12:00:39AM -0800, James marks wrote: > Not angry at all, just feeling a little like my Perl/programming/*NIX > legs aren't as long as the water is deep and just trying to make it to > shore. Simplest thing to do, IMHO, is to install fink (fink.sourceforge.net) and install its mysql, dbi and dbd-mysql packages, and any other software you want. -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ Now if you'll excuse me, I've got about a hundred hours of memories to erase!! -- http://www.angryflower.com/allrigh.gif From curtis_ovid_poe at yahoo.com Fri Apr 2 09:28:22 2004 From: curtis_ovid_poe at yahoo.com (Ovid) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] DBA sought Message-ID: <20040402152822.97362.qmail@web60810.mail.yahoo.com> It turns out that we're also looking for an Oracle DBA, though we'll consider DBA's having experience with other databases. Send your resume to publiustemp-rentrakjobs@yahoo.com. It goes straight to me, you bypass HR and go straight to the head of the line (and I might get a hiring bonus). Check out our Web site (http://www.rentrak.com/) to get an idea of who we are. Cheers, Ovid ===== Silence is Evil http://users.easystreet.com/ovid/philosophy/indexdecency.htm Ovid http://www.perlmonks.org/index.pl?node_id=17000 Web Programming with Perl http://users.easystreet.com/ovid/cgi_course/ From jamarks at jamarks.com Sat Apr 3 00:35:56 2004 From: jamarks at jamarks.com (James marks) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] DBD::mysql In-Reply-To: References: <24DB5FBA-8217-11D8-8520-000A956EF5EC@jamarks.com> <4832511E-82F1-11D8-8BA8-000A956EF5EC@jamarks.com> Message-ID: <29A0D30E-8539-11D8-A5F4-000A956EF5EC@jamarks.com> On Mar 31, 2004, at 10:41 AM, Kyle Dawkins wrote: >>> "...Edit >>> >>> /System/Library/Perl/5.8.1/darwin-thread-multi-2level/Config.pm >>> >>> and change the line >>> >>> ld="MACOSX_...." >>> >>> to read >>> >>> ld="env MACOSX_...." >>> >>> and then you'll be able to build Mysql (and a few others)..." That did it. I'm up and running again. Thanks to everyone for your help! James From cdawson at webiphany.com Wed Apr 7 12:45:30 2004 From: cdawson at webiphany.com (Chris Dawson) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] soap/perl/java Message-ID: <40743E3A.7060505@webiphany.com> I have been using perl SOAP for a while now and really like the simplicity compared to other toolkits. I have a project, however, where I need to use a third party java library (.jar) to do work backend work. I was thinking of using Inline.pm to run the java code, and then have this perl wrapper also manage the SOAP interface, calling into the java when necessary. The java is actually going to run a subshelled compiled C program... This may be a vague question, but I will ask it anyway. Does anyone have experience using perl in this way, in other words, to manage a java interpreter in a program which will sit as a daemon for long periods of time? Are there tricks I can use to minimize startup time of the java interpreter? Is this generally a bad idea? For example, my code will likely do something as follows: run the perl program, bring up the SOAP server, wait for a command; upon a start command, start the JVM and execute until the stop command is processed. Any thoughts? Thx, Chris From ingy at ttul.org Wed Apr 7 16:48:07 2004 From: ingy at ttul.org (Brian Ingerson) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] soap/perl/java In-Reply-To: <40743E3A.7060505@webiphany.com> References: <40743E3A.7060505@webiphany.com> Message-ID: <20040407214807.GB25321@ttul.org> Try sending this to the Inline mailing list. See lists.perl.org. On 07/04/04 10:45 -0700, Chris Dawson wrote: > I have been using perl SOAP for a while now and really like the > simplicity compared to other toolkits. I have a project, however, where > I need to use a third party java library (.jar) to do work backend > work. I was thinking of using Inline.pm to run the java code, and then > have this perl wrapper also manage the SOAP interface, calling into the > java when necessary. The java is actually going to run a subshelled > compiled C program... This may be a vague question, but I will ask it > anyway. Does anyone have experience using perl in this way, in other > words, to manage a java interpreter in a program which will sit as a > daemon for long periods of time? Are there tricks I can use to minimize > startup time of the java interpreter? Is this generally a bad idea? > For example, my code will likely do something as follows: run the perl > program, bring up the SOAP server, wait for a command; upon a start > command, start the JVM and execute until the stop command is processed. > Any thoughts? > > Thx, > Chris > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list@mail.pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list From tex at off.org Wed Apr 7 17:04:56 2004 From: tex at off.org (Austin Schutz) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] soap/perl/java In-Reply-To: <40743E3A.7060505@webiphany.com> References: <40743E3A.7060505@webiphany.com> Message-ID: <20040407220456.GI4897@gblx.net> On Wed, Apr 07, 2004 at 10:45:30AM -0700, Chris Dawson wrote: > I have been using perl SOAP for a while now and really like the > simplicity compared to other toolkits. I have a project, however, where > I need to use a third party java library (.jar) to do work backend > work. I was thinking of using Inline.pm to run the java code, and then > have this perl wrapper also manage the SOAP interface, calling into the > java when necessary. The java is actually going to run a subshelled > compiled C program... This may be a vague question, but I will ask it > anyway. Does anyone have experience using perl in this way, in other > words, to manage a java interpreter in a program which will sit as a > daemon for long periods of time? Are there tricks I can use to minimize > startup time of the java interpreter? Is this generally a bad idea? > For example, my code will likely do something as follows: run the perl > program, bring up the SOAP server, wait for a command; upon a start > command, start the JVM and execute until the stop command is processed. > Any thoughts? > This is probably more work, slower, and less reliable than using java soap tools with a java web engine like apache axis. If you want perl too, maybe run two webservers on the same box, and write glue code where you need to integrate java <-> perl. *shrug* that's the road I would probably follow. Austin From jeff at zeroclue.com Wed Apr 7 19:07:06 2004 From: jeff at zeroclue.com (Jeff Lavallee) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] soap/perl/java In-Reply-To: <20040407220456.GI4897@gblx.net> References: <40743E3A.7060505@webiphany.com> <20040407220456.GI4897@gblx.net> Message-ID: I was going to suggest a solution along these lines using Tomcat. You want to avoid starting up a JVM as much as possible, it's an expensive thing to do and if I understand things correctly you can't get much benefit from a JIT unless your JVM is left running... On Wed, 7 Apr 2004, Austin Schutz wrote: > On Wed, Apr 07, 2004 at 10:45:30AM -0700, Chris Dawson wrote: > > I have been using perl SOAP for a while now and really like the > > simplicity compared to other toolkits. I have a project, however, where > > I need to use a third party java library (.jar) to do work backend > > work. I was thinking of using Inline.pm to run the java code, and then > > have this perl wrapper also manage the SOAP interface, calling into the > > java when necessary. The java is actually going to run a subshelled > > compiled C program... This may be a vague question, but I will ask it > > anyway. Does anyone have experience using perl in this way, in other > > words, to manage a java interpreter in a program which will sit as a > > daemon for long periods of time? Are there tricks I can use to minimize > > startup time of the java interpreter? Is this generally a bad idea? > > For example, my code will likely do something as follows: run the perl > > program, bring up the SOAP server, wait for a command; upon a start > > command, start the JVM and execute until the stop command is processed. > > Any thoughts? > > > > This is probably more work, slower, and less reliable than using java > soap tools with a java web engine like apache axis. > If you want perl too, maybe run two webservers on the same box, > and write glue code where you need to integrate java <-> perl. > > *shrug* that's the road I would probably follow. > > Austin > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list@mail.pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list > From perl-pm at joshheumann.com Thu Apr 8 12:38:35 2004 From: perl-pm at joshheumann.com (Josh Heumann) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] April Meeting Message-ID: <32824.130.94.161.146.1081445915.squirrel@www.joshheumann.com> April Meeting When: April 14th, 2004 6:30pm Where: Free Geek, 1741 SE 10th Ave What: chromatic, talking about game development with Parrot: * Parrot, the VM for Perl 6, is an object oriented assembly language with an exceedingly rich vocabulary of primitives -- if "primitives" is the right word. What happens when you link it to a nice multimedia library such as SDL? How much code does it take to do something interesting? * This talk covers Parrot, object-oriented Parrot programming, Parrot's native call interface, the Simple DirectMedia Library, and, finally, everything in SDL Parrot that works by the day of the talk. AND: Joe Oppegaard, talking about Curses::UI * Curses::UI is a curses based OO user interface framework, giving many convenient widgets you would expect. This talk will cover using Curses::UI specifically drawn on the experience of writing sysv-rc-conf (http://sysv-rc-conf.sf.net) It sounds like we do have a wireless bridge, courtesy of Perlmonger John Labovitz. Thanks, John! From kellert at ohsu.edu Thu Apr 8 15:52:57 2004 From: kellert at ohsu.edu (Thomas J Keller) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] log base 10 Message-ID: There's probably a simple way to do this. But it's escaping me. How do I code a base 10 logarithm? Thanks, Tom K Thomas J. Keller, Ph.D. Director, MMI Core Facility Oregon Health & Science University 3181 SW Sam Jackson Park Rd. Portland, OR, USA, 97239 http://www.ohsu.edu/research/core -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 347 bytes Desc: not available Url : http://mail.pm.org/pipermail/pdx-pm-list/attachments/20040408/53c0ae1a/attachment.bin From kellert at ohsu.edu Thu Apr 8 16:02:18 2004 From: kellert at ohsu.edu (Thomas J Keller) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] log base 10 In-Reply-To: References: Message-ID: <058B17F2-89A0-11D8-8BB8-0003930405E2@ohsu.edu> never mind. use POSIX qw(log10); On Apr 8, 2004, at 1:52 PM, Thomas J Keller wrote: > There's probably a simple way to do this. But it's escaping me. > How do I code a base 10 logarithm? > Thanks, > Tom K > > Thomas J. Keller, Ph.D. > Director, MMI Core Facility > Oregon Health & Science University > 3181 SW Sam Jackson Park Rd. > Portland, OR, USA, 97239 > > http://www.ohsu.edu/research/ > core_______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list@mail.pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 606 bytes Desc: not available Url : http://mail.pm.org/pipermail/pdx-pm-list/attachments/20040408/1fa9acfb/attachment.bin From tcaine at eli.net Thu Apr 8 16:04:22 2004 From: tcaine at eli.net (Todd Caine) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] log base 10 In-Reply-To: References: Message-ID: <20040408210422.GC1495@eli.net> http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch02_14.htm On (Thu, Apr 08 13:52), Thomas J Keller wrote: > There's probably a simple way to do this. But it's escaping me. > How do I code a base 10 logarithm? > Thanks, > Tom K > > Thomas J. Keller, Ph.D. > Director, MMI Core Facility > Oregon Health & Science University > 3181 SW Sam Jackson Park Rd. > Portland, OR, USA, 97239 > > http://www.ohsu.edu/research/core > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list@mail.pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list From darthsmily at verizon.net Thu Apr 8 16:26:28 2004 From: darthsmily at verizon.net (darthsmily) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] log base 10 In-Reply-To: References: Message-ID: <4075C384.5020006@verizon.net> |Log10 = Log(number) / 2.30258509299405| Thomas J Keller wrote: > There's probably a simple way to do this. But it's escaping me. > How do I code a base 10 logarithm? > Thanks, > Tom K > > Thomas J. Keller, Ph.D. > Director, MMI Core Facility > Oregon Health & Science University > 3181 SW Sam Jackson Park Rd. > Portland, OR, USA, 97239 > > http://www.ohsu.edu/research/core > >------------------------------------------------------------------------ > >_______________________________________________ >Pdx-pm-list mailing list >Pdx-pm-list@mail.pm.org >http://mail.pm.org/mailman/listinfo/pdx-pm-list > > From tkil at scrye.com Thu Apr 8 18:10:46 2004 From: tkil at scrye.com (Tkil) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] log base 10 In-Reply-To: <4075C384.5020006@verizon.net> (darthsmily@verizon.net's message of "Thu, 08 Apr 2004 14:26:28 -0700") References: <4075C384.5020006@verizon.net> Message-ID: >>>>> "DS" == darthsmily writes: DS> Log10 = Log(number) / 2.30258509299405 For the people who wonder where the magic number comes from: the logarithm of x in base b can be calculated by dividing the natural log of x by the natural log of b. In formula form (so far as ascii art allows): ln x log x = ---- b ln b I don't remember enough math to tell you what the appropriate domains would be, but for simple calculations, this should be sufficient. In this case, b is 10, so we have log10(x) = ln(x) / ln(10) And ln(10) is 2.30258509299404568402, at least according to M_LN10 in /usr/include/math.h. :) t. From darthsmily at verizon.net Thu Apr 8 22:15:35 2004 From: darthsmily at verizon.net (darthsmily) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] log base 10 In-Reply-To: References: <4075C384.5020006@verizon.net> Message-ID: <40761557.1050601@verizon.net> *coughpendanticcough* ;) He didn't specify a language, so I thought I'd be a smart ass and toss out some basic code. Tkil wrote: >>>>>>"DS" == darthsmily writes: >>>>>> >>>>>> > >DS> Log10 = Log(number) / 2.30258509299405 > >For the people who wonder where the magic number comes from: the >logarithm of x in base b can be calculated by dividing the natural log >of x by the natural log of b. In formula form (so far as ascii art >allows): > > ln x > log x = ---- > b ln b > >I don't remember enough math to tell you what the appropriate domains >would be, but for simple calculations, this should be sufficient. > >In this case, b is 10, so we have > > log10(x) = ln(x) / ln(10) > >And ln(10) is 2.30258509299404568402, at least according to M_LN10 in >/usr/include/math.h. :) > >t. >_______________________________________________ >Pdx-pm-list mailing list >Pdx-pm-list@mail.pm.org >http://mail.pm.org/mailman/listinfo/pdx-pm-list > > > From tkil at scrye.com Fri Apr 9 03:07:28 2004 From: tkil at scrye.com (Tkil) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] log base 10 In-Reply-To: <40761557.1050601@verizon.net> (darthsmily@verizon.net's message of "Thu, 08 Apr 2004 20:15:35 -0700") References: <4075C384.5020006@verizon.net> <40761557.1050601@verizon.net> Message-ID: >>>>> "DS" == darthsmily writes: DS> *coughpendanticcough* To borrow a phrase: "It takes one to precisely describe one." DS> He didn't specify a language, so I thought I'd be a smart ass and DS> toss out some basic code. Fair enough. :) I just have a nearly-physical aversion to magic numbers, and that one is relatively obscure as digit strings go (compared to 3.14159, 2.71828, 0.618, etc.) Of course, if someone were sufficiently motivated, they would have just consulted the Inverse Symbolic Calculator: http://www.cecm.sfu.ca/cgi-bin/isc/lookup?number=2.30258509299405&lookup_type=simple Oh, and I didn't mean to use M_PI directly... it was more of a hint to look there for other useful magic numbers. Cheers, t. From kellert at ohsu.edu Fri Apr 9 12:18:27 2004 From: kellert at ohsu.edu (Thomas J Keller) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] log base 10 In-Reply-To: <40761557.1050601@verizon.net> References: <4075C384.5020006@verizon.net> <40761557.1050601@verizon.net> Message-ID: Hey! I learn a lot from the footnotes and asides people toss in. and review of first principles is always good. pdx-pm is a great group. Thanks all. TjK On Apr 8, 2004, at 8:15 PM, darthsmily wrote: > *coughpendanticcough* > ;) > > He didn't specify a language, so I thought I'd be a smart ass and toss > out some basic code. > > > > Tkil wrote: > >>>>>>> "DS" == darthsmily writes: >>>>>>> >> >> DS> Log10 = Log(number) / 2.30258509299405 >> >> For the people who wonder where the magic number comes from: the >> logarithm of x in base b can be calculated by dividing the natural log >> of x by the natural log of b. In formula form (so far as ascii art >> allows): >> >> ln x >> log x = ---- >> b ln b >> >> I don't remember enough math to tell you what the appropriate domains >> would be, but for simple calculations, this should be sufficient. >> >> In this case, b is 10, so we have >> >> log10(x) = ln(x) / ln(10) >> >> And ln(10) is 2.30258509299404568402, at least according to M_LN10 in >> /usr/include/math.h. :) >> >> t. >> _______________________________________________ >> Pdx-pm-list mailing list >> Pdx-pm-list@mail.pm.org >> http://mail.pm.org/mailman/listinfo/pdx-pm-list >> >> > > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list@mail.pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list From kellert at ohsu.edu Fri Apr 9 13:26:56 2004 From: kellert at ohsu.edu (Thomas J Keller) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] ISEF Judges needed Message-ID: <7B544D9F-8A53-11D8-A803-0003930405E2@ohsu.edu> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: pdx_id_judge_text.pdf Type: application/pdf Size: 27276 bytes Desc: not available Url : http://mail.pm.org/pipermail/pdx-pm-list/attachments/20040409/92a81a73/pdx_id_judge_text.pdf -------------- next part -------------- Skipped content of type multipart/alternative From perl-pm at joshheumann.com Mon Apr 12 11:54:12 2004 From: perl-pm at joshheumann.com (Josh Heumann) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] OSCON Discounts for locals (us) Message-ID: <33194.130.94.161.146.1081788852.squirrel@www.joshheumann.com> O'Reilly's Open Source Convention is coming to town, and we get cheaper rates! The discounts we get are listed here. Skip to the FREEBEE section to see how to get in for free(ish). THE SKINNY: O'Reilly Open Source Convention Portland Marriott Downtown 1401 SW Naito Parkway July 26-30, 2004 http://conferences.oreilly.com/oscon/ DISCOUNT: With this "locals only" discount, members get 25% off of OSCON registration. Anyone who registers by June 18 gets a double discount--25% off of the Early Bird price. After the Early Bird Date, members receive 25% off the regular conference pricing. Use code os04pug when you register online: To register, go to: http://conferences.oreillynet.com/cs/os2004/create/ord_os04 FREEBEE: There's a link on the main site (http://conferences.oreillynet.com/os2004/) if you want to get in by way of volunteering, which I highly recommend. The pdf about that is: http://conferences.oreillynet.com/os2004/volunteer.pdf ALSO: We also need help getting the OSCON wiki up to speed. Now is your chance to share your projects, local hangouts, and advice with other OSCON attendees. http://wiki.oreillynet.com/oscon/index.cgi As the hosting group, we should tell people about some cool stuff to do/see/drink in pdx. Spread the word, people! Josh __________________________ http://www.joshheumann.com From perl-pm at joshheumann.com Tue Apr 13 18:25:56 2004 From: perl-pm at joshheumann.com (Josh Heumann) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] April Meeting Tomorrow Night Message-ID: <33545.130.94.161.146.1081898756.squirrel@www.joshheumann.com> April Meeting When: April 14th, 2004 6:30pm Where: Free Geek, 1741 SE 10th Ave What: chromatic, talking about game development with Parrot: * Parrot, the VM for Perl 6, is an object oriented assembly language with an exceedingly rich vocabulary of primitives -- if "primitives" is the right word. What happens when you link it to a nice multimedia library such as SDL? How much code does it take to do something interesting? * This talk covers Parrot, object-oriented Parrot programming, Parrot's native call interface, the Simple DirectMedia Library, and, finally, everything in SDL Parrot that works by the day of the talk. AND: Joe Oppegaard, talking about Curses::UI * Curses::UI is a curses based OO user interface framework, giving many convenient widgets you would expect. This talk will cover using Curses::UI specifically drawn on the experience of writing sysv-rc-conf (http://sysv-rc-conf.sf.net) It sounds like we do have a wireless bridge, courtesy of Perlmonger John Labovitz. Thanks, John! From perl-pm at joshheumann.com Wed Apr 14 15:02:34 2004 From: perl-pm at joshheumann.com (Josh Heumann) Date: Mon Aug 2 21:34:32 2004 Subject: [Pdx-pm] April Meeting Tonight Message-ID: <50117.130.94.162.208.1081972954.squirrel@www.joshheumann.com> April Meeting When: April 14th, 2004 6:30pm Where: Free Geek, 1741 SE 10th Ave What: chromatic, talking about game development with Parrot: * Parrot, the VM for Perl 6, is an object oriented assembly language with an exceedingly rich vocabulary of primitives -- if "primitives" is the right word. What happens when you link it to a nice multimedia library such as SDL? How much code does it take to do something interesting? * This talk covers Parrot, object-oriented Parrot programming, Parrot's native call interface, the Simple DirectMedia Library, and, finally, everything in SDL Parrot that works by the day of the talk. AND: Joe Oppegaard, talking about Curses::UI * Curses::UI is a curses based OO user interface framework, giving many convenient widgets you would expect. This talk will cover using Curses::UI specifically drawn on the experience of writing sysv-rc-conf (http://sysv-rc-conf.sf.net) It sounds like we do have a wireless bridge, courtesy of Perlmonger John Labovitz. Thanks, John! From perl-pm at joshheumann.com Thu Apr 15 16:17:00 2004 From: perl-pm at joshheumann.com (Josh Heumann) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] Last night's talks Message-ID: <32793.130.94.161.146.1082063820.squirrel@www.joshheumann.com> Last night we heard some pretty cool talks from chromatic and Joe Oppegaard. The slides for both talks are on the kwiki: http://pdx.pm.org/kwiki Also, chromatic has provided links to his SDL page, and Dan Sugalski's article that comes out today on "Building a Parrot Compiler". Josh From ptkwt at aracnet.com Thu Apr 15 20:51:39 2004 From: ptkwt at aracnet.com (Phil Tomson) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] OSX user's group? Message-ID: I couldn't help noticing that the vast majority of laptops present at last night's meeting were Apple Powerbooks. Having just recently joined the Powerbook club, I'm wondering if anyone knows of any OSX user's groups in Portland that are oriented towards Programmers & Unix devotees. I know that there is a Mac group in town, but my impression is that it's oriented toward non-geeks. It would be cool if there was an OSX user's group in town where topics like Cocoa & Objective C programming are discussed. Anyone aware of a group like that? Phil From johnl at johnlabovitz.com Fri Apr 16 12:14:03 2004 From: johnl at johnlabovitz.com (John Labovitz) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] OSX user's group? In-Reply-To: References: Message-ID: <75F5B28E-8FC9-11D8-B2EB-003065D08C38@johnlabovitz.com> On Apr 15, 2004, at 6:51 PM, Phil Tomson wrote: > I'm wondering if anyone knows of any OSX user's groups in > Portland that are oriented towards Programmers & Unix devotees. I haven't heard of anything regularly organized. > I know that there is a Mac group in town, but my impression is that > it's oriented > toward non-geeks. Well, it's intended to be anything Mac-related, and there are definitely some programmers who are members (myself included). But from my experience so far, most of the folks coming to the monthly meeting are definitely not programmers. There seem to be a good bunch of folks still using OS9, if that tells you anything. I'm going to see the PMUG organizers this weekend, and will try to remember to ask whether there have been any programmers' SIGs. > It would be cool if there was an OSX user's group in town where topics > like Cocoa & Objective C programming are discussed. Hear, hear! I'm not in "town" (about an hour south of it), but I'd be very interested in such a group. Anyone else? -- John Labovitz Consulting, LLC http://mac.johnlabovitz.com johnl@johnlabovitz.com +1 503.949.3492 From perl-pm at joshheumann.com Fri Apr 16 12:49:34 2004 From: perl-pm at joshheumann.com (Josh Heumann) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] Addison Wesley/Prentice Hall User Groups Discount Message-ID: <50040.130.94.162.208.1082137774.squirrel@www.joshheumann.com> Addison Wesley/Prentice Hall is offering up to 35% discounts on all books bought by user group members thru their web site. The details are in a PDF file at http://www.pm.org/AW-UGcoupon.pdf, but basically there are discount codes that you enter into the order form on their site. This offer expires on May 31st. Josh __________________________ http://www.joshheumann.com From curtis_ovid_poe at yahoo.com Mon Apr 19 11:47:38 2004 From: curtis_ovid_poe at yahoo.com (Ovid) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] Can't ... stop ... hiring ... Message-ID: <20040419164738.8192.qmail@web60807.mail.yahoo.com> One of our programmers has been promoted to management, so we're hiring again. See http://use.perl.org/~Ovid/journal/18049 for details. We also have some rather large projects coming down the pike, so I'll probably be posting more job notices in the future. Cheers, Ovid ===== Silence is Evil http://users.easystreet.com/ovid/philosophy/indexdecency.htm Ovid http://www.perlmonks.org/index.pl?node_id=17000 Web Programming with Perl http://users.easystreet.com/ovid/cgi_course/ From rlucas at tercent.net Wed Apr 14 15:49:18 2004 From: rlucas at tercent.net (Randall Lucas) Date: Mon Aug 2 21:34:33 2004 Subject: [PDX-PM] Tool for stubbing perldoc? References: <200404141700.i3EH0Ae19225@mail.pm.org> Message-ID: <407DA3CE.CB890591@tercent.net> Mongers, Are there any tools for stubbing out the perldoc for an existing, non-documented module? Preferably, I'd like in-place sub/method docs above each sub. It seems like such a no-brainer that I must be overlooking something. Either that, or it's time to cobble something together with ctags+perl. Best, Randall pdx-pm-list-request@mail.pm.org wrote: > Send Pdx-pm-list mailing list submissions to > pdx-pm-list@mail.pm.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.pm.org/mailman/listinfo/pdx-pm-list > or, via email, send a message with subject or body 'help' to > pdx-pm-list-request@mail.pm.org > > You can reach the person managing the list at > pdx-pm-list-owner@mail.pm.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Pdx-pm-list digest..." > > Today's Topics: > > 1. April Meeting Tomorrow Night (Josh Heumann) > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 13 Apr 2004 17:25:56 -0600 (MDT) > From: "Josh Heumann" > Subject: [Pdx-pm] April Meeting Tomorrow Night > To: > Message-ID: > <33545.130.94.161.146.1081898756.squirrel@www.joshheumann.com> > Content-Type: text/plain; charset=iso-8859-1 > > April Meeting > > When: April 14th, 2004 6:30pm > > Where: Free Geek, 1741 SE 10th Ave > > What: chromatic, talking about game development with Parrot: > > * Parrot, the VM for Perl 6, is an object oriented assembly language > with an exceedingly rich vocabulary of primitives -- if "primitives" is > the right word. What happens when you link it to a nice multimedia > library such as SDL? How much code does it take to do something > interesting? > > * This talk covers Parrot, object-oriented Parrot programming, > Parrot's native call interface, the Simple DirectMedia Library, and, > finally, everything in SDL Parrot that works by the day of the talk. > > AND: Joe Oppegaard, talking about Curses::UI > > * Curses::UI is a curses based OO user interface framework, giving > many convenient widgets you would expect. This talk will cover using > Curses::UI specifically drawn on the experience of writing sysv-rc-conf > (http://sysv-rc-conf.sf.net) > > It sounds like we do have a wireless bridge, courtesy of Perlmonger John > Labovitz. Thanks, John! > > ------------------------------ > > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list@mail.pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list > > End of Pdx-pm-list Digest, Vol 10, Issue 8 > ****************************************** From ewilhelm at sbcglobal.net Mon Apr 19 17:54:46 2004 From: ewilhelm at sbcglobal.net (Eric Wilhelm) Date: Mon Aug 2 21:34:33 2004 Subject: [PDX-PM] Tool for stubbing perldoc? In-Reply-To: <407DA3CE.CB890591@tercent.net> References: <200404141700.i3EH0Ae19225@mail.pm.org> <407DA3CE.CB890591@tercent.net> Message-ID: <200404191754.46267.ewilhelm@sbcglobal.net> # The following was supposedly scribed by # Randall Lucas # on Wednesday 14 April 2004 03:49 pm: >Are there any tools for stubbing out the perldoc for an existing, >non-documented module? Preferably, I'd like in-place sub/method docs above >each sub. > This doesn't quite do that, though you could modify it to read the regex from 'tags' format (and I believe there is a module on CPAN for that.) Once you get to that point, finding the correct line for inserting the stub would be trivial. I always use a 'printsub' program to generate the subroutine and pod stub together, so haven't had the need for getting stubs into place after the fact. >It seems like such a no-brainer that I must be overlooking something. >Either that, or it's time to cobble something together with ctags+perl. That's just what I had done the other day, though this was to generate documentation stubs for functions written in C for an Inline::C module. Beware the hardcoded $oo value (this was just meant to be a one-off.) --Eric -- "It is impossible to make anything foolproof because fools are so ingenious." --Murphy's Second Corollary ######################################################################## #!/usr/bin/perl # tags2pod.pl turn a tags file (as created by ctags) into pod stubs for # each function # # Copyright 2004 Eric Wilhelm # License: GPL $file = "tags"; (-e $file) or die "cannot find $file"; open(TAGS, $file) or die "cannot read $file"; my %seen; # FIXME: needs to be configurable: my $oo = 'gpc'; # for OO methods (what we call our object) while(my $line = ) { chomp($line); ($line =~ m/^!/) and next; if($line =~ m/^(.*?)\s/) { my $name = $1; unless($seen{$name}) { $seen{$name}++; print stub($name), "\n"; } else { warn "skipping repeat of $name\n"; } } else { warn "cannot make sense of $line"; } # print "$line\n"; } sub stub { my $name = shift; $name or die "need name"; my $use; $oo and ($use = "\$$oo->"); return("=head2 $name\n\n $use$name();\n\n=cut\n"); } # end subroutine stub definition ######################################################################## From merlyn at stonehenge.com Wed Apr 21 13:10:41 2004 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] heckling time Message-ID: <86isft5hi9.fsf@blue.stonehenge.com> If you want to come heckle me, or learn about template toolkit, I'm presenting an "intro to template toolkit" for the Portland Linux/Unix Group tonight. See the frontpage of for details. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! From mikeraz at patch.com Wed Apr 21 13:24:12 2004 From: mikeraz at patch.com (Michael Rasmussen) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] heckling time In-Reply-To: <86isft5hi9.fsf@blue.stonehenge.com> References: <86isft5hi9.fsf@blue.stonehenge.com> Message-ID: <20040421182412.GC19190@patch.com> On Wed, Apr 21, 2004 at 11:10:38AM -0700, Randal L. Schwartz wrote: > If you want to come heckle me, or learn about template toolkit, I'm > presenting an "intro to template toolkit" for the Portland Linux/Unix > Group tonight. See the frontpage of for > details. Should one care for bar food the place where the meeting is held extends happy hour pricing for the first hour of the meeting. Decent beer selection too. -- Michael Rasmussen, Portland Oregon Be appropriate && Follow your curiosity http://meme.patch.com/memes/BicycleRiding Get Fixed: http://www.dampfixie.org The fortune cookie says: "If we were meant to fly, we wouldn't keep losing our luggage." From raanders at acm.org Wed Apr 21 13:52:50 2004 From: raanders at acm.org (Roderick A. Anderson) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] heckling time In-Reply-To: <86isft5hi9.fsf@blue.stonehenge.com> Message-ID: On 21 Apr 2004, Randal L. Schwartz wrote: > If you want to come heckle me, or learn about template toolkit, I'm > presenting an "intro to template toolkit" for the Portland Linux/Unix > Group tonight. See the frontpage of for > details. Darn. When will there be streaming video for those of us stuck in the hinderlands of North Idaho? Rod -- "Open Source Software - You usually get more than you pay for..." "Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL" From david at kineticode.com Wed Apr 21 15:54:57 2004 From: david at kineticode.com (David Wheeler) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] heckling time In-Reply-To: <20040421182412.GC19190@patch.com> References: <86isft5hi9.fsf@blue.stonehenge.com> <20040421182412.GC19190@patch.com> Message-ID: <25D63680-93D6-11D8-B302-000A95972D84@kineticode.com> On Apr 21, 2004, at 7:24 PM, Michael Rasmussen wrote: > Should one care for bar food the place where the meeting is held > extends > happy hour pricing for the first hour of the meeting. Decent beer > selection too. In Portland??? Impossible! :-) David From cdawson at webiphany.com Fri Apr 23 19:09:53 2004 From: cdawson at webiphany.com (Chris Dawson) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] short job Message-ID: <4089B051.8030205@webiphany.com> Hi there, I have need for someone who can write a small program for me. I am not sure how to agree to payment, so I will just describe the job first. I am happy to pay by the hour, or I would be happy if someone wanted to propose a complete solution for a fixed price. I would like to see some work samples, of course. Here is what I want: I need a test script which: -- receives a hostname or IP from the command line -- read in XML files -- each XML file specifes a request to a webserver -- the XML contains a URL and a method, GET or POST should be fine for now -- the XML will provide a mechanism to POST variables, and can also POST files, by referencing a path on the same machine. -- verifies that output from the URL matches a regexp once the request has processed -- can chain output from one request and use as input to the next request by a regexp (1) -- the XML will provide a way to run pre-processing and post-processing scripts (probably perl scripts) before/after each URL access (2) -- the output of each pre-process script will be passed along with the output from accessing the URL, to the post-processing script (3) -- each stage will be fully logged -- might want to pay for writing some XML files as well Here is an example of the command line: ./test_server.pl 192.168.1.10 Here is a simple XML: /process.html Hello /home/cdawson/test.txt abc(.{3})(.{17})xyz /second.html?foo2=$bar To explain the XML file: First, the test_server.pl accesses the URL http://192.168.1.10/process.html. It posts to the URL the variable "foo" with value "Hello" It also posts the file named "/home/cdawson/test.txt" The output of accessing this URL is sent to the "output_match" filter. Let's pretend that the output is abdefg...xyz (all 26 letters). The first grouping match would be set to the variable $foo. The second would be set to $bar. So, $foo would equal "def" and bar would be "ghi...w" (18 letters). This is completely arbitrary for this example, of course. Then, after accessing this URL, the test script runs the "./scripts/second-pre.pl" script, with the environment variable "TEST_VAR_foo" set to "def". I think this is a simple way to pass variables which the second-pre.pl script can process. Then, the script accesses the URL "http://192.168.1.10/second.html?foo2=def" Notice that it used the $foo variable and interpolated the value of it in the URL as a GET request. Then, the output of the preprocessing script, the output of the request itself are both passed as environment variables (using the keys "TEST_preprocess_output" and "TEST_request_output"), in addition to the variable bar passed as "TEST_VAR_bar" with the "ghi...w" value. There are probably some holes in what I am suggesting, so I am open to reworking the XML, changing requirements etc. My design requirements: -- the test_server.pl script should run under -w and strict -- everything should reside inside a .pm, so test_server.pl is basically a wrapper. I think this makes it easier to unit test the subroutines/functions. -- use variables named "test_variable" not "testVariable" or "strTestVariable" (absolutely don't want hungarian notation!) -- perfectly happy to use any perl modules from CPAN. If you can figure out a way to do this with ten lines wrapping around an existing perl module, I'd be happy to pay you for this. -- If someone is more comfortable doing this in python or ruby to have the solution done in a different language, I am happy with either of these two languages, if there are some lurkers on this list. Anyone want to tackle this? Chris From john at digitalmx.com Sat Apr 24 10:06:02 2004 From: john at digitalmx.com (John Springer) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] help with parsing mail Message-ID: I have a little robot script that I use to send mail to one of several lists. I can trigger it with a command line (i.e., from cron) or trigger it by sending an email to an address that's piped to the script. When I send an email, it parses the incoming mail, finds a command in the subject line and then (depending on the command) simply forwards the body of the email to the right list. I'm having a terrible time getting it to handle the header and content for multi-part messages right. I read the incoming mail header and try to copy the important lines to a new $Header. After header i stick the rest of the message into $Body. Then send out the mail using sendmail -t << eof To: $to From: $from Subject: $subject $Header @Body eof But it's not reliable. Sometimes the mime boundary doesn't get recognized. Sometimes the header appears to be ending in the wrong place. I've spent way too much time trying to make sure I've stripped line feeds, picked up continuations in the header, etc. Is there some module that will help me do this? -- John Springer Somewhere in Portland Where it's probably raining. From jkeroes at eli.net Sat Apr 24 11:15:52 2004 From: jkeroes at eli.net (Joshua Keroes) Date: Mon Aug 2 21:34:33 2004 Subject: [Pdx-pm] help with parsing mail In-Reply-To: References: Message-ID: On Apr 24, 2004, at 8:06 AM, John Springer wrote: > Is there some module that will help me [parse email headers]? http://search.cpan.org/~markov/MailTools-1.62/Mail/Header.pm J