[Catalyst] Can't validate the user on dev.catalystframework.org
Hi, I've tried for more times to create an user on dev.catalystframework.org but without success. It tells me that: We've sent you an email with an activation link. Please click on it to activate your account! The email was sent to orasn...@gmail.com. But I never received that email, not even in the SPAM folder. So I gave another email address, but I didn't receive any message at that email address either. Is there something wrong with the site? 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: http://dev.catalyst.perl.org/
[Catalyst] Re: ajax character encoding issue solved, but WHY?
* seasproc...@gmail.com seasproc...@gmail.com [2009-06-19 06:30]: The issue was that non-ascii chars were appearing as junk BUT only when retrieved via ajax calls. Otherwise, they displayed fine. The junk display was due to them being interpreted as ISO-8859-1, but I could not figure out why the browser was interpreting that way. All my data is handled as UTF-8. The problem was fixed by calling utf8::decode on the data prior to sending back via ajax. BUT WHY? Looks like your code is broken and assumes bytes throughout; as long as all your data is UTF-8 you won’t notice. Apparently the JSON serialiser is trying to produce UTF-8 output correctly by encoding the strings you pass it; since they’re already encoded, you get double-encoding gremlins. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ 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] Can't validate the user on dev.catalystframework.org
On 20 Jun 2009, at 07:28, Octavian Râşniţă wrote: But I never received that email, not even in the SPAM folder. So I gave another email address, but I didn't receive any message at that email address either. Is there something wrong with the site? No, there is nothing wrong. I don't know why you're not getting this.. I just tested it, and I can confirm I do get email from registering. Cheers t0m ___ 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] Can't validate the user on dev.catalystframework.org
On Jun 20, 2009, at 8:36 AM, Tomas Doran wrote: On 20 Jun 2009, at 07:28, Octavian Râşniţă wrote: But I never received that email, not even in the SPAM folder. So I gave another email address, but I didn't receive any message at that email address either. Is there something wrong with the site? No, there is nothing wrong. I don't know why you're not getting this.. I just tested it, and I can confirm I do get email from registering. It worked for me too... I just tried now and had confirmation email within a couple of seconds of registering. - john romkey http://www.romkey.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://dev.catalyst.perl.org/
[Catalyst] Re: Lighttpd and mod_perlite
Hi Brad, * Brad Bowman l...@bereft.net [2009-06-09 10:05]: Aristotle Pagaltzis wrote: I like to use ::Engine::HTTP::Prefork coupled with whatever reverse proxy server strikes one’s fancy (whether it be Squid, Apache mod_proxy, Varnish, lighttpd, whatever). Additionally I like to use ::Plugin::Static::Simple, sending proper Expires headers so that the reverse proxy will keep those cached files around forever. That takes decoupling to its logical conclusion: the application server is standalone and works completely independently from the internet-facing server. You can fire requests at it like you would at any webserver. You can use the same engine during development and in production. There are more advantages, but I forget. It’s all very, very nice. I'd like to know more about this. (It almost sounds to good to be true...) what questions do you have? All I can think to say right now is look at Catalyst::Engine::HTTP::Prefork and work from there… Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ 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] Can't validate the user on dev.catalystframework.org
From: Tomas Doran bobtf...@bobtfish.net On 20 Jun 2009, at 07:28, Octavian Râşniţă wrote: But I never received that email, not even in the SPAM folder. So I gave another email address, but I didn't receive any message at that email address either. Is there something wrong with the site? No, there is nothing wrong. I don't know why you're not getting this.. I just tested it, and I can confirm I do get email from registering. Cheers t0m I created a new account and this time I received the confirmation message immediately, but I still don't receive the confirmation message for the old account (but now I don't need it anymore). 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: http://dev.catalyst.perl.org/
[Catalyst] Use of uninitialized value $buffer error
I'm having a hell of a time trying to track down the reasons for this error. I'm getting an error that looks like: Use of uninitialized value $buffer in concatenation (.) or string at /usr/share/perl5/Catalyst/Engine/CGI.pm line 220. If I'm using the HTTP.pm Engine, I get the same error, but with a different line number; in both cases, it's the line beginning with $buffer in the $self-write method, which looks like this in CGI.pm: --- around write = sub { my $orig = shift; my ( $self, $c, $buffer ) = @_; # Prepend the headers if they have not yet been sent if ( $self-_has_header_buf ) { $buffer = $self-_clear_header_buf . $buffer; } return $self-$orig( $c, $buffer ); }; --- I will say upfront that I don't know how to use the Perl debugger. I have tried a lot of way to isolate this, and just can't figure out what's causing it. It does not happen on certain requests; for example, if I deliberately enter an incorrect password on a login page, I don't get it. But it happens on almost all other requests; I don't see where in the bogus-login cycle I might be avoiding something that could short-circuit this. I've looked over my code fairly closely, and I can't detect the pattern, or see anything that could be causing this. I should also note that this doesn't appear to have any effect on my program; it works fine, I see all the pages, etc. I'd be grateful if anyone could explain to me what might be causing this, or where I can look to try to figure it out. This is on Cat 5.80005 on Debian, with all modules up to date. Thanks. Jesse ___ 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] Re: Lighttpd and mod_perlite
On Sat, Jun 20, 2009 at 9:11 AM, Aristotle Pagaltzispagalt...@gmx.de wrote: Hi Brad, * Brad Bowman l...@bereft.net [2009-06-09 10:05]: Aristotle Pagaltzis wrote: I like to use ::Engine::HTTP::Prefork coupled with whatever reverse proxy server strikes one’s fancy (whether it be Squid, Apache mod_proxy, Varnish, lighttpd, whatever). Additionally I like to use ::Plugin::Static::Simple, sending proper Expires headers so that the reverse proxy will keep those cached files around forever. That takes decoupling to its logical conclusion: the application server is standalone and works completely independently from the internet-facing server. You can fire requests at it like you would at any webserver. You can use the same engine during development and in production. There are more advantages, but I forget. It’s all very, very nice. I'd like to know more about this. (It almost sounds to good to be true...) what questions do you have? All I can think to say right now is look at Catalyst::Engine::HTTP::Prefork and work from there… I'm curious if anyone's implemented a zero downtime restart system (the likes of which FastCGI gives you for free) or if it already exists somehow. Currently we just ^C and restart, which I guess is a bit lame. The restart_graceful and pidfile options would go most of the way, presumably? Paul ___ 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] Re: OT: Better TT pager?
Hi, there, Oliver and everyone:) Thanks for your posting:) Referring to http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg05232.html, I adopted the code given into my template and it looks really good but the hyperlink doesn't have any value. I suppose it's because [% c.req.uri_with(...) %] is not defined. 1)why is the Catalyst request variable being used instead of the Catalyst object? 2)how can we get the Catalyst request working properly (ie to be defined)? thank you :) K . akimoto - Oliver Charles Thu, 22 Jan 2009 07:50:17 -0800 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 ) %]laquo;/a/li [% IF pager.previous_page %] lia href=[% c.req.uri_with( page = pager.previous_page ) %]lt;/a/li [% END %] [% start = (pager.current_page - 3) 0 ? (pager.current_page - 3) : 1; FOREACH page IN [ start .. pager.last_page ] %] [% LAST IF loop.count 6 %] li[% IF pager.current_page == page; ' class=current'; END %] a href=[% c.req.uri_with( page = page ) %][% page %]/a /li [% END %] [% IF pager.next_page %] lia href=[% c.req.uri_with( page = pager.next_page ) %]gt;/a/li [% END %] lia href=[% c.req.uri_with( page = pager.last_page ) %]raquo;/a/li /ul [% END %] Though my colleague rightly suggested we subclass Data::Page and perform the sliding window in there. This shows first page, previous page, the current page surrounded by near-by pages. Seems to do the job so far! ___ 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/