RE: [Catalyst] website member urls

2009-04-30 Thread Merlyn Kline
It could be also helpful if we could find a way to create urls like http://user.hostname.com/ dynamicly as Google blogger site does. We do this with a wildcard A record in the DNS and an Apache URL rewriting rule that moves the hostname into the path. When I started writing my app

Re: [Catalyst] website member urls

2009-04-30 Thread J. Shirley
On Thu, Apr 30, 2009 at 7:14 PM, Octavian Rasnita orasn...@gmail.comwrote: *From:* Merlyn Kline mer...@zynet.net It could be also helpful if we could find a way to create urls like http://user.hostname.com/ dynamicly as Google blogger site does. We do this with a wildcard A record in

RE: [Catalyst] website member urls

2009-04-30 Thread Merlyn Kline
It could be also helpful if we could find a way to create urls like http://user.hostname.com/ dynamicly as Google blogger site does. We do this with a wildcard A record in the DNS and an Apache URL rewriting rule that moves the hostname into the path. When I started

Re: [Catalyst] website member urls

2009-04-30 Thread Octavian Rasnita
From: Merlyn Kline It could be also helpful if we could find a way to create urls like http://user.hostname.com/ dynamicly as Google blogger site does. We do this with a wildcard A record in the DNS and an Apache URL rewriting rule that moves the hostname into the path.

[Catalyst] upgraded to latest catalyst runtime 5.8 and Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed cant be loaded

2009-04-30 Thread kakimoto
hi guys i thought i upgrade my server's catalyst runtime package to the latest one. When I tried running my app, i got this error: Could not load class (Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed) because : You are trying to modify Catalyst::Request::Upload, which has been

Re: [Catalyst] upgraded to latest catalyst runtime 5.8 and Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed cant be loaded

2009-04-30 Thread Tomas Doran
kakim...@tpg.com.au wrote: Try subclassing Catalyst::Request::Upload, -- What does it mean and how do I go about doing it? Then again, another question would be, is it a core issue? . Catalyst::Plugin::Upload::Image::Magick contains code which says

Re: [Catalyst] website member urls

2009-04-30 Thread Tomas Doran
J. Shirley wrote: If you did want to do something in Catalyst, you could create a plugin that runs after prepare_path and modifies $c-request-path accordingly (match off $c-req-base domain)... it'd be an interesting plugin, that's for sure. I'm sure some of the deeper Catalyst hackers can

Re: [Catalyst] Using mysql_enable_utf8

2009-04-30 Thread Malloy
I set init_connect=utf8 in my.cnf. 2009/4/29 Octavian Rasnita orasn...@gmail.com Hi, I need to use C::M::DBI for a fulltext index with MySQL, and the tables contain UTF-8 data. I found that I can use mysql_enable_utf8 but I couldn't find how to use this option. I've tried to use it in

[Catalyst] Using test database with TWAM?

2009-04-30 Thread Jesse Sheidlower
I assume this is more of a general Perl testing question than a Catalyst question, but I finally sat down to write real tests for one of my apps, with the hopes that I'll do this regularly for everything. I was using the Tutorial chapter on testing, and the docs for

Re: [Catalyst] Is there a good solution of file cache? which plugin is recommended?

2009-04-30 Thread Tomas Doran
Malloy wrote: I think your forgot to explain what problem you would like solved. 'file cache' isn't very clear. I guess you probably want Catalyst::Plugin::PageCache however. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] Using mysql_enable_utf8

2009-04-30 Thread Joakim Lagerqvist
2009/4/29 J. Shirley jshir...@gmail.com: On Wed, Apr 29, 2009 at 8:30 PM, Octavian Rasnita orasn...@gmail.com wrote: I don't know why it didn't work for the first time... Because MySQL is evil. Just the other day I had some strange issues with MySQL and unicode. In some rare cases it cut

Re: [Catalyst] Using test database with TWAM?

2009-04-30 Thread Peter Karman
Jesse Sheidlower wrote on 04/30/2009 10:42 AM: Unfortunately I don't know how to do this from a test script, and I don't know how to tell TWAM to run a particular app but with a different DBIC schema (in this case, the identical one but with a different name, pointing to the test db) instead.

Re: [Catalyst] Jason Kohles' tutorial on ExtJs editable data gridsandCatalyst

2009-04-30 Thread jagdish eashwar
Hi, I ran into some trouble while trying to extend Jason Kohle's tutorial from a one-table database to a two-table database. The tutorial had a people table with the following columns: id, name, and affiliation. I altered the affiliation column into an affiliation_code column. And then I created

Re: [Catalyst] Jason Kohles' tutorial on ExtJs editable data gridsandCatalyst

2009-04-30 Thread Adam Witney
The error I get is : [error] Caught exception in AdventAjaxGrid2::View::JSON-process encountered object 'AdventAjaxGrid2 ::Model::AdventAjaxGrid2DB::Affiliation=HASH(0x91b8270)', but neither allow_blessed nor convert_blessed settings are enabled at / usr/local/share/perl/5.8.8/JSON/Any.pm

Re: [Catalyst] Using test database with TWAM?

2009-04-30 Thread Iain
On Thu, 2009-04-30 at 11:42 -0400, Jesse Sheidlower wrote: [snip] I quickly hit a wall because I couldn't figure out how to run this with a test database. Since I need to test modification and deletion stuff, but have real data, I can't just run this against my actual app. So I figured I would

Re: [Catalyst] Using test database with TWAM?

2009-04-30 Thread Jesse Sheidlower
On Thu, Apr 30, 2009 at 11:12:39AM -0500, Peter Karman wrote: Jesse Sheidlower wrote on 04/30/2009 10:42 AM: Unfortunately I don't know how to do this from a test script, and I don't know how to tell TWAM to run a particular app but with a different DBIC schema (in this case, the

Re: [Catalyst] Using test database with TWAM?

2009-04-30 Thread Bill Moseley
On Thu, Apr 30, 2009 at 03:10:13PM -0400, Jesse Sheidlower wrote: Thanks--this is all very useful. I do not, in fact, have any reason for a different schema; a different DSN is all I need. I do keep the connection details in a config file. I guess my question then becomes the more

Re: [Catalyst] Using mysql_enable_utf8

2009-04-30 Thread J. Shirley
On Fri, May 1, 2009 at 1:08 AM, Joakim Lagerqvist joakim.lagerqv...@gmail.com wrote: Just the other day I had some strange issues with MySQL and unicode. In some rare cases it cut of strings in Lao language. It was not an issue with the field length, rather a certain combinations of

Re: [Catalyst] script/myapp_server -r Can't exec /usr/bin/perl every 3 or 4 restarts

2009-04-30 Thread Matt S Trout
On Thu, Apr 30, 2009 at 02:44:05PM +0200, Erik Wasser wrote: On Tuesday 28 April 2009, Matt S Trout wrote: Two possibilities: (1) exec a $^X to print @INC to get the normal @INC (2) use $Config{arch} and /^5.\/ to strip off the extra ones. Thoughts? I think (1) is more

Re: [Catalyst] upgraded to latest catalyst runtime 5.8 and Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed cant be loaded

2009-04-30 Thread Matt S Trout
On Thu, Apr 30, 2009 at 03:17:03PM +0100, Chisel Wright wrote: On Thu, Apr 30, 2009 at 03:05:35PM +0100, Tomas Doran wrote: Catalyst::Plugin::Upload::Image::Magick contains code which says Catalyst::Request::Upload-mk_accessors('_image'); This is the plugin changing the core framework

Re: [Catalyst] Is there a good solution of file cache? which plugin is recommended?

2009-04-30 Thread Matt S Trout
On Thu, Apr 30, 2009 at 11:46:12PM +0800, Malloy wrote: Vague question is vague. Perhaps you could try asking a question with some detail about what you're going to be caching, why you want to do so, and why you think a Catalyst plugin is the right layer of your stack to do this? Alternatively

Re: [Catalyst] Using test database with TWAM?

2009-04-30 Thread Matt S Trout
On Thu, Apr 30, 2009 at 05:29:12PM +0100, Iain wrote: If your wondering why I went to all this trouble. We have several developers so running multiple tests at the same time caused all kinds of strange problems and nobody wanted to maintain a DB per developer! If you're using ::Fixtures and

Re: [Catalyst] upgraded to latest catalyst runtime 5.8 and Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed cant be loaded

2009-04-30 Thread kakimoto
Any suggestions for a sane(r) approach? As it's a plugin I've used I might be able to find some tuits to experiment with an implementation. Are there many of us using ImageMAgick in their apps? I'm just tempted to use Catalyst::Request and Image::Magick::Thumbnail::Fixed or Image::Resize

Re: [Catalyst] upgraded to latest catalyst runtime 5.8 and Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed cant be loaded

2009-04-30 Thread Kieren Diment
On 01/05/2009, at 9:22 AM, kakim...@tpg.com.au wrote: Any suggestions for a sane(r) approach? As it's a plugin I've used I might be able to find some tuits to experiment with an implementation. Are there many of us using ImageMAgick in their apps? I'm just tempted to use Catalyst::Request

Re: [Catalyst] upgraded to latest catalyst runtime 5.8 and Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed cant be loaded

2009-04-30 Thread J. Shirley
On Fri, May 1, 2009 at 8:22 AM, kakim...@tpg.com.au wrote: Any suggestions for a sane(r) approach? As it's a plugin I've used I might be able to find some tuits to experiment with an implementation. Are there many of us using ImageMAgick in their apps? I'm just tempted to use

Re: [Catalyst] upgraded to latest catalyst runtime 5.8 and Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed cant be loaded

2009-04-30 Thread kakimoto
My method is to have what essentially amounts as a file type dispatcher which takes incoming uploads passed in, then redirects to whatever is the most appropriate model class. Yep, I think I get what you mean. This is such that multiple controllers can make use of the upload method in your

Re: [Catalyst] script/myapp_server -r Can't exec /usr/bin/perl every 3 or 4 restarts

2009-04-30 Thread Dave Rolsky
On Thu, 30 Apr 2009, Matt S Trout wrote: On Thu, Apr 30, 2009 at 02:44:05PM +0200, Erik Wasser wrote: On Tuesday 28 April 2009, Matt S Trout wrote: Two possibilities: (1) exec a $^X to print @INC to get the normal @INC (2) use $Config{arch} and /^5.\/ to strip off the extra ones.