Re: [Catalyst] Caching SQL results for speed...?

2011-04-12 Thread Darren Duncan
will trillich wrote: Okay, after some perl -D:NTYProf tester.pl with 200 iterations: 70% of the time is taken up in five modules: 1) SQL::Abstract 2) DBIx::Class::ResultSet 3) Class::Accessor::Grouped 4) DBIx::Class::Storage::DBI 5) HTML::FormHandler::Field ...because in 200 i

[Catalyst] Caching SQL results for speed...?

2011-04-12 Thread will trillich
Mostly thinking out loud here... but we welcome feedback if we're off track... Okay, after some perl -D:NTYProf tester.pl with 200 iterations: 70% of the time is taken up in five modules: 1) SQL::Abstract 2) DBIx::Class::ResultSet 3) Class::Accessor::Grouped 4) DBIx::Class::Storage::DBI 5) HTML::F

Re: [Catalyst] What text editor to use?

2011-04-12 Thread Eden Cardim
> "John" == John M Dlugosz writes: John> I installed Emacs, and found that it's too alien for me. Basic things like John> selecting with the mouse and keyboard together are different from my current John> habits. Is there a "more GUI" front-end? As is the case with vi(m), emac

Re: [Catalyst] Forms with multiple buttons?

2011-04-12 Thread Charlie Garrison
Good morning, On 12/04/11 at 7:50 AM -0500, John M. Dlugosz wrote: I've chosen Catalyst::Controller::HTML::FormFu to use with my app. I'd suggest asking this on the HTML::FormFu list. How would I have a form with multiple buttons? For example "revert", "preview", and "commit"? The lat

[Catalyst] Fine-grained access control with REST

2011-04-12 Thread Bill Moseley
In our aging Music application where we have the familiar hierarchy Label -> CD -> Track -> Note. We also have an extra table for access control that joins CDs with a User: cd_user. The action "PUT /note/*" is allowed if the Note object can be joined to the current user via the cd_user table. No

Re: [Catalyst] What text editor to use?

2011-04-12 Thread Benjamin Hitz
On Apr 12, 2011, at 4:57 AM, dodds wrote: > I use Eclipse (EPIC) too with the Amateras HTML Editor to open .tt > and .tt2 file extensions: > > Window -> Preferences -> General -> Editors -> File Associations I wrote my own eclipse editor plugin for TT files: https://github.com/hitz/eclipse-tte

Re: [Catalyst] server memory usage

2011-04-12 Thread John M. Dlugosz
You are right in this case: the pages would be shared just after the fork, but would probably start to get copied individually for each process again as soon as the process starts doing something useful. For perl, which works as some kind of JIT compiler, the script executable code is just dat

Re: [Catalyst] HTML::FormHandler performance issue in Catalyst app -- 50 seconds?!

2011-04-12 Thread will trillich
Thanks for the tips, Peter -- and for http://dragonstaff.blogspot.com/2009/05/testing-with-perl-catalyst.html! Got some cranking to do... On Tue, Apr 12, 2011 at 2:30 AM, Peter Edwards wrote: > On 12 April 2011 02:53, will trillich wrote: > >> Hi folks -- this may be more of a FormHandler quest

[Catalyst] Forms with multiple buttons?

2011-04-12 Thread John M. Dlugosz
I've chosen Catalyst::Controller::HTML::FormFu to use with my app. How would I have a form with multiple buttons? For example "revert", "preview", and "commit"? The latter two want the same textarea to be sent, so are part of the same form. Even having a different Form for "revert", since i

Re: [Catalyst] server memory usage

2011-04-12 Thread Jorge Gonzalez
El 12/04/11 12:58, John M. Dlugosz escribió: On 4/11/2011 8:54 AM, Jorge Gonzalez jorge.gonzalez-at-daikon.es |Catalyst/Allow to home| wrote: You can be assured that it's being done that way. Certainly all modern operating systems do Copy-On-Write on memory pages, which means that several proce

Re: [Catalyst] Validation of entered content

2011-04-12 Thread John M. Dlugosz
On 4/11/2011 10:25 AM, Peter Edwards peter-at-dragonstaff.co.uk |Catalyst/Allow to home| wrote: I've used this before - perhaps it will work for you: http://ckeditor.com/ That looks interesting, but digging through the documentation it seems that its native output format is XHTML, and althou

Re: [Catalyst] server memory usage

2011-04-12 Thread Tomas Doran
On 11 Apr 2011, at 14:07, John M. Dlugosz wrote: Looking at the server's processes, I see three of script/ myapp_fastcgi.pl, which I suppose co-inside with the Apache configuration option where I said to start 3 fastcgi processes to handle this app. WebMin tells me "size", which can't be

Re: [Catalyst] What text editor to use?

2011-04-12 Thread dodds
I use Eclipse (EPIC) too with the Amateras HTML Editor to open .tt and .tt2 file extensions: Window -> Preferences -> General -> Editors -> File Associations On Tue, 2011-04-12 at 13:50 +0200, Tobias Klug wrote: > The EPIC plugin for Eclipse works fine for me. I am not sure if anyone > mentioned

Re: [Catalyst] What text editor to use?

2011-04-12 Thread Woody2143
I may have missed the suggestion and all the requirements but have you checked out Padre? Sent from my iPad Mini 4. On Apr 12, 2011, at 11:41, "John M. Dlugosz" wrote: > On 4/11/2011 2:01 PM, Eden Cardim edencardim-at-gmail.com |Catalyst/Allow to > home| wrote: >> >> Emacs also has a set of

Re: [Catalyst] What text editor to use?

2011-04-12 Thread dodds
On Tue, 2011-04-12 at 06:41 -0500, John M. Dlugosz wrote: > On 4/11/2011 2:01 PM, Eden Cardim edencardim-at-gmail.com |Catalyst/Allow to > home| wrote: > > > > Emacs also has a set of extensions written by jrockway that facilitate > > the writing of perl code in general. I use that combined with y

Re: [Catalyst] What text editor to use?

2011-04-12 Thread Александер Пономарёв
I use Komodo Edit, it's free (not open source) and very usefull for me. It supports Perl and TT-synax, I like it ;-) 2011/4/12 John M. Dlugosz : > On 4/11/2011 2:01 PM, Eden Cardim edencardim-at-gmail.com |Catalyst/Allow to > home| wrote: >> >> Emacs also has a set of extensions written by jrockwa

Re: [Catalyst] What text editor to use?

2011-04-12 Thread Tobias Klug
The EPIC plugin for Eclipse works fine for me. I am not sure if anyone mentioned it yet. http://www.epic-ide.org/ Am 12.04.2011 13:41, schrieb John M. Dlugosz: > On 4/11/2011 2:01 PM, Eden Cardim edencardim-at-gmail.com > |Catalyst/Allow to home| wrote: >> >> Emacs also has a set of extensions wr

Re: [Catalyst] What text editor to use?

2011-04-12 Thread John M. Dlugosz
On 4/11/2011 2:01 PM, Eden Cardim edencardim-at-gmail.com |Catalyst/Allow to home| wrote: Emacs also has a set of extensions written by jrockway that facilitate the writing of perl code in general. I use that combined with yasnippet and the perltidy extension for maximum throughput and it's ver

Re: [Catalyst] Validation of entered content

2011-04-12 Thread John M. Dlugosz
Thanks for the comprehensive reply! That will keep my busy for a while. On 4/11/2011 10:25 AM, Peter Edwards peter-at-dragonstaff.co.uk |Catalyst/Allow to home| wrote: There are two main JS editors, the one above and TinyMCE, you have to be careful though. 1) People paste a Word document par

Re: [Catalyst] server memory usage

2011-04-12 Thread John M. Dlugosz
On 4/11/2011 8:54 AM, Jorge Gonzalez jorge.gonzalez-at-daikon.es |Catalyst/Allow to home| wrote: You can be assured that it's being done that way. Certainly all modern operating systems do Copy-On-Write on memory pages, which means that several processes with a common set of code will share much

Re: [Catalyst] HTML::FormHandler performance issue in Catalyst app -- 50 seconds?!

2011-04-12 Thread Peter Edwards
On 12 April 2011 02:53, will trillich wrote: > Hi folks -- this may be more of a FormHandler question than a Catalyst > question but I thought I'd check here to see if it's just us: > > We've been using HTML::FormHandler and are basically happy with it... until > the performance issue mentioned b

[Catalyst] DBIC related: schema VS model

2011-04-12 Thread Bernhard Bauch
dear catalystlist, after doing a try-run of bringing all modules (catalyst, dbix::class, ...) up-to-date, i ran into some problems. i found a solution for the problem, but there are still some open questions. i am creating some "onthefly" relations at after catalyst setup is completed. (see full