Re: [Catalyst] New catalystframework.org

2012-03-14 Thread Tobias Kremer
Hi,

all of the links you mention are deeplinks into the wiki which,
unfortunately, seems to be quite unstable at the moment and goes down
almost daily. t0m is already trying to reproduce and fix the problem
AFAIK.

Thanks
--Toby



On Wed, Mar 14, 2012 at 6:50 AM, saravanan s e  wrote:
> Hey, Great work.
>
> I have found few broken links.
> 1. wiki
> 2. support.
> 3. IRC
> 4. mailing list.
> 5. Install
>
> Thanks and Regards,
>
> Saravanan S E
>
>
>
>
> On Tue, Mar 13, 2012 at 6:29 PM, Tobias Kremer 
> wrote:
>>
>> Dear list,
>>
>> it is with great pleasure that I can announce a redesign of the old
>> Catalyst framework front page. Some of you may remember the draft from
>> a couple of years back when I first came up with it here on the list.
>> I tweaked a couple of things (e.g. everything links to MetaCPAN) and
>> t0m++ pushed it live this morning. I'd like all of you to take a
>> minute to check it out and give me some (constructive!) feedback:
>>
>> http://www.catalystframework.org/beta
>>
>> For now it's just one static page, but we should definitely aim at
>> bringing more content (e.g. the docs) into the new design. dpetrov++
>> suggested using the excellent MetaCPAN API to grab the POD, which I
>> think is a fantastic idea I'm currently experimenting with.
>> Nevertheless, as it stands now it's already an enormous improvement
>> over the old site IMHO.
>>
>> Looking forward to hearing your thoughts!
>>
>> Cheers,
>> --Toby
>>
>> ___
>> 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/
>
>
>
> ___
> 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/
>

___
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] New catalystframework.org

2012-03-14 Thread Tobias Kremer
Hi Oleg,

On Tue, Mar 13, 2012 at 7:29 PM, Oleg Kostyuk  wrote:
> 1) it don't fit into 1600x1200 (by height) - and so, it will not fit
> into smaller screens. I think, main page should be bit smaller, and
> should fit into 1280x1024 at max. I think it will look even better, if
> information will be a bit more condensed.

Almost no website fits into my window vertically, that's what
scrollbars were invented for ;-) I wanted to make sure that everything
has enough room to breathe. Nevertheless, I'll see if I can put things
closer together to make them fit vertically.

> 2) phrase "fun, rewarding and quick" looks like link, but this is just
> text - compare with "Download", "Install", "Tutorial" on right.

Fixed in trunk.

> 3) image deployment_os_logos.png looks very strange, as for me. why
> Windows get more space than all others? :) Give more space for Linux
> and FreeBSD! :)) Also, seems Solaris is RIP and so not actual
> anymore?..

You're right. I copied this logo from the old site, but it makes
absolutely no sense anymore. Maybe we should replace it with supported
webservers rather than OSs?

> 4) Would you like to switch to use Bootstrap, and implement responsive
> page? For now, content width seems to be fixed at 960px, and I think
> it should be not very good on smartphones.

Bootstrap would be nice, although I haven't worked with it yet.

Cheers,
--Toby

___
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] apache, mod_fcgi & local::lib

2012-03-14 Thread Tomas Doran

On 13 Mar 2012, at 16:22, cylontoaster wrote:

> Hello,
> I got stuck in deploying my first Catalyst-application on a SuSE-platform:-(
> I've mod_fcgi (not fast_cgi),  FCGI.pm and I also use local::lib.



>Order allow,deny
>Allow from all
>AddHandler fcgid-script .pl

If you change this to fcgid-script .fcgi

> 
> 
> 
> 
> That my apache is able to find the local_lib I declared in 
> '/etc/apache2/conf.d/mod_fcgid.conf'  the DefaultInitEnv variable:
> 
> DefaultInitEnv PERL5LIB /root/perl5/lib/perl5/
> 

And skip this.

> That's it ... after restarting the apache I get an error :
> 
> Can't locate Catalyst/ScriptRunner.pm in @INC (@INC contains: 
> /root/perl5/lib/perl5/ /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi 
> /usr/lib/perl5/5.10.0 
> /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi 
> /usr/lib/perl5/site_perl/5.10.0 
> /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi 
> /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at 
> /srv/www/web/DW/script/dw_fastcgi.pl line 3.
> BEGIN failed--compilation aborted at /srv/www/web/DW/script/dw_fastcgi.pl 
> line 3.
> 
> ... but I can clearly see that ScriptRunner exists in the 
> local::lib-directory:
> 

And write a myapp.fcgi, like this:

#!/bin/sh
eval $(perl -I/home/foo/perl5/lib/perl5 -Mlocal::lib=/home/foo/perl5)
exec /home/foo/MyApp/script/myapp_fastcgi.pl $*

> 
> -r--r--r-- 1 root root 1542 2011-02-16 22:28 
> /root/perl5/lib/perl5/Catalyst/ScriptRunner.pm
> 
> Anyone has an idea? Is this a bug?

I think the DefaultInitEnv isn't working as expected somehow. I'd just work 
around this (as above) with a shell script.

> Thanx for every hint to get Catalyst running ;-)

Hope this helps.

Please drop into IRC if you're still stuck?

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/


[Catalyst] Re: [Dbix-class] class mapping

2012-03-14 Thread Tomas Doran

> On 13 March 2012 16:33, Sung Gong  wrote:
>> Hi
>> 
>> I have a simple User table (mysql back-end) which is mapped into a
>> resultsource class User.pm. statically generated by the helper.
>> 
>> Just wondering any difference between
>> "MyApp::Schema::DB::Result::User" and "MyApp::Model::DB::User"?

Yes.

The ::Result:: class represents a specific database row.

The MyApp::Model::DB::User class is a tiny wrapper around 
MyApp::Schema::DB::ResultSet::User, which represents a query (i.e. a set of 
results)

>> Both ref($c->model("DB::User")->find(1)) and
>> ref($c->model("NECTAR::User")->new_result({})) return
>> MyApp::Model::DB::User.
>> Is this normally what I expect? (or MyApp::Schema::DB::Result::User)

Yes.

->find on a ResultSet will return a Result

->new_result on a ResultSet will return a Result.

>> 
>> One more question re the method 'new_result' of DBIx::Class::ResultSet:
>> I found $c->model("DB::User")->new_result({})->result_source->schema->storage
>> returns undef, whereas
>> $c->model("DB::User")->find(1)->result_source->schema->storage doesn't
>> (it shows DBIx::Class::Storage::DBI::mysql=HASH(0x1f21fdc0)).
>> Is this also sane?

Yes.

Rows which aren't stored yet don't have storage.

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] New catalystframework.org

2012-03-14 Thread Tomas Doran

On 13 Mar 2012, at 18:33, Oleg Kostyuk wrote:

> Bwt, guys - would you like to switch to GitHub?
> If nobody have time for this - I can do repo conversion.

To git, sure. Things are being slowly converted as people care - if you care 
please push a conversion up to github (we've got a fairly comprehensive authors 
file already) for review, I'd be happy to review / push it into the catalyst 
git cluster when we're all happy.

Assuming that the people working on the site are happy with / would like to 
move to git. Toby?

To github - not so much, other than as a mirror. There's already a Catalyst git 
cluster :)

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] apache, mod_fcgi & local::lib

2012-03-14 Thread cylontoaster

sorry for not using IRC ... not really used to it :-(

I followed your advices but it doesn't work yet.
My Apache-config:



ServerName asd
ServerAlias www.asd
ErrorLog /var/log/apache2/error_log
TransferLog /var/log/apache2/access_log

# This should point at your myapp/root
DocumentRoot /srv/www/web/DW/root
Alias /static /srv/www/web/DW/root/static


SetHandler default-handler


Alias / /srv/www/web/DW/script/dw_fastcgi.pl/


Options ExecCGI
Order allow,deny
Allow from all
AddHandler fcgid-script .fcgi





no more 'DefaultInitEnv' and I created the shell-script:

#!/bin/sh
eval $(perl -I/root/perl5/lib/perl5 -Mlocal::lib=/root/perl5)
exec /srv/www/web/DW/script/dw_fastcgi.pl $*



Not really sure where I have to put this script???
I've tried it with:
/srv/www/web/DW/
/srv/www/web/DW/script
/srv/www/web/DW/root


... and my error-log says:

[Wed Mar 14 12:13:49 2012] [notice] Apache/2.2.12 (Linux/SUSE) mod_ssl/2.2.12 
OpenSSL/0.9.8j-fips configured -- resuming normal operations
[Wed Mar 14 12:13:55 2012] [error] [client 129.187.12.54] File does not exist: 
/srv/www/web/DW/script/dw_fastcgi.pl/DW


Thank you for your help :-D






On 13 Mar 2012, at 16:22, cylontoaster wrote:


Hello,
I got stuck in deploying my first Catalyst-application on a SuSE-platform:-(
I've mod_fcgi (not fast_cgi),  FCGI.pm and I also use local::lib.





Order allow,deny
Allow from all
AddHandler fcgid-script .pl


If you change this to fcgid-script .fcgi






That my apache is able to find the local_lib I declared in 
'/etc/apache2/conf.d/mod_fcgid.conf'  the DefaultInitEnv variable:

DefaultInitEnv PERL5LIB /root/perl5/lib/perl5/



And skip this.


That's it ... after restarting the apache I get an error :

Can't locate Catalyst/ScriptRunner.pm in @INC (@INC contains: 
/root/perl5/lib/perl5/ /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi 
/usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi 
/usr/lib/perl5/site_perl/5.10.0 
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at 
/srv/www/web/DW/script/dw_fastcgi.pl line 3.
BEGIN failed--compilation aborted at /srv/www/web/DW/script/dw_fastcgi.pl line 
3.

... but I can clearly see that ScriptRunner exists in the local::lib-directory:



And write a myapp.fcgi, like this:

#!/bin/sh
eval $(perl -I/home/foo/perl5/lib/perl5 -Mlocal::lib=/home/foo/perl5)
exec /home/foo/MyApp/script/myapp_fastcgi.pl $*



-r--r--r-- 1 root root 1542 2011-02-16 22:28 
/root/perl5/lib/perl5/Catalyst/ScriptRunner.pm

Anyone has an idea? Is this a bug?


I think the DefaultInitEnv isn't working as expected somehow. I'd just work 
around this (as above) with a shell script.


Thanx for every hint to get Catalyst running ;-)


Hope this helps.

Please drop into IRC if you're still stuck?

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/



___
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] New catalystframework.org

2012-03-14 Thread Marcello Romani

Il 13/03/2012 13:59, Tobias Kremer ha scritto:

Dear list,

it is with great pleasure that I can announce a redesign of the old
Catalyst framework front page. Some of you may remember the draft from
a couple of years back when I first came up with it here on the list.
I tweaked a couple of things (e.g. everything links to MetaCPAN) and
t0m++ pushed it live this morning. I'd like all of you to take a
minute to check it out and give me some (constructive!) feedback:

http://www.catalystframework.org/beta

For now it's just one static page, but we should definitely aim at
bringing more content (e.g. the docs) into the new design. dpetrov++
suggested using the excellent MetaCPAN API to grab the POD, which I
think is a fantastic idea I'm currently experimenting with.
Nevertheless, as it stands now it's already an enormous improvement
over the old site IMHO.

Looking forward to hearing your thoughts!

Cheers,
--Toby

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


FWIW, I think it's an excellent work.
T0m's photo might be a bit frightening for newcomers, though ;-)

--
Marcello Romani

___
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] New catalystframework.org

2012-03-14 Thread Oleg Kostyuk
14 марта 2012 г. 12:19 пользователь Tomas Doran  написал:
>
> On 13 Mar 2012, at 18:33, Oleg Kostyuk wrote:
>
>> Bwt, guys - would you like to switch to GitHub?
>> If nobody have time for this - I can do repo conversion.
>
> To git, sure. Things are being slowly converted as people care - if you care 
> please push a conversion up to github (we've got a fairly comprehensive 
> authors file already) for review, I'd be happy to review / push it into the 
> catalyst git cluster when we're all happy.

Ok, but you know - for conversion I need this authors file. How I can
get it? It is in the public domain?


>
> Assuming that the people working on the site are happy with / would like to 
> move to git. Toby?
>
> To github - not so much, other than as a mirror. There's already a Catalyst 
> git cluster :)
>
> 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/



-- 
Sincerely yours,
Oleg Kostyuk (CUB-UANIC)

___
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] New catalystframework.org

2012-03-14 Thread Tobias Kremer
> Assuming that the people working on the site are happy with / would like to 
> move to git. Toby?

I'm totally fine with that :)

Cheers!

--Toby

___
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] New catalystframework.org

2012-03-14 Thread Emanuele Zeppieri

On 2012-03-13 13:59, Tobias Kremer wrote:


http://www.catalystframework.org/beta
[...]
Looking forward to hearing your thoughts!


Great work, thanks!

Just one thing: the body background-color should be explicitly set to 
"white", otherwise those users who have set a browser custom fallback 
background color (different from white), will see that.


Thanks again!

-Emanuele


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