Galleries/ModPerl/Images

2001-10-10 Thread Tom Allen

I just caught the end of the discussion about Stonhenge::Pictures and 
Apache::Gallery ...
I have been working on setting up a photography site for myself and a 
few other digital photographers.  Is there a reason NOT to put the 
images in a database?  It certainly seemed to speed up pattern searches 
on my site.  The site is up in php right now (had to brush up for a 
job), but will be redev'd in mod_perl once I find out what the state of 
gallery management is for mod_perl.  
I've used a MySQL backend to hold the images in BLOBs (I have a 
table for each of the common sizes).  Uploads go to a images table 
(original size) and then the database resizes so it doesn't have to do 
it on the fly.   Maybe those of us doing gallery type stuff could get 
together and work on something in a more organized fashion?





Re: cc=gcc

2001-08-31 Thread Tom Allen

Jennya Dobreva wrote:

>  Hello all,
> 
>  I haven't installed the optional packages of cc in my machine.
>  Does somebody knows how can I replace all references for cc with gcc?
>  If I use "make CC=gcc" or alias of the cc that doesn't work long time.
>  That means I have to change some files, but I am not on clear which of
>  them.
> 
>  Thanks in advance!
> 
>  / Jennya Dobreva
> 
> 
could you not just ln -s /usr/local/bin/gcc /usr/local/bin/cc to make a 
symbolic link?
  That would keep you from having to do that forever.  Otherwise, its 
usually in the Makefile file, but there may be several you will have to 
edit, and its not a permanent solution.  I don't know if there is a 
configure directive.

Tom Allen





Re: Connection Reset on Mandrake Linux 8.0 / Apache 1.3.20 / ModPerl 1.26

2001-08-25 Thread Tom Allen

Philip Mak wrote:

> I tried telneting to your web server to see what's going on. Look at this:
> 
> $ telnet www.nonserviam.net 80
> Trying 65.34.152.103...
> Connected to nonserviam.net.
> Escape character is '^]'.
> GET /modperl/index.pl HTTP/1.1
> Host: www.nonserviam.net
> 
> Hello!Connection closed by foreign host.
> 
> The HTTP server did not return a proper HTTP header, which is why lynx
> doesn't like it.
> 
> Looking at your mod_perl configuration...
> 
>>PerlSendHeader Off
> 
> 
> Try doing it with PerlSendHeader On. You also might need to add this line
> at the beginning of your script:
> 
> print "Content-type: text/plain\n\n";
> 
> (or text/html)
> 
> 
Thanks a million.  I'm having one of those saturdays :-)  It works like 
a champ, of course.  I guess the only thing I don't understand is why 
with PerlSendHeader Off, isnt the webserver supposed to send headers?  
Does it not because it doesn't know what kind of content a .pl file is?  
In that case, shouldn't it send DefaultType (text/plain) ?

Thanks again, I'm going to run autobench again and see if we get better 
results :)





Connection Reset on Mandrake Linux 8.0 / Apache 1.3.20 / ModPerl 1.26

2001-08-25 Thread Tom Allen

I installed ModPerl today, am excited, it seems to *mostly* work, 
however, every request is ending in a connection reset error.  This is 
difficult to search for, since this is apparently a common problem in NT 
under some situations.  I am running :
Mandrake Linux 8.0 (kernel 2.4.3-20mdk)
Apache 1.3.20
ModPerl 1.26

This is the script I am running :

#!/usr/bin/perl -w
use strict;

if ($ENV{"MOD_PERL"}) {
   print "Hello!";
   } else {
   print "I'm in slow motion :)";
}

I have two copies of the script, one running under ScriptAlias, the 
other running Alias under mod_perl.  Here is the location block for the 
modperl version:


   AllowOverride None
   Options ExecCGI Indexes
   SetHandler perl-script
   PerlHandler Apache::Registry
   PerlSendHeader Off


It appears to work ( I get a webpage that says Hello!), in a Mozilla 
browser, but httperf shows a connection reset instead of a success 
message, the same goes for lynx (Alert!: Unexpected network read error; 
connection aborted.).  The ScriptAlias version works fine.  The two 
scripts can be seen online at

Regular CGI version : http://www.nonserviam.net/perl/index.pl
ModPerl version: http://www.nonserviam.net/modperl/index.pl

Any thoughts / suggestions would be greatly appreciated.