[Catalyst] How to send raw HTTP response

2008-09-25 Thread Christian Lackas
Hi Everybody, is it possible for a controller method to directly produce the raw HTTP response? My application generates a (potentially large)) ZIP file on the fly, which I don't want to store (on disk or in memory) but rather send it directly to the client while producing it. In a CGI script I

Re: [Catalyst] How to send raw HTTP response

2008-09-26 Thread Christian Lackas
* Tomas Doran [EMAIL PROTECTED] [080925 23:06]: Hi Tomas, thanks for the prompt reply (also to all others). Looking at the source code for Catalyst::write, and Catalyst::Engine::write, you need to say $c-finalize_headers, after which just writing to STDOUT as above should do the right

Re: [Catalyst] FASTCGI - configuring timeout

2008-10-02 Thread Christian Lackas
* Dermot [EMAIL PROTECTED] [081002 16:05]: Hi Dermot, FastCGI: comm with server /var/www/MyApp/script/myapp_fastcgi.pl aborted: idle timeout (30 sec) FastCGI: incomplete headers (0 bytes) received from server /var/www/MyApp/script/myapp_fastcgi.pl if you consult the mod_fastcgi docs you

[Catalyst] Running multiple instances on an application

2008-11-04 Thread Christian Lackas
Hi Everybody, I would like to have multiple (20-50) instances of a Catalyst application running using FastCGI. Since this would result in quite a few preforked processes, I wondered if it is possible to just use one set of FastCGI processes and have different config files for different domain

Re: [Catalyst] Mapping CGI scripts URLs

2008-11-21 Thread Christian Lackas
* Jonathan Rockway [EMAIL PROTECTED] [081121 20:30]: Hi Jonathan, I assume this is some kind of strange safety feature? Nope, something must be wonky in your app. I tested it, and .cgi paths work fine. (You might want to try the myapp_test.pl script in the debugger.) you are totally

Re: [Catalyst] now() in insert

2009-02-06 Thread Christian Lackas
* loki l...@sub5.org [090206 12:38]: Hi Loki, $c-model('DB::Foo')-create({ title = 'foo', description = 'bar', dt = 'NOW()', you can give a scalar reference here: dt = \'now()' });

[Catalyst] Browser still waiting after completed transfer

2009-03-21 Thread Christian Lackas
Hi Everybody, currently have a strange problem with a Catalyst app, which I developed on Gentoo Linux and now try to deploy on Debian/Lenny. On Debian, the browser (Firefox) waits a couple of seconds (~10s) after it has already received all content (as shown by Firebug), apparently still waiting

Re: [Catalyst] Browser still waiting after completed transfer

2009-03-21 Thread Christian Lackas
* Andrew Rodland arodl...@comcast.net [090321 22:29]: Hi Andrew, Are you running mod_deflate as well? not that I was aware of. However since disabling this line # AddOutputFilterByType DEFLATE text/html text/plain text/xml fixed the problem, you were apparently 100% right. Thanks a

Re: [Catalyst] User timezones

2009-06-25 Thread Christian Lackas
* Devin Austin devin.aus...@gmail.com [090625 08:25]: Hi Devin, I wonder how you handle user-specific timezones in Catalyst. Is there any magic switch I could set (for instance if the user is authorized or the session restored) to automatically get the right time for the user? I would

Re: [Catalyst] User timezones

2009-06-29 Thread Christian Lackas
* Ian Wells i...@cack.org.uk [090625 12:52]: Hi Everybody, first of all, thanks for all your input. I would make use of user's timezone as part of the view/controller layers, and use a fixed timezone (say UTC) for the DB layers. OK, as said before, I already had the feeling that it does not

Re: [Catalyst] I18N with quotation marks

2009-07-01 Thread Christian Lackas
* Bill Moseley mose...@hank.org [090701 19:58]: Hi Ton, On Wed, Jul 1, 2009 at 10:22 AM, Ton Voon ton.v...@opsera.com wrote: I am localising our app, which consists of strings in html and in dynamic javascript snippets. However, if the translated value contains quotations (such as: s'il

[Catalyst] Catalyst Unicode

2014-01-31 Thread Christian Lackas
: Is utf8: 1 1 T=Ümläuts What am I doing wrong here? Or do I misunderstand what this code should do? Any hints are highly appreciated. Thanks. Christian -- Dr. Christian Lackas, Managing Partner inviCRO, LLC -- In Imaging Yours P: +1 617 963 0263, F: +49 2203 9034722, E: lac...@invicro.com http

Re: [Catalyst] Catalyst Unicode

2014-01-31 Thread Christian Lackas
* Christian Lackas christ...@lackas.net [140131 06:33]: Hi Everybody, sorry, has to be $t = $encoding-decode($t); below, of course (and then it works in the test). That said, in my application I have: my $file = $c-request-param('file'); warn is_utf8: , utf8::is_utf8($file), \n

Re: [Catalyst] Catalyst Unicode

2014-01-31 Thread Christian Lackas
). What I tried to simulate is: I have some text in a variable, and I know its UTF-8, however, Perl does not, yet, thus I have to decode it. Please also note the small error I made with not taking the return value of '$encoding-decode()'. Christian -- Dr. Christian Lackas, Managing Partner