Re: How to attach a hashref or other data to the request object?

2003-09-29 Thread Praveen Ray
Try the pnotes method: $r->pnotes(MyHash => $your_session_hash); then later in other handlers... my $sess_hash = $r->pnotes('MyHash'); On Mon, 2003-09-29 at 17:53, Matisse Enzer wrote: > Is there an appropriate way in mod_perl 2 for me to take a hashref > and somehow add it to the Apache request

Re: Perl Class destory

2003-09-30 Thread Praveen Ray
It's just like any other perl object..If you keep a reference to your object in global or package namespace,it's destroy will never be called since modules under mod_perl are not unloaded unlink cgi. If your object is lexically scoped,it'll be cleaned upon scope exit. On Tue, 2003-09-30 at 23:13,

Re: Scope of Apache request object and Apache::Session scoping.

2003-10-01 Thread Praveen Ray
Good Question. Does $r get freed after every request? In any case, best is to install a PerlCleanupHandler and set untie %$session in it. On Wed, 2003-10-01 at 16:23, Matisse Enzer wrote: > In answer to another question Perrin Harkins <[EMAIL PROTECTED]> wrote: > > > I suggest you go over the co

Apache::Request

2005-03-27 Thread Praveen Ray
Hi Has Apache::Request been Ported to mod perl 2 yet? What is the recommended way to read Request Parameters under mod perl 2? thx - Praveen __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com

Re: perl.apache.org down?

2005-07-19 Thread Praveen Ray
Me neither! Someone, please do something. --- angie ahl <[EMAIL PROTECTED]> wrote: > Not sure who to report to so posting here sorry. > > I can't connect to http://perl.apache.org can get through > to the main > apache site fine though. > > Angie > - Praveen _

Re: Version Control

2005-07-27 Thread Praveen Ray
Depends on your team size and your development process. subversion is pretty good. However, it doesn't do merging of branches as neatly as I'd like it to. But if you dont branch too often, it's excellent. --- David Hofmann <[EMAIL PROTECTED]> wrote: > My company looking at setting up some kind

Re: Apache::Singleton (sharing one object)

2005-08-12 Thread Praveen Ray
Shouldn't you be using the database itself to store the state? Will Apache::Singleton instance replicate itself if you were to run your application on multiple servers behind load balancers (for scalability and fail-over purposes)? If yes, you probably should usw Storage Module to save your SQL obj

Clearsilver Templates

2005-08-17 Thread Praveen Ray
Hi Does anyone have any experience of using clearsilver (http://www.clearsilver.net) with mod_perl (1 or 2)? Any comparisons of this with Template-Toolkit? The Template-Toolkit is getting rather slow for our needs and I'm looking around for alternatives. thanks - Praveen _

Re: Clearsilver Templates

2005-08-18 Thread Praveen Ray
> > The > > Template-Toolkit is getting rather slow for our needs > and > > I'm looking around for alternatives. > > That's pretty surprising. Pure template processing is > your bottleneck? > Are you doing some kind of data processing or data > retrieval from > inside of your templates? I su

Re: hi

2005-08-30 Thread Praveen Ray
First upgrade to mod_perl2. Throw away the beta code (1.99_16). Install Apache2 and mod_perl2 fresh. The installation documents on mod_perl site are very comprehensive. Then, report back if the problem persists. --- ravikumar <[EMAIL PROTECTED]> wrote: > hi, > i have installed Apache-2.0.

Re: a faster html::template?

2005-09-05 Thread Praveen Ray
> > 1500 record? don't do it: page or use AJAX. > > Been there. It was horrible. > I'd second that..1500 seems too high for human consumption. Anyway, for such large datasets you can try going XML/XSLT way. XSLT transforms are VERY fast (use LibXSLT) - downside being XSL is a super verbose and

Re: MP2 - DBI Problem only under mod_perl: OCIEnvNlsCreate (check ORACLE_HOME and NLS settings)

2005-09-06 Thread Praveen Ray
--- Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Tue, 2005-09-06 at 06:23 -0700, Thomas Hilbig wrote: > > I am struggling with a (simple?) DBI problem under MP2 > > on Fedora Core 3. A script that uses Oracle-DBI works > > under regular CGI but fails under MP2 with the > > following error: > >

Re: a faster html::template?

2005-09-09 Thread Praveen Ray
Here is a very very simple script comparing three approaches to build a large html table. I was surprised to see TT2 being the fastest..run it yourself and see. Note that XSLT timings include the time to build XML data string since in real life all data comes from Relational Database that must be

Re: a faster html::template?

2005-09-09 Thread Praveen Ray
--- Michael Peters <[EMAIL PROTECTED]> wrote: > > > Praveen Ray wrote: > > Here is a very very simple script comparing three > > approaches to build a large html table. > > would you mind sending this script as an attachment. > Email clients tend >

Re: a faster html::template?

2005-09-09 Thread Praveen Ray
> Not only that but your XSLT is very badly written. If I > find time I'll > send you a better version. please do. I'm no XSLT guru :( - Praveen __ Click here to donate to the Hurricane Katrina relief effor

Perl and ASP.Net

2007-04-23 Thread Praveen Ray
Hello people Trying to look for the *best* perl web framework out there and looking for suggestions. I've looked at Catalyst, Jifty and bunch of other frameworks. My biggest gripe about these web frameworks is the lack of reusable UI controls aka ASP.Net. One reason ASP.Net has caught on so qui

Re: Perl and ASP.Net

2007-04-24 Thread Praveen Ray
>> Most geeks make lousy web designers and would rather fiddle >> with the back end server code than CSS and javascript. >I agree that I'm a lousy designer, but in this day Javascript (and CSS to some >extent) are becoming more and more important. Javascript is a real programming >language relega

Re: Perl and ASP.Net

2007-04-25 Thread Praveen Ray
The bigger issue is not of client or server side controls. What's sorely missing is a recommended best practice pattern that mod-perl people should follow to package and deliver chunks of functionality. I'm sure everyone here has his/her own little framework of serving javascript, css, and html.

Perl and ASP.Net

2007-05-06 Thread Praveen Ray
Thanks everyone for their inputs. I still think we can learn a few things from .Net design - not everything Microsoft produces is junk :) That said, has anyone on this list ever tried PerlNet (http://aspn.activestate.com/ASPN/docs/PerlDevKit) from ActiveState? Good/Bad ? Fine Prints? - Prav

reading text/xml data in response handler

2007-07-16 Thread Praveen Ray
Hello Everyone I've a javascript client library sending text/xml data like this: var myRequest = new jsx3.net.Request(); myRequest.open("POST","http://myServlet";); myRequest.send(myDocument.getXML()); where jxs3.net.Request is an abstraction built over XMLHttp(It's Tibco GI javascript library i

Re: copilation command

2007-08-10 Thread Praveen Ray
Prapulla, Please see how others ask questions on this list. You need to provide sufficient details. Your question doesn't even make much sense. There is nothing to 'compile' in mod-perl, unlike java and C#. What are you trying to achieve? - Praveen - Original Message From: prapul

Re: multiple requires: AND or OR ?

2007-11-13 Thread Praveen Ray
Both should return OK under normal circumstances - unless you want to short circuit another_test, in which case, 'a_test' should return DONE. http://perl.apache.org/docs/2.0/user/handlers/intro.html#Handler_Return_Values - Praveen - Original Message From: Martijn <[EMAIL PROTECTED