[Catalyst] Re: Last Chance / Last Day: Web development platform contest and Perl / Catalyst

2006-12-05 Thread A. Pagaltzis
* Octavian Rasnita [EMAIL PROTECTED] [2006-12-05 08:40]: What wiki do you recommend? (in perl or php) I have tried TWiki, but it has some bugs that I don't know how to solve. I think they all suck. :-) I’d probably try PhpWiki first. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

[Catalyst] FastCGI External

2006-12-05 Thread Sébastien Wagener
Hi, I have a Catalyst application that is running as an external FastCGI process. My Apache config looks like FastCgiExternalServer /tmp/myapp -socket /tmp/myapp.socket [...] Alias /myapp/ /tmp/myapp/ If I call http://localhost/myapp/user/login, Catalyst receives a request for

Re: [Catalyst] Re: Last Chance / Last Day: Web development platform contest and Perl / Catalyst

2006-12-05 Thread Jake
Thought I'd chime in with our developer contest at www.stickam.com, since we're doing one right now. Simply: We're rewarding the most interesting third party Stickam project with $1000 and a PS3 More details here: http://labs.stickam.com/ I'd really love a Perl hacker using Catalyst to win!

Re: [Catalyst] Re: Last Chance /LastDay:Webdevelopmentplatformcontestand Perl / Catalyst

2006-12-05 Thread Dave Howorth
Octavian Rasnita wrote: Yesterday I have installed Catalyst and Task::Catalyst under Linux, using the CPAN shell. The process gave many errors, but they disappeared beeing replaced by the new lines printed, so I don't know how to find them. I have tried install Catalyst again, thinking that I

Re: [Catalyst] Re: Last Chance / Last Day: Web development platform contest and Perl / Catalyst

2006-12-05 Thread Dave Howorth
Jonathan Rockway wrote: Michael Reece wrote: cut click Catalyst::Manual::Tutorial: http://search.cpan.org/perldoc?Catalyst%3A%3AManual%3A%3ATutorial and get a big *Not found* from search.cpan.org Well, we don't control search.cpan.org, so that's really not something we can help.

Re: [Catalyst] Re: Last Chance /LastDay:Webdevelopmentplatformcontestand Perl / Catalyst

2006-12-05 Thread Daniel McBrearty
to run an individual test : perl -Ilib t/some_test_module.t On 12/5/06, Dave Howorth [EMAIL PROTECTED] wrote: Octavian Rasnita wrote: Yesterday I have installed Catalyst and Task::Catalyst under Linux, using the CPAN shell. The process gave many errors, but they disappeared beeing

[Catalyst] Wikis (was: Last Chance / Last Day: Web development platform contest and Perl / Catalyst)

2006-12-05 Thread A. Pagaltzis
* Octavian Rasnita [EMAIL PROTECTED] [2006-12-05 11:45]: From: A. Pagaltzis [EMAIL PROTECTED] I think they all suck. :-) I’d probably try PhpWiki first. Ok, thanks. Do you want to say that all of them have big bugs? No, I’m just saying all of them having things I dislike a lot as a

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Joel Bernstein
On Tue, Dec 05, 2006 at 01:10:35PM +0100, Daniel McBrearty wrote: How does one do this? If you have a text input field which can be in *any* language, which will get stored in the db, how do you protect against script injection? If it's just english, I normally only accept characters from

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Daniel McBrearty
yes, I would know the language being supported. There are a lot of languages though. Does it work with Chinese, or Marathi (Devanagari)? I didn't know that \W did that though. guess I need to look into it. Never seen that in the perldocs - any idea where I can look for the small print? On

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Joel Bernstein
On Tue, Dec 05, 2006 at 02:11:27PM +0100, Daniel McBrearty wrote: hmmm ... I'll start here ... http://www.perl.com/doc/manual/html/pod/perllocale.html Read perllocale, perlre (the section on \w and \W escapes for word/non-word characters) and locale. You will need the correct locales

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Daniel McBrearty
If you're talking about sql injection then presumably you could do this exactly the same as you would any other input field - use sql placeholders in a prepared query rather than blindly pasting untrusted input as sql. This is what I'm talking about. I don't know this technique - I thought

Re: [Catalyst] model connect info to come from YAML configuration file

2006-12-05 Thread Brian Cassidy
Hermida, Leandro wrote: Inside MyApp::Model::MyAppDB: use strict; use base 'Catalyst::Model::DBIC::Schema'; __PACKAGE__-config( schema_class = 'MyAppDB', connect_info = [ 'dbi:SQLite:myapp.db', '', '', { AutoCommit = 1 }, ], );

[Catalyst] Coverage tests in Catalyst

2006-12-05 Thread Ian Docherty
Is it possible to do coverage tests in a Catalyst application? If so how? I can't find any references that help. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive:

Re: [Catalyst] Wikis (was: Last Chance / Last Day: Web developmentplatform contest and Perl / Catalyst)

2006-12-05 Thread Octavian Rasnita
From: A. Pagaltzis [EMAIL PROTECTED] I’d probably try PhpWiki first. Hi, Does PHPWiki support creating tables without using html code? I've checked their site, but I haven't found that something like that could be done. BTW, are there any wiki plug-ins for Catalyst? Thanks. Teddy

Re: [Catalyst] model connect info to come from YAML configuration file

2006-12-05 Thread Juan Miguel Paredes
On 12/5/06, Juan Miguel Paredes [EMAIL PROTECTED] wrote: On 12/5/06, Hermida, Leandro [EMAIL PROTECTED] wrote: Hello, I remember seeing the question being asked before but I couldn't find it in the archives. How does one set up the model connect info to come from the YAML configuration

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Brandon Black
On 12/5/06, Daniel McBrearty [EMAIL PROTECTED] wrote: This is what I'm talking about. I don't know this technique - I thought the only approach was to filter input. I'm using DBIx, AFAIK it does use placeholders ... ? If so, I can just take input, do some basic sanity filtering, and store?

RE: [Catalyst] model connect info to come from YAML configuration file

2006-12-05 Thread Hermida, Leandro
Hi, thank you. Sorry I am a new user who has just finished the tutorial and seeing where I can go next and I now I am starting to put things together that the YAML file maps to the namespace and fills the __PACKAGE__-config() in that namespace. Cool!! Is there any way to make the YAML file a

Re: [Catalyst] model connect info to come from YAML configuration file

2006-12-05 Thread Juan Miguel Paredes
On 12/5/06, Juan Miguel Paredes [EMAIL PROTECTED] wrote: On 12/5/06, Juan Miguel Paredes [EMAIL PROTECTED] wrote: On 12/5/06, Hermida, Leandro [EMAIL PROTECTED] wrote: Hello, I remember seeing the question being asked before but I couldn't find it in the archives. How does one set up

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Daniel McBrearty
thanks people, this is very helpful. Well, everything is postgresql / linux, so MSSQL will never be an issue. Also I only ever use utf8 ... so I guess I'm home and dry. It would be very neat to be able to do this without locale-switching (and installing). as a matter of interest, does anyone

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Dave Howorth
Brandon Black wrote: On 12/5/06, Daniel McBrearty [EMAIL PROTECTED] wrote: This is what I'm talking about. I don't know this technique - I thought the only approach was to filter input. I'm using DBIx, AFAIK it does use placeholders ... ? If so, I can just take input, do some basic sanity

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Steve Atkins
On Dec 5, 2006, at 5:28 AM, Daniel McBrearty wrote: If you're talking about sql injection then presumably you could do this exactly the same as you would any other input field - use sql placeholders in a prepared query rather than blindly pasting untrusted input as sql. This is what I'm

[Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-05 Thread Hermida, Leandro
Hello all, I thought the tutorial was absolutely great - things that I had in the past spent hours developing myself are practically plug and play and it gives you a nice taste of how powerful Catalyst is! One question about the tutorial though, doesn't building presentation material inside

[Catalyst] Re: Wikis

2006-12-05 Thread A. Pagaltzis
* Octavian Rasnita [EMAIL PROTECTED] [2006-12-05 14:45]: Does PHPWiki support creating tables without using html code? Yes. I've checked their site, but I haven't found that something like that could be done. Then you didn’t look for the text formatting rules. BTW, are there any wiki

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Daniel McBrearty
I'll never forget the hours I spent discovering that mysql needs some little-documented command on connect, even though all tables are declared as UTF8 ... one of the factors that decided me on postgresql for the next version. In the first implementation of engoi, I was pretty paranoid about

Re: [Catalyst] model connect info to come from YAML configuration file

2006-12-05 Thread John Napiorkowski
-- Brian Cassidy [EMAIL PROTECTED] wrote: Hermida, Leandro wrote: Inside MyApp::Model::MyAppDB: use strict; use base 'Catalyst::Model::DBIC::Schema'; __PACKAGE__-config( schema_class = 'MyAppDB', connect_info = [ 'dbi:SQLite:myapp.db', '',

Re: [Catalyst] Re: Wikis

2006-12-05 Thread Octavian Rasnita
Does PHPWiki support creating tables without using html code? Yes. I've checked their site, but I haven't found that something like that could be done. Then you didn’t look for the text formatting rules. I have visited http://www.phpwiki.org/ and I have read the Text formatting rules

Re: [Catalyst] Coverage tests in Catalyst

2006-12-05 Thread Perrin Harkins
Ian Docherty wrote: Is it possible to do coverage tests in a Catalyst application? If so how? I can't find any references that help. If you're using mod_perl, there is a brief section in the Devel::Cover man page that tells you how to do it. - Perrin

[Catalyst] wiki of choice

2006-12-05 Thread Jonathan Rockway
Octavian Rasnita wrote: From: A. Pagaltzis [EMAIL PROTECTED] That just means noone has taken the time to groom the wiki. You don’t have to move things out of it to get it well organised. Without a gnome or two to look after them, wikis tend to devolve into an unnavigable mess. Regards,

Re: [Catalyst] FastCGI External

2006-12-05 Thread Jonathan Rockway
Sébastien Wagener wrote: I have a Catalyst application that is running as an external FastCGI process. My Apache config looks like FastCgiExternalServer /tmp/myapp -socket /tmp/myapp.socket [...] Alias /myapp/ /tmp/myapp/ If I call http://localhost/myapp/user/login, Catalyst

Re: [Catalyst] Coverage tests in Catalyst

2006-12-05 Thread Jonathan Rockway
Ian Docherty wrote: Is it possible to do coverage tests in a Catalyst application? If so how? I can't find any references that help. Catalyst apps aren't special -- do coverage tests like you would with any other perl module: $ cover -delete $ HARNESS_PERL_SWITCHES=-MDevel::Cover make

[Catalyst] Re: Wikis

2006-12-05 Thread A. Pagaltzis
* Octavian Rasnita [EMAIL PROTECTED] [2006-12-05 16:45]: I have visited http://www.phpwiki.org/ and I have read the Text formatting rules sections, but I haven't seen anything about tables. Hmm, it’s not mentioned indeed. Ah well, documentation was always PhpWiki’s weak point… along with

Re: [Catalyst] Re: Wikis

2006-12-05 Thread Caroline Johnston
If you're just looking for something quick and easy, have you tried pmwiki (www.pmwiki.org)? It's just php and flat-files, it's dead simple to set up and there's loads of documentation. There's a full markup list (including tables) at http://www.pmwiki.org/wiki/PmWiki/MarkupMasterIndex Cxx On

Re: [Catalyst] Coverage tests in Catalyst

2006-12-05 Thread Ian Docherty
Don't we have to do both of these? Coverage of the 'make test' will only show coverage for those modules we can test 'statically' i.e. by making direct calls to the methods in the tests Tests that are done with LWP (or is it Mechanize) which are http requests to the application will

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Christopher H. Laco
Jonathan Rockway wrote: Nilson Santos Figueiredo Junior wrote: This way, everything will probably just work, even when the user has a on their names or any other weird characters. No, you can inject plenty of bad code without . You need to escape , , , , and '. Otherwise, consider

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Nilson Santos Figueiredo Junior
On 12/5/06, Jonathan Rockway [EMAIL PROTECTED] wrote: Nilson Santos Figueiredo Junior wrote: This way, everything will probably just work, even when the user has a on their names or any other weird characters. No, you can inject plenty of bad code without . You need to escape , , , , and '.

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-05 Thread Sebastian Riedel
Hermida, Leandro wrote: I thought the tutorial was absolutely great - things that I had in the past spent hours developing myself are practically plug and play and it gives you a nice taste of how powerful Catalyst is! One question about the tutorial though, doesn't building presentation

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-05 Thread Perrin Harkins
Nilson Santos Figueiredo Junior wrote: c) write a TT plugin. [...] c is arguably clumsy and not practical at all. It can be really easy to add custom view code to TT templates. You can immediately load any class and just call it: [% USE MyView %] [% MyView.method(arg) %] If it supports

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-05 Thread John Siracusa
On 12/5/06 7:51 PM, Nilson Santos Figueiredo Junior wrote: On 12/5/06, Sebastian Riedel [EMAIL PROTECTED] wrote: HTML::Widget was an experiment and i wouldn't suggest using it anymore. There should be a TT plugin imo similar to the CGI.pm one, just sane. :) IMO, the real thing that's missing

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-05 Thread Nilson Santos Figueiredo Junior
On 12/5/06, Perrin Harkins [EMAIL PROTECTED] wrote: It can be really easy to add custom view code to TT templates. You can immediately load any class and just call it: [% USE MyView %] [% MyView.method(arg) %] Yes, but you'd need to manually use the correct class in every template and then

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-05 Thread Perrin Harkins
Nilson Santos Figueiredo Junior wrote: On 12/5/06, Perrin Harkins [EMAIL PROTECTED] wrote: It can be really easy to add custom view code to TT templates. You can immediately load any class and just call it: [% USE MyView %] [% MyView.method(arg) %] Yes, but you'd need to manually use the