Re: RFC: Hello World 2000 Benchmark
Perrin Harkins wrote: This sounds great, but the code snippet you included makes it look like the rand() value will have an effect on the number of bytes returned. This is probably not a good idea, since that would allow many other factors to affect the results. I suggest making sure that the benchmark returns identical results on every platform and every execution. You are right, further complicated that every language handles rand() a bit differently... what I have now is a 3 digit float between 0.000 and 1.000, and if this is to be an int to avoid float calculations, then perhaps 0 - 1000 % my $rand = int(rand() * 1000) / 1000; for my $i (1..5) { for my $j (1..2) { my $var = $i+$j+$rand; ... That also sounds cool. If possible, please try to write in such a way that people running on other databases can easily customize it to test their environment. Will do my best. I volunteer to review code and offer tuning tips for the platforms I'm familiar with. Thanks. Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
How to ...
How do I unsubcribe from this mailing list? Koh Kok Wei Web Developer Biodata Information Technology (Malaysia) Sdn. Bhd. Level 59, Tower 2, Petronas Twin Towers Kuala Lumpur City Centre 50088 Kuala Lumpur MALAYSIA Mobile: +60122310095 Tel: +6033820667 E-Mail: [EMAIL PROTECTED] http://www.biodata.com Global Leader in Network and Communications Security
Re: why is it so gay?
What does the happiness or otherwise of mod_perl have to do with anything? And if you're referring to its sexuality then I'm even more confused. It's a *thing*, it isn't sexually attracted to anything. -- Piers
Re: How to ...
On Mon, 18 Dec 2000, Kok Wei wrote: How do I unsubcribe from this mailing list? The instructions are in the header of the message and on the site: list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Koh Kok Wei Web Developer Biodata Information Technology (Malaysia) Sdn. Bhd. Level 59, Tower 2, Petronas Twin Towers Kuala Lumpur City Centre 50088 Kuala Lumpur MALAYSIA Mobile: +60122310095 Tel: +6033820667 E-Mail: [EMAIL PROTECTED] http://www.biodata.com Global Leader in Network and Communications Security _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://logilune.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
RE: backtick behavior
I'm curious about this, as I did exactly the same under CGI just a couple of days ago. The console behaviour is different under mod_perl... With regular CGI, the backticks capture STDOUT with no extra code - the same code in a mod_perl handler always brings up a console window. I've tried using the Windows START.EXE /B, and that works also fine under CGI but not mod_perl. Using system() exhibits the same behaviour... I'd imagine the main difference is the tied STDIN/OUT under mod_perl? I don't know much about this yet, though I'll probably continue playing with it now until I do! :) I've got simple code for the CGI and mod_perl handlers - email if you want a copy... These are of course *very* silly scripts to leave running on a server, though! ;) Rufus. -Original Message- From: Joshua Chamas [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 16, 2000 12:10 AM To: Doug Brewer Cc: [EMAIL PROTECTED] Subject: Re: backtick behavior Doug Brewer wrote: I am on Win2000. When I run a script containing a backtick call, it behaves differently under mod_perl than when called normally (the backtick code is the same, obviously other parts of the script are different, it's a legitimate perlHandler, etc). When called under mod_perl, the command console visibly flashes up, and performance is slower. When called normally, a backtick command doesn't cause the window to pop up. On windows, some applications expect there to be a console. When you are in a console, none pops up because you already have one. In modperl mode you see it pop up :( If you want to make that console go away I believe there is something you can do to a windows executable to take away the console requirement if it has one, but I can't remember off the top of my head. I would check with the ActiveState perl win32 lists. -- Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
Re: RFC: Hello World 2000 Benchmark
At 03:53 PM 12/17/00 -0800, Joshua Chamas wrote: Hey, 2+ levels of code layering 1 rand() value per request 6 for loops executed 20 additions (float integer) 10 lval assignments 200 variables inline 202+ chuncks of static html rendered Over 2900 byte template to parse Over 29K html output And a partridge in a pear tree :) Sorry... it's just stupid xmas carols. Anyway, if you are splitting out the DB side for later then why not do the same for language features and template features? Here they are both rolled into one test it seems. I don't think all applications or handlers actually use templates at all. Although I guess it's fair to say that languages like PHP are forced to use templates. Also I suspect the template features (which seem like a lot of overhead) will override any difference in the adds and randomizing speed.
Re: Linux Hello World Benchmarks: +PHP,JSP,ePerl
I strongly dislike the benchmarks on the below URL, its very misleading.. The Modperl handler benchmark, which was done on a dual P3 500mhz on Linux does serious injustice to mod_perl. Anyone who uses Linux knows how horrible it is on SMP, I think some tests showed it uses as litle as 25% of the second processor.. I don't think the benchmarks can be taken for anything, you have benchmarks running on different Architectures other then PC based... 300 mhz on Sun is totally different then 300 mhz on PC based products and the real number that drives this benchmark is HITS/S/MHZ.. I think for any real test that means anything, there needs to be some controlled factors, ie: the hardware and operating system.. Gunther Birznieks wrote: For the raw benchmarks... OK, I finally got a little time to download and read some the hello.tar.gz. It's good to see TT is fairly fast. But it's a shame that the only way to get faster than PHP is to write a raw Mod_perl handler according to the benchmarks. All the other mod_perl tools seem slower. JSP seems to also blow away mod_perl and PHP (except being almost equivalent to mod_perl handler speed). I assume Resin is precompiling JSP to Java classes and that maybe the JRE you are using does some very good hotspot on-the-fly machine-code compiling type technology? How does this benchmark stuff compare to the tests run at http://www.chamas.com/bench/ I notice that JSPs take quite a beating there but are running on a lower end machine on that set of tests. I presume the below tests are intended to replace the tests run on these various disparate machines. You also seem to have taken out tests? So you are no longer testing servlets only? It would be interesting to see if Servlet - JSP dispatching (with is the recommended model of coding Java Servlets/JSPs these days) results in any slow down. At 02:15 PM 12/16/2000 -0800, Joshua Chamas wrote: Hey, Still very rough, the hello world benchmark suite is available for download at: http://www.chamas.com/bench/hello.tar.gz You may run it like: # to get started, see what tests will run, note you # may need some CPAN modules installed to get this far perl ./bench.pl -test # to run tests for 1 minute ... shut down your programs # and walk away for best results. perl ./bench.pl -time=60 Here are my latest results, having added Resin/caucho/JSP with a J2RE 1.3.0 IBM java engine, which other benchmarks say is the fastest java on linux overall, from previous testing resin seems the fastest JSP. I changed the SSI tests to look more like the others, which also sped them considerably. Finally, I added tests for PHP, mine is 4.0.3, ePerl. Test Name Test File Hits/sec Total Hits Total Time sec/Hits Bytes/Hit -- -- -- -- -- -- Apache::ASP hello.asp 414.3 24857 hits 60.00 sec 0.002414 179 bytes Apache::Dispatch handler hello/worl 689.5 41375 hits 60.01 sec 0.001450 134 bytes Apache::Registry CGI Raw hello_raw. 725.2 43514 hits 60.00 sec 0.001379 52 bytes Apache::Registry CGI.pm hello.reg 491.5 29492 hits 60.00 sec 0.002035 154 bytes Apache::SSI hello.shtm 584.6 35080 hits 60.01 sec 0.001711 137 bytes Apache::ePerl hello.eper 359.8 21588 hits 60.00 sec 0.002780 155 bytes HTML static hello.html 1195.2 5 hits 41.83 sec 0.000837 249 bytes HTML::Embperl hello.epl 510.8 30647 hits 60.00 sec 0.001958 158 bytes HTML::Mason hello.mas 383.8 23030 hits 60.00 sec 0.002605 134 bytes Template Toolkit hello.tt553.6 33221 hits 60.01 sec 0.001806 136 bytes mod_caucho JSPhello.jsp 859.9 5 hits 58.15 sec 0.001163 156 bytes mod_include SSI hello.shtm 1008.0 5 hits 49.60 sec 0.000992 136 bytes mod_perl handler hello.benc 886.3 5 hits 56.42 sec 0.001128 134 bytes mod_php PHP hello.php 750.8 45050 hits 60.00 sec 0.001332 163 bytes As has been noted, my static html is probably slower than yours relatively. I have a dual CPU system have most apache modules enabled by default, thus creating huge headers for static html. I think the dual CPU nature of my system means my system will spend more time waiting on SMP network locking as the request rate gets faster, but I don't know much about these things, so if there is something to be gained here, please feel free to clarify how this might impact the results. --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
RE: Apache::Reload and environment variables
-Original Message- From: Mark Doyle [mailto:[EMAIL PROTECTED]] Sent: Friday, December 15, 2000 4:06 PM To: Jimi Thompson Cc: [EMAIL PROTECTED] Subject: Re: Apache::Reload and environment variables On Friday, December 15, 2000, at 04:01 PM, Jimi Thompson wrote: If the variable ORACLE_HOME doesn't change why not just set it as an environment variable outside the program and export it? PerlSetEnv ORACLE_HOME /oracle/app/oracle/product/8.0.3/ PerlModule Apache::DBI [...] PerlModule Apache::Reload PerlInitHandler Apache::Reload PerlSetVar ReloadAll Off That snippet is from my httpd.conf file - it is globally defined there. Isn't that the same as what you are saying? well, it's not the same - what he means is for you to export ORACLE_HOME in /etc/passwd or somesuch DBD::Oracle needs ORACLE_HOME set at compile time - for Registry scripts its ok to PerlSetEnv so that when your .cgi use()s DBD::Oracle, it's there... for handlers, though, PerlSetEnv may be too late, especially if you are using a startup.pl script. generally what I do is to use a BEGIN block in startup.pl to define ORACLE_HOME prior to using Apache::DBI, DBI, and DBD::Oracle. if you export it from /etc/profile then you probably don't need to do this (but it can't hurt, either - I do both) I don't know specifically why Apache::Reload is causing this behavior, but try the above and see if that clears things up... HTH --Geoff Cheers, Mark
RE: Apache::Reload and environment variables
On Monday, December 18, 2000, at 09:23 AM, Geoffrey Young wrote: well, it's not the same - what he means is for you to export ORACLE_HOME in /etc/passwd or somesuch DBD::Oracle needs ORACLE_HOME set at compile time - for Registry scripts its ok to PerlSetEnv so that when your .cgi use()s DBD::Oracle, it's there... for handlers, though, PerlSetEnv may be too late, especially if you are using a startup.pl script. generally what I do is to use a BEGIN block in startup.pl to define ORACLE_HOME prior to using Apache::DBI, DBI, and DBD::Oracle. if you export it from /etc/profile then you probably don't need to do this (but it can't hurt, either - I do both) I don't know specifically why Apache::Reload is causing this behavior, but try the above and see if that clears things up... Hmmm, I have been using this set up for years and never had a problem. It is only Apache::Reload that has the problem. I suspect it may be that I am running Apache/1.3.9 (Unix) mod_perl/1.21 and there were probably some patches along the way to mod_perl that fixed up some bugs with environment variables. I am also going to try using the latest/greatest mod_perl and see if that fixes the problem. Thanks for the help/comments. Cheers, Mark
ANNOUNCE: Apache::VMonitor 0.6
The uploaded file Apache-VMonitor-0.6.tar.gz has entered CPAN as file: $CPAN/authors/id/S/ST/STAS/Apache-VMonitor-0.6.tar.gz size: 18845 bytes md5: 2c224f8cce354833ebc9c23944f83d0a please allow a few hours for CPAN mirror to catch up with this update Changes: * patch for perl5.005_03 (Chip Turner) s/$obj-method/$obj-method()/; in map {} @list costruct _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://logilune.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
[news] tpc5cfp, perl5.6.1trial, mod_perl/AP
Forwarding relevant to us interesting bits: -- Forwarded message -- Date: Mon, 18 Dec 2000 09:01:03 -0500 (EST) From: Perl News Proprietor [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Perl News List [EMAIL PROTECTED] Subject: [Perl News] December 18, 2000 18 December 2000 [2] Perl Conference 5 Call For Participation [Events] The [3]Call For Participation for TPC5 is up. The conference will be held at the [4]Sheraton San Diego Hotel and Marina, San Diego, California, July 23-27, 2001. See the link for information on proposals. Refereed paper abstracts are due January 20, 2001. Tutorial and presentation proposals are due February 1, 2001. 2. http://www.news.perl.org/perl-news.cgi?item=977147339%7C11451 3. http://conferences.ora.com/perl5/ 4. http://www.sheraton.com/property.taf?prop=127lc=en [Stas: we are still waiting for Nat to talk to us, before we will announce how and where we are going to collect/process proposals, so hold on on this one. More to come later.] [5] perl 5.6.1 TRIAL1 Released [Perl Releases] Gurusamy Sarathy has released [6]TRIAL1, the first trial release, of perl 5.6.1. Don't use it on your production systems, but please do download it and try it out, if you are so inclined. 5. http://www.news.perl.org/perl-news.cgi?item=977147342%7C11452 6. http://public.activestate.com/gsar/perl-5.6.1-TRIAL1.patch.gz [Stas: Gurusamy, have a nice bugfree vacation! :)] [15] mod_perl for ActivePerl [Tools] Robert Rothenberg writes, "Somebody was kind enough to make available a [16]binary of mod_perl for Apache for Windows that works with ActiveState's Perl. There are mod_perl builds for various builds of Apache and Perl 5.005 or 5.6.0. I have tried it (but not thoroughly tested it) on Windows NT 4.0 SP6A and ActivePerl build 618 with Apache 1.3.14 for Windows and it works." 15. http://www.news.perl.org/perl-news.cgi?item=977147365%7C11456 16. http://www.news.perl.org/See%20http://www.mail-archive.com/modperl%40apache.org/msg11515.html # Unsubscribemailto:[EMAIL PROTECTED] # Feedback and news ideasmailto:[EMAIL PROTECTED] # Current news and archives, http://www.news.perl.org/ # Perl News in The Perl Journal http://www.tpj.com/ # Perl news and discussion http://use.perl.org/ Enjoy!
RE: is morning bug still relevant?
"SV" == Steven Vetzal [EMAIL PROTECTED] writes: SV Greetings, to say "ping doesn't work in all cases" without qualifiying why and/or which drivers that applies to. SV We've had to write our own -ping method for the MySQL DBD SV driver. Our developer tried to track down a maintainer for the SV DBD::msql/mysql module to submit a diff, but to no avail. How old a version are you talking about? In any case, according to CPAN, the DBD::mysql module is "owned" by Module id = DBD::mysql DESCRIPTION Mysql Driver for DBI CPAN_USERID JWIED (Jochen Wiedmann [EMAIL PROTECTED]) CPAN_VERSION 2.0414 CPAN_FILEJ/JW/JWIED/Msql-Mysql-modules-1.2215.tar.gz DSLI_STATUS RmcO (released,mailing-list,C,object-oriented) INST_FILE(not installed) and I *know* he's responsive to that email address at least as of a month or so ago, as we exchanged correspondence on another matter. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D.Khera Communications, Inc. Internet: [EMAIL PROTECTED] Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
Re: Precompile to protect code?
Jason Leidigh wrote: I have a mod_perl module which I would like to protect. The code is very "private" and I would like to have it exist only as perl byte code... which can be used each time the server may be restarted... is this possible? How? Just out of my head: Make a directory like /lib/perl/private and chmod 700 it. Put your module MyModule.pm there and chmod 600 it. In your startup.pl (called from httpd.conf) put use lib qw ( /lib/perl/private ); use MyModule; I think this would work, because httpd is started from root, so it can read the module. For all other users than root the directory and module is invisible. I have not tested it - maybe I'm wrong... Ernest -- Yours sincerely Mit freundlichen Grüßen Ernest Lergon VIRTUALITAS Artists online, Fine Arts online, Poets online http://www.virtualitas.com/
[JOB] Sr Web Developers
[ Crossposted: mason and modperl mailling lists ] I am in the process of obtaining talent to fill-out our Technology Group here at GoodCompany. We are looking for experienced Perl programmers with web and SQL experience who are seeking a position where they will be able to provide critical input into the direction of our company. Our site is being built using Mason and Java running on RedHat Linux and Solaris. Job Description: Senior Developer * Motivated, self-directed individual responsible for the design and implementation of web-based applications * Minimum 5 years programming in C, C++, Perl, Java, or other high level language. * Comfortable with SQL and accessing / modifying databases from within applications * Experience with XML, WML a plus * Skilled in software design and life-cycle development * Familiar with Solaris / Linux * Ability to work well under pressure and adapt a must * Excellent verbal communication skills and team-oriented thinking * Desire to teach / mentor Jr group members * This is a full-time, on-site employee position GoodCompany Background: GoodCompany (www.goodcompany.com) was formed in the second quarter of 2000 to provide business services to small businesses. Backed by Advanta Corp (www.advanta.com) and based outside Philadelphia, GoodCompany will be launching its first suite of online services in the first quarter of 2001. If you are interested and/or would like more information, feel free to contact me at: [EMAIL PROTECTED] Thanks, Tony Demark Chief Technology Architect GoodCompany 446 North Lane Conshohocken, PA 19428 (610) 818 - 1700
Re: Precompile to protect code?
On Mon, 18 Dec 2000, Jason Leidigh wrote: I have a mod_perl module which I would like to protect. The code is very "private" and I would like to have it exist only as perl byte code... which can be used each time the server may be restarted... is this possible? How? Thanks in advance and to those wo responded to may last question "Help me beat Java..." If you're writing it as a handler, or mostly as a module, you can do this using a source filter and some obfuscation. But note that this is *only* obfuscation, and not compilation. However the same is true of Java bytecode decompilers - they can produce *very* clean code from decompiling bytecode. There's an example of an XOR filter in the Filter module source code (I'm not talking about Apache::Filter here by the way, this is the Filter.pm module from CPAN). There are other techniques possible, but none are particularly reliable and none will be 100% secure. -- Matt/ /||** Director and CTO ** //||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** Personal Web Site: http://sergeant.org/ ** \\// //\\ // \\
(Beginner) mod_Perl hosting scarce?
I'm considering studying mod_Perl with the O'Reilly book "Programming Apache Modules with Perl C" . I've heard it's the only way to run Perl at performance speeds comparable to other popular template-based technologies such as JSP and ASP. However, as a Perl beginner it will be a steep learning curve for me and I heard in the last digest that mod_Perl hosting is harder to find than JSP, ASP etc. in which case I might be wasting my time. My projects would typically involve small business online databases. If I'm going to have trouble finding hosts it might be best to use JSP or ASP. What's the current situation on this one? Garry Heaton
Re: (Beginner) mod_Perl hosting scarce?
On Mon, 18 Dec 2000, Garry Heaton wrote: My projects would typically involve small business online databases. If I'm going to have trouble finding hosts it might be best to use JSP or ASP. What's the current situation on this one? It is true that less hosts offer mod_perl hosting due to the potential complexity involved in it. However, they are out there, and you just need to find one good one. I believe aplushosting.com and cwihosting.com have mod_perl. You can try e-mailing their tech support to confirm it. If not, try searching http://www.ispcheck.com/ for other webhosts. As for selection of scripting language, mod_perl is probably the most versatile language. But as you know, it is also one of the harder ones to learn. If you just want to do simple database sites, PHP or ASP might be a better choice as it would probably take you less time to learn. -Philip Mak ([EMAIL PROTECTED])
Re: (Beginner) mod_Perl hosting scarce?
Garry, I can offer you free mod_perl hosting for low volume study-related stuff. If you go commercial I'd have to charge. regards rod - Original Message - From: "Garry Heaton" [EMAIL PROTECTED] To: "mod_Perl" [EMAIL PROTECTED] Sent: Tuesday, December 19, 2000 3:01 AM Subject: (Beginner) mod_Perl hosting scarce? I'm considering studying mod_Perl with the O'Reilly book "Programming Apache Modules with Perl C" . I've heard it's the only way to run Perl at performance speeds comparable to other popular template-based technologies such as JSP and ASP. However, as a Perl beginner it will be a steep learning curve for me and I heard in the last digest that mod_Perl hosting is harder to find than JSP, ASP etc. in which case I might be wasting my time. My projects would typically involve small business online databases. If I'm going to have trouble finding hosts it might be best to use JSP or ASP. What's the current situation on this one? Garry Heaton
Re: is morning bug still relevant?
Please use the MySQL modules list. Responses are timely. ;-) ed Subscribe: mailto:[EMAIL PROTECTED] Vivek Khera wrote: "SV" == Steven Vetzal [EMAIL PROTECTED] writes: SV Greetings, to say "ping doesn't work in all cases" without qualifiying why and/or which drivers that applies to. SV We've had to write our own -ping method for the MySQL DBD SV driver. Our developer tried to track down a maintainer for the SV DBD::msql/mysql module to submit a diff, but to no avail. How old a version are you talking about? In any case, according to CPAN, the DBD::mysql module is "owned" by Module id = DBD::mysql DESCRIPTION Mysql Driver for DBI CPAN_USERID JWIED (Jochen Wiedmann [EMAIL PROTECTED]) CPAN_VERSION 2.0414 CPAN_FILEJ/JW/JWIED/Msql-Mysql-modules-1.2215.tar.gz DSLI_STATUS RmcO (released,mailing-list,C,object-oriented) INST_FILE(not installed) and I *know* he's responsive to that email address at least as of a month or so ago, as we exchanged correspondence on another matter. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D.Khera Communications, Inc. Internet: [EMAIL PROTECTED] Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
RE: (Beginner) mod_Perl hosting scarce?
Hi. I've been following the mod_perl list for a little while, but have been fairly quiet. I work with a guy named Steve Vetzal at Dabax Inc. We do development with mod_perl/Mason, and host all our stuff with a company called Web In Motion. They don't list their pricing for the mod_perl stuff online. They just tack on $25 / month on top of the standard price for mod_perl, and $25 / month for MySQL. check out www.webinmotion.net. Fred Read [EMAIL PROTECTED] http://www.dabax.com -Original Message- From: Rod Butcher [mailto:[EMAIL PROTECTED]] Sent: Monday, December 18, 2000 1:20 PM To: Garry Heaton; mod_Perl Subject: Re: (Beginner) mod_Perl hosting scarce? Garry, I can offer you free mod_perl hosting for low volume study-related stuff. If you go commercial I'd have to charge. regards rod - Original Message - From: "Garry Heaton" [EMAIL PROTECTED] To: "mod_Perl" [EMAIL PROTECTED] Sent: Tuesday, December 19, 2000 3:01 AM Subject: (Beginner) mod_Perl hosting scarce? I'm considering studying mod_Perl with the O'Reilly book "Programming Apache Modules with Perl C" . I've heard it's the only way to run Perl at performance speeds comparable to other popular template-based technologies such as JSP and ASP. However, as a Perl beginner it will be a steep learning curve for me and I heard in the last digest that mod_Perl hosting is harder to find than JSP, ASP etc. in which case I might be wasting my time. My projects would typically involve small business online databases. If I'm going to have trouble finding hosts it might be best to use JSP or ASP. What's the current situation on this one? Garry Heaton
Re: Linux Hello World Benchmarks: +PHP,JSP,ePerl
JR Mayberry wrote: I strongly dislike the benchmarks on the below URL, its very misleading.. The Modperl handler benchmark, which was done on a dual P3 500mhz on Linux does serious injustice to mod_perl. Anyone who uses Linux knows how horrible it is on SMP, I think some tests showed it uses as litle as 25% of the second processor.. Please feel free to run the tests yourself, and if you give me the results, I'll be sure to post them at a later date at http://www.chamas.com/bench/ . You can grab the benchmarks from http://www.chamas.com/bench/hello.tar.gz Its only with data from multiple platforms that people will get a comfortable look at the environments cross platform exactly as you say. I don't think the benchmarks can be taken for anything, you have benchmarks running on different Architectures other then PC based... 300 mhz on Sun is totally different then 300 mhz on PC based products and the real number that drives this benchmark is HITS/S/MHZ.. Yes, I've done these 300Mhz tests before on Solaris WinNT and the results are at http://www.chamas.com/bench/ ... got to http://www.chamas.com/bench/hello_bysystem.html for anything useful. I think for any real test that means anything, there needs to be some controlled factors, ie: the hardware and operating system.. The new thing this round of testing is a portable test suite that anyone can run and control their factors as they please. --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
Re: RFC: Hello World 2000 Benchmark
Gunther Birznieks wrote: And a partridge in a pear tree :) Sorry... it's just stupid xmas carols. You've got the spirit. :) Anyway, if you are splitting out the DB side for later then why not do the same for language features and template features? Here they are both rolled into one test it seems. I tried to include language features that were relevant to a template, which is definately additions and then variable substitutions. The rand() is only in there to prevent a language compiler from rendering the whole thing static if it were able to guess that all of the variables would be knowable by unwinding the for loops. A regular template, building HTML from a database, would not be something a compiler could optimize in such a fashion. I don't think all applications or handlers actually use templates at all. Although I guess it's fair to say that languages like PHP are forced to use templates. Yes, I'm not sure its even relevant to construct the equivalent mod_perl handler registry tests for this because it is a template benchmark. Also I suspect the template features (which seem like a lot of overhead) will override any difference in the adds and randomizing speed. We'll soon see! Did you have an opinion on floats or not? You seem to have a good feel for these environments. -- Josh
Apache::Session::MySQL question regarding lenght of _session_id
I just can't seem to find any info on how to specify that Apache::Session should create session_id's that are shorter than 32 hex chars? could someone point me in the right direction?? thanks in advance Andreas -- Andreas Marienborg +47 92 28 63 82 [EMAIL PROTECTED] www.palle.net
Re: backtick behavior
Joshua Chamas wrote: If you want to make that console go away I believe there is something you can do to a windows executable to take away the console requirement if it has one, but I can't remember off the top of my head. I would check with the ActiveState perl win32 lists. MSVC: editbin /subsystem:windows exename vs. editbin /subsystem:console exename this changes just a byte in the exe header. see also, esp. if you don't have MSVC: http://Jenda.McCann.cz/perl/GUIscripts.txt -- Reini Urban http://xarch.tu-graz.ac.at/autocad/news/faq/autolisp.html
Re: (Beginner) mod_Perl hosting scarce?
On Mon, 18 Dec 2000, Garry Heaton wrote: I'm considering studying mod_Perl with the O'Reilly book "Programming Apache Modules with Perl C" . I've heard it's the only way to run Perl at performance speeds comparable to other popular template-based technologies such as JSP and ASP. However, as a Perl beginner it will be a steep learning curve for me and I heard in the last digest that mod_Perl hosting is harder to find than JSP, ASP etc. in which case I might be wasting my time. There is a special page dedicated for ISPs giving mod_perl: http://perl.apache.org/isp.html I also published a special article about it: http://apachetoday.com/news_story.php3?ltsn=2000-11-27-001-01-OS-LF-PL If you are an ISP that provides mod_perl services and isn't listed here: http://perl.apache.org/isp.html make sure that you tell the maintainer of this page that you exist. Thanks! My projects would typically involve small business online databases. If I'm going to have trouble finding hosts it might be best to use JSP or ASP. What's the current situation on this one? Garry Heaton _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://logilune.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: Linux Hello World Benchmarks: +PHP,JSP,ePerl
On Mon, Dec 18, 2000 at 10:37:16AM -0800, Joshua Chamas wrote: Please feel free to run the tests yourself, and if you give me the results, I'll be sure to post them at a later date at http://www.chamas.com/bench/ . You can grab the benchmarks from http://www.chamas.com/bench/hello.tar.gz I downloaded the tar ball just to fool around on my system. It will be nice to have a README file with a short instruction set. Do you compile apache for each test or do you just use one size fits all apache with everything compiled in?
Re: Linux Hello World Benchmarks: +PHP,JSP,ePerl
[EMAIL PROTECTED] wrote: On Mon, Dec 18, 2000 at 10:37:16AM -0800, Joshua Chamas wrote: Please feel free to run the tests yourself, and if you give me the results, I'll be sure to post them at a later date at http://www.chamas.com/bench/ . You can grab the benchmarks from http://www.chamas.com/bench/hello.tar.gz I downloaded the tar ball just to fool around on my system. It will be nice to have a README file with a short instruction set. Do you compile apache for each test or do you just use one size fits all apache with everything compiled in? One size fits all is the idea, but only the relevant parts of that benchmark will be loaded into a custom httpd.conf startup file for apache. The benchmarks get run at the same time on the same apache, so any overhead due to modules registering themselves into apache for handler stages will be passed to all the tests. Yes, I'll provide a README, and --help/-h help command line docs in the next release. -- Josh
RE: Apache::Compress patch
-Original Message- From: Geoffrey Young [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 14, 2000 8:34 AM To: 'Ken Williams' Cc: '[EMAIL PROTECTED]' Subject: Apache::Compress patch hi ken... something has been bugging me in Apache::Compress for a while now - it _always_ tries to compress output. [snip] whoops on that patch... it didn't print filtered output that was less than 300 characters *doh*. This should do the trick (against Compress.pm 1.003)... --Geoff --- Compress.pm.old Thu Dec 14 08:22:15 2000 +++ Compress.pm Mon Dec 18 15:29:26 2000 @@ -35,10 +35,23 @@ return SERVER_ERROR unless $fh; if ($can_gzip) { -$r-content_encoding('gzip'); -$r-send_http_header; local $/; -print Compress::Zlib::memGzip($fh); +local $^W; # length() gives an uninitialized warning. hmmm... +my $file = $fh; + +my $length = length($file); + +return DECLINED unless $length; + +if ($length 300) { + $r-send_http_header; + $r-print($file); +} +else { + $r-content_encoding('gzip'); + $r-send_http_header; + print Compress::Zlib::memGzip($file); +} } else { $r-send_http_header; $r-send_fd($fh);
Re: Apache::Session::MySQL question regarding lenght of _session_id
at a time earlier than now, Andreas Marienborg wrote: I just can't seem to find any info on how to specify that Apache::Session should create session_id's that are shorter than 32 hex chars? could someone point me in the right direction?? Just write a module to sub class Apache::Session. Apache::Session::MySQL is remarkably simple. Here it is: package Apache::Session::MySQL; use strict; use vars qw(@ISA $VERSION); $VERSION = '1.01'; @ISA = qw(Apache::Session); use Apache::Session; use Apache::Session::Lock::MySQL; use Apache::Session::Store::MySQL; use Apache::Session::Generate::MD5; use Apache::Session::Serialize::Storable; sub populate { my $self = shift; $self-{object_store} = new Apache::Session::Store::MySQL $self; $self-{lock_manager} = new Apache::Session::Lock::MySQL $self; $self-{generate} = \Apache::Session::Generate::MD5::generate; $self-{validate} = \Apache::Session::Generate::MD5::validate; $self-{serialize}= \Apache::Session::Serialize::Storable::serialize; $self-{unserialize} = \Apache::Session::Serialize::Storable::unserialize; return $self; } 1; You can have any subroutine you want generate id's. Just change the two lines where generate is set to Apache::Session::Generate::MD5::generate and validate to Apache::Session::Generate::MD5::validate. For example: package Apache::Session::MyOwnPackage; use strict; use vars qw(@ISA $VERSION); $VERSION = '1.01'; @ISA = qw(Apache::Session); use Apache::Session; use Apache::Session::Lock::MySQL; use Apache::Session::Store::MySQL; use Apache::Session::Serialize::Storable; sub populate { my $self = shift; $self-{object_store} = new Apache::Session::Store::MySQL $self; $self-{lock_manager} = new Apache::Session::Lock::MySQL $self; $self-{generate} = \generate; $self-{validate} = \validate; $self-{serialize}= \Apache::Session::Serialize::Storable::serialize; $self-{unserialize} = \Apache::Session::Serialize::Storable::unserialize; return $self; } sub generate { # some code to generate ids } sub validate { # some code to validate ids } 1; Of course, you'll actually need to write some code to generate and validate ids. :) HTH, Aaron thanks in advance Andreas -- Andreas Marienborg+47 92 28 63 82 [EMAIL PROTECTED] www.palle.net -- --- Caution! The beverage you are about to enjoy may be hot.
Re: ANNOUNCEMENT: NEW VERSION: HTML::Template 2.1
On Mon, 18 Dec 2000, Eric Cholet wrote: ANNOUNCEMENT: NEW VERSION: HTML::Template 2.1 Does it support ELSIF yet? Nope, but you can build your own now with the new filter option. I expect someone to post up an "ELSIF" = "ELSE IF" filter to the HTML::Template mailinglist any time now. -sam
Re: RFC: Hello World 2000 Benchmark
On Mon, 18 Dec 2000, Joshua Chamas wrote: The rand() is only in there to prevent a language compiler from rendering the whole thing static if it were able to guess that all of the variables would be knowable by unwinding the for loops. Instead of using a random number, why don't you pas in the number as a query arg? Then you can test the query parsing of each system as well. - Perrin
JOB: NYC Perl Programmers needed!
NYC Perl Programmers needed! Vanguard Media is looking for skilled, detail-oriented Perl/CGI programmers to work on Web-Application development projects! Skills Required: * Perl 5 * CGI * SQL * CGI.pm * Apache * mod_perl * UNIX * Object-Oriented Programming methodologies * OOP in Perl 5 * References in Perl 5 Full time and freelance (contract-based) positions are available. Freelance contracts range in length from three weeks to six months (payment on hourly basis). All work is to be done on-site in our New York City offices (sorry -- no telecommuting!). If this position sounds interesting to you, please email your resume to "[EMAIL PROTECTED]", subject "Perl/CGI Programmer." Please be prepared to show code samples! About Vanguard Media For over eleven years, Vanguard Media has been in the business of building custom software solutions. A large part of our work involves creating sophisticated UNIX-based web applications which integrate with relational databases. Our work environment is casual, but our project requirements are not! Our focus is on building the highest quality software, through proper design, modularity and reusable components. If you enjoy working in a creative environment supported by enlightened and experienced management, this is the place for you! -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Jesse Erlbaum ... CTO [EMAIL PROTECTED] . Vanguard Media v: 212.242.5317 x115 .. New York City +-+-+-+-+-+- http://www.vm.com/ +-+-+-+-+-+-+
Unset PerlAuthenHandler (I wish)
Ok, essentially I want all but one directory on the server to be password protected. I want 1 directory to have the "I forgot my password" functionality. I am using Mason. and setting SetHandler default-handler has undesired results. i.e. mason files do not get parsed. Essentially I want to do this. Unset PerlAuthenHandler here is a portion of my conf file. -- AddType text/html .mhtm FilesMatch ".*\.mhtm$" SetHandler perl-script PerlHandler HTML::Mason /FilesMatch Location /websites/foo.net/htdocs/ AuthName "foo" AuthType Basic PerlAuthenHandler Apache::AuthDBI::authen PerlAuthenHandler Apache::AuthDBI::authz PerlSetVar Auth_DBI_data_source dbi:mysql:database=foo_external_site;host=localhost;port=3306 PerlSetVar Auth_DBI_username jsheffie PerlSetVar Auth_DBI_password fooo # DBI-connect($data_source, $username, $password) PerlSetVar Auth_DBI_pwd_table users PerlSetVar Auth_DBI_uid_field user_id PerlSetVar Auth_DBI_pwd_field password PerlSetVar Auth_DBI_grp_field groups #SELECT pwd_field FROM pwd_table WHERE uid_field=$user require valid-user ErrorDocument 401 /websites/foo.net/htdocs/passwd_forgoten/ /Location Location /websites/foo.net/htdocs/passwd_forgoten/ SetHandler default-handler /Location - Any ideas..?? Thanks, Jeff --- | 7.6.2.1. Configuring /etc/diphosts | | | | (taken from the Linux Networking-HOWTO) | --- | Jeff Sheffield | | [EMAIL PROTECTED] | | AIM=JeffShef| ---
Re: Unset PerlAuthenHandler (I wish)
On Dec 18, Jeff Sheffield wrote: Ok, essentially I want all but one directory on the server to be password protected. I want 1 directory to have the "I forgot my password" functionality. I am using Mason. and setting SetHandler default-handler has undesired results. i.e. mason files do not get parsed. Essentially I want to do this. Unset PerlAuthenHandler well, not really, because that would still fail, since you "require valid-user". you can do it with this: Location /websites/foo.net/htdocs/passwd_forgoten/ order allow,deny allow from all satisfy any /Location check the apache docs (http://httpd.apache.org/docs/) for more on 'require' and 'satisfy'. jim
Re: Apache::Session::MySQL question regarding lenght of _session_id
On Mon, 18 Dec 2000, Aaron E. Ross wrote: at a time earlier than now, Andreas Marienborg wrote: I just can't seem to find any info on how to specify that Apache::Session should create session_id's that are shorter than 32 hex chars? could someone point me in the right direction?? Just write a module to sub class Apache::Session. Apache::Session::MySQL is remarkably simple. Here it is: Thanks for pointing this out..however, I found a better way I thought I'd share with the list: The Apache::Session::Generate::MD5 module actually checks if there is an arg called 'IDLength' when it generates the ID...so I just had to add an IDLength = 8 to my initial Session tie, and everything worked nicely from there on :) Thanks for pointing me in the right direction! -- Andreas Marienborg +47 92 28 63 82 [EMAIL PROTECTED] www.palle.net
RE: Unset PerlAuthenHandler (I wish)
Hey Jeff -- For that same situation, I've rolled my own Authz handler which provides a "require nothing" directive. In my Authz handlers, if you put "require nothing" in your .htaccess file, all requests will be Authorized. This is essential for things like the login screen, etc. Rolling your own Authz handler is usually not that tough, but it has been a while since I've looked at the CPAN offerings. I see that AuthDBI appears to have some sort of caching, which is essential for performance, and non-trivial to implement properly. What you need is a Authz handler which is extensible, so that it can support your own methods. Or at least support a "require nothing" type of directive. The functionality I described would be roughly the equivalent of patching AuthDBI.pm as follows (NOTE: This is a COMPLETELY untested, undocumented, and probably ill-conceived patch!): START *** AuthDBI.pm Tue Sep 28 12:17:32 1999 --- AuthDBI.pm.jesseMon Dec 18 18:45:26 2000 *** *** 475,481 $user_requirements .= " $val"; } elsif ($val =~ s/^group\s+//go) { $group_requirements .= " $val"; ! } } $user_requirements =~ s/^ //go; $group_requirements =~ s/^ //go; --- 475,484 $user_requirements .= " $val"; } elsif ($val =~ s/^group\s+//go) { $group_requirements .= " $val"; ! } elsif ($val =~ /^nothing$/) { ! # Get out quick if we don't require anything. ! return OK; ! } } $user_requirements =~ s/^ //go; $group_requirements =~ s/^ //go; END TTYL, -Jesse- -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Jesse Erlbaum ... CTO [EMAIL PROTECTED] . Vanguard Media v: 212.242.5317 x115 .. New York City +-+-+-+-+-+- http://www.vm.com/ +-+-+-+-+-+-+ -Original Message- From: Jeff Sheffield [mailto:[EMAIL PROTECTED]] Sent: Monday, December 18, 2000 5:54 PM To: [EMAIL PROTECTED] Subject: Unset PerlAuthenHandler (I wish) Ok, essentially I want all but one directory on the server to be password protected. I want 1 directory to have the "I forgot my password" functionality. Any ideas..??
Re: RFC: Apache::FileMan
At 01:40 PM 12/18/00 -0800, you wrote: you should take a look at the interface of the file management of some of the free webspace providers. I have looked at some of these. They do not look and feel like a file manager. They tend to be fragmented and wordy. i haven't really looked at the Apache::FileMan module, but the biggest thing i would suggest is using something like the Template Toolkit to move the html pages into templates. I am not there yet. FileMan does not require any client software and it is independent of the file content. It just doesn't care what is in a files or directory. (personally, i've moved on to using dav (http://www.webdav.org/) for most of my web-based file management needs.) I know very little about WebDAV. I looked at the site and found the DAV concepts interesting. Perhaps you could point me to a demo or more information about how the requirements are implemented. WebDAV appears to integrate the CASE information within the XML documents themselves. I noticed that WebDAV provides file sharing. I had not considered this, but it would be easy to do in FileMan.
Re: RFC: Apache::FileMan
On Dec 18, George Sanderson wrote: At 01:40 PM 12/18/00 -0800, you wrote: you should take a look at the interface of the file management of some of the free webspace providers. I have looked at some of these. They do not look and feel like a file manager. They tend to be fragmented and wordy. a matter of taste, of course. it also depends on your target audience. most of the free webspace providers are oriented towards the lower-end of net-savviness, so things tend to be verbose. but they also tend to have done actual usability testing, so i think they're worth looking at to at least steal ideas from. :) (as an example, i ran across one site that used javascript to pop up a "uploading...please wait" window when you submitted a form to do a file upload, and then put javascript on the page sent in response to the upload to close that window. a very slick solution to the problem that most browser don't provide any meaningful feedback for http file uploads.) i haven't really looked at the Apache::FileMan module, but the biggest thing i would suggest is using something like the Template Toolkit to move the html pages into templates. I am not there yet. FileMan does not require any client software and it is independent of the file content. It just doesn't care what is in a files or directory. i didn't mean to suggest that, i meant you might want to move towards getting rid of all the 'print "htmlblah blah blah"', in your code and use something like Template Toolkit (or HTML::Template, or any of the others). http://www.template-toolkit.org/tpc4/paper.html#cgi (well, the whole document, really) is a good place to read about what i'm talking about. (a browser-based html template editor, which is what i gather you took me to mean, is also certainly possible. been there, done that, wouldn't recommend it. :) (personally, i've moved on to using dav (http://www.webdav.org/) for most of my web-based file management needs.) I know very little about WebDAV. I looked at the site and found the DAV concepts interesting. Perhaps you could point me to a demo or more information about how the requirements are implemented. WebDAV appears to integrate the CASE information within the XML documents themselves. well, webdav is an extension to http that allows you to "put", "delete", "move", "copy", etc. the "webfolders" functionality bundled with internet explorer on windows supports this. i've been hacking together a very simple gtk-based file manager that supports it, too (http://trainedmonkey.com/torem). http://www.mydocsonline.com/ is an example of a service that provides free space that is dav-accessible, if you just want to play around with some of the clients and not spend time setting up your own dav server. jim
Re: RFC: Apache::FileMan
At 04:55 PM 12/18/00 -0800, you wrote: On Dec 18, George Sanderson wrote: At 01:40 PM 12/18/00 -0800, you wrote: a matter of taste, of course. it also depends on your target audience. The user interface is the most sacred information ground. It's application depends on the requirements (marketing). A benefit gained from a consistent and portable interface is that the user can progress from system A to system B without having to navigate (interface) differently. The seamless interface that DAV provides is it's biggest advantage, because to the user it has the same interface to different (servers) services. Which is why I thought, that since FileMan looks and feels like autoindex it would be a natural extension for Apache users. biggest thing i would suggest is using something like the Template Toolkit to move the html pages into templates. http://www.template-toolkit.org/tpc4/paper.html#cgi (well, the whole document, really) is a good place to read about what i'm talking about. After reading the first part of the document, it made a lot of sense. (Thanks) well, webdav is an extension to http that allows you to "put", "delete", "move", "copy", etc You have given me a lot to think about. I need to read RFC2518 a couple or three times. http://andrew2.andrew.cmu.edu/rfc/rfc2518.html
cvs commit: modperl-site isp.html
sbekman 00/12/18 11:39:43 Modified:.isp.html Log: adding new isp Revision ChangesPath 1.15 +9 -1 modperl-site/isp.html Index: isp.html === RCS file: /home/cvs/modperl-site/isp.html,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- isp.html 2000/11/21 09:53:19 1.14 +++ isp.html 2000/12/18 19:39:40 1.15 @@ -103,7 +103,15 @@ a href="http://www.psn.net/"Planet Systems Network of America, Inc./abr a href="http://www.visionhost.net/"Vision Imaging Communications/a, Sunnyvale, CA -br + +pbr + +h3Canada/h3 + +a href="http://modperl-space.com"BareMetal.com/a + +pbr + /body /html