Re: [Catalyst] windows install issues (Was: RFC: New to Catalystquestions)

2009-02-21 Thread Octavian Râsnita
From: Rodrigo 
   Oops, ok, sorry, I thought you had Strawberry. Last year I swapped all 
things Active for Strawberry Perl.
   
   In any case, maybe you can tinker with the ActivePerl cpan Config.pm so 
that it uses the MinGW compiler and the Strawberry cpan settings. The 
   idea would be to make ActivePerl compile its modules using the Strawberry 
config settings.Don't know if that would work. 
   
   Another way (if don't want to switch to strawberry flavored perl) is to 
just install Strawberry, then edit your PATH and strip off all 
c:\strawberry\... 
   directories so that it won't disturb your ActivePerl installation. Then 
create a little bat file that will give you a strawberry prompt. Install 
modules with  strawberry cpan, then copy them from strawberry\perl\site (and 
auto) into ActivePerl's \site directories.

  I've tried to use Strawberry Perl, but I've seen that I can't install some 
modules on it.

  I needed to install MIME::Tools by downloading the package manually, and 
doing perl Makefile.PL, dmake, skip dmake test and do only dmake install, 
because I couldn't do it using cpan. On the dmake test, it freezes on a certain 
test.

  I also couldn't install DBD::mysql, even though I've also tried without cpan, 
because on dmake it gives some errors I don't understand, even though I've 
added all those directories which perl Makefile.PL needs.



  I have also tried to install WxPerl with it, but without success.



  I've seen that the ppm it uses seems to be either very old or a different 
kind than that used by Activeperl because it seems to have less features.



  From this point of view, Perl is not a very good language for Windows because 
it is hard to adapt the modules that work fine under other systems.



  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/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] windows install issues (Was: RFC: New to Catalystquestions)

2009-02-21 Thread Rodrigo
 I've tried to use Strawberry Perl, but I've seen that I can't install some
 modules on it.

 I needed to install MIME::Tools by downloading the package manually, and
 doing perl Makefile.PL, dmake, skip dmake test and do only dmake install,
 because I couldn't do it using cpan. On the dmake test, it freezes on a
 certain test.


Strange, MIME::Tools is another module that installs fine in my Strawberry
5.10.0.0. No freezing on tests. Make sure that, if you're going to install
things manually, use the command look to get the correct build
environment:

cpan look MIME::Tools



 I also couldn't install DBD::mysql, even though I've also tried without
 cpan, because on dmake it gives some errors I don't understand, even though
 I've added all those directories which perl Makefile.PL needs.



 I have also tried to install WxPerl with it, but without success.

 Another strange one... WxWidgets is one of Strawberry star installations
for the October2008 release.

http://strawberryperl.com/releases.html

I don't develop for Wx, but I installed it (and Tk) successfully in
Strawberry with cpan.

DBD::mysql needs the mysql source code to link to. That's a good candidate
for ppm.



 I've seen that the ppm it uses seems to be either very old or a different
 kind than that used by Activeperl because it seems to have less features.



 The strawberry ppm has given me problems also. That's supposed to be one of
the improvements in the latest Strawberry Jan 2009, but I haven't tried so
far.

 From this point of view, Perl is not a very good language for Windows
 because it is hard to adapt the modules that work fine under other systems.

 I agree that perl and cpan modules favor posix features, such as fork(),
and that's a no-go for windows. I just try to avoid those by using no-posix
modules. I use ppms for tough to install modules, sometimes unzipping them
straight into c:\strawberry\perl\site\lib if the ppm installer is not
working well, which has been the case for strawberry lately.

--rodrigo
___
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 version of InstantCRUD

2009-02-21 Thread Oliver Gorwits
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Zbigniew Lukasiak wrote:
 Have you thought about a REST-like inteface? 

Yes, definitely going to use some kind of published API, probably
REST-like. That way the javascript heavy frontend could be swapped
out for a (possibly less feature rich) HTML version.

- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJoEWa2NPq7pwWBt4RAkK4AJ0WzDRWLVXdcIYBOTkqyJ/ErTrolQCgtuxq
z6VVz/hT7JgX3vOylcgWYVc=
=WRt0
-END PGP 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/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Requirements for Catalyst

2009-02-21 Thread Octavian Râşniţă

Hello,

It is very clear that a Catalyst app can't run on a shared host, but it 
requires either a dedicated server or a VPS.
I am searching for web space providers that offer VPS and I've seen that 
they use to set their tariff plans mainly on the guaranteed memory, but I 
don't know which would be the necessary memory for a VPS that runs an OS 
like Fedora or CentOS, Apache, Perl and Catalyst.


Could be 256 MB of memory enough? Or 512? Or I would need 1 GB or more if I 
would like to run a Catalyst app?


That Catalyst app would use a MySQL database, and it would have around 100 
tables, and 20 - 30 Catalyst controllers.


Can I find this type of information somewhere?

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/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Requirements for Catalyst

2009-02-21 Thread Jonathan Rockway
* On Sat, Feb 21 2009, Octavian Râşniţă wrote:
 Hello,

 It is very clear that a Catalyst app can't run on a shared host, but
 it requires either a dedicated server or a VPS.
 I am searching for web space providers that offer VPS and I've seen
 that they use to set their tariff plans mainly on the guaranteed
 memory, but I don't know which would be the necessary memory for a VPS
 that runs an OS like Fedora or CentOS, Apache, Perl and Catalyst.

 Could be 256 MB of memory enough? Or 512? Or I would need 1 GB or more
 if I would like to run a Catalyst app?

We run lots of Catalyst apps on the smallest Linode.  I think they give
us something like 340M of RAM.  This is enough.

I use a 512M Slicehost for jrock.us, which runs my mail server and a few
Catalyst applications.

Anyway, nearly every VPS provider I know of lets you add more memory
easily.  Buy the small one, and if you need more memory, upgrade.

Regards,
Jonathan Rockway

--
print just = another = perl = hacker = if $,=$

___
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] Requirements for Catalyst

2009-02-21 Thread Ashley

On Feb 21, 2009, at 2:21 PM, Octavian Râşniţă wrote:
It is very clear that a Catalyst app can't run on a shared host,  
but it requires either a dedicated server or a VPS.


I've been running four or five Cat apps on shared hosting for 3  
years. I wouldn't do it for a business but it's fine for regular  
personal sites; and I would never run any business from a shared host  
anyway, it's not really a Cat issue on that front. I serve something  
like 5-15K pages a day from Cat on DreamHost under fastcgi.


-Ashley


___
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] Requirements for Catalyst

2009-02-21 Thread Andrew Rodland
On Saturday 21 February 2009 05:04:54 pm Jonathan Rockway wrote:
 * On Sat, Feb 21 2009, Octavian Râşniţă wrote:
  Hello,
 
  It is very clear that a Catalyst app can't run on a shared host, but
  it requires either a dedicated server or a VPS.
  I am searching for web space providers that offer VPS and I've seen
  that they use to set their tariff plans mainly on the guaranteed
  memory, but I don't know which would be the necessary memory for a VPS
  that runs an OS like Fedora or CentOS, Apache, Perl and Catalyst.
 
  Could be 256 MB of memory enough? Or 512? Or I would need 1 GB or more
  if I would like to run a Catalyst app?

 We run lots of Catalyst apps on the smallest Linode.  I think they give
 us something like 340M of RAM.  This is enough.

 I use a 512M Slicehost for jrock.us, which runs my mail server and a few
 Catalyst applications.

 Anyway, nearly every VPS provider I know of lets you add more memory
 easily.  Buy the small one, and if you need more memory, upgrade.

Seconded. I run prod stuff for $WORK on Xen VMs with 512MB of RAM. Light-duty 
stuff should work well enough on 256MB and Linode's 360 deal is just about 
ideal. And any _good_ provider should let you instantly add more RAM with 
nothing more than a reboot, and prorate the bill appropriately, so growing 
shouldn't be a huge source of concern.

Andrew

___
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] Maybe there is a need for some speedups of 'config' method ?

2009-02-21 Thread Oleg Pronin
Hello. Catalyst is the best MVC ever. Thanks for doing your work guys!

I use Catalyst in extremely loaded projects (currently 60.000.000 pageloads
/ day).
Thereforce i'm perfomance paranoid man.

One of 'black stones' is the -config method. It has dramatically slow
perfomance at
config_method:  1 wallclock secs ( 1.06 usr +  0.00 sys =  1.06 CPU) @
3808.94/s (n=4047)

it has 2 workarounds:
1) use 'state' feature of perl 5.10

sub my_action {
state $cfg = $c-config;
}

2) create inherited accessor
   MyApp-mk_group_accessors(inherited = qw/cfg/);
   sub finalize_setup {
$class-cfg($class-config);
   }

cfg_accessor:  2 wallclock secs ( 1.03 usr +  0.00 sys =  1.03 CPU) @
237252.85/s (n=244667)
config_method:  1 wallclock secs ( 1.06 usr +  0.00 sys =  1.06 CPU) @
3808.94/s (n=4047)

It would be VERY GREAT if we somehow make -config works a hundred times
faster because everybody use
-config without any suspicions on its speed.
___
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] Requirements for Catalyst

2009-02-21 Thread Ashley

On Feb 21, 2009, at 3:04 PM, Jonathan Rockway wrote:
We run lots of Catalyst apps on the smallest Linode.  I think they  
give

us something like 340M of RAM.  This is enough.

I use a 512M Slicehost for jrock.us, which runs my mail server and  
a few

Catalyst applications



I know this is getting pretty off topic but I'm hovering on a VPS buy
so I'd like to hear more about why these two and what you'd say to
someone like me whose Perl is drastically better than my admin chops.
Put your referral code(s) if you've got them in your response too.

-Ashley


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