Re: [Catalyst] Re: [OT] Search Solution
Le 9 nov. 07 à 05:13, Fayland Lam a écrit : David Morel wrote: Le 8 nov. 07 à 10:25, Felix Antonius Wilhelm Ostmann a écrit : Other solution is Xapian Catalyst::Model::Xapian There was a discussion on this topic not so long ago. I suggest to have a look at the list archive, some interesting discussion went on at that time I searched http://lists.scsys.co.uk/pipermail/catalyst/, but don't find anything. could u tell me which month is it talked? Thanks. have a look there: http://www.gossamer-threads.com/lists/catalyst/users/ and search for lucene, plucene, xapian, swish-e, etc actually the threads I found seem shorter than I remember, but I just had a very quick look. David Morel ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Re: Search Solution
On Fri, 09 Nov 2007 04:13:59 +, Fayland wrote: Other solution is Xapian Catalyst::Model::Xapian I searched http://lists.scsys.co.uk/pipermail/catalyst/, but don't find anything. could u tell me which month is it talked? Another place to try searching the list is here: http://search.gmane.org/search.php?group=gmane.comp.web.catalyst.generalquery=xapian (Incidentally, search.gmane.org is based on Xapian). Best regards, -- Adam Sjøgren [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/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] [OT] Search Solution
On Thu, 2007-11-08 at 13:48 +0200, Octavian Rasnita wrote: What do you think about e-swish, Kinosearch and Lucene? As it has been years since I have reviewed these (swish-e and lucene), it wouldn't be fair for me to comment. Lots of detail and links at http://www.searchtools.com/tools/tools.html -- Jon ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Ubuntu / Catalyst
Hi I'm just about to embark on reviewing Catalyst as a framework for our web developments. I've done small amounts of Catalyst playing around in my spare time but not a massive amount. I'm probably going through the same hoops other people are going through with regards of its production suitability. The first question I've come across is about being able to package Catalyst with its multitude of dependancies for a production environment. I'm not convinced installing direct from CPAN is the solution. Your thoughts? TIA Jason -- Jason Tang - email: [EMAIL PROTECTED] - msn: [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/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Ubuntu / Catalyst
On Fri Nov 09, 2007 at 12:45:43PM +, Jason Tang wrote: I'm just about to embark on reviewing Catalyst as a framework for our web developments. I've done small amounts of Catalyst playing around in my spare time but not a massive amount. I'm probably going through the same hoops other people are going through with regards of its production suitability. The first question I've come across is about being able to package Catalyst with its multitude of dependancies for a production environment. I'm not convinced installing direct from CPAN is the solution. I should add we develop on ubuntu (7.04 currently). -- Jason Tang - email: [EMAIL PROTECTED] - msn: [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/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Save as...
Hi, I try to print a file to the browser using: $c-res-content_type('Application/Octet-Stream'); $c-res-header(Content-Disposition = attachment;filename=\$file\); # $c-res-header('Content-Length' = length($content)); $c-res-body($content); If I try to save the file pressing enter on the link to download the file, the window that asks me if I want to save it appears, but after I press the Save button, nothing happends, and it doesn't ask me for the name of the file. But if I right-click on that link and chose Save as... from the context menu, it always ask me immediately for the name of that file. Can you tell me what other headers do I need to print, or what else should I need to do in order to be able to save the file by just clicking the link (pressing enter on it)? 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/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Save as...
Octavian Rasnita wrote: Hi, I try to print a file to the browser using: $c-res-content_type('Application/Octet-Stream'); $c-res-header(Content-Disposition = attachment;filename=\$file\); # $c-res-header('Content-Length' = length($content)); $c-res-body($content); If I try to save the file pressing enter on the link to download the file, the window that asks me if I want to save it appears, but after I press the Save button, nothing happends, and it doesn't ask me for the name of the file. But if I right-click on that link and chose Save as... from the context menu, it always ask me immediately for the name of that file. Can you tell me what other headers do I need to print, or what else should I need to do in order to be able to save the file by just clicking the link (pressing enter on it)? Thanks. Octavian I do the following: $c-res-header('Content-disposition', qq{attachment; filename=$name - $date.pdf}); $c-res-headers-content_type('application/pdf'); $c-res-body($out); The only difference I can see there is a space after the ';' ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Ubuntu / Catalyst
On Fri, Nov 09, 2007 at 12:45:43PM +, Jason Tang wrote: Hi I'm just about to embark on reviewing Catalyst as a framework for our web developments. I've done small amounts of Catalyst playing around in my spare time but not a massive amount. I'm probably going through the same hoops other people are going through with regards of its production suitability. The first question I've come across is about being able to package Catalyst with its multitude of dependancies for a production environment. I'm not convinced installing direct from CPAN is the solution. Depends. I prefer having an application perl and each deployment having its own self-contained lib tree, makes upgrades etc. much less risky. If you're wanting to go the apt route then the ubuntu repos already have quite a bit, then add http://debian.pkgs.cpan.org/, then add dh-make-perl and/or CPANPLUS::Dist::Deb for any stragglers (and your application itself). As for 'production suitability', I'd point at - http://dev.catalyst.perl.org/wiki/LiveApplications which is just the people who've made a point of adding themselves (and I know of plenty that haven't, some of which I can't talk about, many more of which I don't remember the URLs to :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Ubuntu / Catalyst
On Fri, Nov 09, 2007 at 01:02:28PM +, Jason Tang wrote: On Fri Nov 09, 2007 at 12:45:43PM +, Jason Tang wrote: I'm just about to embark on reviewing Catalyst as a framework for our web developments. I've done small amounts of Catalyst playing around in my spare time but not a massive amount. I'm probably going through the same hoops other people are going through with regards of its production suitability. The first question I've come across is about being able to package Catalyst with its multitude of dependancies for a production environment. I'm not convinced installing direct from CPAN is the solution. I should add we develop on ubuntu (7.04 currently). 6.06 was the last one that was serious production quality. 7.04 has a bastardized fstab setup, a bleeding-edge init replacement, and a host of other not-really-unix-or-linux-or-anything-else-but-ubuntu-isms. But hell, it's your platform and that's just my opinion. None of our servers are going past 6.06 though :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Ubuntu / Catalyst
On Fri, Nov 09, 2007 at 03:01:52PM +, Matt S Trout wrote: then add http://debian.pkgs.cpan.org/ Just a quick note to avoid any confusion later: the above repo has binary deb files for i386 only. If you're running an AMD64 box with the AMD64 Debian, or if you're running some other architecture, you won't be able to get binary packages from that repo. -- I can blink the lights and cat you files full of sad things, We can play XPilot just for two, I can serenade and gently play all your ogg files, Be your 'pache server just for you. (with apologies to Freddie Mercury) even more disdain for popular culture at: http://surreal.istic.org/songs signature.asc Description: Digital signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Credential::HTTP vs. Controller::REST
I'm working with the REST action/controller to expose my app to browsers and to any remote client (json/xml, etc). For the browser stuff, I just use the regular Auth plugins with a database store tied to a user/pass login form. For remote clients, I wanted to tack on HTTP Auth using Basic/Digest. Lucky for me, we have C::P::A::Credential::HTTP, which can consume and create the proper Basic/Digest auth headers. Unfortunately, when this credential class creates the appropriate 401 response code and headers when auth is required, it assumes that the content-type is text/html, and the body() needs to contain text (Authorization Required). IMHO, this is bad. I don't believe the it's the responsibility of this credential to set/assume the content-type/body for me, but only to manage reading/writing the auth headers. Under normal operation, the REST controller receives a request for a certain content-type, and if I set the status code myself to 401 and detach, the outbound response is automatically set to that requested content-type with an empty serialized entity (empty YAML, null in JSON, etc) Since the HTTP auth credential assumes is needs to set content-type and body(), those trash what the REST controller is doing during serialization of the response. When it does that, response to clients that have requested yaml/json now get tesr/html and a body they can't consume. It mentioned in the HTTP Auth pod that one could override these in end(), but that means that I have to spend time in my end() sub reimplementing logic that is already handled by the REST controller, just to get the content-type/body back to the proper output. At this point, I just wanted to get the conversation started on what every thinks the correct behavior is, and if there are any work around for this type of problem. -=Chris signature.asc Description: OpenPGP digital signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Meta::Interpolate - caching weirdness
Hi all, Newbie here with my first big project under Catalyst. I'm trying to use a TT plugin for Catalyst that allows template variables to be used in [% META %] tags. I found this on Tony Bowden's page here (http://nothing.tmtm.com/archives/201) and he credits Jonas Liljegren, so I'm guessing the code originated here (http://astral.paranormal.se/perldoc/Para/Frame/Template/Plugin/Meta/Interpolate.html). I've got it working. This does just what I would expect: [% USE Meta::Interpolate %] [% META title = '-${category.name} at Our Site' %] But, when I move to another category page, the page title has been cached somewhere and will not change for 10 minutes. After it expires out of the cache, the next category page I hit will set the title which will be show on all category pages for the next 10 minutes. Pages where the title has NOT been set using the META tag are not affected by this. They keep the page title set by the site.template variable. This is was setup using the TTSite view, not sure if that is relevant. I have disabled the internal TT template_caching (just for development), so that should not be the issue I am using the Cache plugin for TT but I'm not caching the head section of my pages, Any suggestions on how to track down what is causing these titles to be cached would be much appreciated. . -- Randy Moore Axion Information Technologies, Inc. phone: 301-587-3300 x 511 fax: 301-585-7450 http://www.axion-it.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/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] request uri under lighttpd/fastcgi contains extra slash
When I run Catalyst out of a non root webserver location, e.g. /myapp, $c-request-uri has an extra slash after the base url. http://mydomain.com/myapp// http://mydomain.com/myapp//some/action Catalyst::Engine::CGI::prepare_path() is setting $base_path to /myapp/, which is correct, but then to create the full path used in $c-request-uri, it appends $ENV{PATH_INFO} to this base_path, which appears to always begin with a slash, resulting in the double slash I am seeing. FYI, my lighttpd fastcgi config looks like: $HTTP[url] =~ ^/myapp/(?!static) { fastcgi.server = ( /myapp = ( MyApp = ( ... ), ), ), } and I am currently running Catalyst 5.7007. I'd prefer a solution that doesn't involve upgrading Catalyst... if that is possible. - Jim ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Ubuntu / Catalyst
On Fri, Nov 09, 2007 at 03:27:50PM +, Daniel Hulme wrote: On Fri, Nov 09, 2007 at 03:01:52PM +, Matt S Trout wrote: then add http://debian.pkgs.cpan.org/ Just a quick note to avoid any confusion later: the above repo has binary deb files for i386 only. If you're running an AMD64 box with the AMD64 Debian, or if you're running some other architecture, you won't be able to get binary packages from that repo. I tend to treat vendor archives as throw 'em at the wall and see what sticks. Then again given I hack on quite a few of the key components of the toolkit we're usually deploying my dependency requirements tend to be somewhat on the needy side :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] request uri under lighttpd/fastcgi contains extra slash
On Nov 9, 2007, at 11:26 AM, Jim Spath wrote: When I run Catalyst out of a non root webserver location, e.g. / myapp, $c-request-uri has an extra slash after the base url. http://mydomain.com/myapp// http://mydomain.com/myapp//some/action Catalyst::Engine::CGI::prepare_path() is setting $base_path to / myapp/, which is correct, but then to create the full path used in $c-request-uri, it appends $ENV{PATH_INFO} to this base_path, which appears to always begin with a slash, resulting in the double slash I am seeing. FYI, my lighttpd fastcgi config looks like: $HTTP[url] =~ ^/myapp/(?!static) { fastcgi.server = ( /myapp = ( MyApp = ( ... ), ), ), } and I am currently running Catalyst 5.7007. I'd prefer a solution that doesn't involve upgrading Catalyst... if that is possible. Please at least test your app with the latest Catalyst version. There's a reason we put out new releases, to fix bugs like this one. :) I just ran our test suite against lighttpd 1.4.18 and the latest Catalyst with a non-root path and it is fully passing. -Andy ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Re: [OT] Search Solution
On 11/09/2007 02:00 AM, David Morel wrote: have a look there: http://www.gossamer-threads.com/lists/catalyst/users/ and search for lucene, plucene, xapian, swish-e, etc actually the threads I found seem shorter than I remember, but I just had a very quick look. I posted this link awhile back too: http://www.mail-archive.com/[EMAIL PROTECTED]/msg06061.html -- 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/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] ANNOUNCE: Rose::DBx::Garden::Catalyst
I've just uploaded Rose::DBx::Garden::Catalyst 0.01 to CPAN. http://search.cpan.org/dist/Rose-DBx-Garden-Catalyst/ This is an alternative to the Catalyst::Example::InstantCRUD app. The main differences are: * uses Rose::DB::Object and Rose::HTML::Objects instead of DBIx::Class and HTML::Widget * uses CatalystX::CRUD::Model::RDBO and CatalystX::CRUD::Controller::RHTMLO * relies heavily on the Yahoo UI library (http://developer.yahoo.com/yui/) The idea behind this project is to make it easy to quickly bootstrap a web UI to your existing database. It has been tested with PostgreSQL 8.x, YUI 2.3.1 and Rose::DBx::Garden 0.03. From the SYNOPSIS: # create a Catalyst app catalyst.pl MyApp # create a Rose::DBx::Garden::Catalyst script cat mk_cat_garden.pl use Rose::DBx::Garden::Catalyst; use MyDB; # isa Rose::DB my $garden = Rose::DBx::Garden::Catalyst-new( catalyst_prefix = 'MyApp', garden_prefix = 'MyRDBO', db = MyDB-new, tt = 1, # make Template Toolkit files ); $garden-plant('MyApp'); # run your script perl mk_cat_garden.pl # start your Catalyst dev server cd MyApp perl script/myapp_server.pl # enjoy the fruits at http://localhost:3000/rdgc Feedback, comments, patches, tests, docs, etc., all welcome. -- 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/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst::Plugin::Prototype
Hi, Have you been successfully used HTML::Prototype in Cat? Could you help me with a working example? I could not fix all the syntax in the new version of Cat. Thanks Stefan Kühn [EMAIL PROTECTED] wrote: The documentation of Catalyst::Plugin::Prototype is a rather thin. Only one example of a method is given: [% c.prototype.observe_field( 'editor', uri, { 'update' = 'view' } ) %] Is it correct that Catalyst::Plugin::Prototype uses and that the methods can be determined from perldoc Catalyst::Plugin::Prototype ? Or how can i find it's methods? Stefan -- - Stefan Kuehn - Le Duc de Brême The Calendar of Historical Dance -- http://www.early-dance.de - ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst::Plugin::Prototype
See quote below. On Nov 9, 2007 11:25 AM, Will Smith [EMAIL PROTECTED] wrote: Hi, Have you been successfully used HTML::Prototype in Cat? Could you help me with a working example? I could not fix all the syntax in the new version of Cat. Thanks ** Ash Berlin already responded to this question: Dont use this plugin. It is one of the more stupid plugins. The entirety of the code is this: package Catalyst::Plugin::Prototype; use strict; use base 'Class::Data::Inheritable'; use HTML::Prototype; our $VERSION = '1.33'; __PACKAGE__-mk_classdata('prototype'); eval { require HTML::Prototype::Useful; }; if ( $@ ) { __PACKAGE__-prototype( HTML::Prototype-new ); } else { __PACKAGE__-prototype( HTML::Prototype::Useful-new ); } Just create a HTML::Prototype yourself and be done with it if you want to use Prototype. -- J. Shirley :: [EMAIL PROTECTED] :: Killing two stones with one bird... http://www.toeat.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/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Re: [OT] Search Solution
On 11/09/2007 03:47 PM, Octavian Rasnita wrote: Do you have a recommendation for a good perl module that can be used easyly for creating a spider that should index a web site? If you don't need UTF-8, check out Swish-e. It has a spider and parser. -- 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/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/