Re: [Catalyst] Submitting Multiple Arrays

2008-01-30 Thread Carl Franks
I don't know if it'll solve all your problems, but this is definitely wrong: > my @articles = $c->request->params->{article_id}; > ... > foreach my $article ( @articles ) { You're assigning an arrayref to the first item in @articles. Do this instead: my $articles = $c->reques

Re: [Catalyst] Submitting Multiple Arrays

2008-01-30 Thread Andreas Marienborg
http://cpansearch.perl.org/~jrobinson/DBIx-Class-0.08009/lib/DBIx/Class/Ordered.pm#Unique_Constraints might be applying to you, and if not, Ordered might help you. - andreas On 31. jan.. 2008, at 02.35, Jay Varner wrote: In short, I'm new to Catalyst and a near intermediate Perl programmer. I

[Catalyst] Submitting Multiple Arrays

2008-01-30 Thread Jay Varner
In short, I'm new to Catalyst and a near intermediate Perl programmer. I've converted (and vastly improved) my app from CGI::Application to Catalyst within an amount of time that made me feel like I wasted those months I spent prior to using Catalyst. However, the past few days I have been struggli

Re: [Catalyst] Malformed class Name & Hidden files

2008-01-30 Thread Dave Rolsky
On Wed, 30 Jan 2008, Jonathan Rockway wrote: * On Wed, Jan 30 2008, Dave Rolsky wrote: Yes, unfortunately it's never been freaking fixed, which is why it's come up 129387 times (at least). I did submit a patch to Simon Wistow for Module::Pluggable in September. It made Module::Pluggable ignore

RE: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Mesdaq, Ali
Good write up semi related to the topic. Discusses JavaScript packers and their performance impact as well as security implications. Using some packers may cause false positives on your websites by many security solutions. http://www.secureworks.com/research/threats/thepacker Personally I think t

RE: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Mesdaq, Ali
Just giving my recommendation for what in my opinion is an ESSENTIAL tool for any web developer or even power user Firebug for Firefox https://addons.mozilla.org/en-US/firefox/addon/1843 . Best overall tool I have found. Lets you debug JavaScript, inspect elements and their dom properties, lets you

Re: [Catalyst] Malformed class Name & Hidden files

2008-01-30 Thread Jonathan Rockway
* On Wed, Jan 30 2008, Dave Rolsky wrote: > Yes, unfortunately it's never been freaking fixed, which is why it's > come up 129387 times (at least). I did submit a patch to Simon Wistow > for Module::Pluggable in September. It made Module::Pluggable ignore > editor junk files by default, though it d

Re: [Catalyst] Malformed class Name & Hidden files

2008-01-30 Thread Dave Rolsky
On Wed, 30 Jan 2008, Jonathan Rockway wrote: I have traced this down to the fact that my text editor (TextMate) likes to leave hidden files around with similar names as those being edited. For example the above error says something about ._MyAppDB where this a file named MyApp/lib/MyAppDB.pm AND

Re: [Catalyst] Malformed class Name & Hidden files

2008-01-30 Thread Jonathan Rockway
* On Wed, Jan 30 2008, Rajeev Cyrus wrote: > Greetings. > > I am trying to get started with catalyst and am running into slightly > annoying problem. > > I am working though Catalyst::Manual::Tutorial and when it comes time > to start the web-server I get this error: > > Malformed class Name MyApp:

[Catalyst] Malformed class Name & Hidden files

2008-01-30 Thread Rajeev Cyrus
Greetings. I am trying to get started with catalyst and am running into slightly annoying problem. I am working though Catalyst::Manual::Tutorial and when it comes time to start the web-server I get this error: Malformed class Name MyApp::Model::._MyAppDB at /usr/local/perl5.8.3/ lib/sit

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Roderick A. Anderson
Jason Kohles wrote: On Jan 30, 2008, at 10:23 AM, Roderick A. Anderson wrote: Ian Docherty wrote: I have moved (back) to using the built in Catalyst server for testing purposes. It is frequently (but not always) taking 20 seconds or so to display a page in my browser even though the timings

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Jonathan Rockway
* On Wed, Jan 30 2008, Ian Docherty wrote: > My bad. Heard and understood. (by the way who is RMS?) Google. It. Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searcha

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Ian Docherty
Matt S Trout wrote: On Wed, Jan 30, 2008 at 10:41:35AM +, Ian Docherty wrote: Ash Berlin wrote: On 30 Jan 2008, at 09:51, Andrew Payne wrote: On Jan 30, 2008 9:14 AM, Ian Docherty <[EMAIL PROTECTED]> wrote: It is frequently (but not always) taking 20 seconds or so

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Ian Docherty
Jason Kohles wrote: On Jan 30, 2008, at 10:23 AM, Roderick A. Anderson wrote: Ian Docherty wrote: I have moved (back) to using the built in Catalyst server for testing purposes. It is frequently (but not always) taking 20 seconds or so to display a page in my browser even though the timings

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Matt S Trout
On Wed, Jan 30, 2008 at 10:41:35AM +, Ian Docherty wrote: > Ash Berlin wrote: > > > >On 30 Jan 2008, at 09:51, Andrew Payne wrote: > > > >>On Jan 30, 2008 9:14 AM, Ian Docherty <[EMAIL PROTECTED]> wrote: > >>>It is frequently (but not always) taking 20 seconds or so to display a > >>>page in my

RE: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Peter Edwards
Hi Ian >doing a 'host' command on an IP address works instantly and the contents of the /etc/resolv.conf file >look to be correct. > >Could it be a problem with specific IP addresses rather than with the nameservers? (I can't cause >a problem manually with the IP addresses I know the Catalyst app

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Jason Kohles
On Jan 30, 2008, at 10:23 AM, Roderick A. Anderson wrote: Ian Docherty wrote: I have moved (back) to using the built in Catalyst server for testing purposes. It is frequently (but not always) taking 20 seconds or so to display a page in my browser even though the timings reported by the Cat

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Roderick A. Anderson
Ian Docherty wrote: I have moved (back) to using the built in Catalyst server for testing purposes. It is frequently (but not always) taking 20 seconds or so to display a page in my browser even though the timings reported by the Catalyst server are about 0.2 sec. so I know that it is not th

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Ian Docherty
Peter Edwards wrote: On Jan 30, 2008 9:14 AM, Ian Docherty <[EMAIL PROTECTED]> wrote: It is frequently (but not always) taking 20 seconds or so to display a page in my browser Andrew wrote: The only times I've had this happen, it's been DNS issues -- in my case, dhcpd putting a

RE: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Peter Edwards
>> On Jan 30, 2008 9:14 AM, Ian Docherty <[EMAIL PROTECTED]> wrote: >>> It is frequently (but not always) taking 20 seconds or so to display a >>> page in my browser >> >>Andrew wrote: >> The only times I've had this happen, it's been DNS issues -- in my >> case, dhcpd putting a duff entry in resol

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Ian Docherty
Ash Berlin wrote: On 30 Jan 2008, at 09:51, Andrew Payne wrote: On Jan 30, 2008 9:14 AM, Ian Docherty <[EMAIL PROTECTED]> wrote: It is frequently (but not always) taking 20 seconds or so to display a page in my browser The only times I've had this happen, it's been DNS issues -- in my case,

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Kieren Diment
I third DNS issues, the timing of your first mail and your second mail were out of whack. On 30 Jan 2008, at 21:23, Ash Berlin wrote: On 30 Jan 2008, at 09:51, Andrew Payne wrote: On Jan 30, 2008 9:14 AM, Ian Docherty <[EMAIL PROTECTED]> wrote: It is frequently (but not always) taking 20

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Marcello Romani
Andrew Payne ha scritto: On Jan 30, 2008 9:14 AM, Ian Docherty <[EMAIL PROTECTED]> wrote: It is frequently (but not always) taking 20 seconds or so to display a page in my browser The only times I've had this happen, it's been DNS issues -- in my case, dhcpd putting a duff entry in resolv.conf

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Ash Berlin
On 30 Jan 2008, at 09:51, Andrew Payne wrote: On Jan 30, 2008 9:14 AM, Ian Docherty <[EMAIL PROTECTED]> wrote: It is frequently (but not always) taking 20 seconds or so to display a page in my browser The only times I've had this happen, it's been DNS issues -- in my case, dhcpd putting a

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Andrew Payne
On Jan 30, 2008 9:14 AM, Ian Docherty <[EMAIL PROTECTED]> wrote: > It is frequently (but not always) taking 20 seconds or so to display a > page in my browser The only times I've had this happen, it's been DNS issues -- in my case, dhcpd putting a duff entry in resolv.conf YMMV, but worth checkin

Re: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Ian Docherty
Further information on this. If I make a request to a page served by apache on this server via wget, the response is very quick, typically less than a second during which wget displays the 'HTTP request sent, awaiting response'. If I make a request to a page served by the Catalyst server, wge

Re: [Catalyst] index and default actions

2008-01-30 Thread Matt S Trout
On Tue, Jan 29, 2008 at 06:29:50PM -0500, Len Jaffe wrote: > Matt Trout wrote: > > > I foresee index and default going the fuck away for 5.80 unless you're in > > compat mode. > > > > Why is that? For the reasons already discussed at length up-thread. If any of it needs clarifying, ask a more

[Catalyst] Catalyst test server response times.

2008-01-30 Thread Ian Docherty
I have moved (back) to using the built in Catalyst server for testing purposes. It is frequently (but not always) taking 20 seconds or so to display a page in my browser even though the timings reported by the Catalyst server are about 0.2 sec. so I know that it is not the Catalyst app that i

Re: [Catalyst] PageCache clear cached page

2008-01-30 Thread Matthias Zeichmann
On Jan 30, 2008 9:26 AM, dreel <[EMAIL PROTECTED]> wrote: > HEllo! I' trying to cleaner for cached page as shown in > http://dev.catalyst.perl.org/wiki/SolvedIssues#si.20 > "Exempting specific pages from cacheing." > > I've create MyApp.yml: > ... > page_cache: >expires: 60 >set_http_header

[Catalyst] PageCache clear cached page

2008-01-30 Thread dreel
HEllo! I' trying to cleaner for cached page as shown in http://dev.catalyst.perl.org/wiki/SolvedIssues#si.20 "Exempting specific pages from cacheing." I've create MyApp.yml: ... page_cache: expires: 60 set_http_headers: 1 auto_cache: - (?!.*/(debug|expire)\z).* # cache everything b