[Catalyst] Re: possible to get uri fragment?

2010-06-15 Thread Fayland Lam
hmm, it seems server can't get #fragment because the browser doesn't send it to server? so leave it. Thanks On Tue, Jun 15, 2010 at 4:47 PM, Fayland Lam wrote: > see, for example I have some code like > > $c->log->debug(Dumper(\$c->req->uri)); > >

[Catalyst] possible to get uri fragment?

2010-06-15 Thread Fayland Lam
ossible to get 'test' in the URL? (it's mainly for some ajax using, jQuery address changes the things after # and we want to show page depends on things after # after sharing) Thanks -- Fayland Lam // http://www.fayland.org/ ___

[Catalyst] Re: Language selection in URLs

2009-11-17 Thread Fayland Lam
why shouldn't you use domain as the part of the language? like en.example.com, cn.example.com and something like that? Thanks. Octavian Râsnita wrote: From: "Bill Moseley" What's your preferred approach to specifying a language tag in a URL? Is there strong argument for one over the

[Catalyst] Re: Catalyst benchmark 5.7 VS 5.8

2009-09-28 Thread Fayland Lam
Thanks for that. (Toby Corkindale too) I'll do more research and update you later. Thanks. Andrew Rodland wrote: On Monday 28 September 2009 12:56:36 am Fayland Lam wrote: I'm wondering if someone here did a benchmark between Catalyst 5.7 and 5.8 Benchmark, as requested. View th

[Catalyst] Re: Catalyst benchmark 5.7 VS 5.8

2009-09-28 Thread Fayland Lam
condition. so 5.7 is really better than 5.8 under siege. Thanks. Cheers, Toby - Original Message ----- From: Fayland Lam To: catalyst@lists.scsys.co.uk Sent: Mon, 28 Sep 2009 15:56:36 +1000 (EST) Subject: [Catalyst] Catalyst benchmark 5.7 VS 5.8 I'm wondering if someone her

[Catalyst] Re: Catalyst benchmark 5.7 VS 5.8

2009-09-28 Thread Fayland Lam
Tomas Doran wrote: Fayland Lam wrote: from the top, each httpd takes 20M more RAM in 5.8 compared with 5.7 No, that'll be 20Mb of RAM _in total_, as all of those pages should be shared between your apache processes (given that you're preloading your application in the parent proce

[Catalyst] Catalyst benchmark 5.7 VS 5.8

2009-09-27 Thread Fayland Lam
000 S 15.6 4.1 0:02.56 httpd in this case, I really can't let my boss agree me to upgrade the Catalyst. is it normal? any thoughts? Thanks. -- Fayland Lam // http://www.fayland.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.s

[Catalyst] patch for C::P::Session::Store::Cookie

2009-06-08 Thread Fayland Lam
hey, it's a patch for Catalyst::Plugin::Session::Store::Cookie. to make cookie_domain more configurable. __PACKAGE__->config->{session}->{cookie_domain} = sub { my $c = shift; if ( $c->req->uri->host =~ /xxx\.com/ ) { return '.xxx.com'; } else {

[Catalyst] Re: How to clear off request parameter element

2009-02-23 Thread Fayland Lam
kakim...@tpg.com.au wrote: hi all I have an app with a listing method in the controller. It goes a little like this: sub list { # get object from model based on $c->request->param('id'); IF (object) { return; } ELSE { return all objects belon

[Catalyst] how many RAM used is normal

2008-06-05 Thread Fayland Lam
costs? Thanks. -- Fayland Lam // http://www.fayland.org/ Foorum based on Catalyst // http://www.foorumbbs.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www

[Catalyst] about POST size

2008-05-20 Thread Fayland Lam
? any hint is really appreciated. Thanks. -- Fayland Lam // http://www.fayland.org/ Foorum based on Catalyst // http://www.foorumbbs.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Sear

[Catalyst] Re: about req.param

2008-04-11 Thread Fayland Lam
Tatsuhiko Miyagawa wrote: Yes, because it's evaluated in a list context. I prefer doing $c->req->params->{a} for that reason. params is full of traps too. when it's from POST. we need use $c->req->params->{a}->[0]; I hate it. On 4/11/08, Fayland Lam <

[Catalyst] Re: about req.param

2008-04-11 Thread Fayland Lam
Fayland Lam wrote: code as follows: sub test : Local { my ($self, $c) = @_; my $test = { a => $c->req->param('a'), b => $c->req->param('b'), c => $c->req->param('c'), }; $c->res->body(Dumper(\$t

[Catalyst] about req.param

2008-04-11 Thread Fayland Lam
hen visit as test?b=1 it shows $VAR1 = \{ '1' => 'c', 'a' => 'b' }; hmm, a trap I think. need use $c->req->param('a') || ''. something not so good. -- Fayland Lam // http://www.fayland.org/ Foo

[Catalyst] Re: problem on $c->res->body(*STDOUT);

2008-03-14 Thread Fayland Lam
Matt Lawrence wrote: Fayland Lam wrote: sub test_body : Local { my ($self, $c) = @_; $c->res->body(*STDOUT); print "a\n"; print "b\n"; } Have you tried passing the glob as a reference? $c->res->body(\*STDOUT); It looks like that's at least

[Catalyst] problem on $c->res->body(*STDOUT);

2008-03-13 Thread Fayland Lam
tent-Length: 31 Set-Cookie: zorpia_session=6ef8f841a6f678e09621936e10c52f33eb442f57; path=/ Status: 200 X-Catalyst: 5.7012 *Catalyst::Engine::HTTP::Remote how to get the correct stuff. I tried to call $c->finalize_headers(); before ->body, no help. Thanks. -- Fayland Lam // http://w

[Catalyst] looking for suggestion on both cron and pm

2008-01-11 Thread Fayland Lam
class => 'Foorum::Adaptor::User' ); 1; so that we can do in MyApp: my $user = $c->model('User')->get( { username => $username } ); or cron script: use Foorum::Adaptor::User; my $user_model = new Foorum::Adaptor::User(); my $user = $user_model->get( { user_id =&

[Catalyst] two Catalyst flaws

2008-01-03 Thread Fayland Lam
orward, without req, without res. just get $c->model and $c->cache like? I don't want this $c to load any Controller modules or View modules. anyway, Catalyst is a great framework. it ease our development a lot. Thanks for all your work, Catalyst Team! -- Fayland Lam // http://

[Catalyst] Re: Launch of new (to Catalyst) site

2008-01-02 Thread Fayland Lam
csys.co.uk/ Dev site: http://dev.catalyst.perl.org/ -- Fayland Lam // http://www.fayland.org/ Foorum based on Catalyst // http://www.foorumbbs.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinf

[Catalyst] Re: [RFC] Loading Plugins from lib/MyApp/Plugins

2007-12-18 Thread Fayland Lam
-- ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/ -- Fayland Lam // http://www.fayland.or

[Catalyst] New Site: http://www.foorumbbs.com/ and open source

2007-12-15 Thread Fayland Lam
hi, http://www.foorumbbs.com/ u can get the source code from http://code.google.com/p/foorum/ and welcome to join us to develop a forum system based on Catalyst. Enjoy! -- Fayland Lam // http://www.fayland.org/ ___ List: Catalyst

[Catalyst] Re: Dreamhost help

2007-12-14 Thread Fayland Lam
\$pidfile, 'manager|M=s' => \$manager, 'daemon|d'=> \$detach, 'keeperr|e' => \$keep_stderr, ); TestApp->run( $listen, { nproc => $nproc, pidfile => $pidfile, manager => $manager, detach => $

[Catalyst] Re: Dreamhost help

2007-12-14 Thread Fayland Lam
more aggressive about killing long running processes with other names. Executables should be in 755 or better. IIRC DreamHost will not let any CGIs run (don't know about FCGIs) with anything more permissive than that. -Ashley On Dec 13, 2007, at 10:25 PM, Fayland Lam wrote:

[Catalyst] Re: Dreamhost help

2007-12-13 Thread Fayland Lam
http://www.foorumbbs.com/test.fcgi is running so FastCGI is enabled. hmm. I have no idea what I should do with it. I just catalyst.pl TestApp, then change filename of fastcgi.pl. Any more help is appreciated. Thanks. On Dec 13, 2007, at 10:25 PM, Fayland Lam wrote: I run catalyst.pl TestApp the

[Catalyst] Dreamhost help

2007-12-13 Thread Fayland Lam
3.14.76.87] FastCGI: incomplete headers (0 bytes) received from server "/home/faylandfoorum/foorumbbs.com/TestApp/script/testapp_fastcgi.fcgi" any tips? anyone use dreamhost? -- Fayland Lam // http://www.fayland.org/ ___ List: Catalyst@lists.

[Catalyst] Re: any plan for advent calendar?

2007-12-02 Thread Fayland Lam
thanks, guys. Dylan Vanderhoof wrote: http://catalyst.perl.org/calendar/2007 -Original Message- From: Fayland Lam [mailto:[EMAIL PROTECTED] Sent: Sunday, December 02, 2007 5:01 PM To: Catalyst@lists.scsys.co.uk Subject: [Catalyst] any plan for advent calendar? 2008 Catalyst Advent

[Catalyst] any plan for advent calendar?

2007-12-02 Thread Fayland Lam
2008 Catalyst Advent Calendar? -- Fayland Lam // http://www.fayland.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED

[Catalyst] Re: [OT] Search Solution

2007-11-08 Thread Fayland Lam
alyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/ -- Fayland Lam // http://www.fayland.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/lis

[Catalyst] [OT] Search Solution

2007-11-08 Thread Fayland Lam
? anyone have any idea? Thanks. -- Fayland Lam // http://www.fayland.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED

[Catalyst] Re: is it CPAN worthy?

2007-10-11 Thread Fayland Lam
Matt S Trout wrote: On Wed, Oct 10, 2007 at 10:21:49PM +, Fayland Lam wrote: A module to let user pick components. You can pass any Module::Pluggable::Object search path / include / exclude parameter via MyApp->config->{setup_components}. I don't see what this code achieves

[Catalyst] is it CPAN worthy?

2007-10-10 Thread Fayland Lam
A module to let user pick components. -- Fayland Lam // http://www.fayland.org/ package Catalyst::Plugin::PickComponents; use strict; use warnings; use vars qw/$VERSION/; $VERSION = '0.01'; use Module::Pluggable::Object; use Catalyst::Utils (); use NEXT; sub setup_components {