Re: CGI character translation???

2005-08-02 Thread Gedanken
On Tue, 2 Aug 2005, Thom Hehl wrote:

Possibly the LANG environment variable for the user you test with is not 
the same as the LANG var for the user the webserver runs as?

I had a similar thing i tried to debug a few weeks ago.  I couldnt 'su' to 
the user 'nobody' which was annoying so it took some time to figure out it 
was an environ problem.

ged

 OK, not exactly perl, but this was the closest list I could find.
 
 I am running a perl CGI script that launches a java program. This java program
 writes output files that are delimited using what I believe to be a unicode
 character. On most editors it looks like an upside-down question mark, which I
 believe is correct. On some editors, it shows as a degree symbol. This
 character is represented by the hex pair 0xc2a1. Here is the character 'ยก'.
 
 Now here is the problem. When I test my java program everything is great. When
 I test the perl script to launch the java program, all is still well. When I
 run my perl script through CGI, though, it replaces each occurrence of the
 above character with ??. I cannot understand why the CGI is interfering with
 file output from my program. This is not going through display, but is directly
 writing this file. Anyone have any ideas?
 
 Also, if anyone can suggest a better list, I'd appreciate that too.
 
 Thanks.
 

-- 
gedanken

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Gedanken
On Mon, 1 Aug 2005, Philip M. Gollucci wrote:

There is a running joke in my office that, no matter what the problem is, 
I simply blame NFS before hearing any details.  I am correct a surprising 
amount of the time =)

One quick caveat - properly unmount volumes when rebooting and such.  Due 
to one of those things that somehow grew beyond its original intent, we 
had a network of about 15 machines all mounting each other.  NFS 
chokes when a mount it expects to be there, isnt.  it takes it several 
minutes to give up.  One machine rebooting in such a big spiderweb cluster 
can cause massive problems without proper attention to cleanly unmounting 
and remounting shares.  And 'cascading' is usually such a lovely word...

gedanken

 You might try an NFS mount between the too.
 
 mount_nfs -L server:/path /local/path
 (FreeBSD)
 

-- 
gedanken


Re: [JOB] Perl Programmer for large-scale Apache/mod_perl development

2005-06-06 Thread Gedanken
On Mon, 6 Jun 2005, Perrin Harkins wrote:

What city?  Telecommute?  Travel Percentage?

gedanken

 On Mon, 2005-06-06 at 17:24 -0400, Sam Tregar wrote:
  Plus Three is looking for an experienced Perl programmer to join our
  team.
 
 P.S. This is where I work too.  We'd love to get some more mod_perl
 people on the team.
 
 - Perrin
 

-- 
gedanken


Re: [JOB] Perl Programmer for large-scale Apache/mod_perl development

2005-06-06 Thread Gedanken
On Mon, 6 Jun 2005, Perrin Harkins wrote:

Weird, read it twice and missed that.  Must be all the training to ignore 
all-caps in email =)

mfp

 On Mon, 2005-06-06 at 16:57 -0500, Gedanken wrote:
  What city?  Telecommute?  Travel Percentage?
 
 It does say NEW YORK CITY AREA ONLY in the very first line...
 
 - Perrin
 

-- 
gedanken


Re: Decaying Performance under newer apache/mp versions

2005-05-09 Thread Gedanken

What database are you connecting to, and how are you connecting to it?

-- 
gedanken


Re: Is it safe to share a read-only dbm file opened in parent modperl?

2005-02-15 Thread Gedanken
On Tue, 15 Feb 2005, Richard Chen wrote:

Im a big fan of reading read-only data files, config files, etc at server 
start up in startup.pl and sharing between children.  There could easily 
be problems with my approach and i welcome the criticism =)

The only time I have been burned with parent-child sharing is with 
database handles in forked processes.  you have to jump through hoops with 
mysql/dbi or else all kinds of corruption occurs when the child uses the 
handle created in the parent.

mfp


 Hi,
  
 I recall that in general it is not a good idea to open
 a file in the parent modperl process and then share it
 among the child modperl processes. One should open the
 file separately in each of the child processes. But what
 if the file is used just for read-only access? Is it still
 necessary to open the file separately in the child
 processes? It seems to be more efficient to share if it
 can be done reliably. 
  
 The practical-modperl book gives an example showing
 how to open a read-only dbm file from child init handler
 in each of the child process. But there is no rational given.
  
 For the few tests I have done using MLDBM, opening the
 file in the parent process and then sharing that among
 the child processes seems to work fine. But I would like to know
 if there are any potential problems associated with this practice.
  
 Thanks for any info.
  
 Richard Chen
 
 

 -
 Do you Yahoo!?
  Yahoo! Search presents - Jib Jab's 'Second Term'

-- 
gedanken


Re: make test fails

2004-11-23 Thread Gedanken
On Tue, 23 Nov 2004, Stas Bekman wrote:

  I noticed during the
  rebuild that apache configure thinks my linker does not support shared
  objects (it does) and builds statically as a result.  
 
 Submit a bug report to httpd-dev?

Do you happen to be using gcc 3.4.x with the -mcpu flag? (if so, use 
-mtune)

gedanken
 


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: Getting started with mod_perl

2004-04-08 Thread Gedanken
On Thu, 8 Apr 2004, Stas Bekman wrote:

 My mod_perl 2 tutorial is on Monday July 26, 1:45pm to 5:15pm. Feel free to 
 stop by and learn so you can do more than just mention it.
 
forgive my ignornace, but where?


-- 
gedanken


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: Problem when trying to load Apache::Constants

2004-02-19 Thread Gedanken
On Thu, 19 Feb 2004, Sasan Dashtinezhad wrote:

What are the version numbers/info for the mod_perl and apache and other 
packages you are working with?

gedanken

 I ahve a piece of code that tries to use Apache::Constants through
 use Apache::Constants qw( REDIRECT );
 But when this code is run, I get the following error message:
 [error] Can't locate object method boot via package mod_perl at 
 /fs/piranha2/sasan/PERL/Apache/Constants.pm line 8.!
 
 I searched the Web, and found out that somebody has come across this 
 problem ebfore, and somebody else has said cured in CVS tree but that 
 was in a mail archive, and I'm not sure how can I fix the problem on my 
 machine. Any help will be strongly appreciated.
 
 --Sasan
 
 
 
 
 

-- 
gedanken


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html