Re: [Catalyst] Localizing Perl Catalyst applications

2007-02-15 Thread Perry Valdez
The elegant MVC web framework wrote: On Thursday 15 February 2007 12:58, Perry Valdez wrote: Are there any good Catalyst modules I can use for this? http://www.catalystframework.org/calendar/2006/18 Thanks very much. Very helpful. ___ List: Catalys

Re: [Catalyst] unicode best practices

2007-02-15 Thread Daniel McBrearty
thanks! I'll try it. On 2/15/07, Jonathan Rockway <[EMAIL PROTECTED]> wrote: Daniel McBrearty wrote: > I also found once I started using the above, I needed to install > C::V::TT::ForceUTF8 to avoid garbled output. This means you're probably not encoding octets to characters properly. See what

Re: [Catalyst] unicode best practices

2007-02-15 Thread Jonathan Rockway
Daniel McBrearty wrote: > I also found once I started using the above, I needed to install > C::V::TT::ForceUTF8 to avoid garbled output. This means you're probably not encoding octets to characters properly. See what encoding::warnings says about your code. Also, read http://www.catalystframewo

Re: [Catalyst] unicode best practices

2007-02-15 Thread Daniel McBrearty
other stuff I've found: http://search.cpan.org/~bricas/DBIx-Class-0.07003/lib/DBIx/Class/UTF8Columns.pm - utf8 text fields in the db are automatically flagged as such when retrieved I also found once I started using the above, I needed to install http://search.cpan.org/~lyokato/Catalyst-View-TT

Re: [Catalyst] Catalyst::Engine::CGI::prepare_path port

2007-02-15 Thread Jim Spath
Jim Spath wrote: Jim Spath wrote: I was wondering why Catalyst::Engine::CGI::prepare_path() ignores the port in the Host header and instead uses $ENV{SERVER_PORT}. my $scheme = $c->request->secure ? 'https' : 'http'; my $host = $ENV{HTTP_HOST} || $ENV{SERVER_NAME}; my $port

[Catalyst] unicode best practices

2007-02-15 Thread Richard Jolly
Hi, The crux of this question is what is best practice for a catalyst/DBIC app to have it fully unicode aware. We've got: MySQL with charset defined as UTF8 DBIC with on connect do SET NAMES and SET CHARSET and UTF8Columns Catalyst::Plugin::Unicode End actions specify content type as includin

Re: [Catalyst] Dreamhost for Catalyst

2007-02-15 Thread Danny Warren
I have native postgres 7.5.x and fcgi on the server I sit on. The only thing I have compiled in my account space are the catalyst libs + a few plugins + plugin/catalyst deps (which they would also install for you to the base system if you asked, but I didn't mind doing that myself right now).

Re: AW: [Catalyst] not null search - DONE

2007-02-15 Thread Christopher H. Laco
Hartmaier Alexander wrote: > CDBI??? > > > > I’ll try to avoid plain strings when there is a syntax available. > > > > -Alex I'd try to avoid CDBI where DBIC is available. :-) signature.asc Description: OpenPGP digital signature ___ List: Cata

AW: [Catalyst] not null search - DONE

2007-02-15 Thread Hartmaier Alexander
CDBI??? I’ll try to avoid plain strings when there is a syntax available. -Alex Von: Will Smith [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 15. Februar 2007 17:13 An: [EMAIL PROTECTED]; The elegant MVC web framework Betreff: Re: [Catalyst] not null search - DONE Thanks 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 sim

Re: [Catalyst] not null search

2007-02-15 Thread Christopher H. Laco
Will Smith wrote: > 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

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

AW: [Catalyst] not null search

2007-02-15 Thread Hartmaier Alexander
Look in the SQL::Abstract docs and grep for null. colname => { `!=` => undef } -Alex Von: Will Smith [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 15. Februar 2007 16:23 An: catalyst Betreff: [Catalyst] not null search Hi, first, thanks for all of your help. A simple question I w

Re: [Catalyst] Catalyst::Engine::CGI::prepare_path port

2007-02-15 Thread Jim Spath
Jim Spath wrote: I was wondering why Catalyst::Engine::CGI::prepare_path() ignores the port in the Host header and instead uses $ENV{SERVER_PORT}. my $scheme = $c->request->secure ? 'https' : 'http'; my $host = $ENV{HTTP_HOST} || $ENV{SERVER_NAME}; my $port = $ENV{SERVER

Re: [Catalyst] not null search

2007-02-15 Thread Christopher H. Laco
Will Smith wrote: > 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 On what Model? A DBIC based Model? {column => {'!=', undef} I'd assume... -=Chris signature.

[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 Marketing.

Re: [Catalyst] Dreamhost for Catalyst

2007-02-15 Thread Toby Corkindale
Thomas Hartman wrote: 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

[Catalyst] Catalyst::Engine::CGI::prepare_path port

2007-02-15 Thread Jim Spath
I was wondering why Catalyst::Engine::CGI::prepare_path() ignores the port in the Host header and instead uses $ENV{SERVER_PORT}. my $scheme = $c->request->secure ? 'https' : 'http'; my $host = $ENV{HTTP_HOST} || $ENV{SERVER_NAME}; my $port = $ENV{SERVER_PORT} || 80;

Re: [Catalyst] Dreamhost for Catalyst

2007-02-15 Thread Toby Corkindale
Danny Warren wrote: Here is the part where you get flooded with host recommendations from everyone! I use these guys: http://asmallorange.com/ [snip] I was able to compile everything else I needed for catalyst in my home dir, and had a fastcgi + catalyst setup going without any problems. They

Re: [Catalyst] Localizing Perl Catalyst applications

2007-02-15 Thread Bogdan Lucaciu
On Thursday 15 February 2007 12:58, Perry Valdez wrote: > Are there any good Catalyst modules I can use for this? http://www.catalystframework.org/calendar/2006/18 -- Bogdan Lucaciu http://www.wiz.ro ___ List: Catalyst@lists.rawmode.org Listinfo: http:

Re: [Catalyst] Dreamhost for Catalyst

2007-02-15 Thread Danny Warren
I was on the "small" ($5/mo) shared hosting plan for the longest time, but now I am hosting a bunch of stuff for other people on there as well with the "large" ($20/mo) plan. http://asmallorange.com/services/hosting/ Danny Kieren Diment wrote: On 15/02/07, Danny Warren <[EMAIL PROTECTED]> wr

[Catalyst] Localizing Perl Catalyst applications

2007-02-15 Thread Perry Valdez
May I ask for an advice on how to best implement localization? I created a language file called "en-us.yml" that will be read by the application from a config file. If the config file says "lang = en-us", then the application will pick up the file en-us.yml. If the config file says "lang = ja", th