Re: [Catalyst] Re: Encoding problem - ?fastcgi?

2007-10-08 Thread Octavian Rasnita
I also had a maybe similar problem. I've used XML::Simple to parse an XML file which is UTF-8 encoded and if I used the Catalyst test web server it worked fine, but if I wanted to load the application with Apache, the page was double encoded. I used: $obj = XMLin($content) if $content =~

[Catalyst] DProf

2007-11-02 Thread Octavian Rasnita
Hi, I have tried to see which of the modules of my Catalyst application take so much time, because at certain moments the processor is occupied 99.9%, then goes down to 12%, then again at 99.9% and so on. I've used the module Apache::DProf in httpd.conf, and the results are below, but I

Re: [Catalyst] DProf

2007-11-03 Thread Octavian Rasnita
From: Antano Solar Does restricting the number or threads in the maximum worker/prcoesses in your apache configuration file help ? I've just tried using the ab Apache tool but the processor reached at 60 - 80% even if I lowered the settings for the prefork MPM. StartServers

Re: [Catalyst] DProf

2007-11-04 Thread Octavian Rasnita
Hi, From: Jon Schutz [EMAIL PROTECTED] All those FIN_WAIT[12] states mean that the connection is closed, and the process is waiting for a shutdown from the remote end. If you repeat the netstat command over a period of time and get the same processes/ports showing up, that's a problem -

Re: [Catalyst] DProf

2007-11-04 Thread Octavian Rasnita
Thank you for your help. I found some interesting information in the server stats. Can you please tell me what does contain the column CPU? I thought it is the percentage of CPU usage, like the commands top and ps show, but I've seen even a number like 1468.634 in that column, so it should be

Re: [Catalyst] loading modules before the server forks

2007-11-08 Thread Octavian Rasnita
, 2007 9:39 PM Subject: Re: [Catalyst] loading modules before the server forks On Nov 8, 2007, at 2:32 PM, Octavian Rasnita wrote: Hi, If I have a Catalyst application and I use PerlResponseHandler Application::Name in httpd.conf and I load that module in a startup.pl file, what happends

[Catalyst] loading modules before the server forks

2007-11-08 Thread Octavian Rasnita
Hi, If I have a Catalyst application and I use PerlResponseHandler Application::Name in httpd.conf and I load that module in a startup.pl file, what happends with the modules that might be loaded by that Catalyst app? Are they also loaded before the server forks? Or I will need to load them

[Catalyst] Save as...

2007-11-09 Thread Octavian Rasnita
Hi, I try to print a file to the browser using: $c-res-content_type('Application/Octet-Stream'); $c-res-header(Content-Disposition = attachment;filename=\$file\); # $c-res-header('Content-Length' = length($content)); $c-res-body($content); If I try to save the file pressing enter on the link

Re: [Catalyst] hostname

2008-01-10 Thread Octavian Rasnita
From: [EMAIL PROTECTED] Sys::Hostname or a statically set config var, as there is no reference to a request at that point (or any real way to derive the list of possible hostnames hat could be requested). But then again, unless you know the hostname that will always be requested why try to

Re: [Catalyst] hostname

2008-01-11 Thread Octavian Rasnita
From: Carl Johnstone [EMAIL PROTECTED] cookie_domain = the_host() in the MyApp config, but when I try to start the server it gives an error telling that I can't use the method req because $c is undefined. I'd be curious about why you wanted the cookie domain in the config anyway! I

Re: [Catalyst] TT VMethods

2008-01-17 Thread Octavian Rasnita
Also the CPAN module Template::Plugin::Comma can be used for doing this. Octavian - Original Message - From: Mitchell Jackson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 13, 2007 4:35 AM Subject: [Catalyst] TT VMethods Today I saw how easy it is to extend

Re: [Catalyst] warning

2008-01-23 Thread Octavian Rasnita
From: Matt S Trout [EMAIL PROTECTED] Repeatedly overwriting a global is dangerous and indicates you've done something silly. This is not a solution, it's a nasty hack which I strongly recommend against, and is only required because there's something badly wrong with your app or with its

Re: [Catalyst] warning

2008-01-23 Thread Octavian Rasnita
From: Carl Johnstone [EMAIL PROTECTED] My site is accessed with 2 different domain names, and the app must send a cookie that specify a domain, because otherwise Firefox doesn't send the cookie back to the server. I've given you an answer to that problem once. Redirect domain2.com to

Re: [OT] network traffic and DNS servers (was: Re: [Catalyst] warning)

2008-01-23 Thread Octavian Rasnita
From: Kiki [EMAIL PROTECTED] Octavian Rasnita wrote: From: Carl Johnstone [EMAIL PROTECTED] My site is accessed with 2 different domain names, and the app must send a cookie that specify a domain, because otherwise Firefox doesn't send the cookie back to the server. I've given you

Re: [Catalyst] warning

2008-01-23 Thread Octavian Rasnita
From: Carl Johnstone [EMAIL PROTECTED] Our sysadmin told me that this way is better because we won't make traffic (and slow down) on the public network interface. Marginal, you'd need to be doing *a lot* of data transfer. I think our data transfer at our ISP maxes out at around 12Mbps on an

Re: [Catalyst] warning

2008-01-23 Thread Octavian Rasnita
From: [EMAIL PROTECTED] Try setting the cookie to a more reasonable second count (1 day) and see if that resolves your issue. All of the browsers handle extended cookies a bit differently and while one setting may work on IE, the smae may cause a nocookie on firefox. I really believe

Re: [Catalyst] warning

2008-01-24 Thread Octavian Rasnita
From: Marcello Romani [EMAIL PROTECTED] But if I do that and a client will close the browser without logging off, somebody else could open the browser and the app will recognize him as the owner of the account, so it could be a big security issue. That's why I need to have cookies which are

Re: [Catalyst] OT: YUI v Ext JS

2008-01-26 Thread Octavian Rasnita
I've visited, but I saw that it doesn't create an html table, but just some data arranged to look like a table. So it is not very accessible for those who use screen readers. The World Wide Web Consortium recommends not to use a table for layout, but to use a table for tabular data, and not

Re: [Catalyst] So, what do we want in the -next- book?

2008-02-23 Thread Octavian Rasnita
Matt S Trout wrote: Since a fair few of you will now have John's book, I figured it was time to ask what you'd want from a second book. I don't know if my suggestions are good, but here they are: - Sample configurations for a simple Catalyst app to work with mod_perl, with mod_fastcgi,

[Catalyst] CMS

2008-03-01 Thread Octavian Rasnita
Hi, Is there a CMS made with Catalyst? Thanks. Octavian ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site:

Re: [Catalyst] CMS

2008-03-02 Thread Octavian Rasnita
From: Kieren Diment [EMAIL PROTECTED] On 2 Mar 2008, at 17:21, Yousef Alhashemi wrote: On Sat, Mar 1, 2008 at 9:18 PM, Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, Is there a CMS made with Catalyst? websiteinabox: http://code.google.com/p/websiteinabox/ wiab is a simple website

Re: [Catalyst] implementing ajax

2008-03-11 Thread Octavian Rasnita
From: Mesdaq, Ali [EMAIL PROTECTED] If you want I can maybe create something on the wiki on how to use mochikit for the js part of it and catalyst for the controller part of it. Maybe its a good advent calendar article anyone think it would be good? Very good! Thanks. Octavian

[Catalyst] not working URLS

2008-03-12 Thread Octavian Rasnita
Hi, On the page http://dev.catalystframework.org/wiki/Faq_ref#sc.1 In the section Best practices there is a link to: http://home.ngmedia.net/chansen/catalyst/conf/ that doesn't seem to display anything related to Catalyst. If somebody know if I could find the content of that page somewhere,

[Catalyst] developer.yahoo.com

2008-03-18 Thread Octavian Rasnita
Hi, I've visited http://developer.yahoo.com/ and in the list Developer central I've seen only Java, .net, Python, Ruby, PHP, Cold Fusion and others, but no Perl. Do you have any idea why? Octavian ___ List: Catalyst@lists.scsys.co.uk Listinfo:

[Catalyst] installing Catalyst

2008-03-31 Thread Octavian Rasnita
Hi, I've tried installing a newer version of Catalyst with the latest version of its modules under Windows, and it gave a few errors when installing Catalyst.pm, Catalyst/Runtime.pm and DBIx::Class. I thought those errors wouldn't be fatal, so I ignored them because I wouldn't know how to

Re: [Catalyst] New engine: HTTP::Prefork

2008-04-06 Thread Octavian Rasnita
Hi, From: Andy Grundman [EMAIL PROTECTED] Finally got around to releasing an engine I have been working on for a little bit. I was disappointed in the POE engine and came to the conclusion that POE, while tons of fun to use, is not the right framework for something like a Catalyst engine.

Re: [Catalyst] Re: CatalystSites.org

2008-04-16 Thread Octavian Rasnita
Where can we find a manual/tutorial about using Chained? Thanks. Octavian - Original Message - From: Dave Rolsky [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Wednesday, April 16, 2008 5:43 PM Subject: Re: [Catalyst] Re: CatalystSites.org On

Re: [Catalyst] Unit Testing

2008-04-20 Thread Octavian Rasnita
From: Jonathan Rockway [EMAIL PROTECTED] * On Sun, Apr 20 2008, Octavian Rasnita wrote: Please tell us if we can find an example of putting the logic in the model than call those methods from the controller. http://www.jrock.us/fp2008/catalyst/start.html Using a DBIC-based model works

Re: [Catalyst] Multi-language and REST

2008-04-28 Thread Octavian Rasnita
From: Matt Rosin [EMAIL PROTECTED] FWIW after all that such a module should allow keys stored in cookies to supplement/overwrite the url. So instead of prepending lang code, I could keep the same url but have a javascript language button set the language. I think that the pages with different

[Catalyst] C::P::UploadProgress

2008-05-14 Thread Octavian Rasnita
Hi, Can C::P::UploadProgress be made to work under Windows? I've seen that it requires C::P::Cache::FastMmap and this module can't be installed under Windows, even after installing Cache::FastMmap::WithWin32. Thank you. Octavian ___ List:

Re: [Catalyst] C::P::UploadProgress

2008-05-14 Thread Octavian Rasnita
From: Ash Berlin [EMAIL PROTECTED] Can C::P::UploadProgress be made to work under Windows? I've seen that it requires C::P::Cache::FastMmap and this module can't be installed under Windows, even after installing Cache::FastMmap::WithWin32. Thank you. Octavian Doesn't work how? Build

Re: [Catalyst] ANNOUNCE: Catalyst::Devel 1.07 and Catalyst::Manual5.7012 released to CPAN

2008-06-03 Thread Octavian Rasnita
From: Bill Moseley [EMAIL PROTECTED] Yes, whitespace issues in YAML can be frustrating. Can you give an example of a case where POD and YAML were causing new users confusion? YAML is hard to understand for a blind developer because if he arrows up or down the text, he hears the current line

Re: [Catalyst] ANNOUNCE: Catalyst::Devel 1.07 andCatalyst::Manual5.7012 released to CPAN

2008-06-04 Thread Octavian Rasnita
From: Marcus Ramberg [EMAIL PROTECTED] example of a case where POD and YAML were causing new users confusion? YAML is hard to understand for a blind developer because if he arrows up or down the text, he hears the current line spoken, but he doesn't know how many spaces is that line

Re: [OT] Re: [Catalyst] ANNOUNCE:Catalyst::Devel 1.07 andCatalyst::Manual5.7012 released to CPAN

2008-06-10 Thread Octavian Rasnita
From: Brad Bowman [EMAIL PROTECTED] YAML is hard to understand for a blind developer because if he arrows up or down the text, he hears the current line spoken, but he doesn't know how many spaces is that line indented. YAML is useful only visually, but not all the programmers can see, so

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-12 Thread Octavian Rasnita
Hi, (1) http://www.browsing.co.uk/cat I am well aware of this - the top 'tempter' paragraph is way too ugly and on this monitor makes the text pretty difficult to read, but I was on a too tight a schedule to do anything about this. The bottom half of the page has had very little time

[Catalyst] test, please ignore

2008-06-22 Thread Octavian Rasnita
test ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] Sending email from a Catalyst app

2008-07-02 Thread Octavian Rasnita
From: ivorw [EMAIL PROTECTED] I know there's more than one way to do this. I'm looking at what the best practice is. I've had some success inthe past with Catalyst::Plugin::Email, but I'm now looking at Catalyst::View::Email[::Template] which seems altogether much cleaner, able to be

Re: [Catalyst] Any recommendations for multiple forms incatalyst(have been using HTML::FormFu)?

2008-07-06 Thread Octavian Rasnita
From: Carl Franks [EMAIL PROTECTED] Will HTML::FormFu work under Windows? Yes! This is great! The reason I haven't released the MultiForm work to cpan yet, is because I've had trouble getting the tests to run under windows - but that's more an issue with how I was testing, rather than the

Re: [Catalyst] Help with paging

2008-07-16 Thread Octavian Rasnita
- Original Message - 2008/7/16 Octavian Rasnita [EMAIL PROTECTED]: From: Dermot [EMAIL PROTECTED] # Arg where is pager? Try using: sub list : Local { my ($self, $c) = @_; my $items = $c-model('MyDB::Items')-search({},{ page = $page, rows = 20, }); Where does $page come

Re: [Catalyst] Preventing simultaneous logins

2008-07-24 Thread Octavian Rasnita
From: J. Shirley [EMAIL PROTECTED] It's fairly simple to track user login now. You can have an automatic ping from the browser to the server that updates the session time. Just put it in your template wrappers so you have some simple request (even something like an action that renders an

[Catalyst] fcgid

2008-09-14 Thread Octavian Rasnita
Hi, I understand that comparing it with mod_perl, fast CGI has the advantage of allowing us to restart the applications without restarting the server. But I have also understood that fcgid don't allow using the app as an external server. If this is true, than which is the advantage of fcgid?

[Catalyst] C::P::Compress::Gzip

2008-09-20 Thread Octavian Rasnita
Hi, I try to use C::P::Compress::Gzip, but if I add it to the list of plugins, the program gives an error in the browser telling The requested URL / was not found on this server. And in the error_log I can see the following error: [Sat Sep 20 11:13:43 2008] [error] [client 127.0.0.1] Attempt

[Catalyst] Tips for forecasting the success of a programming language

2008-10-10 Thread Octavian Rasnita
Hi, Sorry if you have already seen these 2 articles: http://tinyurl.com/yhmozu http://tinyurl.com/6ydcjt They might help to preview the success of a programming language... Octavian ___ List: Catalyst@lists.scsys.co.uk Listinfo:

[Catalyst] UTF-8 chars in myapp.conf

2008-10-10 Thread Octavian Rasnita
Hi, Where can I specify that I want to use UTF-8 chars in myapp.conf? For other Config::General configuration files like HTML::FormFu forms or TT templates, I know where to set it, but for the main myapp.conf I haven't found how to do it. Thank you. Octavian

[Catalyst] Turning UTF-8 on in myapp.conf - solved

2008-10-11 Thread Octavian Rasnita
I have found how to turn UTF-8 on in myapp.conf: #MyApp.pm __PACKAGE__-config( 'Plugin::ConfigLoader' = { driver = { General = {-UTF8= 1}, }, }, ); Octavian ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] Simplified auth configuration - input requested

2008-10-20 Thread Octavian Rasnita
From: Devin Austin [EMAIL PROTECTED] Using ::Loader tends to mess some people up. I personally have written a small helper script with the options I use to update my schema code from the DB, and it makes like a million times easier. Can you share that helper? I think it could be helpful a

Re: [Catalyst] ANNOUNCE: SimpleDB - Auth configuration made easy

2008-10-28 Thread Octavian Rasnita
From: Simon Wilcox [EMAIL PROTECTED] Matt S Trout wrote: On Mon, Oct 27, 2008 at 03:51:49PM -0700, Darren Duncan wrote: Zbigniew Lukasiak wrote: * Your passwords are stored in the 'password' field in your users table and are not encrypted. This is always a bad idea. If someone ever gets

[Catalyst] recommendation

2008-11-10 Thread Octavian Rasnita
Hi, Especially for a beginner, but not only, the most simple way of creating the DBIC classes for a Catalyst app is to use the DBIC::Schema helper. I've seen that there are many components of DBIx::Class that can't be used if using this helper, because they should be loaded before Core or

Re: [Catalyst] recommendation

2008-11-10 Thread Octavian Rasnita
From: Chisel Wright [EMAIL PROTECTED] On Mon, Nov 10, 2008 at 07:31:09PM +0200, Octavian Rasnita wrote: Especially for a beginner, but not only, the most simple way of creating the DBIC classes for a Catalyst app is to use the DBIC::Schema helper. I've seen that there are many components

Re: [Catalyst] recommendation

2008-11-10 Thread Octavian Rasnita
From: Ashley [EMAIL PROTECTED] On Nov 10, 2008, at 9:31 AM, Octavian Rasnita wrote: I've seen that there are many components of DBIx::Class that can't be used if using this helper, because they should be loaded before Core or they require changing the part of the class that can't

Re: [Catalyst] Re: recommendation

2008-11-10 Thread Octavian Rasnita
From: kevin montuori [EMAIL PROTECTED] OR == Octavian Rasnita [EMAIL PROTECTED] writes: OR Especially for a beginner, but not only, the most simple way of OR creating the DBIC classes for a Catalyst app is to use the OR DBIC::Schema helper. although it's not what you asked, i'll comment

Re: [Catalyst] Re: recommendation

2008-11-15 Thread Octavian Rasnita
From: Matt S Trout [EMAIL PROTECTED] On Mon, Nov 10, 2008 at 09:40:13PM +0200, Octavian Rasnita wrote: although it's not what you asked, i'll comment that i've had great luck doing this the other way round: i write the classes (with a lot of help from an emacs template*) and generate a DDL

Re: [Catalyst] recommendation

2008-11-15 Thread Octavian Rasnita
From: Matt S Trout [EMAIL PROTECTED] On Mon, Nov 10, 2008 at 08:46:21PM +0200, Octavian Rasnita wrote: However, if I need to use DBIx::Class::DigestColumns, I don't know how to add the following statement in a BEGIN block after it was already created by the Catalyst helper without

Re: [Catalyst] Re: recommendation

2008-11-16 Thread Octavian Rasnita
From: Bernhard Graf [EMAIL PROTECTED] mydate date(10) Simply don't specify the size for date/datetime/tim fields. Can be counted as a bug at least for MySQL and SQLite (Pg seems OK). and the enum() field doesn't remember the field elements. The field elements for enum field types are not

Re: [Catalyst] Re: recommendation

2008-11-16 Thread Octavian Rasnita
From: Bernhard Graf [EMAIL PROTECTED] Octavian Rasnita wrote: Aha, so actually you are saying that the DBIC::Schema Catalyst helper doesn't create a complete and valid schema, and I must edit it manually. That's my way ATM: 1. Data definition for MySQL in plain ASCII (because I'm used

Re: [Catalyst] create search engine friendly uri from string

2008-12-16 Thread Octavian Rasnita
From: Peter Karman pe...@peknet.com no. you must set ebit in new(), not after instantiation. I've added a note to the docs to emphasize that. my $tr = Search::Tools::Transliterate-new( ebit = 0 ); Thanks. This way it works fine. The latest 4 chars are 4 new UTF-8 chars in romanian language

Re: [Catalyst] create search engine friendly uri from string

2008-12-16 Thread Octavian Rasnita
From: Moritz Onken on...@houseofdesign.de I want to print ai instead of âî and AI instead of ÂÎ. Am I using $tr-ebit correctly? The latest 4 chars are 4 new UTF-8 chars in romanian language (U +0218, U+0219, U+021A, U+021B). Can they be transliterated? They are şŞţŢ but with a comma below,

Re: [Catalyst] create search engine friendly uri from string

2008-12-17 Thread Octavian Rasnita
From: Oliver Charles oliver.g.char...@googlemail.com At $work we use Text::Unaccent for this - http://search.cpan.org/~ldachary/Text-Unaccent-1.08/Unaccent.pm Unless I've missed your point, but I hadn't seen it mentioned in this thread so far Yes it is also helpful because it allows to

[Catalyst] size of the uploaded file

2009-01-04 Thread Octavian Rasnita
Hello, I've created a file upload form using C::P::UploadProgress and I am able to upload small files with it. I have tried to upload a file that has 696 MB, but only 313 MB of this file is uploaded in the /tmp directory if I use IE 6 or 108 MB if I use Firefox, no matter how many times I tried.

Re: [Catalyst] size of the uploaded file

2009-01-04 Thread Octavian Rasnita
From: Tomas Doran bobtf...@bobtfish.net On 4 Jan 2009, at 13:42, Octavian Rasnita wrote: Does anyone know if the browsers have some file upload size limits and if they can be modified? Yes, no - but you can work around them with Flash or Java. This was discussed on-list recently: http

Re: [Catalyst] how to confirm before deleting

2009-01-21 Thread Octavian Rasnita
From: Richard Siddall richard.sidd...@elirion.net Kieren Diment wrote: Yeah, 98% of your browsers have javascript enabled and a big chunk of the remainder are bots ... On the other hand you might want a non-javascript undo option at the other end if you go that route. Duh, I should

Re: [Catalyst] Tool for rendering web pages consistently though time ?

2009-01-21 Thread Octavian Rasnita
From: lanas la...@securenet.net Hi, I'm looking for a tool/procedure that could render web pages in a consistent manner without having to rely on the screen resolution and fonts of a workstation so that, through time - and through many OS updates of various sorts - it'd be possible to

Re: [Catalyst] Re: OT: Better TT pager?

2009-01-22 Thread Octavian Rasnita
From: Oliver Charles oliver.g.char...@googlemail.com I might as well join in with this :) Here's what we use at work: [% IF pager %] ul class=paginator li class=counterPage [% pager.current_page %] of [% pager.last_page %]/li lia href=[% c.req.uri_with( page = pager.first_page

Re: [Catalyst] Re: Detach won't detach?

2009-01-28 Thread Octavian Rasnita
From: pie3...@comcast.net Why not sub auto :Private { my $c = pop; return user_logged_in || $c-redirect( ... ); } Why not: sub auto :Private { return user_logged_in || pop-redirect( ... ) || 0; } Octavian ___ List:

Re: [Catalyst] Re: Detach won't detach?

2009-01-28 Thread Octavian Rasnita
I see. In that case $_-[-1] could be used instead of $c, but it is not very nice... Octavian - Original Message - From: Matthias Dietrich mdietr...@cpan.org To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Wednesday, January 28, 2009 7:58 PM Subject: Re: [Catalyst]

Re: [Catalyst] Re: Detach won't detach?

2009-01-29 Thread Octavian Rasnita
29 2009, Octavian Rasnita wrote: I see. In that case $_-[-1] could be used instead of $c, but it is not very nice... BTW, I thought I would reply to this thread and remind everyone that this is just supposed to be funny at this point. If you actually write your code this way, you are crazy

Re: [Catalyst] Proper ngettext with Catalyst

2009-02-01 Thread Octavian Rasnita
On Sat, Jan 31, 2009 at 8:29 AM, Nikolai Prokoschenko b. is wrong semantically, since plural form count is different in different languages and the position of a word can differ depending on the number (this is one reason why gnu recommends translating complete sentences) I didn't know that.

Re: [Catalyst] Proper ngettext with Catalyst

2009-02-01 Thread Octavian Rasnita
From: J. Shirley jshir...@gmail.com Most east-Asian languages don't have the same concept of plurals. You don't add the s, so it would just be I have 1 apple or I have 10 apple. This is not an issue, because for the japanese translation, the string could be something like: I have

Re: [Catalyst] Proper ngettext with Catalyst

2009-02-01 Thread Octavian Rasnita
From: Kieren Diment dim...@gmail.com In indonesian, to pluralise you just say the word twice, or in writing put a 2 after it. I have two apples: Saya ada dua appel appel. or: Saya ada dua appel2 Saya ada [quant,_1,appel,appel appel]. But it doesn't do a perfect translation this way,

Re: [Catalyst] Proper ngettext with Catalyst

2009-02-02 Thread Octavian Rasnita
From: Felix Antonius Wilhelm Ostmann ostm...@websuche.de i run into the same problem with german phrases [quant,_1,message has,messages have] been sent. but in german: singular: Es wurde 1 Nachricht gesendet. plural: Es wurden 10 Nachrichten gesendet. So i cant build that with normal

Re: [Catalyst] HTML::FormFu form elements

2009-02-11 Thread Octavian Rasnita
From: Greg Coates gcoa...@csuchico.edu I've run into a scenario where I need to be able to build an HTML::FormFu form and then only display portions of it in my template. (So, the typical [% form %] in the template will be replaced by something else, at least in my ideal world.) I tried

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-17 Thread Octavian Rasnita
From: Ali M. tclwarr...@gmail.com When Catalyst is not chosen I personally believe it the combination of two things 1. Perl is no longer perceived as an easy language, or language that make development easier. More exactly,, Perl is considered a language hard to learn, that creates a code

Re: [Catalyst] RFC: New to Catalyst questions

2009-02-20 Thread Octavian Rasnita
From: Kieren Diment kie...@diment.org On 20/02/2009, at 8:49 PM, Octavian Rasnita wrote: From: Dan Dascalescu ddascalescu+catal...@gmail.com Regarding wiki questions: The Catalyst wiki runs on MojoMojo (http://mojomojo.org), Too bad that it doesn't run under Windows. Why not? I

Re: [Catalyst] RFC: New to Catalyst questions

2009-02-20 Thread Octavian Rasnita
From: Rodrigo rodrigol...@gmail.com First I was not able to install File::NFSLock with cpan, but I found a ppm distribution for it. But I've seen that after doing this, more other cpan modules couldn't be installed, and one of them is Cache::FastMmap which I know that it can't be installed

Re: [Catalyst] RFC: New to Catalyst questions

2009-02-20 Thread Octavian Rasnita
From: Dan Dascalescu ddascalescu+catal...@gmail.com I didn't have a problem with File::NFSLock compiling with the latest Strawberry version. I did, and I'm not the only one: http://rt.cpan.org/Public/Bug/Display.html?id=40185 PS: Cache::Memory is a bogus dependency. I just removed it.

Re: [Catalyst] Thoughts On GeoIP Modules?

2009-03-12 Thread Octavian Rasnita
From: Andy Dorman ador...@ironicdesign.com The problem so far is manual sign ups for accounts that are then abused. And in analyzing what happened we have noticed that many of the abused accounts were signed up from one or two countries. We think that geoIP restrictions could cut our

Re: [Catalyst] How to detect if the current form request is a post?

2009-04-01 Thread Octavian Rasnita
From: kakim...@tpg.com.au Thank you:) Yep, and I am aware of GET as a form request method and yes, i hate it. Why? I knew that it should be the prefered method for the forms that don't change anything on the server, like a search form. Isn't this true? I ask this because I've seen many

Re: [Catalyst] Using JSON

2009-04-14 Thread Octavian Rasnita
Ok, thank you all for your recommendations. So C::V::JSON would be the way to go for creating JSON and C::C::REST for creating/parsing. I don't know yet if I would need to parse JSON if I use JQuery because I've seen that it can get the data in JSON format, but it sends the requests to the

Re: [Catalyst] RFC: Sample press release and announcement homepage

2009-04-23 Thread Octavian Rasnita
From: John Napiorkowski jjn1...@yahoo.com ... the revolutionary Moose Object system, the most advanced Object Oriented framework for any major scripting language I would change that to 'one of the most advanced' - less flame igniting (and by the way Perl 6 probably does have a more advanced

[Catalyst] setting the locale with DBIx::Class::InflateColumn::DateTime

2009-04-24 Thread Octavian Rasnita
Hi, (Sorry for asking on this list, but my messages are rejected from DBIC mailing list.) Is it possible to set the locale for a certain date field if DBIx::Class::InflateColumn::DateTime is used when using that date, and not in the class definition? I don't think it is OK to hard code

Re: [Catalyst] setting the locale withDBIx::Class::InflateColumn::DateTime

2009-04-24 Thread Octavian Rasnita
From: Moritz Onken on...@houseofdesign.de Am 24.04.2009 um 10:53 schrieb Octavian Rasnita: Hi, (Sorry for asking on this list, but my messages are rejected from DBIC mailing list.) Is it possible to set the locale for a certain date field if DBIx::Class::InflateColumn::DateTime is used

Re: [Catalyst] The Netiquette thread (OT)

2009-04-28 Thread Octavian Rasnita
From: Simon Wilcox sim...@digitalcraftsmen.net Actually, it's mostly the inconsistency that's bad. I'm on several lists that work just fine with top posting. I fully agree with this. The netiquette's scope is to make everyone happy, but this is not possible. As an example, a blind person

[Catalyst] Using path_to()

2009-04-29 Thread Octavian Rasnita
Hi, In which components of a Catalyst app can I use __PACKAGE__-path_to()? I've seen that if I use in a MyApp/View/TT.pm module __PACKAGE__-config( COMPILE_DIR = __PACKAGE__-path_to('templates'), ); it gives an error like: Can't locate object method path_to via package MyApp::View::TT at

[Catalyst] Using mysql_enable_utf8

2009-04-29 Thread Octavian Rasnita
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 the model in 2 places as: __PACKAGE__-config( dsn =

Re: [Catalyst] website member urls

2009-04-29 Thread Octavian Rasnita
From: Charles technically, you're correct in that I should consider placing the usernames under /user. But I'm thinking of the fuzzy (to me) usability issues involved and the http://website.com/ meme is what hundreds of millions non-developer users have come to expect. Also, fwiw,

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] Slow fastcgi

2009-05-04 Thread Octavian Rasnita
Hi, I have started using fastcgi with a Catalyst app, using it as an external server, but I've seen that it works very slow and many requests give a timeout error and display a 500 error because of this. I started the Catalyst app using: /oct/TB/script/tb_fastcgi.pl -l /tmp/tb.socket -n 5

Re: [Catalyst] Mason + DBI + Catalyst?

2009-05-27 Thread Octavian Rasnita
From: Marcello Romani mrom...@ottotecnica.com Octavian Râsnita ha scritto: On Tue, May 26, 2009 at 01:37:40AM +0200, Daniel Carrera wrote: Being able to chain resultsets makes it much much easier than using straight SQL, and you write less code. If you have a query you've constructed called

Re: [Catalyst] Looking for a working example using DBIC and Authentication

2009-05-28 Thread Octavian Rasnita
From: J. Shirley Trusting Google to give you the latest version is probably a pretty bad idea :) To derail this conversation a little bit, perhaps the canonical meta tag pointing to the most recent release would do well on older versions still sitting on CPAN? I'm not sure how else to

[Catalyst] DBIx::Class::Schema::Loader catalyst helper

2009-05-29 Thread Octavian Rasnita
Hi, I made a Catalyst app (under Windows) and I put it run under Linux. Under both OSes I use the same version (latest) of: Catalyst::Runtime Catalyst::Devel Catalyst::Helper::Model::DBIC::Schema DBIx::Class If I generate the DBIC result classes using DBIC::Schema under Windows and I upload

Re: [Catalyst] DBIx::Class::Schema::Loader catalyst helper

2009-05-29 Thread Octavian Rasnita
From: Ivan Wills 2009/5/29 Octavian Rasnita orasn...@gmail.com Hi, I made a Catalyst app (under Windows) and I put it run under Linux. If I generate the DBIC result classes using DBIC::Schema under Windows and I upload them under Linux, then I try to re-generate them

Re: [Catalyst] how do you distribute a catalyst app

2009-06-11 Thread Octavian Rasnita
From: Hans Dieter Pearcey hdp.perl.catalyst.us...@weftsoar.net On Thu, Jun 11, 2009 at 10:46:49PM +0300, Octavian Râşniţă wrote: I discovered the problem. Moose requires a newer version of Class::MOP than the one I had it installed. I don't know why cpan didn't try to install the newer version,

Re: [Catalyst] Potential query string pollution vulnerability?

2009-06-16 Thread Octavian Rasnita
From: Tobias Kremer tobias.kre...@gmail.com Hi all, I just experienced a nasty case of query string pollution vulnerability in one of my Catalyst/DBIC apps. I think that the circumstances under which this applies are not _that_ rare, so I figured it'd be best to inform the world. Imagine the

Re: [Catalyst] Catalyst::Plugin::Captcha example ...

2009-06-17 Thread Octavian Rasnita
From: Kieren Diment kie...@diment.org On 17/06/2009, at 7:52 PM, Kiffin Gish wrote: Is there some example code out there using the Captcha plugin so I could learn a bit better how to use it? Use Catalyst::Controller::reCAPTCHA instead. It's better in quite a few ways.

Re: [Catalyst] 10 Catalyst Models in 10 Days wrapping up-ish

2009-07-28 Thread Octavian Rasnita
From: Tomas Doran bobtf...@bobtfish.net On 28 Jul 2009, at 18:21, Octavian Râsnita wrote: MooseX::TheSchwartz I haven't even looked at this, other than to note that it wins the worst named module EVAR prize (as MooseX:: is a namespace for Moose extensions, which this blatantly isn't). Cheers

[Catalyst] Recommended OS for Catalyst?

2009-08-06 Thread Octavian Rasnita
Hi, Can you recommend a Linux distribution for production for Catalyst apps? ...and a version of Perl? Thanks. -- Octavian ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

Re: [Catalyst] datetime formatting ...

2010-01-06 Thread Octavian Rasnita
From: Kiffin Gish kiffin.g...@planet.nl I've got a datetime column defined: __PACKAGE__-add_columns( ... last_modified, { data_type = DATETIME, default_value = undef, is_nullable = 1, size = undef, }, ); For some reason it's being displayed like this: 2010-01-05T20:35:14

Re: [Catalyst] Various ways to use c.uri_for

2010-01-09 Thread Octavian Rasnita
From: Kiffin Gish kiffin.g...@planet.nl I noticed that in certain examples depending on the coder, sometimes the following format is used: c.uri_for(c.controller('Users').action_for('list')) and other times this fomat: c.uri_for('/users/list') What's the difference and is there an

Re: [Catalyst] Re: Various ways to use c.uri_for

2010-01-09 Thread Octavian Rasnita
From: Aristotle Pagaltzis pagalt...@gmx.de * Octavian Rasnita orasn...@gmail.com [2010-01-09 15:20]: It could be helpful to have shortcuts for the second way of creating URLS, something like... c.url_query('controller_name', 'action_name', param1, param2) Already exists, although it uses

Re: [Catalyst] Re: Various ways to use c.uri_for

2010-01-09 Thread Octavian Rasnita
From: Tomas Doran bobtf...@bobtfish.net On 9 Jan 2010, at 20:35, Octavian Rasnita wrote: (Maybe the docs could be a little more clear, because this is a great feature.) Please supply a doc patch? Cheers t0m I was sure you will say this. :-) I attached a unified diff for the version

  1   2   3   >