Re: [Catalyst] post - all empty?

2007-09-07 Thread Bill Moseley
content length. http://support.microsoft.com/default.aspx?kbid=831167 It's amazing that I still see this every so often. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Bill Moseley
, it will be ASCII encoded. Is there anything in that file that is not seven bit ASCII? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Rate limiting password attacks

2007-08-18 Thread Bill Moseley
On Fri, Aug 17, 2007 at 09:48:33PM -0500, Jonathan Rockway wrote: Bill Moseley wrote: What's the status of the Cache plugin(s) wrt. backends? I want to be able to swap between FastMmap and Memcached via a config option As per the docs: # configure a backend or use a store plugin

Re: [Catalyst] Rate limiting password attacks

2007-08-17 Thread Bill Moseley
was getting at with: Also considered issuing a redirect to a simple server that will delay the number of failed attempts seconds before redirecting back to the login page. Any smart attacker would get clued about this an not follow that redirect. Fun anyways, though. ;) -- Bill Moseley

Re: [Catalyst] Rate limiting password attacks

2007-08-17 Thread Bill Moseley
to be separate. Is August and not seeing nothingmuch around related? What's the status of the Cache plugin(s) wrt. backends? I want to be able to swap between FastMmap and Memcached via a config option. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] Rate limiting password attacks

2007-08-17 Thread Bill Moseley
in then the addition of the captcha just make it that much more likely that they will not be able to login. Kind of amazing how often I fail the captcha. Plus, captcha's are not great for accessibility. Maybe better to ask a question in text: What is the airspeed velocity of an unladen swallow? -- Bill

Re: [Catalyst] Rate limiting password attacks

2007-08-17 Thread Bill Moseley
separately) as the key to the cache entry counting failed logins. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

[Catalyst] Rate limiting password attacks

2007-08-16 Thread Bill Moseley
? Caveats? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] reset session timeout

2007-08-11 Thread Bill Moseley
to nothingmuch a few days ago just in case it might be an obvious fix for someone familiar with the code -- but that's about as far as I could get with the time I had. I'll attach that test case. -- Bill Moseley [EMAIL PROTECTED] update_cookie.t Description: Troff document

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Bill Moseley
only have one encoding in your templates. Yes you need Unicode (or the older Unicode::Encoding) plugin so that input params are decoded and output is encoded back to utf8. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo

[Catalyst] Broken plugins

2007-08-09 Thread Bill Moseley
a Makefile.PL that referenced the current versions on CPAN. But might be less confusing to people if they installed. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] mod_proxy and https

2007-08-06 Thread Bill Moseley
the correct paths to the front end on the https ports. Not two backend servers, but a backend that listen on two ports. Just need a way to tell the difference between http and https in the backend, and using two ports is one way to accomplish that. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Session trouble

2007-08-02 Thread Bill Moseley
calculate_session_cookie_expires { my $c = shift; warn in calculate_session_cookie_expires , time, \n; sleep 1; return time + 10; } 1; -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org

Re: [Catalyst] Re: flash with DBIC session storage

2007-07-28 Thread Bill Moseley
? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

[Catalyst] Catalyst-Plugin-Compress-Zlib

2007-07-26 Thread Bill Moseley
be uploaded to CPAN, please? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

[Catalyst] Use Undo on A List Apart

2007-07-26 Thread Bill Moseley
? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] Catalyst-Plugin-Compress-Zlib

2007-07-26 Thread Bill Moseley
On Thu, Jul 26, 2007 at 10:20:59AM -0700, Bill Moseley wrote: Looking at an existing version I hacked I see I did something a bit more crude: my $body = $c-response-body; $body = join \n, $body : $body if ref $body; Except it compiles in my hack... -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-24 Thread Bill Moseley
::connect_via = Apache::DBI::connect; DBI-trace_msg(DBI connect via $DBI::connect_via in $INC{'Apache/DBI.pm'}\n); } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] Making Controllers thin and Models thick

2007-07-18 Thread Bill Moseley
of a controller responsibility since an invalid $id in the path for a given user is an invalid path (and thus maybe a 404). -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] Making Controllers thin and Models thick

2007-07-18 Thread Bill Moseley
with code. I doubt there's any best approach. But, if the idea is thin controllers then I like using one line of code. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] Session trouble

2007-07-16 Thread Bill Moseley
. The id should just be ignored in that case and a new cookie sent. If someone ends up with a bad cookie (or the cookie format changes) could result in a lockout. Thanks, -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo

[Catalyst] Session trouble

2007-07-13 Thread Bill Moseley
: my_cookie=6d30ea44e84f658ae647f249bd7237e8a117740b; path=/ -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] Command-line utility using Controller - examples?

2007-07-13 Thread Bill Moseley
that. But, the infrastructure that Catalyst provides can make doing this in the application tempting. It's up to you if you want to give up those request cycles to other things than web requests. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] Duplicate session ids

2007-07-08 Thread Bill Moseley
; $c-_save_session_id; $c-_save_session; $c-_save_flash; $c-_save_session_expires; } [1] The result was when I tried to access the session a new session would then be created -- so my session id was ever-changing and I could never log in. -- Bill Moseley [EMAIL

Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-05 Thread Bill Moseley
', sortby = 'account'; %] /th But I think the macros help with readability. In the past I've abstracted that out even more (since the tr and th is common on every page -- but that's a bit overkill. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Using Log4perl -- setting caller()

2007-07-04 Thread Bill Moseley
-log-warn will look different than calling warn (when is trapped and then calls $c-log-warn as in the code I posted). Print out %M and call both $c-log-warn and warn() and you will see the issue. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] Anyone using ProxyPass?

2007-07-02 Thread Bill Moseley
is wrong here. Throw in some warn statements in Catalyst::Engine::Apache. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] How to access current MyApp instance ?

2007-07-01 Thread Bill Moseley
( Game, 'View history' ); %] -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-01 Thread Bill Moseley
On Sun, Jul 01, 2007 at 09:27:17PM +0200, A. Pagaltzis wrote: * Bill Moseley [EMAIL PROTECTED] [2007-07-01 19:25]: Macro? [% game_detail_link( Game, 'Click here' ); game_history_link( Game, 'View history' ); %] Avoid macros like the plague

Re: [Catalyst] Anyone using ProxyPass?

2007-06-30 Thread Bill Moseley
' ); if ( $host =~ /^(.+):(\d+)$/ ) { $host = $1; $port = $2; Which ends up setting the request base, which is used in uri_for. Is your front end machine on the same host? If not you would likely need to set $c-config-{using_frontend_proxy} per the docs. -- Bill Moseley [EMAIL

Re: [Catalyst] Template rendering error under mod_perl

2007-06-29 Thread Bill Moseley
dump the INCLUDE_PATH? Template::Provider also has some dubbing available. Did you enable that? Have you tried making a local copy of Template::Provider in your lib directory and throw in some warn statements? -- Bill Moseley [EMAIL PROTECTED] ___ List

Re: [Catalyst] sharefiles on /tmp

2007-06-21 Thread Bill Moseley
have a plugin that alters temporary file locations to include the uid in the path. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Adding DBIC schema causes TT error

2007-06-20 Thread Bill Moseley
in Changes but I suspect you need 2.19 if that's the problem you are hitting. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] plat_forms report published on June 20th. 2007. Geneva team on Catalyst wins the Perl track.

2007-06-20 Thread Bill Moseley
their claims of superiority. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site

Re: [Catalyst] Adding DBIC schema causes TT error

2007-06-20 Thread Bill Moseley
. * Fixed bug in Template::Provider to immediately invalidate the cache entry of any template that fails to compile. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] preventing Cross Site Request Forgery

2007-06-19 Thread Bill Moseley
CSRF, get it from CPAN, load it into your app, and stop worrying :) Is this much different than Catalyst::Plugin::RequestToken? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] setup() called twice

2007-06-19 Thread Bill Moseley
{ my $self = shift; $self-setup( @_ ); } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] :Template() Attribute

2007-06-18 Thread Bill Moseley
similar template names, or is this mostly for TT? I almost always tweak the template paths, too. Sometimes it's for skinning/branding or it's for I18N (e.g. root/templates/language tag/). -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] :Template() Attribute

2007-06-18 Thread Bill Moseley
On Mon, Jun 18, 2007 at 02:42:13PM +, Zbigniew Lukasiak wrote: On 6/18/07, Bill Moseley [EMAIL PROTECTED] wrote: ... Do you mean instead of $c-action-reverse like C::V::TT does now? That is, so you always have to specify the template name? What I see in my copy of C::V::TT is: sub

Re: [Catalyst] Forms generation

2007-06-15 Thread Bill Moseley
a weakened attribute has caught me. ;) Thanks, -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Bill Moseley
'; ... } Yes. You can use both. Setting stash template always overrides the default Template() attribute for that current action via ||= Maybe I missed this in your first email, but what's the problem you are trying to solve? -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Bill Moseley
the action? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Bill Moseley
is happening. Personal preference, I guess. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] RFC for handling reverse proxies not deployed to standard ports.

2007-06-15 Thread Bill Moseley
engines (my fault). That would be a nice refactoring. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] Forms generation

2007-06-14 Thread Bill Moseley
-update_from_form( $user_id ); } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev

Re: [Catalyst] Forms generation

2007-06-14 Thread Bill Moseley
communicate that logic back to the controller or whatever in the session? It makes sense to have a separate form object to handle that work. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] DateTime in session- breaks during login/logout

2007-06-13 Thread Bill Moseley
error - Invalid locale name or id: , at /usr/lib/perl5/Cache/FastMmap.pm line 551 I just got caught by this. IIRC, upgrade DateTime::Locale. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org

Re: [Catalyst] Trailing undef in uri_for()

2007-06-05 Thread Bill Moseley
is for. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] Duplicate session ids

2007-05-26 Thread Bill Moseley
just have not had time to get back to it. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org

[Catalyst] Duplicate session ids

2007-05-25 Thread Bill Moseley
/9# Looks like you failed 1 test of 9. t/6.dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 6 Failed 1/9 tests, 88.89% okay t/7.ok -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Constants that refer to rows in a lookup table.

2007-05-22 Thread Bill Moseley
); I'd still be on the beach. But the question was how do I represent constants best? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Constants that refer to rows in a lookup table.

2007-05-22 Thread Bill Moseley
, -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

[Catalyst] Setting time zone and locale on dates.

2007-05-21 Thread Bill Moseley
in the view. [% c.local_date( user.last_updated_time ) | html %] But, setting the locale and time_zone in the inflator would be handy since it's all one place instead of every time I use a date in the view. What do you do? -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Bill Moseley
3,5,7 are abstract ids, just like 84bc3da1b3e33a18e8d5e1bdd7a18d7a is. Of course, what you want is a method that requires checking that the user can access the item. Something like: $item = $user-get_user_item( $id ); -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Bill Moseley
On Fri, May 18, 2007 at 07:55:35PM +0200, Matija Grabnar wrote: Bill Moseley wrote: What you are proposing is if item 7 is instead encoded as 84bc3da1b3e33a18e8d5e1bdd7a18d7a then they are less likely to try other numbers because of, ... why? Because it's too daunting of a task? It's a big

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Bill Moseley
On Fri, May 18, 2007 at 12:16:34PM -0700, mla wrote: Bill Moseley wrote: Using md5s for images, as in your example, is fine. But if the images really needed to be protected then that scheme is purely security by obscurity. That's what we were talking about -- the case where some user might

Re: [Catalyst] Form validation in insert() and update()?

2007-05-15 Thread Bill Moseley
{ my ( $self, $c, $id ) = @_; $c-update_from_form( $id ); } Where $c-update_from_form requires the form module and does everything else the first example does. I commonly do a redirect if $c-update_from_form returns true. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Form validation in insert() and update()?

2007-05-15 Thread Bill Moseley
form similar approaches. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Bill Moseley
hand-customizing. That way the same forms can be used for more than just the web environment. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Bill Moseley
a very, very bad user. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] Shoot out -- Catalyst / RoR / Other MVC apps --

2007-05-09 Thread Bill Moseley
-$private_method( $foo ); -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] Re: Redirects // Re: forwarding to chained actions

2007-04-27 Thread Bill Moseley
Quick! Make a plugin on CPAN but then realized the above exceeds the line limit for Catalyst plugins. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive

Re: [Catalyst] A View that may include elements optionally returnedfrom other funcs

2007-04-25 Thread Bill Moseley
. No clue how that works in Seamstress. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev

Re: [Catalyst] [RFC] ditch svn

2007-04-18 Thread Bill Moseley
On Wed, Apr 18, 2007 at 09:14:40PM +1000, Kieren Diment wrote: I think jrockway's original complaint was that the svn/svk model makes merging quite difficult and slows down progress which means that new features are only released slowly. Sounds like a feature. -- Bill Moseley [EMAIL

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Bill Moseley
using a view generated by the catalyst helper script. [% USE foo = Class( 'Whatever::View::TT' ); USE Dumper; Dumper.dump(foo.config ) | stderr; %] -- Bill Moseley [EMAIL PROTECTED] ___ List: [EMAIL PROTECTED] Listinfo: http

Re: [Catalyst] little syntax

2007-04-12 Thread Bill Moseley
save a lot of time when dealing with the templates. -- Bill Moseley [EMAIL PROTECTED] ___ List: [EMAIL PROTECTED] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Bill Moseley
into the stash, or is using a different name (see C::View::TT). -- Bill Moseley [EMAIL PROTECTED] ___ List: [EMAIL PROTECTED] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev

Re: [Catalyst] internal redirect

2007-04-11 Thread Bill Moseley
. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] internal redirect

2007-04-11 Thread Bill Moseley
On Wed, Apr 11, 2007 at 08:36:52AM -0700, Bill Moseley wrote: On Wed, Apr 11, 2007 at 03:28:59PM +0100, Adeola Awoyemi wrote: if ( $new_img-write( file = $new_filename ) ) { I tried using $c-response-redirect( $new_filepath ) but that issues a 302 Temporarily Moved status. I

Re: [Catalyst] code after finalize: mod_perl, testserver ok - fastcgi not

2007-04-07 Thread Bill Moseley
the above. But, again, it's been years since I did this. Hopefully, someone with a bit more knowledge of FastCGI can respond. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo

Re: [Catalyst] HOWTO: extend the Authentication tutorial example and redirect to original URI

2007-03-29 Thread Bill Moseley
, the user is not currently authorized to view the page. And the idea being that the browser would not cache the 4xx response. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo

Re: [Catalyst] Componentised actions.

2007-03-29 Thread Bill Moseley
that, they're wrong. It's perfectly possible to forward to public actions. When you start up the server in debug mode you can see the private names for the public paths. So, you forward to the action using its private name. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Catalyst Exception received by e-mail?

2007-03-27 Thread Bill Moseley
. I like those complete scrolling screens when something bad happens ... I would recommend you use a separate process to watch the error log and send mail. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] C::C::FB and captchas or similar

2007-03-19 Thread Bill Moseley
. That seems to have, for the most part, reduced the bot submissions. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] context object in TT

2007-03-15 Thread Bill Moseley
$cvar = $self-config-{CATALYST_VAR}; defined $cvar ? ( $cvar = $c ) : ( c= $c, base = $c-req-base, name = $c-config-{name} ) } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org

Re: [Catalyst] Merging configs

2007-03-09 Thread Bill Moseley
' ) { $config-{$key} ||= {}; $self-deep_merge( $config-{$key}, $value ); } else { $config-{$key} = $value; } } } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] Merging configs

2007-03-09 Thread Bill Moseley
-{$key} = $val; } } return $self-_config; } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] Performance

2007-03-09 Thread Bill Moseley
to parse the string each time. And I'm sure there must be a lot unescaping/escaping going on. The only thing that's optimised for is printing! I just checked and on some pages I'm calling uri_for a few hundred times. If that's a bottle neck then optimization would be most welcome. -- Bill Moseley

Re: [Catalyst] Performance

2007-03-09 Thread Bill Moseley
On Fri, Mar 09, 2007 at 11:34:14AM -0600, Dave Rolsky wrote: On Fri, 9 Mar 2007, Bill Moseley wrote: I just checked and on some pages I'm calling uri_for a few hundred times. If that's a bottle neck then optimization would be most welcome. I did some hack-y testing of a (bad) memo-ized

Re: [Catalyst] Catalyst::Plugin::DateTime

2007-03-09 Thread Bill Moseley
zone. Is there anything I can do to install this Catalyst Plugin under Windows? What does that plugin offer over the standard DateTime module? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org

Re: [Catalyst] Regex -- optional index.html

2007-03-02 Thread Bill Moseley
On Thu, Mar 01, 2007 at 04:13:05PM -0800, Bill Moseley wrote: Seems that Catalyst first tries to match the full path, then tries to match a reduced path. Adding a bit of debugging to Regex.pm's match() method: Request = /training/webcasts/webcast_data/162/foo.html Checking

Re: [Catalyst] Regex -- optional index.html

2007-03-01 Thread Bill Moseley
] Checking [training/webcasts/webcast_data/162] *MATCHED* So that's why it's matchine when I don't want it to match. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] Session problems with IE and cookies

2007-02-28 Thread Bill Moseley
. This sounds different from what the OP commented on (since they are able to log in), but there is a bug related to SSL and IE that causes IE to send an empty body: http://support.microsoft.com/default.aspx?kbid=831167 -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Template::Provider::DBI and Catalyst

2007-02-13 Thread Bill Moseley
/Provider.pm http://hank.org/Provider.diff (against cvs two days ago) Should be a drop-in replacement for the default provider. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] multi-homed application and proxy configuration

2007-02-09 Thread Bill Moseley
. How does the backend know to make a http or https url with uri_for()? What I do is have the Cat application listen on different ports so the Cat application knows if it was an ssl request based on the port the request comes in on. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] memory usage of mod_perl process

2007-02-08 Thread Bill Moseley
but restarts were taking a long time (seemed every FastCGI process had to compile the application). I moved to mod_perl and much happier now. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Bill Moseley
joins? Are your pages very complex? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev

Re: [Catalyst] Templates in the database

2007-01-20 Thread Bill Moseley
ON template ( path ); create index template_current ON template ( current ); And maybe a current_template view class and override update/insert to always insert into the base table. And never update rather always insert changes. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Templates in the database

2007-01-20 Thread Bill Moseley
if a node is a leaf node. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] Templates in the database

2007-01-20 Thread Bill Moseley
rows can be found with an index so seems like it would not be much work. Probably only need a few revisions back for any row, anyway. Thanks for the comments! -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] changing the port

2007-01-14 Thread Bill Moseley
what the front end is sending to make sure the port is included. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] Catalyst::Plugin::Scheduler issue.

2007-01-12 Thread Bill Moseley
yml $c-config-{scheduler}-{yaml_file} ||= $c-path_to('scheduler.yml'); is $APP_HOME/scheduler.yml. existence of a file called Cschedule.yml in your application's home Looks like scheduler.yml. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] C::V::PDF? (Anybody have one?)

2007-01-09 Thread Bill Moseley
to a second page I'd need a better way to generate pdfs. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] Accessing action URIs outside of Catalyst app

2007-01-08 Thread Bill Moseley
. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] sane AJAX strategy

2007-01-08 Thread Bill Moseley
() is just a method to generate a list based on rows and columns and how it should be sorted. Not very helpful without seeing all the code, I suppose, but it's just stuff I use in a bunch of controllers so it's factored out. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] C::V::PDF? (Anybody have one?)

2007-01-08 Thread Bill Moseley
the wheel if at all possible. I use htmldoc to generate a few pdfs. It's quick and easy. http://www.htmldoc.org/ -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable

[Catalyst] Generating iCalendar

2007-01-08 Thread Bill Moseley
...ok -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] How safe are database transactions?

2007-01-04 Thread Bill Moseley
a confirmation email until I know the database transaction is complete, and that mail might get generated inside a nested transaction. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] C::P::Email 0.06 problem

2006-12-24 Thread Bill Moseley
just saw that, although 0.07 did not fix the problem, the latest versions of Email::Send, Email::MIME and Email::MIME::Creator did the trick. .07 removes that invalid check of To: http://dev.catalyst.perl.org/changeset/5885/trunk/Catalyst-Plugin-Email/Email.pm -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] templates

2006-12-20 Thread Bill Moseley
/includes/banner.tt and that will change the look of just the banner for (site|user|branding|whatever) foo. default/templates is always in the template include path, so this makes it easy to just override one or a few templates when needed. May not be useful outside my application. -- Bill Moseley

  1   2   >