[Catalyst] Re: Multiple FastCGI app servers with Apache2

2007-08-03 Thread A. Pagaltzis
* Tobias Kremer [EMAIL PROTECTED] [2007-08-02 16:45]:
 Does anyone know if it's possible to distribute requests to
 multiple external FastCGI servers with Apache2 + mod_fastcgi
 similar to the round-robin load-balancing approach lighttpd
 provides?

You just made me look for mod_proxy_fcgi again… a pity that the
effort seems to have stalled and died. It would have provided
FastCGI deployments with all the knobs and twiddles for load
balancing that mod_proxy offers.

Regards,
-- 
Aristotle Pagaltzis // http://plasmasturm.org/

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Ajax

2007-08-03 Thread Octavian Rasnita

Hi,

Which of the Ajax modules do you recommend using in a Catalyst app?
I am interested especially to know which of them work better with 
Template-Toolkit and DBIx::Class.


For the moment I am not interested in the most advanced, but in the most 
simple to use by someone that doesn't know Javascript very well.


Thank you.

Octavian


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Ajax

2007-08-03 Thread Michele Beltrame
Hi!

I too think jQuery is the most interesting, as it's lightweight and the API
quite elegant and easy to learn. The documentation is OK as well.

If you need complex widgets, there are the plugins. However, for a really
complex UI you'll probably better off with ExtJS of Dojo.

Michele.

-- 
Michele Beltrame
http://www.varlogarthas.net/
ICQ 76660101 - MSN [EMAIL PROTECTED]
Privacy: http://www.italpro.net/em.html


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Ajax

2007-08-03 Thread Octavian Rasnita

Ok, thank you all for your suggestions.

Octavian

- Original Message - 
From: Jon Schutz [EMAIL PROTECTED]

To: The elegant MVC web framework catalyst@lists.rawmode.org
Sent: Friday, August 03, 2007 1:28 PM
Subject: RE: [Catalyst] Ajax



I've been looking at this just in the last couple weeks so here are my
experiences...

I looked at the usual suspects and in the end settled on YUI, as it
seemed to have the most complete tutorials, examples, and API docs; also
has a good set of components, and, most importantly, the particular one
that I was after at the time.

My experience with dojo was that it was heavyweight, the examples killed
my browser half the time, and the docs were patchy, even though there
were a lot of them.

I glanced at jQuery; it's probably very good but I'd just come from
Yahoo where I found all of the docs laid out in a systematic and easy to
follow manner, and the jQuery page was just a bit overwhelming; looks
like all the info is there though.

Also looked at GWT; the thought of writing javascript in java just threw
me completely.  Why try to make plastic out of steel?

I started using Prototype when all I had to do was a few simple Ajax
callbacks; I've seen mst can Prototype more than once on this list, and
never quite understood why.  For doing the basics, it seemed more than
adequate to me.  It was probably mst's biases that sent me looking at
YUI and others rather than Scriptaculous for the pre-built components.

As someone who avoids writing javascript as much as possible, I've found
YUI very tolerable.

--

Jon

On Fri, 2007-08-03 at 11:09 +0200, Hartmaier Alexander wrote:

Hi Octavian!

They all have nothing to do with either the template language or the web
framework.
I started using Dojo for some nice fading effects and a date selector and 
imho

the docs are ok.

-abraxxa


 -Original Message-
 From: Octavian Rasnita [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 03, 2007 9:47 AM
 To: Catalyst@lists.rawmode.org
 Subject: [Catalyst] Ajax

 Hi,

 Which of the Ajax modules do you recommend using in a Catalyst app?
 I am interested especially to know which of them work better with
 Template-Toolkit and DBIx::Class.

 For the moment I am not interested in the most advanced, but in the
 most
 simple to use by someone that doesn't know Javascript very well.

 Thank you.

 Octavian


 ___
 List: Catalyst@lists.rawmode.org
 Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-
 archive.com/catalyst@lists.rawmode.org/
 Dev site: http://dev.catalyst.perl.org/

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: 
http://www.mail-archive.com/catalyst@lists.rawmode.org/

Dev site: http://dev.catalyst.perl.org/


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: 
http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/ 



___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Multiple FastCGI app servers with Apache2

2007-08-03 Thread Adeola Awoyemi

Tobias Kremer wrote:

Tobias Kremer wrote:

Does anyone know if it's possible to distribute requests to multiple

external

FastCGI servers with Apache2 + mod_fastcgi similar to the round-robin
load-balancing approach lighttpd provides?

This is possible (as I have done the same) by adding multiple instances of:

FastCgiExternalServer /path/to/MyApp/script/myapp_fastcgi.pl -host

127.0.0.1:55901

to the apache2 config file. Also make sure you use different ports or

sockets.


I already tried that and it gives me:

FastCgiExternalServer: redefinition of previously defined
class /srv/myapp.fcgi.

I'm using mod_fastcgi-SNAP-0404142202 with Apache 2.0.59 both compiled
from source.


Do you have each FastCgiExternalServer directive pointing to a different 
instance of the application. E.g.


FastCgiExternalServer /path/myapp_fastcgi.pl -host 127.0.0.1:55900
FastCgiExternalServer /path2/myapp_fastcgi.pl -host 127.0.0.1:55901

Adeola.

--
Creative Developer - Digital Craftsmen Ltd
Exmouth House, 3 Pine Street
London, EC1R 0JH
t: +44 20 7183 1410
f: +44 20 7099 5140
m: +44 79 3952 0786
w: http://www.digitalcraftsmen.net/


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Multiple FastCGI app servers with Apache2

2007-08-03 Thread Adeola Awoyemi

Tobias Kremer wrote:

Tobias Kremer wrote:

FastCgiExternalServer: redefinition of previously defined
class /srv/myapp.fcgi.

I'm using mod_fastcgi-SNAP-0404142202 with Apache 2.0.59 both compiled
from source.

Do you have each FastCgiExternalServer directive pointing to a different
instance of the application. E.g.

FastCgiExternalServer /path/myapp_fastcgi.pl -host 127.0.0.1:55900
FastCgiExternalServer /path2/myapp_fastcgi.pl -host 127.0.0.1:55901


Nope. What does your Alias directive look like for this? How do
you specify the other app instance (path2/myapp_fastcgi.pl)? Or do you
have a different approach that doesn't use Alias?


I used something like:
VirtualHost *
ServerName one.example.com
Alias / /path/myapp_fastcgi.pl/
...
/VirtualHost
VirtualHost *
ServerName two.example.com
Alias / /path2/myapp_fastcgi.pl/
...
/VirtualHost



Anyways, I just switched over to lighttpd on a dedicated machine and the
load-balancing worked perfectly within a couple of minutes :)

Oh well, I guess you don't need to faff around with fastcgi anymore then ;-)

Glad you have it sorted.

Adeola.

--
Creative Developer - Digital Craftsmen Ltd
Exmouth House, 3 Pine Street
London, EC1R 0JH
t: +44 20 7183 1410
f: +44 20 7099 5140
m: +44 79 3952 0786
w: http://www.digitalcraftsmen.net/


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


RE: [Catalyst] Ajax

2007-08-03 Thread Jon Schutz
I've been looking at this just in the last couple weeks so here are my
experiences...

I looked at the usual suspects and in the end settled on YUI, as it
seemed to have the most complete tutorials, examples, and API docs; also
has a good set of components, and, most importantly, the particular one
that I was after at the time.

My experience with dojo was that it was heavyweight, the examples killed
my browser half the time, and the docs were patchy, even though there
were a lot of them.  

I glanced at jQuery; it's probably very good but I'd just come from
Yahoo where I found all of the docs laid out in a systematic and easy to
follow manner, and the jQuery page was just a bit overwhelming; looks
like all the info is there though.

Also looked at GWT; the thought of writing javascript in java just threw
me completely.  Why try to make plastic out of steel?

I started using Prototype when all I had to do was a few simple Ajax
callbacks; I've seen mst can Prototype more than once on this list, and
never quite understood why.  For doing the basics, it seemed more than
adequate to me.  It was probably mst's biases that sent me looking at
YUI and others rather than Scriptaculous for the pre-built components.

As someone who avoids writing javascript as much as possible, I've found
YUI very tolerable.

-- 

Jon

On Fri, 2007-08-03 at 11:09 +0200, Hartmaier Alexander wrote:
 Hi Octavian!
 
 They all have nothing to do with either the template language or the web 
 framework.
 I started using Dojo for some nice fading effects and a date selector and 
 imho 
 the docs are ok.
 
 -abraxxa
 
 
  -Original Message-
  From: Octavian Rasnita [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 03, 2007 9:47 AM
  To: Catalyst@lists.rawmode.org
  Subject: [Catalyst] Ajax
 
  Hi,
 
  Which of the Ajax modules do you recommend using in a Catalyst app?
  I am interested especially to know which of them work better with
  Template-Toolkit and DBIx::Class.
 
  For the moment I am not interested in the most advanced, but in the
  most
  simple to use by someone that doesn't know Javascript very well.
 
  Thank you.
 
  Octavian
 
 
  ___
  List: Catalyst@lists.rawmode.org
  Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
  Searchable archive: http://www.mail-
  archive.com/catalyst@lists.rawmode.org/
  Dev site: http://dev.catalyst.perl.org/
 
 ___
 List: Catalyst@lists.rawmode.org
 Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
 Dev site: http://dev.catalyst.perl.org/

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


RE: [Catalyst] Ajax

2007-08-03 Thread Hartmaier Alexander
Hi Octavian!

They all have nothing to do with either the template language or the web 
framework.
I started using Dojo for some nice fading effects and a date selector and imho 
the docs are ok.

-abraxxa


 -Original Message-
 From: Octavian Rasnita [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 03, 2007 9:47 AM
 To: Catalyst@lists.rawmode.org
 Subject: [Catalyst] Ajax

 Hi,

 Which of the Ajax modules do you recommend using in a Catalyst app?
 I am interested especially to know which of them work better with
 Template-Toolkit and DBIx::Class.

 For the moment I am not interested in the most advanced, but in the
 most
 simple to use by someone that doesn't know Javascript very well.

 Thank you.

 Octavian


 ___
 List: Catalyst@lists.rawmode.org
 Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-
 archive.com/catalyst@lists.rawmode.org/
 Dev site: http://dev.catalyst.perl.org/



smime.p7s
Description: S/MIME cryptographic signature
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


RE: [Catalyst] Ajax

2007-08-03 Thread Tobias Kremer
Zitat von Hartmaier Alexander [EMAIL PROTECTED]:

 Hi Octavian!

 They all have nothing to do with either the template language or the web
 framework.
 I started using Dojo for some nice fading effects and a date selector and
 imho
 the docs are ok.

From the moment I started using jQuery I never looked back at the other JS
libraries out there. I think perl people will feel right at home with its API
and concepts and it never stopped to amaze me how easy and intuitively things
can be done. For me, Dojo comes in second with Prototype + Scriptaculous
definitely being the worst alternative although you'll get a lot of support as
it became the de facto standard. Other than that it's a giant hack :)

--Tobias

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Multiple FastCGI app servers with Apache2

2007-08-03 Thread Tobias Kremer
 Tobias Kremer wrote:
  FastCgiExternalServer: redefinition of previously defined
  class /srv/myapp.fcgi.
 
  I'm using mod_fastcgi-SNAP-0404142202 with Apache 2.0.59 both compiled
  from source.

 Do you have each FastCgiExternalServer directive pointing to a different
 instance of the application. E.g.

 FastCgiExternalServer /path/myapp_fastcgi.pl -host 127.0.0.1:55900
 FastCgiExternalServer /path2/myapp_fastcgi.pl -host 127.0.0.1:55901

Nope. What does your Alias directive look like for this? How do
you specify the other app instance (path2/myapp_fastcgi.pl)? Or do you
have a different approach that doesn't use Alias?

Anyways, I just switched over to lighttpd on a dedicated machine and the
load-balancing worked perfectly within a couple of minutes :)

--Tobias

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/