[Catalyst] Speed up Cat

2007-08-31 Thread Will Smith
Hi, I have a Cat app launched and running. Everything is fine until lately, it becomes very slow in responding to queries. Sometimes takes minutes. I have the latest verison of Cat, running on Linux, Apache 2. According to the docs, apache is pretty fast, so I wonder if there is anyway to

Re: [Catalyst] DBIx question

2007-08-24 Thread Will Smith
Thank you all, it works. Matt Lawrence [EMAIL PROTECTED] wrote: Will Smith wrote: Hi, I know this is not the room for DBIx, I tried to post in DBIx, but did not go through, so, if you don't mind, please do not bounce me out. my question is: I have a multiple join, and trying to sort

[Catalyst] C::P::Scheduler

2007-08-23 Thread Will Smith
Hi, I'm trying to use the plugin to run a cron job by adding this to the myapp.pm : __PACKAGE__-schedule( at= '0 * * * *', event = '/email/checkemail', auto_run = 1, ); This suppose to set the process checkemail run every hour, but it does nothing at all.

Re: [Catalyst] Re: Multi Mod_Perl apps - THANK YOU

2007-08-09 Thread Will Smith
Thank you all you for your help. Best Regards, Will Adam Sjøgren [EMAIL PROTECTED] wrote: On Wed, 8 Aug 2007 06:14:54 -0700 (PDT), Will wrote: Sorry if I post an old question, I just want to know if I could do this to run multi app on the same server under mod_perl:

Re: [Catalyst] html::prototype syntax in new Cat version

2007-07-11 Thread Will Smith
YES PLEASE. I have been waiting for this for a long time. Please make it happen soon, or I will be fired (for not getting ajax working). Thank you Cat Community. John Napiorkowski [EMAIL PROTECTED] wrote: --- John Wang wrote: On 7/10/07, J. Shirley wrote: On 7/10/07, John Napiorkowski

[Catalyst] html::prototype syntax in new Cat version

2007-06-27 Thread Will Smith
Hi, This might be a pain in the neck to someone but please be patient if you read the mail. I having prob with Html::Prototype with Catalyst. It works like a champ with older version of Cat, but in the current version, the syntax might be a bit changed and I just cannot get it. I just tried

Re: [Catalyst] Link to file

2007-05-24 Thread Will Smith
:3000/var/www/html/myfolder/myfile.wav or http://www.mydomain.com/var/www/html/myfolder/myfile.wav Obviously, this is the wrong path to the file. How can I drop the http://... before the real path? Thank you Jeff Chimene [EMAIL PROTECTED] wrote: Will Smith wrote: Hi, I tried to add a link

Re: [Catalyst] Link to file

2007-05-24 Thread Will Smith
ever really put a link like that on your app. I thought this is a simple matter, if a simple link could not do that, I think I have to apply the method that Peter has shown. Thanks again Peter Karman [EMAIL PROTECTED] wrote: Will Smith wrote on 5/24/07 10:43 AM: the error is : File

Re: [Catalyst] Link to file

2007-05-24 Thread Will Smith
Sorry for all the confusion. I run the browser on the same machine that cat app running. My file is at: /var/www/html/myfolder/myfile.wav On any html page outside Cat, just simply add the full path to the href, then user just click on the link to listen to the audio. I have tried with

[Catalyst] run automatedly

2007-05-12 Thread Will Smith
Hi, Is there any way that we can call a function in a controller automatically? Just like running a cron job on an exe file? Please give me some guide. or any modules that could handle that. Thanks - Boardwalk for $500? In 2007? Ha! Play Monopoly Here

[Catalyst] connection to DB

2007-04-25 Thread Will Smith
hi,I I would like to ask for help on making a connection to a remote database. My app is working good with localhost, now I move it to another server and create a connection, I thought just change the config of the myApp.pm. But I could not make the connection. this is my connection to

Re: [Catalyst] connection to DB

2007-04-25 Thread Will Smith
Thanks for your response. But it does not work. I tried that , or dbname=test .. and get the same error: Couldn't instantiate component access::Model::myappDB, Cannot load schema class 'myappDB': DBIx::Class::Schema::load_classes(): Can't locate myappDB/User. hope that you could

[Catalyst] Read and Display from i/o file

2007-04-10 Thread Will Smith
Hi, I am using Text::Delimited to read in a text file, that's very straigth forward. My problem is I want to display back onto the template what has been read from the file: my $row = $file-read; # for example the file has 2 col: id, name I cannot do like this on the template: [% FOREACH

RE: [Catalyst] CRUD Question. How to update a record.

2007-02-20 Thread Will Smith
you can use this to add value to a text field: my $e = $w-element('Textfield', 'itemid' )-label('ItemId')-value(...)-size(30); Hans Ophüls [EMAIL PROTECTED] wrote: But I have a problem with implementing an update function. It schould select a record from the database and insert the

[Catalyst] not null search

2007-02-15 Thread Will Smith
Hi, first, thanks for all of your help. A simple question I want to ask is how to do a search for NOT NULL value. I do not want to use -search_like Thank you - The fish are biting. Get more visitors on your site using Yahoo! Search

Re: [Catalyst] not null search

2007-02-15 Thread Will Smith
Thanks Chris, Yes, CDBI model, and does not work the way you say. It does not give a sytax error but nothing returned. $c-model('myappDB::Student')-search( studentname = {'!=', undef} ) .. {column = {'!=', undef} I'd assume... -=Chris

Re: [Catalyst] not null search - DONE

2007-02-15 Thread Will Smith
Thanks Chris, I got the answer from the link you post: my $sql = 'is not null'; my @rows = Some::CDBI-search_where( some_column = \$sql ); Regards, Christopher H. Laco [EMAIL PROTECTED] wrote: Will Smith wrote: Hi, first, thanks for all of your help. A simple

[Catalyst] looping

2007-02-12 Thread Will Smith
Hi, I may ask the same old question, but just could get it. So please help me to get it done. All I want is looping through the record set for example: if I want to loop through a column, I can use this: my @lname; my $column =

Re: [Catalyst] looping

2007-02-12 Thread Will Smith
[EMAIL PROTECTED] wrote: Will Smith writes: my $recordset = [$c-model('myDB::Books')-search( authorid = ${authorid} )]; while(my $name = $recordset-next){ $lname[$i] = $name-lname; $fname[$i] = $name-fname; $i = $i + 1; } Wrong list, but here's a hint

Re: [Catalyst] looping

2007-02-12 Thread Will Smith
thank you for your help. That's exactly what I want to do. regards Boris Æeraniæ [EMAIL PROTECTED] wrote: On 12/02/07, Will Smith wrote: Hi, I may ask the same old question, but just could get it. So please help me to get it done. All I want is looping through the record set for example

[Catalyst] Binary Conversion

2007-01-08 Thread Will Smith
Hi, I want to conver a number to binary. I installed Math::BigInt, and get this error when trying to plugin in the main controller: Can't locate Catalyst/Plugin/Math/BigInt.pm ... in /lib/usr/lib/perl5/5.8.5/i386-linux-thread-multi .. eventhough the installion is good. And I checked if

Re: [Catalyst] Create multiple records

2007-01-02 Thread Will Smith
(@records); }; this gives me the compling error: Global symbol @records requires explicit package name Juan Miguel Paredes [EMAIL PROTECTED] wrote: On 12/29/06, Will Smith wrote: Thank you, Yes, I mean I'm using DBIC. I've tried your method. It did not give error, but, also did

RE: [Catalyst] Create multiple records

2007-01-02 Thread Will Smith
: Will Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 02, 2007 16:54 To: The elegant MVCweb framework Subject: Re: [Catalyst] Create multiplerecords happy new year to all of you. thanks all for your support.Back to the question, (which I guess, will irritate some catalyst

Re: [Catalyst] order_by

2006-12-15 Thread Will Smith
Thank you for pointing me to the right doc. Sometimes I could not find the right doc to read. Thanks again for all your help Happy holidays Sébastien Wagener [EMAIL PROTECTED] wrote: On Thu, 2006-12-14 at 18:51 -0800, Andrew Peebles wrote: Will Smith wrote: I think you want: $c-stash

[Catalyst] order_by

2006-12-14 Thread Will Smith
Hi, it used to worked with the option order_by with cdbi class, but in DBIC class, I could not get it: $c-stash-{book} = [$c-model('myappDB::Book')-all, {order_by = 'title}]; Could some one please show me how to do this. Thank you. - Any questions? Get

[Catalyst] Authorization::ACL - basic question

2006-12-07 Thread Will Smith
Hi, sorry if I ask a question that has been answered. How could I block out the whole set of actions instead of setting for each. For example: instead of doing authorization for each of action in books,pm controller such as: __PACKAGE__-deny_access_unless( /books/delete,

[Catalyst] html::widget

2006-12-06 Thread Will Smith
Hi, It's pretty neat to use html::widget to create/validate html form. Problem is I need to create a lot of customized html forms that could not done easily with html::widget. I want to simply do my own html form and use a normal action to update the record. I tried to use somehing like: my

RE: [Catalyst] html::widget

2006-12-06 Thread Will Smith
$book = $c-model('MyApp::Book')-find($book_pk_id); $book-title($new_title); $book-rating($new_rating); $book-update; Leandro From: Will Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 21:53 To: catalyst Subject: [Catalyst] html::widget

[Catalyst] basic Authentication error

2006-10-16 Thread Will Smith
Hi, I am applying a basic authentication, following exactly the tutorial, but keep getting this error after editing tha application .pm - adding these lines: .. Authentication Authentication::Store::DBIC Authentication::Credential::Password Session Session::Store::FastMmap

Re: [Catalyst] Scaffolding

2006-10-06 Thread Will Smith
Hi, I tried the Module, and this is some error that Ive got. I don't know if I missed something in the installation: script/my_myapp_server.pl Couldn't instantiate component "My::myapp::Model::DBICSchemamodel", "Cannot load schema class 'DBSchema': DBIx::Class::Schema::load_classes():