Re: [Catalyst] User Generated Content (project collaboration)

2006-08-16 Thread Kieren Diment
On 16/08/06, John Napiorkowski [EMAIL PROTECTED] wrote:
What I think could be really cool about this is if we could make a VMWare appliance out of it will some sort of GUI for people to add the components they want.All the cool kids are doing this today and I think it would overcome the biggest trouble with adoption, which is getting everything installed.
Grappling as I am with a mod_perl application that I want to utilise the database model from, I can attest that any way of decoupling deployment from implementation is good and absolutely nescessary. Mostly I'm just sorting through the crap that Catalyst already does much better (and better documented ==  0) before I can begin the port.
- Original Message From: Roman 
[EMAIL PROTECTED]...snip... * Collections (links, recipes, jokes, images, movies) * Social networks (friends, dating, interest groups) * CollaborationsWell I'm working on getting a catalyst model for academic bibliographic databases at the moment. These are fairly horriffic in terms of the structure of the database schema. So hopefully when I'm through this code it can feed back into a few of these categories. As I'm basing this on GPL code I don't see why not.
Another area I'm interested in is biological classifications. Again complex, particularly if you start looking at environmental classification along with linnean classification. Basically you start superimposing a binary tree on top of some kind of more complex graph data structure. This has quite a lot in common with web based social networking stuff (think geographical classificaiton versus social classification).
It seems to me that collaborations, at present are two paralell streams of web 2.0. First there is the social bookmarking stuff - like delicious, flickr and co. Secondly reddit digg and iuesthis type thingies. 
Nutting these things out in a distributed manner that confoms to published apis and has usability features to try to collect good data is a good basis to build the blocks for the semantic web - which is what Tim O'Rilley is on about - versus Tim Berners-Lee and the development of W3C standards. Standards have been of limited importance to date *cough*microsoft* so I can't see why we've got to wait for something that won't work anyway...
Theoretical rant over. Let me know if I can help.
___
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] Oracle as model

2006-08-16 Thread mark davies
Hi,

I encountered a similar problem which i was able to stop happening by starting the catalyst server with the -f (fork) option.

Hope this is of help

MarkOn 14/08/06, Jason Crummack [EMAIL PROTECTED] wrote:
Hi,I've just begun playing with catalyst and I'm currently talking tooracle, but I'm seeing a strange side effect. After the first access tothe model i can no longer ctrl-c the xxx_server.pl script.
Ctrl-c works fine until the first access to the database, if I switchthe model to mysql all seems fine, just thought I'd ask here if anyonehad seen anything similar before I post this to the dbd::oracle list?
Many thanksJason Crummack___List: Catalyst@lists.rawmode.orgListinfo: 
http://lists.rawmode.org/mailman/listinfo/catalystSearchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/Dev site: 
http://dev.catalyst.perl.org/
___
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] Oracle as model

2006-08-16 Thread Jason Crummack
Cheers mark that's done the trick.

Jason

mark davies wrote:
 Hi,

 I encountered a similar problem which i was able to stop happening by 
 starting the catalyst server with the -f (fork) option.

 Hope this is of help

 Mark

 On 14/08/06, *Jason Crummack* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi,

 I've just begun playing with catalyst and I'm currently talking to
 oracle, but I'm seeing a strange side effect. After the first
 access to
 the model i can no longer ctrl-c the xxx_server.pl script.

 Ctrl-c works fine until the first access to the database, if I switch
 the model to mysql all seems fine, just thought I'd ask here if anyone
 had seen anything similar before I post this to the dbd::oracle list?

 Many thanks

 Jason Crummack

 ___
 List: Catalyst@lists.rawmode.org mailto: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/


 

 ___
 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/
   


___
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] SOT Apache/mod_perl config issue

2006-08-16 Thread Roderick A. Anderson
I found the issue ( problem? ).

Seems in our setup that the (Catalyst) DocumentRoot needs to be a 
Directory / not a Location /

Still have some fiddling to do and I think add Plugin::Static::Simple so 
the development/test servers will work with the sans-'/static/' paths.

Thanks for the ideas.


Rod
-- 
Jonathan Rockway wrote:
 Dunno if this helps, but ordering Alias directives is important. 
 Putting them before the mod_perl handler seems like a good idea (works
 for me, but I use FastCGI). 
 
 Also:
 
 Note that if you include a trailing / on the url-path then the server
 will require a trailing / in order to expand the alias. That is, if you
 use |Alias /icons/ /usr/local/apache/icons/| then the url |/icons| will
 not be aliased.
 
 from http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
 
 I don't see that problem in your case, but it might help to remove the
 trailing /.  Another thing to try is to use Location instead of
 Directory.  The Alias directive tells Apache what directory to use
 anyway, so you might have better luck explicitly setting the Location. 
 I generally use all Locations, and have had good luck :) YMMV.
 
 Regards,
 Jonathan Rockway
 
 Roderick A. Anderson wrote:
 
I know this is more a mod_perl/apache issue but I'm getting no where 
with those docs.

The problem is I can't get pass Catalyst to get to root/static/css and 
root/static/js directories without using the '/static/' portion.

I think it is somehow tied to these lines but all the permutations I've 
tried haven't worked.  My domain changed to protect the guilty ( me ).

Suggestions, clue-stick?


VirtualHost dev.example.com:443

snip /

   DocumentRoot /var/www/root/

   Location /
 SetHandler modperl
 PerlResponseHandler cat
   /Location

snip /

   Directory /var/www/root/static/
SetHandler default-handler
   /Directory

   Alias /js/ /var/www/root/static/js/

  Directory /var/www/root/static/js
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
  /Directory

   Alias /css/ /var/www/root/static/css/

  Directory /var/www/root/static/css
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
  /Directory

/VirtualHost

Thanks,
Rod
  
 
 
 
 ___
 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/


___
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] User Generated Content (project collaboration)

2006-08-16 Thread Matt S Trout
Zbigniew Lukasiak wrote:
 Hi Matt,
 
 I would be gratefull if you expressed your concerns about InstantCRUD - 
 so that I could address them in the new versions of it and at least 
 avoid the most grievest blunders.

Mostly: I don't believe in generate and edit scaffolds for any but the most 
trivial of tasks. As for the rest, we spent hours debating it on #catalyst and 
eventually agreed to disagree; I have no desire to re-hash that conversation 
now in another forum, it was mostly philosophical differences so we'll just 
end up with a holy war.

Splitting it out into two packages, one with the base class in that depends on 
Catalyst::Runtime and one with the instantcrud.pl and helper that depends on 
Catalyst::Devel would be good though - along with replacing 
DBIx::Class::Loader with Schema::Loader. If you've already done any of this in 
trunk, my aplogies; I skimmed the CPAN version for speed.

-- 
  Matt S Trout   Offering custom development, consultancy and support
   Technical Directorcontracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

___
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] OT: Latin (was: Minor Problem With Tutorial)

2006-08-16 Thread A. Pagaltzis
* Kevin Monceaux [EMAIL PROTECTED] [2006-08-14 21:20]:
 Si hoc legere scis nimium eruditionis habes.

Quidquid latine dictum sit, altum viditur.

Regards,
-- 
Aristotle Pagaltzis // http://plasmasturm.org/

___
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] OT: Latin (was: Minor Problem With Tutorial)

2006-08-16 Thread Wade . Stuart







[EMAIL PROTECTED] wrote on 08/16/2006 01:06:00 PM:

 * Kevin Monceaux [EMAIL PROTECTED] [2006-08-14 21:20]:
  Si hoc legere scis nimium eruditionis habes.

 Quidquid latine dictum sit, altum viditur.



delphinum natare doces...



___
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] SOT Apache/mod_perl config issue

2006-08-16 Thread Roderick A. Anderson
[EMAIL PROTECTED] wrote:
 
 On 08/15/2006, Roderick A. Anderson [EMAIL PROTECTED]  wrote:

   The problem is I can't get pass Catalyst to get to root/static/css and
   root/static/js directories without using the '/static/' portion.
 
 Oooh ooh! I know this one :-)

Thanks Len.  I found a solution, for now.  ( See message form earlier 
today ).


Rod
-- 
 
 Here's a snippet from my apache conf. Note that my
 DocumentRoot setting includes the static directory
 
 VirtualHost *:80
  DocumentRoot D:/intranet/prod/dtsis/root/static/
 
 
   
   ## set up the catalyst-based dtsis CMS app
   
   Perl
  use lib 'D:/intranet/prod/dtsis/lib';
   /Perl
 
   RewriteEngine On
   RewriteRule ^/dtsis$ /dtsis/ [R]
 
   PerlModule dtsis
   Location /dtsis
   SetHandler perl-script
   PerlHandler dtsis
   DirectoryIndex index
   /Location
 
   LocationMatch /(img|css|js|docs|reports)/
   DirectoryIndex index.html
   SetHandler default-handler
   /LocationMatch
 /VirtualHost
 
 All the URIs of the form /css/foo.css, /img/logo.png, /js/mybigjslib.js, 
 etc.
 get served by the defautl handler.
 
 Len.
 
 
 
 
 
 This transmission may contain information that is privileged,
 confidential, legally privileged, and/or exempt from disclosure
 under applicable law. If you are not the intended recipient, you
 are hereby notified that any disclosure, copying, distribution, or
 use of the information contained herein (including any reliance
 thereon) is STRICTLY PROHIBITED. Although this transmission and
 any attachments are believed to be free of any virus or other
 defect that might affect any computer system into which it is
 received and opened, it is the responsibility of the recipient to
 ensure that it is virus free and no responsibility is accepted by
 JPMorgan Chase  Co., its subsidiaries and affiliates, as
 applicable, for any loss or damage arising in any way from its use.
 If you received this transmission in error, please immediately
 contact the sender and destroy the material in its entirety,
 whether in electronic or hard copy format. Thank you.
 
 
 
 
 ___
 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/


___
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 FormBuilder plugin on CPAN

2006-08-16 Thread Matt S Trout
Nate Wiger wrote:
 All-
 
 I just now uploaded Catalyst::Plugin::FormBuilder to CPAN, which adds 
 support for FormBuilder in Catalyst. It's also available here:
 
 http://www.formbuilder.org/download/Catalyst-Plugin-FormBuilder-1.02.tar.gz
 
 Usage is similar to XMLRPC: for those controller methods that contain 
 forms, simply associate a :Form attribute with them:
 
  package MyApp::Controller::Books;
 
  sub edit : Form {
  # this automatically loads root/forms/books/edit.fb
  # and creates a $c-form object for you
  $c-form-method('post');
  $c-form-messages('messages.fr');  # French errors
  }
 
 The page rendering is handled for you by Catalyst using its Template 
 Toolkit hooks. To get a standard form, just call form.render in your 
 template:
 
  !-- root/src/books/edit.tt --
  [% form.render %]
 
 Or, if you want finer control over the placement of your fields, you can 
 directly render your form using FormBuilder methods:
 
  head[% form.jshead %]/head
  [% form.start %]
table
  [% FOREACH field IN form.fields %]
  tr valign=top
td
  [% field.required
   ? b$field.label/b : field.label
  %]
/td
td
  [% IF field.invalid %]
  Missing or invalid entry, please try again.
  [% END %]
[% field.tag %]
   /td
 /tr
  [% END %]
  tr
td colspan=2 align=center
  [% form.submit %] [% form.reset %]
/td
  /tr
/table
  [% form.statetags %]
  [% form.end %]
 
 
 Thanks for Catalyst, it's great! And it was extremely easy to get 
 FormBuilder plugged in. I'm a convert. (If anyone has suggestions on the 
 plugin, please let me know).

You're going to hate me for this, but ... wouldn't this be better as a 
controller base class rather than a plugin? It would be -slightly- more work 
to use but it'd allow it to drop in to any existing app, even one that already 
loads a plugin that defines a $c-form method?

-- 
  Matt S Trout   Offering custom development, consultancy and support
   Technical Directorcontracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

___
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] SQL::Abstract and MATCH AGAINST

2006-08-16 Thread Bill Moseley

Any tricks to get SQL::Abstract to setup MySQL's fulltext search:

MATCH (foo,bar) AGAINST ('+word -notword' IN BOOLEAN MODE)

with proper bind parameters?


-- 
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/