Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Thomas Hartman
Danny: I couldn't really say from personal experience what the performance is like on linode, nothing I'm doing has a real load on it. But from what I've read browsing around, virtual hosting is no substitute for having your own dedicated server if you get a lot of traffic. So, it's basically a n

Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Kieren Diment
On 15/02/07, Danny Warren <[EMAIL PROTECTED]> wrote: I think most virtual hosts wouldn't support persistent connections or mod_perl, just because it goes against the basic way that virtual hosts are set up (needing access to the apache config itself, unique instance, etc). Here is the part wher

Re: [Catalyst] populating stash via action attributes

2007-02-14 Thread Michael Reece
thanks to phaylon, i got this figured out. [ in a controller base class ] sub _parse_Hello_attr { ActionClass => 'MyApp::Action::Hello' } [ and elsewhere... ] package MyApp::Action::Hello; use base 'Catalyst::Action'; sub execute { my $self = shift; my ($controller, $c) = @_; $c->stash-

Re: [Catalyst] C::C::FormBuilder - Forwarding to another action overwrites data from the calling action

2007-02-14 Thread Juan Camacho
OK, I've made a small change to the C-C-FormBuilder-Action class that should now help get you on your way. Instead of [% FormBuilder.render %], you'll need to use [% forms.foo.FormBuilder.render %]. BTW, try to make the the stash name 'forms' configurable. I look forward to seeing a final versi

[Catalyst] populating stash via action attributes

2007-02-14 Thread Michael Reece
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?

Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Danny Warren
I was responding to the original poster and not anything you said, but I can see how it could seem that way (since I used the term "virtual host" incorrectly). I was referring more to hosting providers that use apache virtual hosts to serve your content. I should have said "shared hosting", a

Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Dennis Daupert
Thomas Hartman said: >Svn with web access is especially nice, still haven't >figured out how to install this on my "real" server >(at linode). Have a look on http://www.howtoforge.com/. There are lots of articles by distro that give recipes you can follow. I used an article to setup webdav and s

Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Thomas Hartman
I think we are talking past each other, or maybe I used the wrong word. What I meant was, what you get with linode *appears* to be the same as what you would get if you had your own server: root access, do whatever you want. But it's cheaper, and the performance isn't as good. "I think most vir

[Catalyst] myapp_fastcgi.pl restarter?

2007-02-14 Thread Jim Spath
I'm running myapp_fastcgi.pl in static mode under lighttd using and was wondering if there was any sort of handy restarter functionality like myapp_server.pl has. I didn't see any, meaning that if I make a change to something in lib/ that I need to restart the webserver for the change to take

Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Danny Warren
I think most virtual hosts wouldn't support persistent connections or mod_perl, just because it goes against the basic way that virtual hosts are set up (needing access to the apache config itself, unique instance, etc). Here is the part where you get flooded with host recommendations from ev

Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Gert Burger
Jim Spath wrote: I would stay away from Dreamhost personally. Regardless of what they happen to support, I've had numerous performance + uptime issues with them. You might look into slicehost. It's a little more expensive, but you essentially get your own machine (via Xen VPS), allowing you

Re: [Catalyst] C::C::FormBuilder - Forwarding to another action overwrites data from the calling action

2007-02-14 Thread Danny Warren
Yep, that sequence of events is exactly what I am seeing. Hooray, I am not crazy! (well, on this one thing...) One way I was thinking of getting around this was to do the same thing you suggested with the template vars for the $controller->_formbuilder data - create named aliases (at step 1

Re: [Catalyst] Re: Why I chose Perl and Catalyst

2007-02-14 Thread Daniel McBrearty
ah, sorry. I didn't pick up that bit of $c ... I wish him luck anyway. People are generally so polarised over the issue. On 2/14/07, A. Pagaltzis <[EMAIL PROTECTED]> wrote: * Daniel McBrearty <[EMAIL PROTECTED]> [2007-02-14 16:55]: > fair point, but I don't see the point in that battle. I dunn

Re: [Catalyst] Re: looping

2007-02-14 Thread Jason Kohles
On Feb 14, 2007, at 12:21 PM, A. Pagaltzis wrote: Hi Ian, * Ian Docherty <[EMAIL PROTECTED]> [2007-02-14 16:40]: A. Pagaltzis wrote: * Will Smith <[EMAIL PROTECTED]> [2007-02-12 21:25]: my $column = $c->model("myDB::Author")->get_column('last_name'); while(my $name = $column->next){ $lna

Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Thomas Hartman
I use dreamhost as an easy way to get wikis/svn/other goodies running. Svn with web access is especially nice, still haven't figured out how to install this on my "real" server (at linode). However, for actual catalyst websites, I have a virtual server at linode.com, where I have a root account f

Re: [Catalyst] Re: looping

2007-02-14 Thread Mark Zealey
You could of course do somethnig like: push @lname => $c->model('myDB::Author')->get_column('last_name')->all; tmtowtdi Mark On Wednesday 14 February 2007 5:21 pm, A. Pagaltzis wrote: > Hi Ian, > > * Ian Docherty <[EMAIL PROTECTED]> [2007-02-14 16:40]: > > A. Pagaltzis wrote: > >>* Will Smith <

[Catalyst] Re: Why I chose Perl and Catalyst

2007-02-14 Thread A. Pagaltzis
* Daniel McBrearty <[EMAIL PROTECTED]> [2007-02-14 16:55]: > fair point, but I don't see the point in that battle. I dunno about battle, but this subthread started with Leandro asking how to explain to his boss why they should pick Perl (and Catalyst, and DBIC, etc) over a Java stack. Regards, --

[Catalyst] Re: looping

2007-02-14 Thread A. Pagaltzis
Hi Ian, * Ian Docherty <[EMAIL PROTECTED]> [2007-02-14 16:40]: > A. Pagaltzis wrote: >>* Will Smith <[EMAIL PROTECTED]> [2007-02-12 21:25]: >> >>>my $column = $c->model("myDB::Author")->get_column('last_name'); >>>while(my $name = $column->next){ >>>$lname[$i] = $name; >>>$i = $i + 1; >>

Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread David Morel
Toby Corkindale a écrit : > Toby Corkindale wrote: >> Hi guys, >> was chatting to someone about hosting a low-traffic Catalyst site, and >> the subject of Dreamhost came up - they (apparently) offer >> particularly cheap virtual servers (about £5/month), and judging by >> their website, you receive

Re: [Catalyst] Re: Why I chose Perl and Catalyst

2007-02-14 Thread David Morel
A. Pagaltzis a écrit : > Basically, this is a good list if you want to argue “Perl vs. > another contemporary dynamic language,” but it makes little > distinction when you’re trying to contrast Perl against Java. how about this then : java code make my eyes bleed ? :) -- David Morel signature.

Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Jim Spath
I would stay away from Dreamhost personally. Regardless of what they happen to support, I've had numerous performance + uptime issues with them. You might look into slicehost. It's a little more expensive, but you essentially get your own machine (via Xen VPS), allowing you install and run w

Re: [Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Toby Corkindale
Toby Corkindale wrote: Hi guys, was chatting to someone about hosting a low-traffic Catalyst site, and the subject of Dreamhost came up - they (apparently) offer particularly cheap virtual servers (about £5/month), and judging by their website, you receive a shell and can compile your own apps

[Catalyst] Dreamhost for Catalyst

2007-02-14 Thread Toby Corkindale
Hi guys, was chatting to someone about hosting a low-traffic Catalyst site, and the subject of Dreamhost came up - they (apparently) offer particularly cheap virtual servers (about £5/month), and judging by their website, you receive a shell and can compile your own apps, including it says, CG

Re: [Catalyst] Re: Why I chose Perl and Catalyst

2007-02-14 Thread Daniel McBrearty
Basically, this is a good list if you want to argue "Perl vs. another contemporary dynamic language," but it makes little distinction when you're trying to contrast Perl against Java. fair point, but I don't see the point in that battle. There *is* an element of taste to programming language ch

Re: [Catalyst] Re: looping

2007-02-14 Thread Ian Docherty
A. Pagaltzis wrote: * Will Smith <[EMAIL PROTECTED]> [2007-02-12 21:25]: my $column = $c->model("myDB::Author")->get_column('last_name'); while(my $name = $column->next){ $lname[$i] = $name; $i = $i + 1; } Ugh. Use `push`; this isn’t C. Regards, Or 'map' _

[Catalyst] Re: Why I chose Perl and Catalyst

2007-02-14 Thread A. Pagaltzis
* Daniel McBrearty <[EMAIL PROTECTED]> [2007-02-14 11:45]: > perl : Yeah, but how does this list differentiate Perl against Java? See what it looks like from the Java perspective: > - massive library support via CPAN No central repository for Java, but lots of libre libraries; eg. tons of ASF pr

Re: [Catalyst] C::C::FormBuilder - Forwarding to another action overwrites data from the calling action

2007-02-14 Thread Juan Camacho
Doubt it has anything to do with your environment. I thought I had tested it a while back when helping someone else, but maybe something was overlooked since I never got a final word back from the guy I was helping. I think I have an idea of what might be wrong -- it has to do with the following

Re: [Catalyst] C::C::FormBuilder - Forwarding to another action overwrites data from the calling action

2007-02-14 Thread Danny Warren
Apologies, I should have mentioned that I was using the controller code from my first mail. I have attached my test controller as Test.pm. Thank you for your explanation about how $c->formbuilder works with forwards, that makes some of what I am seeing make more sense (and that I had some inc

Re: [Catalyst] Why I chose Perl and Catalyst

2007-02-14 Thread Kieren Diment
As as lone wolf part time developer, I have to say that transparent debugging is massively important to me. As is CPAN. Anyway, I added an advocacy section to the Wiki where I put a link to jon's software review, and Jayk's rather nice reply. ___ List:

Re: [Catalyst] More than one form per page with C::C::FormBuilder?

2007-02-14 Thread Danny Warren
By the time the message arrived on the list it was back up... ;) Matt S Trout wrote: On 12 Feb 2007, at 21:49, Danny Warren wrote: Thank you Juan! This is along the lines of what I am looking for, and gives me a good place to start from. I will play around with this today and get back to y

Re: [Catalyst] Re: Why I chose Perl and Catalyst

2007-02-14 Thread Daniel McBrearty
perl : - massive library support via CPAN - very powerful, flexible language, supports many styles of programming - mature UTF8/unicode support - expert developer community - great runtime performance - has stood the test of time catalyst : - open architecture that allows leverage of above factor

Re: [Catalyst] More than one form per page with C::C::FormBuilder?

2007-02-14 Thread Matt S Trout
On 12 Feb 2007, at 21:49, Danny Warren wrote: Thank you Juan! This is along the lines of what I am looking for, and gives me a good place to start from. I will play around with this today and get back to you (unfortunately dev.catalyst.perl.org is unresponsive at the moment, but I did ge