AGAIN - mod_rewrite escaping ???
hi, I've tried : RewriteMap escape-map prg:/path/to/file/escape.pl RewriteRule ^(.*)\/index\.html$ /tohtml.pl?path=${escape-map:$1} when the script is as follow for ex.: $| = 1; while() { s//_/g; print $_}; or similar it doesn't work (more precisely if I use or STDIN ?!?!) If I use this : $| = 1; print "hello"; it works only the first time ?!?! If I use : RewriteMap escape-map int:toupper RewriteRule ^(.*)\/index\.html$ /tohtml.pl?path=${escape-map:$1} it works. But : RewriteMap escape-map int:escape RewriteRule ^(.*)\/index\.html$ /tohtml.pl?path=${escape-map:$1} doesn't work ?!!!? What I'm doing wrong ? = iVAN [EMAIL PROTECTED] = RewriteRule ^(.*)\/index\.html$/tohtml.pl?path=$1 rewriten like this : /tohtml.pl?path=blahwlah and then in my script the result is that : QueryString("path") is equal to "blah", but not to "blahwlah". HOW to make escaping in RewriteRule ? I don't see any way to do this without recourse to an external rewrite engine. http://www.engelschall.com/pw/apache/rewriteguide/#ToC44. But, if you are already using mod_perl, you might as well ditch mod_rewrite and write your own PerlTransHandler for the URI. See Eagle book p.334, http://www.modperl.com/book/chapters/ch7.html#The_URI_Translation_Phase, better yet, buy the book and show your support.
Re: Generic Server
Siracusa [EMAIL PROTECTED] wrote: http://www.slashdot.org/code.shtml It's a horror show, truly. Return values go unchecked, quoting operators are ignored, subroutine naming conventions are nonexistent, "use" statements are buried in subroutines as if they were runtime directives, etc. etc. Slashdot has much bigger problems than a lack of a "generic server" architecture, IMO ;) I do have to agree, as one of the origional authors of Slash, the code is horrific. On one hand (looking back) there were a lot of things that /should have been better. On the other hand, it was written by a relitive newbie to perl and a messed up C programmer who were both drinking a lot... Not that this is an excuse... :/ -- Dave DeMaagd - [EMAIL PROTECTED] - SysAdmin/Programmer - TheImageGroup If all else fails, immortality can always be assured by spectacular error. -- John Kenneth Galbraith
Re: setting cookies?
I should have realized that. I managed to architect a kludge that sets the cookie but causes a fragment of the HTTP header to appear in the browser the first time. For now, I'm content with it. The next question is, when the cookie expires 2 hours later, the initial SecurID user/password has long since expired. How do I cause the module to force the basic auth dialogs again? $r - note_basic_auth_failure; return AUTH_REQUIRED; Doesn't seem to work. On Sun, 31 Oct 1999, Doug MacEachern wrote: On Mon, 18 Oct 1999, Wyman Eric Miles wrote: System: Solaris 2.6 Apache 1.3.9/mod_perl 1.19/gcc 2.8.1/perl-5.004.04 I'm using SecurID to authenticate for an Apache proxy server. I've written a little perl module that uses a username/tokencode returned by basic auth to validate a user and return a session cookie. The SecurID auth works fine and I'm able to generate a cookie for the user. The problem is, I can't get the module to return the cookie to the browser before the proxy request is completed. mod_proxy doesn't look at r-headers_out table, it just passing along the headers from the downstream server. Wyman Miles Senior Systems Administrator, Rice University, Texas. (713) 737-5827, e-mail:[EMAIL PROTECTED], pager:[EMAIL PROTECTED]
Re: Session state without cookies
"Trei" == Trei B [EMAIL PROTECTED] writes: Trei On 30 Oct 1999, Randal L. Schwartz wrote: You have three main choices for maintaining a "session": 1) cookies 2) mangled URLs 3) hidden fields in forms If "static HTML" can't do #2 or #3, you are stuck with #1. No amount of module help can work. :) Trei I may be wrong, but it seems that mod_perl gives us enough access to the Trei request loop that we could handle this problem. Couldn't we parse out and Trei append the session id somehow in the URI translation phase? There is no "session ID". You get one of the above. HTTP doesn't have "sessions". It has individual requests. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/ Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
RE: no luck uploading
Yes, it is. Here is the form: form action="/maintenance/pmr" method="post" enctype="multipart/form-data" input type="hidden" name="action" value="newupload" input type="file" name="dmchart" input type="submit" value="Submit" /form -- From: Ken Y. Clark[SMTP:[EMAIL PROTECTED]] Sent: Monday, November 01, 1999 10:15 AM To: Tubbs, Derric L Cc: '[EMAIL PROTECTED]' Subject: Re: no luck uploading On Mon, 1 Nov 1999, Tubbs, Derric L wrote: I've been trying to use the "file" input field to upload some files and I'm having no luck at all. I first tried using Apache::Request with no luck and the error message "Can't call method "filename" without a package or object reference at ..." but I had in fact done a $args = Apache::Request-new($r) and $file = Apache::Request-upload. Then, just because I only found upload examples using it, I tried CGI.pm (I don't use this anywhere else on my site). Now all I get is "Malformed multipart POST" messages in my error_log. I've tried using IE 4, NS 4.05 under windows and NS 4.04 under Solaris. My config is Solaris 2.6 with Apache 1.3.6, Perl 5.004_04, Apache::Request 0.31 and CGI.pm 2.54. I've pared down the form to the minimum with just a form with one input field. Also, I get the malformed message simply by doing $q = new CGI, it doesn't matter if I try to do anything with it or not. Any help would greatly appreciated. is your form "enctype" set to "multipart/form-data"? ky
Re: Session state without cookies
On 1 Nov 1999, Randal L. Schwartz wrote: There is no "session ID". You get one of the above. HTTP doesn't have "sessions". It has individual requests. Indeed there are no "sessions" with HTTP. I did not assume that there is some magical "session ID" environment variable that Apache provides the developer. Instead I was expressing a desire for that type of functionality so that I could develop an application with perl which can maintain session state with or without cookies. It's impossible for me to tell my boss that I'm developing an application that will only work with cookies. I've taken this script on from a previous developer so it's time consuming to modify it to append a session id to the URI that way. What I did assume is that someone in the mod_perl community had already solved the problem with a module - and they did (Apache::StripSession). It makes sense to handle this in the URI translation phase of the request loop. And I think that there are still ways to improve upon this concept. If we want mod_perl to provide us the best possible web development environment we need to contend with issues like session state without cookies just as ASP and now JSP have. thanks, Trei B.
Using Apache::Util outside mod_perl
Can I use the Apache::Util functions outside mod_perl? Here's an attempt: % cat test.pl use Apache::Util; print Apache::Util::escape_html('foo'); % perl test.pl Undefined subroutine Apache::Util::escape_html called at test.pl line 3. I'd like to have access to the fast URL/HTML escaping subroutines in "regular" perl scripts, if possible. -John
Re: AGAIN - mod_rewrite escaping ???
Grr, this isn't a mod_perl question so I'd almost rather not respond at all... but since you don't state the version of Apache, I'll assume you are using an Apache prior to v 1.3.6 'cause that's when the escape function was implemented. Meanwhile, back at the ranch... hi, I've tried : RewriteMap escape-map prg:/path/to/file/escape.pl RewriteRule ^(.*)\/index\.html$ /tohtml.pl?path=${escape-map:$1} when the script is as follow for ex.: $| = 1; while() { s//_/g; print $_}; or similar it doesn't work (more precisely if I use or STDIN ?!?!) If I use this : $| = 1; print "hello"; it works only the first time ?!?! If I use : RewriteMap escape-map int:toupper RewriteRule ^(.*)\/index\.html$ /tohtml.pl?path=${escape-map:$1} it works. But : RewriteMap escape-map int:escape RewriteRule ^(.*)\/index\.html$ /tohtml.pl?path=${escape-map:$1} doesn't work ?!!!? What I'm doing wrong ? = iVAN [EMAIL PROTECTED] = RewriteRule ^(.*)\/index\.html$/tohtml.pl?path=$1 rewriten like this : /tohtml.pl?path=blahwlah and then in my script the result is that : QueryString("path") is equal to "blah", but not to "blahwlah". HOW to make escaping in RewriteRule ? I don't see any way to do this without recourse to an external rewrite engine. http://www.engelschall.com/pw/apache/rewriteguide/#ToC44. But, if you are already using mod_perl, you might as well ditch mod_rewrite and write your own PerlTransHandler for the URI. See Eagle book p.334, http://www.modperl.com/book/chapters/ch7.html#The_URI_Translation_Phase, better yet, buy the book and show your support. -- Salon Internet http://www.salon.com/ HTTP mechanic, Perl diver, Mebwaster, Some of the above Ian Kallen [EMAIL PROTECTED] / AIM: iankallen / Fax: (415) 354-3326
Re: Using Apache::Util outside mod_perl
On 11/1/99 12:19 PM, Ken Y. Clark wrote: I'd like to have access to the fast URL/HTML escaping subroutines in "regular" perl scripts, if possible. isn't that functionality available in CGI? Yes, but AFAIK they're plain perl implementations rather than stubs for faster C versions. -John
Re: Using Apache::Util outside mod_perl
Ken, no - mod_perl as glue to the Apache API is required. If you're not running under mod_perl these won't work for you and you have to use CGI.pm's or URI's perl only functions. At 12:19 PM 11/1/99 -0500, Ken Y. Clark wrote: On Mon, 1 Nov 1999, John Siracusa wrote: Can I use the Apache::Util functions outside mod_perl? Here's an attempt: % cat test.pl use Apache::Util; print Apache::Util::escape_html('foo'); % perl test.pl Undefined subroutine Apache::Util::escape_html called at test.pl line 3. I'd like to have access to the fast URL/HTML escaping subroutines in "regular" perl scripts, if possible. -John isn't that functionality available in CGI? Yes it is, however much slower than the native ones in Apache (from Apache::Util): use Benchmark; timethese(1000, { C = sub { my $esc = Apache::Util::escape_html($html) }, Perl = sub { my $esc = HTML::Entities::encode($html) }, }); Benchmark: timing 1000 iterations of C, Perl... C: 0 secs ( 0.17 usr 0.00 sys = 0.17 cpu) Perl: 15 secs (15.06 usr 0.04 sys = 15.10 cpu) use Benchmark; timethese(1, { C = sub { my $esc = Apache::Util::escape_uri($uri) }, Perl = sub { my $esc = URI::Escape::uri_escape($uri) }, }); Benchmark: timing 1 iterations of C, Perl... C: 0 secs ( 0.55 usr 0.01 sys = 0.56 cpu) Perl: 2 secs ( 1.78 usr 0.01 sys = 1.79 cpu) Tobias
Re: Using Apache::Util outside mod_perl
"John" == John Siracusa [EMAIL PROTECTED] writes: John On 11/1/99 12:19 PM, Ken Y. Clark wrote: I'd like to have access to the fast URL/HTML escaping subroutines in "regular" perl scripts, if possible. isn't that functionality available in CGI? John Yes, but AFAIK they're plain perl implementations rather than John stubs for faster C versions. But the "faster C" implementations are in the Apache code, not in the mod_perl code. :) So you can't use Apache::Util unless you are running Apache. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/ Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
follow-up - no luck uploading
I am calling "new CGI" from within a different sub than handler when I get the malformed error. If I move the call out to handler and submit then my hard drives start thrashing and the httpd processing the request shoots past 500MB and eats up all my resources. Mind you I'm not using the $q for anything, all this is just from creating it. Also, that's with nothing uploaded, just some normal select fields. I'm at a loss here. Derric L. Tubbs CITIS Administrator Boeing - Fort Walton Beach, Florida [EMAIL PROTECTED] (850)302-4494
Re: Problem setting up mod_proxy_add_forward
Where was the proxy_add_forward patch again? -- greg
Re: Problem setting up mod_proxy_add_forward
"GS" == Greg Stark [EMAIL PROTECTED] writes: GS Where was the proxy_add_forward patch again? It ain't a patch, its a module. The Apache module registry has a pointer to it. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D.Khera Communications, Inc. Internet: [EMAIL PROTECTED] Rockville, MD +1-301-545-6996 PGP MIME spoken herehttp://www.kciLink.com/home/khera/
Re: follow-up - no luck uploading
"Tubbs, Derric L" wrote: I am calling "new CGI" from within a different sub than handler when I get the malformed error. If I move the call out to handler and submit then my hard drives start thrashing and the httpd processing the request shoots past 500MB and eats up all my resources. Mind you I'm not using the $q for anything, all this is just from creating it. Also, that's with nothing uploaded, just some normal select fields. I'm at a loss here. Hi, Our httpd's were spinning out of control on uploads until Doug sent us this patch. I don't know whether it made it into the distribution or not. -jwb --- multipart_buffer.c 1999/01/27 01:33:20 1.1.1.1 +++ multipart_buffer.c 1999/08/17 01:57:59 @@ -129,13 +129,13 @@ sizeof(char) * bytes_to_read + 1); len_read = ap_get_client_block(self-r, buff, bytes_to_read); - if (len_read 0) { + if (len_read = 0) { ap_log_rerror(MPB_ERROR, "[libapreq] client dropped connection during read"); self-length = 0; self-buffer = NULL; self-buffer_len = 0; - return; + break; } self-buffer = self-buffer ?
Re: Problem setting up mod_proxy_add_forward
Vivek Khera [EMAIL PROTECTED] writes: "GS" == Greg Stark [EMAIL PROTECTED] writes: GS Where was the proxy_add_forward patch again? It ain't a patch, its a module. The Apache module registry has a pointer to it. Thanks, so where would I find this Apache module registry? It doesn't seem to be linked to off apache.org anywhere. -- greg
RE: Problem setting up mod_proxy_add_forward
Thanks, so where would I find this Apache module registry? It doesn't seem to be linked to off apache.org anywhere. http://modules.apache.org/ Baiju Thakkar Just use Perl;
Re: Intentional Premature Finish in an Apache Module
On Mon, 1 Nov 1999, John Siracusa wrote: On 11/1/99 2:32 AM, Doug MacEachern wrote: or use this undocumented feature: $Apache::ERRSV_CAN_BE_HTTP = 1; #set this anywhere, startup script is best die FORBIDDEN; mod_perl peeks at $@, if it's a 3 digit http status code, it propagates that value to Apache. Sounds great, but I'm hesitant to use "undocumented features." Will anything like this ever make it into the official spec? For now I'm using eval, I guess, but I'm all for official support for this functionality! :) Of course, the method could be a bit more friendly. I mean, no one likes seeing "SV" on the Perl side of things, even if it is just a variable name ;) well, it's only undocumented and awkward to enable because I wasn't sure how useful the feature would be. it's in the code base for when the need arises, like right now, so try it, if it's useful then it can be documented, etc.
Re: no luck uploading
On Mon, 1 Nov 1999, Tubbs, Derric L wrote: I've been trying to use the "file" input field to upload some files and I'm having no luck at all. I first tried using Apache::Request with no luck and the error message "Can't call method "filename" without a package or object reference at ..." but I had in fact done a $args = Apache::Request-new($r) and $file = Apache::Request-upload. I don't understand what you are trying to say, without seeing an example. try the libapreq-x.xx/eg/perl/file_upload.pl script
Re: Problems with dynamically-loaded perl modules under Solaris2.5.1
I did some experimenting with my Solaris2.5.1/mod_perl/Data::Dumper/Storable problem that I wrote about last week. A grid: | mod_perl 1.21 | 1.21-dev (19991101174047) -+---+-- perl5.004_05 | works fine| didn't try perl5.005_03 | doesn't work | doesn't work perl5.005_62 | won't compile | works fine! All versions of perl compiled with all solaris hints. So is this a 5.005_03-specific bug? Any word on 5.005_04?
RE: mod-perl logo
On Mon, 1 Nov 1999, Kent, Mr. John wrote: Doug, I asked O'Reilly's permission to use the "camel and feather" without acknowledging them, and they said NO, see letter below from Edie Freedman. gad, I hate politics. Tim O'Reilly gave us permission to use the camel in the mod_perl logo two years ago. I'm can't remember if that means every site that uses the logo also needs to include the permission text like perl.apache.org does. I say mod-perl needs to adopt a non-proprietary logo. Wasn't there a page somewhere that had competing designs? Perhaps I can use one of them. perl.apache.org/logos/
Re: Using Apache::Util outside mod_perl
So you can't use Apache::Util unless you are running Apache. exactly. but it might be possible with the SHARED_CORE configure option, that builds libhttpd.so, I've never tried though.
Re: follow-up - no luck uploading
Our httpd's were spinning out of control on uploads until Doug sent us this patch. I don't know whether it made it into the distribution or not. yabut, that was only when netscape was trying to upload a directory name and lied about the content length. anyhow, the patch is in the distribution, just not released yet.
Re: PATH env garbled in mod_perl 1.21 patch
On 1 Nov 1999, Greg Stark wrote: Was this ever resolved? yes, fixed in cvs. I'm concerned because for Oracle the environment variable ORACLE_HOME is critical and I think the environment corruption explains some of our past database problems. PATH was the only corrupted variable, this was explained too, see the archive for details.
Re: setting cookies?
On Mon, 1 Nov 1999, Wyman Eric Miles wrote: I should have realized that. I managed to architect a kludge that sets the cookie but causes a fragment of the HTTP header to appear in the browser the first time. For now, I'm content with it. The next question is, when the cookie expires 2 hours later, the initial SecurID user/password has long since expired. How do I cause the module to force the basic auth dialogs again? $r - note_basic_auth_failure; return AUTH_REQUIRED; Doesn't seem to work. that's cause netscape, ie, etc, cache basic credentials. so even though a 401 code is sent to the client, they just reuse the existing username/password in memory.
Re: Generic Server
On Sun, 31 Oct 1999, Siracusa wrote: On 10/31/99 4:23 AM, Matt Sergeant wrote: Well I'll show by example. Take slash (the perl scripts for slashdot.org) I'm assuming you wanted this read like the classic: "Take my wife...please!" I mean, have you actually looked at the code here? http://www.slashdot.org/code.shtml It's a horror show, truly. Return values go unchecked, quoting operators are ignored, subroutine naming conventions are nonexistent, "use" statements are buried in subroutines as if they were runtime directives, etc. etc. Slashdot has much bigger problems than a lack of a "generic server" architecture, IMO ;) :) I used slash as an example because I'm working on a similarish commercial piece of software. And the code is cleaner than slash's code (man, no wonder slashdot is down so often...). It's because my NNTP server code does a lot of the stuff that Apache does. For example, for truly fast file serving you need to do memory mapped IO (apparently - I know nothing about it). My NNTP server component does open() calls. It'd be nice if I could utilise Apache's file reading/caching/delivering functions. -- Matt/ Details: FastNet Software Ltd - XML, Perl, Databases. Tagline: High Performance Web Solutions Web Sites: http://come.to/fastnet http://sergeant.org Available for Consultancy, Contracts and Training.
Re: mod_perl usage survey
On Mon, 01 Nov 1999, Stas Bekman wrote: The graph/usage data is updated, the ramp is getting bigger and bigger :) http://perl.apache.org/netcraft/ I noted that Apache's usage is dropping for about 3 months now. It does make me wonder if Mindcraft's stats have had a real effect after all. However it's nice to see that netcraft qualifies all major changes such as major ISP's rolling out IIS. -- Matt/ Details: FastNet Software Ltd - XML, Perl, Databases. Tagline: High Performance Web Solutions Web Sites: http://come.to/fastnet http://sergeant.org Available for Consultancy, Contracts and Training.
Re: Session state without cookies
On Mon, 01 Nov 1999, Randal L. Schwartz wrote: Uh, you still had to use one of the THREE METHODS I keep talking about: 1) cookies 2) mangled URLs 3) hidden fields And in some cases: 4) User authentication -- Matt/ Details: FastNet Software Ltd - XML, Perl, Databases. Tagline: High Performance Web Solutions Web Sites: http://come.to/fastnet http://sergeant.org Available for Consultancy, Contracts and Training.
Re: mod-perl logo
Doug MacEachern wrote: On Mon, 1 Nov 1999, Kent, Mr. John wrote: Doug, I asked O'Reilly's permission to use the "camel and feather" without acknowledging them, and they said NO, see letter below from Edie Freedman. gad, I hate politics. Tim O'Reilly gave us permission to use the camel in the mod_perl logo two years ago. I'm can't remember if that means every site that uses the logo also needs to include the permission text like perl.apache.org does. I say mod-perl needs to adopt a non-proprietary logo. Wasn't there a page somewhere that had competing designs? Perhaps I can use one of them. This kind of stuff is awful. They own the image, so you have to ask them each time you want to use it. But here's the rub... perl the camel are synonymous, and they don't own perl, just the camel. Just like Kleenex became generic, one would be able to argue that the camel is a generic image for perl, used just about everywhere, in fact one can't really express a perl project w/o the camel image because of how generic it has become. The camel is not O'Reilly after all, it is perl, and perl is owned by the world. Because O'Reilley has not gone to any lengths to separate the camel from perl, the camel is perl. A commercial entity would have to use the above argument to use the camel to market its own perl products, books, etc. But what about an open source project, or a web site that happened to use perl ? It would be hard for O'Reilly to argue damages, because there are no revenues relating to perl. Further, a successful argument can be made that open source projects, that use the logo actually benefit O'Reilly increasing the sales of its perl books. Back to mod_perl. I'm not convinced that a camel with feathers sticking out of its ears is a camel. Its a flying camel, more of a pegasus, which is not trademarked, might be a mythical creature that you can pull out of Arabian Nights, and represents a complementary, and non-competing product. Worst case scenario, reflect the camel, since the perl camels rendered today are always facing left, or create a desert scene with a camel, sun, and feather, which is not just a camel either, its a desert scene. I think the spirit of this is that if you are not competing with O'Reilly's commercial activities with respect to perl, then don't worry about it. -- Joshua _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
Re: Apache::SSI pain
third-party CGI stuff which could benefit from mod_perl. Also, how can one cope with third party scripts which output their "Content-type:" via usual print STDOUT so that it doesn't pop up into the filtered pipeline in addition to the one supplied by the Filter mechanism?? After I thought it over, I have got a conclusion that actually, it should be a problem of PerlRunFilter. IMHO it should (just as Registry does) recognize the "PerlSendHeader" var. and trim the script headers accordingly.
mod_proxy_add_forward and logging
The recent message about proxy_add_forward reminded me of a simple change I made that might help anyone who wants to track the logs matching the source/destination of proxied requests. I also activated mod_unique_id and in mod_proxy_add_forward, after if (r-proxyreq) { ap_table_set(r-headers_in, "X-Forwarded-For", r-connection-remote_ip); I added: (too lazy to write a whole module for this...) ap_table_set(r-headers_in, "X-Parent-Id", ap_table_get(r-subprocess_env, "UNIQUE_ID")) ; Then I added elements in the LogFormat for %{UNIQUE_ID}e %{X-Parent-Id}i The result is that the UNIQUE_ID field is different on every hit and can be used as a database key. If the first server hit delivers the content directly, the X-Parent-Id will be logged as "-". If it passes the request by proxy to another server it will be the same as the UNIQUE_ID (I wasn't expecting that, but it is interesting). The machine that receives the proxy request will log the X-Parent-Id containing the same value as the sender's UNIQUE_ID which can then be used to tie them together. Les Mikesell [EMAIL PROTECTED]
Re: mod-perl logo
On Mon, 01 Nov 1999, Joshua Chamas wrote: Doug MacEachern wrote: On Mon, 1 Nov 1999, Kent, Mr. John wrote: Doug, I asked O'Reilly's permission to use the "camel and feather" without acknowledging them, and they said NO, see letter below from Edie Freedman. gad, I hate politics. Tim O'Reilly gave us permission to use the camel in the mod_perl logo two years ago. I'm can't remember if that means every site that uses the logo also needs to include the permission text like perl.apache.org does. I say mod-perl needs to adopt a non-proprietary logo. Wasn't there a page somewhere that had competing designs? Perhaps I can use one of them. This kind of stuff is awful. They own the image, so you have to ask them each time you want to use it. But here's the rub... perl the camel are synonymous, and they don't own perl, just the camel. Just like Kleenex became generic, one would be able to argue that the camel is a generic image for perl, used just about everywhere, in fact one can't really express a perl project w/o the camel image because of how generic it has become. The camel is not O'Reilly after all, it is perl, and perl is owned by the world. Because O'Reilley has not gone to any lengths to separate the camel from perl, the camel is perl. IANAL but I think you're way off base here. Perl didn't come before the camel, O'Reilly created the camel image for Perl. Unfortunately my Camel book is in the house, but all my other ORA books have a disclaimer in the front: The association between the image of a insert animal and the topic of insert book topic is a trademark of O'Reilly and Associates, Inc. A commercial entity would have to use the above argument to use the camel to market its own perl products, books, etc. But what about an open source project, or a web site that happened to use perl ? It would be hard for O'Reilly to argue damages, because there are no revenues relating to perl. Further, a successful argument can be made that open source projects, that use the logo actually benefit O'Reilly increasing the sales of its perl books. Companies (actually, their lawyers) don't argue damages, they argue dilution in these cases. Back to mod_perl. I'm not convinced that a camel with feathers sticking out of its ears is a camel. Its a flying camel, more of a pegasus, which is not trademarked, might be a mythical creature that you can pull out of Arabian Nights, and represents a complementary, and non-competing product. Worst case scenario, reflect the camel, since the perl camels rendered today are always facing left, or create a desert scene with a camel, sun, and feather, which is not just a camel either, its a desert scene. That wouldn't stand up in any US court. Ask Randal how courts listen to sensible arguments g (sorry Randal!). I think the spirit of this is that if you are not competing with O'Reilly's commercial activities with respect to perl, then don't worry about it. I think really you should politely ask Tim (he's very approachable, albeit a bit paradoxical for my liking) for a nice lawyer's reference saying the use of the camel for a mod_perl logo is OK. Won't cost him a fortune (probably a few hundred dollars!) and it'll make life a whole lot easier. As I said, IANAL, but I try and pick up what I can from their responses (which are few and far between) on slashdot. -- Matt/ Details: FastNet Software Ltd - XML, Perl, Databases. Tagline: High Performance Web Solutions Web Sites: http://come.to/fastnet http://sergeant.org Available for Consultancy, Contracts and Training.
Re: mod-perl logo
"Matt" == Matt Sergeant [EMAIL PROTECTED] writes: Matt Perl didn't come before the camel, I don't know what you mean here. Perl was most certainly around for at least three years before Larry and I approved the use of a camel on the cover of our book. Matt That wouldn't stand up in any US court. Ask Randal how courts listen to Matt sensible arguments g (sorry Randal!). Heh. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/ Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Re: mod-perl logo
On Mon, 01 Nov 1999, Randal L. Schwartz wrote: "Matt" == Matt Sergeant [EMAIL PROTECTED] writes: Matt Perl didn't come before the camel, I don't know what you mean here. Perl was most certainly around for at least three years before Larry and I approved the use of a camel on the cover of our book. Ack. Did I write that - it was right in my head. Scratch that and reverse it - you know what I mean :) -- Matt/ Details: FastNet Software Ltd - XML, Perl, Databases. Tagline: High Performance Web Solutions Web Sites: http://come.to/fastnet http://sergeant.org Available for Consultancy, Contracts and Training.
Re: setting cookies?
At 11:44 01/11/1999 -0800, Doug MacEachern wrote: On Mon, 1 Nov 1999, Wyman Eric Miles wrote: The next question is, when the cookie expires 2 hours later, the initial SecurID user/password has long since expired. How do I cause the module to force the basic auth dialogs again? $r - note_basic_auth_failure; return AUTH_REQUIRED; Doesn't seem to work. that's cause netscape, ie, etc, cache basic credentials. so even though a 401 code is sent to the client, they just reuse the existing username/password in memory. I've never tried this but doesn't sending two 401s in a row for the same document have the auth popup appear again ? .Robin Radioactive cats have 18 half-lives.
Re: mod-perl logo
On Mon, Nov 01, 1999 at 04:42:50PM -0400, Neil Kandalgaonkar wrote: Joshua Chamas [EMAIL PROTECTED] wrote: That said, they do allow non-profits and others to use the camel, e.g. the Perl Mongers. It's not evil, they're just trying to protect a trademark which they built. AFAIK no one associated a camel w/perl before the ORA books. There's a slightly different reason that you are all missing. It's not that they WANT to defend their trademark, it's that they HAVE to defend their trademark, or they lose it. As I recall under US trademark law, if I can prove that you knew of a use of your trademark and did nothing, The courts can say that you werent defending it, and take it away. Want an example? There's a band here in town that's been around for 20 years called The Raisins. When the California Raisin Board began using those horrid purple claymation raisins in their commercials, they issued a cease and desist order to the band because their "Musical band called the raisins" was too close to their trademarked "Musical singing raisins that really are dried grapes even though they're really clay" After a legal battle the courts decided that the band The Raisins predated the trademarked clay raisins, and could continue. About two years later, the band added semi-famous guitaris Adrian Belew, and toured the country for two years as "The Bears", then Adrian left the band and they went back to schlepping about Cincinnati as "The Raisins". They got ANOTHER cease and desist order, and this time, the judge said that they had ABANDONED the name, and no longer had rights to it. So, they now play out as Psychodots. Just goes to show, in the US if you dont vigorously defend your rights to any registered or implicit trademark, you can lose it. -Chris
Re: Problem setting up mod_proxy_add_forward
On 1 Nov 1999, Greg Stark wrote: Where was the proxy_add_forward patch again? It's a (short short short) module. ftp://ftp.netcetera.dk/pub/apache/mod_proxy_add_forward.c http://www.cpan.org/authors/id/ABH/mod_proxy_add_forward.c complete with instructions on how to compile it in and whatnot. - ask -- ask bjoern hansen - http://www.netcetera.dk/~ask/ more than 50M impressions per day, http://valueclick.com
JOB: Perl/CGI Programmer
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 * Pointers in Perl 5 All work is to be done on-site in our New York City offices (sorry -- no telecommunting!). Work will be contract-based (freelance), and you will be paid on an hourly basis. Contracts range in length from three weeks to six months. For over ten 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! If this position sounds interesting to you, please email your resume and desired hourly rate to "[EMAIL PROTECTED]", subject "Perl/CGI Programmer." Please be prepared to show code samples! Thanks! -Jesse- -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Jesse Erlbaum ... CTO [EMAIL PROTECTED] . Vanguard Media v: 212.242.5317 x115 .. New York City +-+-+-+-+-+- http://www.vm.com/ +-+-+-+-+-+-+
can't remember if job postings are welcome here, but...
Looking for immediate contractor or two for 2-3 months full time starting yesterday with heavy: ** mod_perl, EmbPerl ** experience. Might telecommute, but better if in Silicon Valley area where client is located. E-commerce experience helpful. Willing to take orders from me. :) Also might need to fill some web-NT things, not clear on job posting yet, but write me if you fit the geography and availability and I'll see if I can push you in. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/ Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
RE: mod-perl logo
Doug, I asked O'Reilly's permission to use the "camel and feather" without acknowledging them, and they said NO, see letter below from Edie Freedman. I say mod-perl needs to adopt a non-proprietary logo. Wasn't there a page somewhere that had competing designs? Perhaps I can use one of them. John Kent Webmaster Naval Research Laboratory Monterey California John- I am sorry but we can't allow usage of the camel logo without attribution. We have to protect our trademark. Thanks for checking, and best of luck with the web site. -Edie Freedman Creative Director O'Reilly Associates, Inc. -Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 31, 1999 10:05 PM To: Kent, Mr. John Subject: Re: mod-perl logo I have seen many sites use the logo without the o'reilly permission. I'd say go ahead and use it, worst case is that o'reilly starts asking people to remove the image. On Wed, 20 Oct 1999, Kent, Mr. John wrote: Sirs, I wish to use the mod-perl "camel feather" logo at the bottom of my U.S. government web page, but I don't want, and in fact am forbidden from having a "Camel logo belongs to O'Reilly and is used by permission". May I use the mod-perl logo without the permission statement. Page in question: http://kauai.nrlmry.navy.mil:/perl/tc_home Thank you, John Kent Webmaster Naval Research Laboratory Monterey, CA 93940
how to use ApacheDBI with RedHat 6.1
in order to prevent more questions on this topic: ApacheDBI on Redhat 6.1 using the default rpm's apache-1.3.9-4 and mod_perl-1.21-2 does not work. In particular loading any compiled module (*.so) in a startup script via PerlRequire will produce a core dump. There is a nice web page, which describes some possible solutions: http://perl.apache.org/guide/install.html#using_RPM_DEB_and_other_package Personally I prefer the first solution: grab the latest Apache and mod_perl sources and compile the sources yourself. Edmund -- Edmund Mergl mailto:[EMAIL PROTECTED] http://www.bawue.de/~mergl
Failing to reconnect after Oracle shutdown abort (Apache::DBI)
Has anyone experienced a situation where a process (httpd for example) can't reconnect to Oracle after a "shutdown abort"? Tim.
Re: Failing to reconnect after Oracle shutdown abort (Apache::DBI)
Tim, We have that problem here at the U. We always have to restart the server. If there is some other way to fix this or some notification to the process I would greatly appreciate it. -tom P.S. We use Apache/mod_perl/DBI At 09:01 PM 11/1/1999 +, Tim Bunce wrote: Has anyone experienced a situation where a process (httpd for example) can't reconnect to Oracle after a "shutdown abort"? Tim. Tom Law [EMAIL PROTECTED] University of Iowa