Re: [Catalyst] Re: Shoot out -- Catalyst / RoR / Other MVC apps --

2007-05-11 Thread David Morel


Le 10 mai 07 à 17:23, Tobias Kremer a écrit :

But, this does raise another question I have. There is plethora of  
modules
that are to help Perl be more OO like and stricter  which is  
cool, but
are there any good de-facto standard modules that are used by the  
majority of

people wishing to be more OO compliant.


That'd be Moose, I suppose - A complete modern object system for  
Perl 5:


http://search.cpan.org/dist/Moose/

Haven't really looked into it yet but I always wanted to know if there
are any plans on incorporating this into the Perl 5 core


RGARCIA tells me : Moose doesn't need to be in the core. However,  
bleadperl now has an mro pragma that permits to switch on a per- 
class basis to the C3 MRO (and with more performance than with non- 
core implementations).


David Morel





PGP.sig
Description: Ceci est une signature électronique PGP
___
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] C::P::StackTrace and HTML::FormFu

2007-05-11 Thread Tobias Kremer
Following up on my post from yesterday to the HTML::FormFu mailing list
I found out that using the Catalyst::Plugin::StackTrace plugin together
with HTML::FormFu (and Catalyst::Controller::HTML::FormFu) results in an
enormous slowdown when using lots of options for e.g. select elements.

See one of my earlier posts here:
http://lists.scsys.co.uk/pipermail/html-formfu/2007-May/11.html

The culprit is the option respect_overload = 1 given to
Devel::StackTrace on line 63 of C::P::StackTrace (0.06). After removing
it performance of HTML::FormFu is fully restored. The option was not
present in earlier versions of C::P::StackTrace (0.02), that's why it
all ran well on only 1 out of 3 of my machines, which incidentally had
the old version installed.

Now, I'm not really sure what's the best way to fix this, so I thought
maybe some of you may have an advice. For now, I just disabled the
StackTrace plugin.

Thanks!

--Tobias

___ _  _
(web) http://www.funkreich.de
(last.fm) http://www.last.fm/user/soulchild77

___
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] [patch] Wrong Content-Length value error - Catalyst::Engine::CGI

2007-05-11 Thread Kazuma Shiraiwa

OK.I understood.
I seek more what is the cause of error.

Thank you.

--
Kazuma Shiraiwa

2007/5/11, Andy Grundman [EMAIL PROTECTED]:


On May 10, 2007, at 12:33 PM, Kazuma Shiraiwa wrote:

 Thanks for your attention.
 Sorry.My explanation was insufficient.

 CPU: Xeon2.6GHz
 OS: CentOS4 Server -x86_64 - upgrade CentOS4.4 for yum
 (Linux 2.6.9-42.0.3.ELsmp x86_64 GNU/Linux)
 Perl: v5.8.8 built for x86_64-linux
 WebServer: Apache/2.0.52

 It doesn't happen every POST.
 POST size is about 4096 byte over.
 It happen form style form method=post.
 It doesn't happen form style form method=post
 enctype=multipart/form-data up to now.

 I understand.
 read FILEHANDLE, SCALAR, LENGTH
  After it saves buffer to LENGTH, it returns.LENGTH is return size.
 sysread FILEHANDLE, SCALAR, LENGTH
  As soon as return buffer.LENGTH is max size.

 sysread return values, and read return value isn't same always.
 Is it a misunderstanding?

Well, all your test scripts seem to do is show that the chunks are
read in different sizes, this is perfectly normal.  But the end
result is the same: all the bits get read and accounted for.  I don't
see the problem here.

___
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] Re: Shoot out -- Catalyst / RoR / Other MVC apps --

2007-05-11 Thread Matt S Trout
On Fri, May 11, 2007 at 10:43:57AM +0200, David Morel wrote:
 
 Le 10 mai 07 à 17:23, Tobias Kremer a écrit :
 
 But, this does raise another question I have. There is plethora of  
 modules
 that are to help Perl be more OO like and stricter  which is  
 cool, but
 are there any good de-facto standard modules that are used by the  
 majority of
 people wishing to be more OO compliant.
 
 That'd be Moose, I suppose - A complete modern object system for  
 Perl 5:
 
 http://search.cpan.org/dist/Moose/
 
 Haven't really looked into it yet but I always wanted to know if there
 are any plans on incorporating this into the Perl 5 core

Well, you'll find it's being standardised upon by a lot of people anyway
- Reaction is Moose from the ground up and I think now the immutable stuff's
landed (which cures most of the Moose is slow complaints) it's pretty
likely Catalyst and DBIx::Class will end up being Moose in the not too
distant future.
 
 RGARCIA tells me : Moose doesn't need to be in the core. However,  
 bleadperl now has an mro pragma that permits to switch on a per- 
 class basis to the C3 MRO (and with more performance than with non- 
 core implementations).

There's not really any reason for Moose to be in the core - Rafael's quite
sensible in his decisions about that and I think was quite shocked when I
chatted to him about some stuff at YAPC and wasn't suggesting any of it
went in core, just wondering how I could co-operate with core :)

Those of you who're using DBIx::Class should be on the dbix-class list and
would then already be aware of the mro pragma since it was written by our
very own (much respected*) Brandon Black to support the XS implementation of
Class::C3, which in turn massively reduces the load time hit of DBIx::Class.

* aka completely insane man who works in areas I fear to tread :)

-- 
  Matt S Trout   Need help with your Catalyst or DBIx::Class project?
   Technical DirectorWant a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/ 

___
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] How do I have Catalyst access a Controller based on only part of the PATH_INFO

2007-05-11 Thread Steve H

Hi

I'm used to (albeit a recent Catalyst convert) creating a Controller based 
on the whole name of the PATH_INFO, e.g.

 http://localhost:3000/some/structure/like/this
being:
 package my_app::Controller::some::structure::like::this
In a file my_app/lib/my_app/Controller/some/structure/like/this.pm
How would I have a Controller like:
 package my_app::Controller::some::structure
In a file my_app/lib/my_app/Controller/some/structure.pm
and be able to access the remaining like/this via PATH_INFO.

In case you are wondering why... I was wanting to have a catalogue menu hit 
back into the app at a common point, and use the remaining PATH_INFO to 
indicate the specifics of selection made.


This seems like it'd be pretty ordinary to be able to do... just that I 
can't see how to from the Catalyst documentation.  It's probably a case of 
me not being able to see the wood for the trees ... or it being something 
obvious yet documented in an implicit way dunno

going nuts
Steve

_
Advertisement: Its simple! Sell your car for just $30 at carsales.com.au 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801577%2Fpi%5F1005244%2Fai%5F838588_t=762955845_r=tig_may07_m=EXT



___
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] How do I have Catalyst access a Controller based on only part of the PATH_INFO

2007-05-11 Thread Matt S Trout
On Sat, May 12, 2007 at 12:20:53AM +1000, Steve H wrote:
 Hi
 
 I'm used to (albeit a recent Catalyst convert) creating a Controller based 
 on the whole name of the PATH_INFO, e.g.
  http://localhost:3000/some/structure/like/this
 being:
  package my_app::Controller::some::structure::like::this
 In a file my_app/lib/my_app/Controller/some/structure/like/this.pm
 How would I have a Controller like:
  package my_app::Controller::some::structure
 In a file my_app/lib/my_app/Controller/some/structure.pm
 and be able to access the remaining like/this via PATH_INFO.

That's actually how actions work by default - an action with a public
URL of /foo/bar will also match /foo/bar/baz/quux/tickle/me/elmo/whatever
unless you explicitly set the number of extra arguments via :Args(0)
(for /foo/bar only), :Args(1) for (/foo/bar/*), ...

This is why you often see code written as

sub bar :Local {
  my ($self, $c, @args) = @_;
  ...
}

-- 
  Matt S Trout   Need help with your Catalyst or DBIx::Class project?
   Technical DirectorWant a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/ 

___
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] Tabular interfaces

2007-05-11 Thread Duncan Ferguson

Hiya list,

I need to add a tabular interface into my cat app and trying to work  
out the best practice way of doing it - are there any docs or info  
anywhere on how to do this?


One part would be for user preferences where the first tab contains  
basic information (i.e. name, address, tel, etc), the second tab  
contains preferences for the app, etc.  The second or n'th tab cannot  
be worked on until the first is done as some of the info might be  
dependent on it.


Has anyone here done something similar and have examples I can look at?

Thanks

  Duncs


___
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] Re: Shoot out -- Catalyst / RoR / Other MVC apps --

2007-05-11 Thread Michael Reece
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 Google.


Guess what? So did I.

I just decided that leaving off the `.org` wouldn’t be useful –
though I can’t remember the thought process that led me to not
try. Normally I’m the one posting “first hit on Google if you
search for XYZ” (and usually the query in question is my first
attempt).

Never assume I didn’t google. You’ll *always* be wrong. :-)

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/


Re: [Catalyst] Tabular interfaces

2007-05-11 Thread vb

This is not a Catalyst job... but I also very interested of the best
practice for integrate a tabular interface.
Many JS libraries for tab interface exists (fabtabulous.js).
I suggest you:
google tab based interface techniques

An example if you wish, from my work: http://lar.sitsco.com (where I use the
JS from http://www.barelyfitz.com/projects/tabber/)

--vb

On 5/11/07, Duncan Ferguson [EMAIL PROTECTED] wrote:


Hiya list,

I need to add a tabular interface into my cat app and trying to work
out the best practice way of doing it - are there any docs or info
anywhere on how to do this?

One part would be for user preferences where the first tab contains
basic information (i.e. name, address, tel, etc), the second tab
contains preferences for the app, etc.  The second or n'th tab cannot
be worked on until the first is done as some of the info might be
dependent on it.

Has anyone here done something similar and have examples I can look at?

Thanks

   Duncs


___
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] Tabular interfaces

2007-05-11 Thread Wade . Stuart






Duncan Ferguson [EMAIL PROTECTED] wrote on 05/11/2007 11:45:14
AM:

 Hiya list,

 I need to add a tabular interface into my cat app and trying to work
 out the best practice way of doing it - are there any docs or info
 anywhere on how to do this?

 One part would be for user preferences where the first tab contains
 basic information (i.e. name, address, tel, etc), the second tab
 contains preferences for the app, etc.  The second or n'th tab cannot
 be worked on until the first is done as some of the info might be
 dependent on it.

 Has anyone here done something similar and have examples I can look at?


Sounds more like a Wizzard not a Tab pattern,  Most users would expect tabs
to behave as context filters sorting like objects/settings etc by context
-- not forcing a sequence.



___
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/