Re: [Catalyst] password strength

2017-04-05 Thread Peter Karman
is better to use There's no Perl port yet, but I highly recommend https://github.com/dropbox/zxcvbn -- Peter Karman . https://karpet.github.io . https://keybase.io/peterkarman ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

Re: [Catalyst] Chained and exceptions

2013-05-10 Thread Peter Karman
to break chains. Not having to do that, or making it configurable, would be nice. -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Catalyst and LDAP with sessions

2012-03-04 Thread Peter Karman
algorithm from both PHP and Perl), but I am sure there are other 2-way encryption modules that would work just as well. -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

Re: [Catalyst] Catalyst and LDAP with sessions

2012-02-24 Thread Peter Karman
=3D ou=3Dusers,dc=3Dexample,= dc=3Dcom, filter =3D (uid=3D*)); my @entries =3D $mesg-sorted('uid'); $c-stash(users =3D \@entries,); $c-stash(template =3D 'userList.tt2'); [...] -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] Actions for asserting relationships

2011-05-31 Thread Peter Karman
it perfect. [0] http://jcalcote.wordpress.com/2008/10/16/put-or-post-the-rest-of-the-story/ -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: [Catalyst] Re: Making secure session cookies (or, how do we make Explorer stop complaining about nonsecure content on a secure page?)

2011-02-21 Thread Peter Karman
a https version instead. -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ 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

Re: [Catalyst] Form Filosophy - pardon the pun:)

2011-01-05 Thread Peter Karman
RHTMLO myself, largely because it works the way my brain does. Same with RDBO. I know I'm in the minority amongst Catalyst users, which probably says something unflattering about my brain. -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] Re: superuser switch-user session function?

2010-11-30 Thread Peter Karman
is allowed to revert to the original user, but otherwise the app treats the current session just as it would if the new user had logged in normally. [0] http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg09968.html -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] Which Form Validation Libs?

2010-11-30 Thread Peter Karman
Eric Berg wrote on 11/29/2010 09:34 PM: You guys got any recommendations? Rose::HTML::Objects -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

Re: [Catalyst] Per request data in controller base class

2010-11-23 Thread Peter Karman
with multiple developers using the stash as they work on different parts of a single dispatch chain. -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: [Catalyst] Running system commands under FastCGI with IPC::Cmd / IPC::Run

2010-10-21 Thread Peter Karman
stream fd. sub FILENO { -1 } In addition, you may want to look at SVN::Class, which does some fileno hackery for this same reason. http://cpansearch.perl.org/src/KARMAN/SVN-Class-0.16/lib/SVN/Class.pm -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] autocrud/ExtJS question

2010-09-24 Thread Peter Karman
and point your browser at http://localhost:3000/crud/test/foo/list [0] While the m2m support has been in CXCY for a long time, I just now added examples to the svn trunk test app. -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List

Re: [Catalyst] Deleting the expired session files?

2010-09-04 Thread Peter Karman
it should be deleted? -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ 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

Re: [Catalyst] working with strange port setups

2010-08-21 Thread Peter Karman
to be adding a test in t/aggregate/unit_core_engine_cgi-prepare_path.t and you're very likely to want to do the fix in Catalyst::Engine::CGI specifically, probably, these lines: if ( $port !~ /^(?:80|443)$/ $host !~ /:/ ) { $host .= :$port; } -- Peter Karman . http

Re: [Catalyst] superuser switch-user session function?

2010-07-08 Thread Peter Karman
$auth-logout($c); # login as original user $auth-login( $c, $orig_user, $groups ); # redirect to myMSI $c-res-redirect( $c-uri_for('/my') ); } -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst

Re: Follow Up: [Catalyst] Alternatives to DBIx:Class?

2010-04-19 Thread Peter Karman
for bootstrapping an entire Cat app using RDBO: http://www.catalystframework.org/calendar/2007/7 -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Distributing and updating Cat apps

2010-04-09 Thread Peter Karman
varnish) you can just let Static::Simple serve them, otherwise just point your web server's /static location to that dir. See also Catalyst::Plugin::Static::Simple::ByClass -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List

Re: [Catalyst] Taking advantage of idle periods by performing some action(s)

2010-03-25 Thread Peter Karman
to be involved. cron is your friend. -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] Redirecting Catalyst's Log to a File

2010-03-08 Thread Peter Karman
-- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ 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

Re: [Catalyst] Check session expiry without extending it

2010-03-04 Thread Peter Karman
) { AIR.Auth.window.focus(); } // the alert is necessary to keep the browser from proceeding // with whatever request it was making. alert(Your session has expired. Login again and then click Ok.); } -- Peter Karman . http://peknet.com/ . pe...@peknet.com

[Catalyst] C::A::Store::LDAP and multiple UID attributes

2010-01-25 Thread Peter Karman
not *require* it. OTOH, it might be a legitimate feature request to support multiple UIDs in a single entry, in which case I'll have to put on my thinking cap about how best to fix it. I'm soliciting feedback here from other devs and users of the LDAP auth stuff. -- Peter Karman . http

Re: [Catalyst] Page fragment caching

2010-01-20 Thread Peter Karman
Tobias Kremer wrote on 01/20/2010 03:51 AM: Any other ideas? Template::Plugin::Cache ? -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: [Catalyst] CatalystX::CRUD::Controller::RHTMLO: related database tables and nested forms

2010-01-12 Thread Peter Karman
that helps. Feel free to ask more questions if it doesn't, and consider adding a write-up of your experience to the Catalyst wiki to help the next folks who stumble along this path. Oh, and doc patches also welcome. -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] CatalystX::CRUD::Tutorial...looking for missing pieces.

2010-01-07 Thread Peter Karman
Oliver Gorwits wrote on 1/7/10 2:36 PM: For AutoCRUD[1] I discovered that ExtJS is now available from the CacheFly CDN so we are freely permitted to point at those files: lovely! thanks Oliver. -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] CatalystX::CRUD::Tutorial...looking for missing pieces.

2010-01-06 Thread Peter Karman
is the actual Catalyst application. -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ 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

Re: [Catalyst] Rose+CRUD tutorial attempt giving syntax error

2010-01-06 Thread Peter Karman
-{current_view_instance} # the instance of the view to use for this request You need to set a 'default_view' value in your app config file. Assuming you have called your RDGC View file 'RDGC.pm' you should use the value 'RDGC'. -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] CatalystX::CRUD::Tutorial...looking for missing pieces.

2010-01-06 Thread Peter Karman
Peter Karman wrote on 1/6/10 8:44 PM: To get rid of those messages, just copy the installed tt_config.tt file to your local app and modify it. Example: and I forgot the important part: remove this line from your local copy: ThisIsDefTTConfig = 1; -- Peter Karman . http://peknet.com

Re: [Catalyst] CatalystX::CRUD::Tutorial...looking for missing pieces.

2010-01-05 Thread Peter Karman
in their respective test directories here: http://cpansearch.perl.org/src/KARMAN/CatalystX-CRUD-ModelAdapter-DBIC-0.11/t/example http://cpansearch.perl.org/src/KARMAN/CatalystX-CRUD-Model-RDBO-0.22/t/lib/ Feel free to post back here with any questions/comments/patches. pek -- Peter Karman . http://peknet.com

Re: [Catalyst] Partial page cache plugin

2009-12-07 Thread Peter Karman
-February/020984.html I did like using the C::P::CHI while it existed on cpan, and preferred it over the C::P::Cache plugin. But I understand t0m's point and agree (in principle anyway... ;) ) -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] Partial page cache plugin

2009-12-06 Thread Peter Karman
/dist/Template-Plugin-Cache/ -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ 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

Re: [Catalyst] auto method never triggered

2009-11-01 Thread Peter Karman
Julien Sobrier wrote on 11/1/09 8:07 PM: Thank you Shoudl It put __PACKAGE__-config-{namespace} = ''root;, or simply remove this line? You should leave it as-is in the Root.pm and remove the line altogether in the Admin.pm. -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] FormFu or FormBuilder

2009-10-30 Thread Peter Karman
FormBuilder is not recommended anymore, according to the wiki (to answer the OP question). -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: [Catalyst] CatalystX::CRUD Storage Error

2009-07-31 Thread Peter Karman
Amiri Barksdale wrote on 7/30/09 4:11 PM: On Tue, Jul 28, 2009 at 08:30:44AM -0500, Peter Karman wrote: | Peter Karman wrote on 07/28/2009 07:51 AM: | Amiri Barksdale wrote on 7/27/09 8:46 PM: | On Thu, Jul 16, 2009 at 11:33:38PM -0500, Peter Karman wrote: | | Also, your controller inherits

Re: [Catalyst] CatalystX::CRUD Storage Error

2009-07-28 Thread Peter Karman
Amiri Barksdale wrote on 7/27/09 8:46 PM: On Thu, Jul 16, 2009 at 11:33:38PM -0500, Peter Karman wrote: | Also, your controller inherits from the base CatalystX::CRUD::Controller, which | doesn't really *do* anything by default. I.e., you need a form handler to | serialize and validate your

Re: [Catalyst] CatalystX::CRUD Storage Error

2009-07-28 Thread Peter Karman
Peter Karman wrote on 07/28/2009 07:51 AM: Amiri Barksdale wrote on 7/27/09 8:46 PM: On Thu, Jul 16, 2009 at 11:33:38PM -0500, Peter Karman wrote: | Also, your controller inherits from the base CatalystX::CRUD::Controller, which | doesn't really *do* anything by default. I.e., you need a form

Re: [Catalyst] recommended/best practice way of serving static files after authentication?

2009-07-28 Thread Peter Karman
variations on the theme are possible of course, including putting the auth_tkt value in the uri path instead of as a param and then using mod_rewrite in apache to untangle it. -- Peter Karman . http://peknet.com/ . pe...@peknet.com gpg key: 37D2 DAA6 3A13 D415 4295 3A69 448F E556 374A 34D9

Re: [Catalyst] CatalystX::CRUD Storage Error

2009-07-17 Thread Peter Karman
-sqlt_type +$self-app_class-model( $self-model_name )-result_source-storage-sqlt_type that would be true if $self-model_name returned the moniker name of a particular ResultSet. But it shouldn't. It should return the (MyApp-prefix-remove) name of the Catalyst::Model::DBIC::Schema class. -- Peter

Re: [Catalyst] CatalystX::CRUD Storage Error

2009-07-16 Thread Peter Karman
::Class::ResultSet, so at least the error message is telling the truth. -- Peter Karman . http://peknet.com/ . pe...@peknet.com gpg key: 37D2 DAA6 3A13 D415 4295 3A69 448F E556 374A 34D9 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] CatalystX::CRUD Storage Error

2009-07-16 Thread Peter Karman
Amiri Barksdale wrote on 7/16/09 10:48 PM: On Thu, Jul 16, 2009 at 09:36:47PM -0500, Peter Karman wrote: | what does your Controller config look like? Specifically, what is the value of | 'model_name' and what does the model_name class look like? The model_name value | should be the same

Re: [Catalyst] offset the URI of an existing Cat App

2009-07-07 Thread Peter Karman
are you deploying the app? FastCGI? mod_perl? etc. -- Peter Karman . http://peknet.com/ . pe...@peknet.com gpg key: 37D2 DAA6 3A13 D415 4295 3A69 448F E556 374A 34D9 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

[Catalyst] RenderView install problem

2009-06-30 Thread Peter Karman
/lib/site_perl/5.8.9/Catalyst/Test.pm line 10 eval {...} called at /home/pkarman/perl/lib/site_perl/5.8.9/Catalyst/Test.pm line 10 BEGIN failed--compilation aborted at t/04live.t line 10. -- Peter Karman . http://peknet.com/ . pe...@peknet.com gpg key: 37D2 DAA6 3A13 D415 4295

Re: [Catalyst] featurizing a catalyst app

2009-06-28 Thread Peter Karman
just subclass View::TT to have an INCLUDE_PATH which picks up the 'root' directories from all your loaded 'Components'. fwiw, you can see an example of this on CPAN in CatalystX::CMS::View -- Peter Karman . http://peknet.com/ . pe...@peknet.com gpg key: 37D2 DAA6 3A13 D415 4295 3A69 448F

Re: [Catalyst] featurizing a catalyst app

2009-06-28 Thread Peter Karman
. Catalyst::Plugin::Static::Simple::ByClass is one way to deal with that. CatalystX::CMS and CatalystX::CRUD::YUI both use it. -- Peter Karman . http://peknet.com/ . pe...@peknet.com gpg key: 37D2 DAA6 3A13 D415 4295 3A69 448F E556 374A 34D9

Re: [Catalyst] Is it possible somehow to mix and match path parts using Chained?

2009-06-09 Thread Peter Karman
flow like this: /user/16/meeting/37/actionitem/list have you looked at how CatalystX::CRUD::Controller does this? It supports arbitrary relationship names like you are describing. -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] Catalyst and ExtJS : Using Table Relationships

2009-05-25 Thread Peter Karman
. The unique value is defined in each ORM class (DBIx::Class::RDBOHelpers for DBIC and Rose::DBx::Object::MoreHelpers for RDBO) with the unique_value() method, which by default looks for the first single-column unique column in the table. -- Peter Karman . http://peknet.com/ . pe

Re: [Catalyst] Testing controller which require login.

2009-05-15 Thread Peter Karman
Peter Karman wrote on 05/14/2009 01:51 PM: Louis Erickson wrote on 05/14/2009 09:39 AM: I'm using AuthTkt, and it works very well. glad to hear it. If you're using AuthTkt, then the whole cookie this is a non-issue. Just pass the ticket as a URL param like the tests do. The plugin

Re: [Catalyst] Testing controller which require login.

2009-05-14 Thread Peter Karman
-AuthTkt-0.10/t/01-authtkt.t -- Peter Karman . pe...@peknet.com . http://peknet.com/ ___ 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

Re: [Catalyst] Testing controller which require login.

2009-05-14 Thread Peter Karman
it occur to me to look at the tests for it? I have had to learn that habit myself. On Thu, 14 May 2009, Peter Karman wrote: You can see the AuthTkt tests here[0]. The my_request() function just sets $ENV{COOKIE} and lets the standard AsCGI magic work. I'm sure that's a Bad Way to Do

Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder

2009-05-05 Thread Peter Karman
thought to whether you want to stick with C::C::FormBuilder. I see that the latest release is nearly 2 years old, and there are several RT tickets opened against it since then, which indicates a lack of ongoing maintenance. -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder

2009-05-05 Thread Peter Karman
Louis Erickson wrote on 5/5/09 5:08 PM: On Tue, 5 May 2009, Peter Karman wrote: downgrade to Catalyst::Runtime 5.7 to start with. those errors look like 5.8 incompat issues. Yes, they do. I have the complete set of modules running on 5.8 on another machine. There's two main differences

Re: [Catalyst] Slow fastcgi: A debugging aid

2009-05-04 Thread Peter Karman
Octavian Râsnita wrote on 5/4/09 5:43 PM: It would be nice to be able to limit the number of requests per fastcgi child process... Catalyst::Plugin::AutoRestart -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst

Re: [Catalyst] Using test database with TWAM?

2009-04-30 Thread Peter Karman
changes in dev, test them with my code, and then deploy the changes to test domain, test code, repeat for prod (unless my tests are somehow destructive of data, in which case I have checks for that env var in my tests and only run in test/dev.) HTH pek -- Peter Karman . pe...@peknet.com

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

2009-04-18 Thread Peter Karman
jagdish eashwar wrote: Hi Craig, Thanks a lot for taking the trouble to work through the tutorial. Since you have been able to get it to save changes to the database, I think we will be able to isolate where I'm going wrong. Regarding whether to use 'Catalyst' or 'c' as the context, when

Re: [Catalyst] Tutorial for cache?

2009-04-16 Thread Peter Karman
', }, }, ); ...but the return value of $c-cache-get-($key) is always undef, although I make sure to always $c-cache-set( $key, $value) I had the same experience and just switched to the File cache plugin instead. -- Peter Karman

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

2009-04-16 Thread Peter Karman
forgot to mention in my earlier post that the tutorial is available at http://www.catalystframework.org/calendar/2007/9. Tip: you won't get any useful help until you show us your code. -- Peter Karman . pe...@peknet.com . http://peknet.com

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

2009-04-16 Thread Peter Karman
(/people_data_submit) %]'; var gridurl = '[% c.uri_for(/people_data) %]'; -- Peter Karman . pe...@peknet.com . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Gen. principles for JS integration?

2009-04-11 Thread Peter Karman
and then rendering it as JSON: [% SET myJsonConfig = { foo = 'bar', ... }; %] script var myFooThing = YUI.myApp.initFooThing([% myJsonConfig.as_json %]); /script See Template::Plugin::Handy for the as_json vmethod. -- Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] Catalyst and ExtJS

2009-03-14 Thread Peter Karman
the ExtJS LiveGrid feature. IME, picking a JS lib is orthogonal to the form manager (if you use one) or Catalyst classes you pick. They can make some things easier in the simple cases, but in the more complex cases I end up handcrafting the forms and JS myself. -- Peter Karman . http

Re: [Catalyst] Authentication Confusion

2009-03-07 Thread Peter Karman
Ruan Kendall wrote on 3/7/09 6:19 AM: Authentication::Credential::Password Authentication::Store::Htpasswd get rid of those. The Auth plugin loads the right classes based on your config. Peter Karman . http://peknet.com/ . pe...@peknet.com

Re: [Catalyst] Re: In search of RESTful CRUD holy grail

2009-03-04 Thread Peter Karman
-friendly URL? [0] e.g., http://www.mail-archive.com/catal...@lists.rawmode.org/msg01712.html -- Peter Karman . pe...@peknet.com . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: [Catalyst] OT: edit/add seperate actions?

2009-03-03 Thread Peter Karman
, then you must POST /foo. When the form is redisplayed on validation error, it just retains the original action. -- Peter Karman . pe...@peknet.com . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

Re: [Catalyst] OT: edit/add seperate actions?

2009-03-03 Thread Peter Karman
Zbigniew Lukasiak wrote on 03/03/2009 04:18 PM: On Tue, Mar 3, 2009 at 10:27 PM, Peter Karman pe...@peknet.com wrote: Zbigniew Lukasiak wrote on 03/03/2009 02:53 PM: If you use CatalystX::CRUD::REST, you can do: # POST /foo- create new record # GET /foo

Re: [Catalyst] CatalystX

2009-03-03 Thread Peter Karman
(though it seems to be down atm). -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] Re: decoding in core

2009-02-23 Thread Peter Karman
bavarian (munich!) beer called Edelstoff (precious stuff - tasty). Search::Tools::UTF8::to_utf8() comes close. It won't handle mixed encoding in a single string (which would be garbage anyway) but it does try to prevent double-encoding and uses the Encode goodness under the hood. -- Peter Karman

Re: [Catalyst] Where am I? ;-)

2009-02-19 Thread Peter Karman
And a similar question: How does the root controller know what other controllers are available in the app? http://search.cpan.org/~mramberg/Catalyst-Runtime-5.71000/lib/Catalyst.pm#$c-controllers -- Peter Karman . pe...@peknet.com . http://peknet.com

Re: [Catalyst] New version of InstantCRUD

2009-02-17 Thread Peter Karman
out what can be done with Peter Karman (of CatalystX::CRUD). For me his approach is a bit too heavy - it requires too much knowledge of his libraries to extend the controller using it - it wraps the model into it's own abstractions (CatalystX::CRUD::Iterator, CatalystX::CRUD::Model ) - while I

Re: [Catalyst] Plugin::Authentication overrides $c-req-user

2009-02-11 Thread Peter Karman
this behavior, I'd be happy to provide patches to deprecate or remove it. Why not just add a remote_user() method on $c-req instead? It's a little more typing, but is more explicit about where the value comes from and doesn't potentially break any existing apps. -- Peter Karman . pe...@peknet.com

Re: [Catalyst] IO::Pipe and the Catalyst Server

2009-02-05 Thread Peter Karman
( *REAL_STDIN, = . fileno(*STDIN) ); open( *REAL_STDOUT, = . fileno(*STDOUT) ); -- Peter Karman . pe...@peknet.com . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

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

2009-01-23 Thread Peter Karman
you should look to maybe subclass Data::Page to do this for you. Data::Pageset or even Data::Pageset::Render I use Data::Pageset in all my apps. See e.g. SWISH::WebService, which includes TT snippets implementing XML and HTML pagers. -- Peter Karman . pe...@peknet.com . http://peknet.com

Re: [Catalyst] autocomplete forms?

2008-12-31 Thread Peter Karman
offlist and I'll try to get to it. -- Peter Karman . pe...@peknet.com . http://peknet.com/ ___ 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

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

2008-12-16 Thread Peter Karman
::Transliterate -- Peter Karman . pe...@peknet.com . http://peknet.com/ ___ 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

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

2008-12-16 Thread Peter Karman
convert() in STT and uploaded 0.20 to pause. My benchmark script shows the new version is 244% faster. -- Peter Karman . http://peknet.com/ . pe...@peknet.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

[Catalyst] CatalystX::CRUD::YUI 0.008

2008-11-18 Thread Peter Karman
LiveGrid instead of YUI DataTable ***NOTE*** all the YUI DataTable support is now dropped in favor of ExtJS LiveGrid -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

Re: [Catalyst] Simple caching question

2008-11-07 Thread Peter Karman
, but in the end I switched to the File cache backend because It Just Worked. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

Re: [Catalyst] Catalyst, MVCs and other MVCs

2008-11-04 Thread Peter Karman
/CatalystX/CRUD/Tutorial.pod http://search.cpan.org/dist/CatalystX-CRUD-YUI/lib/CatalystX/CRUD/YUI.pm -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

Re: LDAP store patches (Was: Re: [Catalyst] mix authentication stores)

2008-10-21 Thread Peter Karman
Tomas Doran wrote on 9/30/08 9:27 PM: On 1 Oct 2008, at 03:11, Peter Karman wrote: Tomas Doran wrote on 9/30/08 8:24 PM: so if anyone reading could poke the Store::LDAP maintainer and get them to join the thread (and respond to my patches!), that'd be awesome... that'd be me. Hi

Re: [Catalyst] best practices - model or controller ?

2008-10-04 Thread Peter Karman
('AppDB')-add($msg); } -- Peter Karman . http://peknet.com/ . [EMAIL PROTECTED] ___ 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

Re: [Catalyst] mix authentication stores

2008-09-30 Thread Peter Karman
days. -- Peter Karman . http://peknet.com/ . [EMAIL PROTECTED] ___ 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

Re: [Catalyst] fcgid

2008-09-29 Thread Peter Karman
to bounce the entire web server. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] Search example in any docs?

2008-09-23 Thread Peter Karman
types, etc. See Search::QueryParser::SQL on CPAN for my attempt at this. There is a dbic() method too. CatalystX::CRUD::Model::Utils depends on S::QP::S to turn $c-req-params into a query, if you want to look at one example. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com

Re: [Catalyst] Model::LDAP vs Authentication::Credential::LDAP

2008-08-21 Thread Peter Karman
Peter Karman wrote on 8/17/08 2:09 PM: Matt S Trout wrote on 8/17/08 12:39 PM: On Mon, Aug 11, 2008 at 11:49:00AM -0500, Peter Karman wrote: I am going to be doing something similar eventually using Net::LDAP::Class and either C::Model::LDAP or a CatalystX::CRUD::ModelAdapter::LDAP. You

Re: [Catalyst] Model::LDAP vs Authentication::Credential::LDAP

2008-08-17 Thread Peter Karman
Matt S Trout wrote on 8/17/08 12:39 PM: On Mon, Aug 11, 2008 at 11:49:00AM -0500, Peter Karman wrote: I am going to be doing something similar eventually using Net::LDAP::Class and either C::Model::LDAP or a CatalystX::CRUD::ModelAdapter::LDAP. You might look at Net::LDAP::Class to see

Re: [Catalyst] Model::LDAP vs Authentication::Credential::LDAP

2008-08-11 Thread Peter Karman
using Net::LDAP::Class and either C::Model::LDAP or a CatalystX::CRUD::ModelAdapter::LDAP. You might look at Net::LDAP::Class to see if it makes what you're doing any easier. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List

Re: [Catalyst] Catalyst::*::REST and Javascript

2008-08-11 Thread Peter Karman
-0.09_04/ That uses RDBO, RHTMLO, CatalysX::CRUD(::REST) and YUI 2.5.x specifically. -- Peter Karman . http://peknet.com/ . [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Debug with FCGI

2008-08-01 Thread Peter Karman
server like: LOG4PERL=local perl script/myapp_server.pl so that the normal Catalyst log() feature is used. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

Re: [Catalyst] Catalyst::Authentication::Credential::LDAP

2008-07-23 Thread Peter Karman
binds with that user/pass. 'binddn' and 'bindpw' are fully documented; if the docs can be improved, please send a patch. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk

Re: [Catalyst] javascript in Catalyst using Template Toolkit

2008-07-18 Thread Peter Karman
Jonathan Rockway wrote on 7/18/08 8:17 PM: Someone else suggested linking to '/lib/site/multifile.js'. I don't think that will work either. Jon is correct. I broke an ankle jumping to the conclusion that '/lib/site' was in the Static::Simple config include path. -- Peter Karman

Re: [Catalyst] REST, JSON and Content-Type

2008-06-17 Thread Peter Karman
On 06/16/2008 06:52 PM, Christopher Laco wrote: Committed to trunk. RT filed for MIME::Types claco++ -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

[Catalyst] ANNOUNCE: 0.09_01 dev release of Rose::DBx::Garden::Catalyst

2008-06-13 Thread Peter Karman
Advent calendar here: http://www.catalystframework.org/calendar/2007/7 Also new in this version: * support for YUI 2.5.x * Excel export of db records * lots of UI improvements Feedback, comments welcome. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com

Re: [Dbix-class] Re: [Catalyst] untainting utf8 text for db

2008-06-07 Thread Peter Karman
Daniel McBrearty wrote on 6/7/08 5:25 AM: of course. But how do you regex an inclusive list for any character in any human language ? [\w]+ works pretty well iirc, if your locale includes UTF-8. -- Peter Karman . http://peknet.com/ . [EMAIL PROTECTED

Re: [Catalyst] Changes to the behavior of $c-namespace in 5.7013

2008-05-21 Thread Peter Karman
On 05/19/2008 06:04 PM, John Napiorkowski wrote: I'd just like to clarify this is the behavior we want and see if we can cook up a test for it. Is this giving anyone else trouble? FYI, I just sent a test patch exposing the problem to the catalyst-dev list. -- Peter Karman . [EMAIL

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-06 Thread Peter Karman
On 05/05/2008 02:33 PM, luke saunders wrote: On Mon, May 5, 2008 at 7:28 PM, Peter Karman [EMAIL PROTECTED] wrote: On 05/05/2008 12:16 PM, J. Shirley wrote: The discussions about a better CRUD base class with REST and RPC adapters is obviously the better (best?) solution, but I

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Peter Karman
project. There are already too many CRUD-style Catalyst modules on CPAN imho. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Peter Karman
as false in Perl. my ($self, $c, $oid) = @_; if (!$oid) { # could be absent or zero, either is fine # ... } Also, I adopted drolsky's suggestion of /create_form instead of /create in order to keep the RESTful no-verb style URIs. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com

Re: [Catalyst] Sending email safely with Catalyst

2008-04-11 Thread Peter Karman
of email (see other replies on this thread for suggestions on that). Usually it's a confirmation email for some action the requester has made. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Problem storing session data

2008-04-01 Thread Peter Karman
'.$$, cache_size = '10m', page_size = '256k', expires = 3600 } ); -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Re: Patch for Catalyst::Plugin::Unicode::Encoding

2008-03-20 Thread Peter Karman
to chew on. Jon, what do you think? -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] Instant CRUD with DBIC::Schema

2008-03-12 Thread Peter Karman
expectations for $form and $object is to be achieved, we need some way of defining that API. I'm open to suggestions of how to get rid of CX::CRUD::Object and still defining a way for Controllers to be Model agnostic. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com

Re: [Catalyst] Instant CRUD with DBIC::Schema

2008-03-12 Thread Peter Karman
SomeThing is currently RHTMLO or (hopefully soon) FormFu. -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Instant CRUD with DBIC::Schema

2008-03-12 Thread Peter Karman
up to the implementation to handle that part. If you like the model_adaptor() syntax in the Controller API, how would you implement a ModelAdaptor class and how would you change the Controller API to use it? You've left this part of my email unanswered... :) -- Peter Karman . [EMAIL

  1   2   >