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));
>
>
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/
___
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
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
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
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
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
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 {
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
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
? 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
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 <
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
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
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
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
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 =&
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://
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
--
___
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
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
\$pidfile,
'manager|M=s' => \$manager,
'daemon|d'=> \$detach,
'keeperr|e' => \$keep_stderr,
);
TestApp->run(
$listen,
{ nproc => $nproc,
pidfile => $pidfile,
manager => $manager,
detach => $
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:
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
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.
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
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
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
?
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
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
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 {
31 matches
Mail list logo