fwiw, earlier this week i ran some simple 'ab -n 100 -c 10'
benchmarks comparing an existing complex Mason site with the same
site sitting behind a simple Catalyst front end.
the results showed nearly identical performance, with Mason-only
winning slightly for 100 requests, and
If i leave out (from my httpd.conf)
PerlModule MyApp
then everything is loaded at the first request. i would prefer to
preload so the first request is faster, but if i add the PerlModule
directive to the apache (Apache/1.3.36 (Unix) mod_perl/1.29) config,
then i get
thanks, perrin!
that works! do you know why this makes a difference?
On Nov 22, 2006, at 10:04 AM, Perrin Harkins wrote:
Michael Reece wrote:
PerlModule MyApp
Try this instead:
Perl
use MyApp;
/Perl
Or do that in a separate startup.pl script called from httpd.conf
On Dec 5, 2006, at 6:06 PM, John Siracusa wrote:
My stance has always been that I don't mind code in templates so
long as
the sole purpose of that code is to layout and format the data.
IOW, a view
should never retrieve, create, or modify data. It should just move
around
and format
On Jan 2, 2007, at 7:28 AM, Matt S Trout wrote:
On 21 Dec 2006, at 18:05, Michael Reece wrote:
be wary of putting your base controller class in the MyApp/
Controller/ directory, because catalyst will load it as a
controller itself. which sucks if you want to put default
inheritable
will things break if i delete the Makefile.PL and define a home in
the config?
if so, then my problem is solved!
On Jan 2, 2007, at 9:26 AM, Chisel Wright wrote:
On Tue, Jan 02, 2007 at 09:18:54AM -0800, Michael Reece wrote:
we do our best to let you organise stuff how -you- want to rather
i am trying to follow the recipe mentioned here:
http://search.cpan.org/~nuffin/Catalyst-Controller-BindLex-0.03/lib/
Catalyst/Controller/BindLex.pm#RECIPES
__PACKAGE__-config-{bindlex}{Param} = sub { $_[0]-req-
params };
after the obvious s/=/=/, i put this line in MyApp/Controller.pm
, 2007, at 10:47 AM, Michael Reece wrote:
i am trying to follow the recipe mentioned here:
http://search.cpan.org/~nuffin/Catalyst-Controller-BindLex-0.03/lib/
Catalyst/Controller/BindLex.pm#RECIPES
__PACKAGE__-config-{bindlex}{Param} = sub { $_[0]-req-
params };
after the obvious s
$c-uri_for() is great and all, but i usually am more interested in
getting a uri for an action rather than a uri to a template (or
public path).
(incidentally, i feel uri_for would be better named uri_to, and the
sub below named uri_for, but i digress.)
the following code is what i have
On Jan 3, 2007, at 12:04 PM, Ash Berlin wrote:
Michael Reece wrote:
$c-uri_for() is great and all, but i usually am more interested
in getting a uri for an action rather than a uri to a template (or
public path).
(incidentally, i feel uri_for would be better named uri_to, and
the sub
here's one
[.]_.*[.]pm
On Jan 26, 2007, at 2:27 PM, Matt S Trout wrote:
Bored now. I've suggested to a dozen people we should put together
a list of common VCS and editor file matches to submit back to
Module::Pluggable as default skips. So far, I've had lots of
complaints and two
On Feb 6, 2007, at 6:55 AM, Matt S Trout wrote:
On 6 Feb 2007, at 14:30, Fernan Aguero wrote:
The other could be more annoying for a beginner: you have to
learn a new set of syntax rules to use TT. Even if there's
already another book about TT, you might want to at least skim
through some
i am trying to do something along the lines of:
sub foo : Local HelloWorld {
my ($self, $c) = @_;
$c-res-body( $c-stash-{hello} ); # was already set to 'world'
because of attribute HelloWorld
}
is this possible? any tutorials around that deal with such things?
-{hello} = 'world';
return $self-NEXT::execute(@_);
}
On Feb 14, 2007, at 4:40 PM, Michael Reece wrote:
i am trying to do something along the lines of:
sub foo : Local HelloWorld {
my ($self, $c) = @_;
$c-res-body( $c-stash-{hello} ); # was already set to 'world'
because of attribute
@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
---
michael reece :: software engineer :: [EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail
this brings up an interesting difference in side-effects of
Catalyst::Log-error() and Log::Log4perl-error().
in the course of trying to integrate catalyst logging with other
existing Log4Perl loggers in the codebase, i had tried first setting
catalyst's logger to be the global logger,
you will find that most here use Template Toolkit, but i prefer
HTML::Mason, because i can do really interesting things with an OO-
based templating system. but embedding perl into HTML may not be
what you mean by promotes good practices .. mason is pretty
agnostic in that regard, but you
On Apr 3, 2007, at 9:18 AM, Luis Azevedo wrote:
Hi All,
In Root.pm, auto action I am trying to break the execution of
chain of
Actions.
To be more exact, whenever I detect I loose connection to a socket
or cookie
session, I want to redirect the user to a login action, not
rendering
___
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/
---
michael reece :: software engineer :: [EMAIL
___
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/
---
michael reece :: software engineer :: [EMAIL PROTECTED
/
catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
---
michael reece :: software engineer :: [EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http
now the next time this happens, googling for cpantools.org will find
this thread and all will be clear!
On May 11, 2007, at 4:40 AM, A. Pagaltzis wrote:
* Daniel Hulme [EMAIL PROTECTED] [2007-05-10 23:50]:
No, but on finding it not working my first guess was that he
mistyped it, so I tried
___
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/
---
michael reece :: software engineer :: [EMAIL PROTECTED
On May 22, 2007, at 7:58 AM, Matt S Trout wrote:
item = user.items.find(params[:id])
my $item = $user-items-find($item_id);
new_item = user.items.create!(params[:item])
my $new_item = $user-items-create(\%item_info);
that's great; i thought i had recalled something similar, but
/
---
michael reece :: software engineer :: [EMAIL PROTECTED]
___
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
On Jun 14, 2007, at 9:20 AM, Bill Moseley wrote:
On Thu, Jun 14, 2007 at 11:34:52AM +0200, Leo Cacciari wrote:
As I see it, the controller should tell the view 'I want the user
entering the following data, each one with its data-type, and obeying
the following constraints.
I take that a
On Jun 15, 2007, at 8:11 AM, Kyoko,Shikamata wrote:
Hi,
I'd like to execute other cgi program at /cgi-bin/.
I set the following to httpd.conf. But, I cannot execute cgi.
Please let me know my mistake .
-
Perl
use lib qw( /var/www/MyApp/lib );
/Perl
PerlModule MyApp
Location /
either use iterators in both controller and template, or use array-
refs in both, but don't try to use both at once with only one variable.
On Jun 19, 2007, at 12:09 PM, John Goulah wrote:
On 6/19/07, Michael Reece [EMAIL PROTECTED] wrote:
i believe you are getting an array-ref because you
@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/
---
michael reece :: software engineer :: [EMAIL PROTECTED
that i shouldn't need to make any changes for
backwards compatibility..?
On Jul 9, 2007, at 9:46 AM, Michael Reece wrote:
this does break my custom authentication. i am still investigating
why..
On Jul 7, 2007, at 12:50 PM, Jay K wrote:
Hey all,
Big news! With the most excellent
, Michael Reece wrote:
the short answer is it does not call my store's get_user method,
despite
__PACKAGE__-config(
authentication = { store =
'MyApp::Plugin::Authentication::DBI::User'}
);
the error i get is:
[debug] find_user: unable to locate a store matching the requested
realm
i may be the exception, but i have no hesitation in using perl (or
other templating languages) to generate html, javascript, css, or
even more perl.
it may be harder to debug, but the productivity gains are worth it.
i think RoR's rjs stuff is really keen, too.
On Jul 10, 2007, at 10:08
://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/
catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/
---
michael reece :: software engineer :: [EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
by several times per page load are you referring to multiple
requests to render one page? (ie, if you have your css/js/etc served
through your app)
On Aug 9, 2007, at 8:04 AM, John Lifsey - Contractor - wrote:
Is there a method in C::Req (or any other part of Cat) that I can
overload
34 matches
Mail list logo