Re: [Catalyst] A Perl Message Queue?

2007-08-23 Thread Brandon Black
On 8/23/07, Mark Knoop [EMAIL PROTECTED] wrote: Don't use a DB as the backing store for a message queue if you will ever need to pass a lot of messages thought it - you're just asking for trouble doing it that way. Getting way off topic but, understanding the kind of trouble one can get

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

2007-07-13 Thread Brandon Black
On 7/12/07, Ronald J Kimball [EMAIL PROTECTED] wrote: I need to write a utility script using Controller modules that will run from the command line. I haven't been able to find any examples of how to do this. Does anyone have a quick example I could use as inspiration? Probably the easiest

[Catalyst] DBIx::Class 0.07999_06 (aka 0.08 RC3) released

2007-06-12 Thread Brandon Black
Hi again, A few small issues have been squashed since the last release candidate, and in the process the exception system has been improved a bit. Sorry for the lengthy series of release candidates to test, but I guess we should have expected this after an 11 month development cycle. I really

[Catalyst] DBIx::Class 0.07999_04 (Release Candidate)

2007-06-01 Thread Brandon Black
Hi all, We're starting up the release candidate cycle for DBIx::Class 0.08000, it needs testing, especially for unintended regressions from the 0.0700x series. Please give 0.07999_04 a try and report any issues to [EMAIL PROTECTED] in a new thread. 0.08000 has been a long time coming, and

Re: [Catalyst] Catalyst::Helper::Model::DBIC::Schema. No tables found in database.

2007-03-31 Thread Brandon Black
On 3/27/07, northfiled [EMAIL PROTECTED] wrote: hello helper model dbic cant generate table schema. # script/myapp_create.pl model DBIC DBIC::Schema myapp::Schema create=static dbi:mysql:myapp myapp hoge exists /home/myapp/myapp/script/../lib/myapp/Model exists /home/myapp/myapp/script/../t

Re: [Catalyst] create=static

2007-01-02 Thread Brandon Black
On 1/2/07, Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, I have tried the following: perl script/tranzactiibursiere_create.pl model Db DBIC::Schema Db create=static dbi:mysql:database=intranet root First, I have seen that this command creates all the class files for each table, but some of

Re: [Catalyst] DBIx::Class/TT Pager Question

2006-12-29 Thread Brandon Black
On 12/29/06, Chisel Wright [EMAIL PROTECTED] wrote: On Fri, Dec 29, 2006 at 08:35:34AM -0800, Dennis Daupert wrote: $c-stash-{photos} = [$c-model('CatapultDB::Photos')-search( ... )]; $c-stash-{pager} = $c-stash-{photos}-pager(); # ??? I think you need to lose the square

Re: [Catalyst] Various login problems

2006-12-27 Thread Brandon Black
On 12/27/06, Chisel Wright [EMAIL PROTECTED] wrote: On Wed, Dec 27, 2006 at 10:35:27AM -0500, Jesse Sheidlower wrote: Any suggestions what might be causing this, or where I should start to try to figure it out? Keep in mind that I cannot seem to force this to happen, so when it's OK, as it is

Re: [Catalyst] rewrite or reload on YAML

2006-12-22 Thread Brandon Black
On 12/22/06, Wan [EMAIL PROTECTED] wrote: I will run myapp on mod_perl or FastCGI, but I want to know how to rewrite or reload my YAML file. for example # myapp has this line $c-config-{SomeKey} = 'SomeValue'; . How can save this value to my YAML file, and how can I reload this value. I

Re: [Catalyst] Mason configuration in YAML

2006-12-08 Thread Brandon Black
On 12/8/06, Kevin Old [EMAIL PROTECTED] wrote: On 12/8/06, Jon Warbrick [EMAIL PROTECTED] wrote: On Thu, 7 Dec 2006, Kevin Old wrote: ... then in Mason.pm you can use it like this: package MyApp::View::Mason; use base 'Catalyst::View::Mason'; __ PACKAGE__-config-{DEBUG} = 'all';

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Brandon Black
On 12/5/06, Daniel McBrearty [EMAIL PROTECTED] wrote: This is what I'm talking about. I don't know this technique - I thought the only approach was to filter input. I'm using DBIx, AFAIK it does use placeholders ... ? If so, I can just take input, do some basic sanity filtering, and store?

Re: [Catalyst] Last Chance / Last Day: Web development platform contestand Perl / Catalyst

2006-11-30 Thread Brandon Black
On 11/30/06, Alvar Freude [EMAIL PROTECTED] wrote: Having more teams should be good for several reasons: we can show that Perl isn't dead (at the moment it looks half-dead), and there are more options to choose from. IMHO, Perl does *not* look half dead. The rate of CPAN modules uploaded per

Re: [Catalyst] Last Chance / Last Day: Web development platform contestand Perl / Catalyst

2006-11-30 Thread Brandon Black
On 11/30/06, Sebastian Riedel [EMAIL PROTECTED] wrote: And p5 development is not as active as you might think, just take a look at the comments under http://use.perl.org/~sri/journal/31519. The quote Perl5 is not dead, it's just very, very stable sums it up quite well. 216 distinct threads

Re: [Catalyst] Non-real world irrelevant benchmarks

2006-11-16 Thread Brandon Black
On 11/16/06, Nilson Santos Figueiredo Junior [EMAIL PROTECTED] wrote: On 11/16/06, Matt S Trout [EMAIL PROTECTED] wrote: Besides which, I've never yet seen a production application (and between Shadowcat's client portfolio I've seen not a small number thereof) where the dispatch overhead was

Re: [Catalyst] Announce. Catalyst::Plugin::I18N::DBIC 0.01

2006-11-14 Thread Brandon Black
On 11/13/06, Ian Docherty [EMAIL PROTECTED] wrote: Since I got no response to my request a few weeks ago about I18N data from a database I wrote my own :) This module has just been released to CPAN. I've just been looking at Cat I18N stuff. This looks promising (I haven't actually used it

Re: [Catalyst] getting the db connection used by catalyst

2006-10-03 Thread Brandon Black
On 10/3/06, Daniel McBrearty [EMAIL PROTECTED] wrote: if you have a (dbix) database, and use it as a model, you generallyend up doing this :$c-model- and the database connection is handled internally.I now want to write another model which uses the db. It would be better to use the existing

Re: [Catalyst] DBIx Class Transactions in catalyst

2006-09-04 Thread Brandon Black
On 9/4/06, Charles [EMAIL PROTECTED] wrote: It still would've been nice to get transactionsworking a la txn_do. I'm sure that I'll need thisfeature not too far down the road. I'll prob eitheruse the txn_begin,txn_commit, and txn_rollbackfunctions explicitly or just use raw sql. At least these show

Re: [Catalyst] MSSQL and Catalyst

2006-08-23 Thread Brandon Black
On 8/23/06, Alan Humphrey [EMAIL PROTECTED] wrote: I had some time so I decided to upgrade my app and see if I could takeadvantage of all this.No joy.I'm still getting bind parameters.Infobelow.Any ideas?Thank you!- AlanVersion: ~/birdweb/trunk/BirdWeb-Admin perldoc -l DBIx::Class | xargs cat |

Re: [Catalyst] dbic models and startup time server

2006-08-22 Thread Brandon Black
On 8/22/06, Josef Chladek [EMAIL PROTECTED] wrote: what we notice: in Catalyst/Model/DBIC/Schema.pm the time of therequire of the schema$schema_class-requireis fast for the first loaded schemas (0.05s) but takes about 0.6s forthe last schemas. also time to connect

Re: [Catalyst] dbic models and startup time server

2006-08-22 Thread Brandon Black
On 8/22/06, Brandon Black [EMAIL PROTECTED] wrote: [...] and it might not be possible to make it significantly faster without rewriting it in XS [...]Ok, I lied. I went back to stare at Algorithm::C3 and Class::C3, and I remembered an earlier performance hack I had tried, but never got around

Re: [Catalyst] Framework Confusion: Catalyst, Jifty, Woodstock (Mojo)? 'Sup?

2006-08-22 Thread Brandon Black
On 8/22/06, Hugh Lampert [EMAIL PROTECTED] wrote: Experts:Why is Catalyst a qw/better more-robust more-enduringbetter-Rails-Killer easier-to-use/framework than Jifty or(Woodstock|Mojo)?Seeing these other frameworks mentioned online - just curious. Well, for one thing, Jifty is the only framework

Re: [Catalyst] dbic models and startup time server

2006-08-21 Thread Brandon Black
On 8/21/06, Josef Chladek [EMAIL PROTECTED] wrote: hi,we have a CRUD/cms app that uses many (approx. 20) dbic models/schemas. the startup time for _server.pl takes a lot of time (1min or so), when we run it under mod_perl restarting of apache takes also very long. we tried

Re: [Catalyst] auth::DBIC session problems

2006-08-15 Thread Brandon Black
On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:I looked at that code. My table is called user, but that difference is minor. I think the biggest difference is that I'm using DBIC::Schema::Loader. Is there a way use that? It should work with Schema::Loader just as well. You'd just have to

Re: [Catalyst] MSSQL and Catalyst

2006-08-14 Thread Brandon Black
On 8/14/06, Brandon Black [EMAIL PROTECTED] wrote: This solves both the bind variable issue and the prepare_cached issue for DBD::Sybase+FreeTDS+MSSQL.Actually, I went back and double-checked this, and it doesn't have the code to prevent the memory issues w/ prepare_cached. It was meant

Re: [Catalyst] MSSQL and Catalyst

2006-08-14 Thread Brandon Black
On 8/14/06, Alan Humphrey [EMAIL PROTECTED] wrote: Anyone here using M$$QL as their backend?I'm using it as one part of an app.The app is very lightly used so I can'tgive you any performance information, but here's what I've done.1) Running NetBSD, using DBD::Sybase and FreeTDS. 2) FreeTDS has a

Re: [Catalyst] Storing a password hash with DBIC

2006-08-10 Thread Brandon Black
On 8/10/06, Christopher H. Laco [EMAIL PROTECTED] wrote: Jonas wrote: Hi, I'm trying to store an hashed password in a database using DBIC. What is the best way to create the digest of the password? I tried with deflate, but deflate only runs when the argument is a reference. Then i tried with an

Re: [Catalyst] Storing a password hash with DBIC

2006-08-10 Thread Brandon Black
On 8/10/06, Mark Blythe [EMAIL PROTECTED] wrote: I must be missing something here.You're not missing something. The main gain of the simple version of client-side hashing is that you don't know the original password. This is a useful security feature for the user, because most users re-use

Re: [Catalyst] Storing a password hash with DBIC

2006-08-10 Thread Brandon Black
On 8/10/06, Jonathan Rockway [EMAIL PROTECTED] wrote: Renaud Drousies wrote: That's why the password should be mixed with a challenge string before being hashed and sent over the network.This is also not a good solution.The server still needs to know some computable variant of the cleartext

Re: [Catalyst] Root controller index() vs auto()

2006-08-02 Thread Brandon Black
On 8/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I just posted a question about a login problem in my Root controller. While analyzing the problem, I discovered that when my Root controller is invoked as http:/site/dev/ (implying index right?) my sub index() never runs. I get /auto and

Re: [Catalyst] error using session and authn plug-ins under apache

2006-07-28 Thread Brandon Black
On 7/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ### #my Authentication and session plugins ### Authentication Authentication::Store::DBIC Authentication::Credential::SiteMinder Session Session::State::Cookie

Re: [Catalyst] cat 5.7 upgrade report

2006-07-25 Thread Brandon Black
On 7/25/06, Len Jaffe [EMAIL PROTECTED] wrote: I upgraded my desktop and server at work today, and the only thin giving me any install issues is DBIC::Schema::Loader. I can't do jack about it if you don't report what's wrong with it. -- Brandon ___

Re: [Catalyst] ::Model::SomeTable-some_method() problem

2006-07-14 Thread Brandon Black
On 7/14/06, Chisel Wright [EMAIL PROTECTED] wrote: I just hadn't had the tuits to slap the dev release on my laptop. It kinda sounds like I'm the only Pg/Model::DBIC user out there at the moment ... :) There was one other guy who popped into #catalyst complaining about a messed up Model::CDBI

Re: [Catalyst] Program the logic

2006-06-29 Thread Brandon Black
I really don't see much ambiguity myself. I'm not really a theorist on this stuff, so what follows is my practical definitions based on working with it: Model(s) - Data source abstraction. You put things like access to RDBMSes, Files (collections of images?), and even remote data sources served

Re: [Catalyst] tutorial_create.pl - error using SchemaLoader

2006-06-29 Thread Brandon Black
On 6/29/06, Torsten Krah [EMAIL PROTECTED] wrote: Looking at this file, their is this example: tutorial_create.pl model AnotherDB DBIC::SchemaLoader dbi:Pg:dbname=foo root 4321 But if i try this ( of cause with working parameters testet with deprecated DBIC), i only get: Couldn't load

Re: [Catalyst] Program the logic

2006-06-29 Thread Brandon Black
On 6/29/06, Nilson Santos Figueiredo Junior [EMAIL PROTECTED] wrote: On 6/29/06, Brandon Black [EMAIL PROTECTED] wrote: If you find yourself putting code in your View templates that isn't directly related to rendering this specific flavour of output, it probably needs to be moved

Re: [Catalyst] Development Server Crashing

2006-06-21 Thread Brandon Black
On 6/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When I run script/myapp_server.pl -k with the keepalive option (so that things work with IE), I get the following crash (not right away, but usually within the first few clicks): Use of uninitialized value in subroutine entry at