Re: [Catalyst] what happened to mod_fastcgi?

2016-04-14 Thread Denny
On Thu, 2016-04-07 at 08:18 -0400, Steve wrote:
> Like John, we had good experiences with fastcgi for the past 5 years
> or so.  That said, a recent O/S upgrade (RHEL 7.1) caused us to
> migrate to mod_fcgid, as we had no luck getting mod_fastcgi to work.

https://github.com/ByteInternet/libapache-mod-fastcgi is probably the
solution to that problem.



___
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] Feasibility questions ref transition to Catalyst

2015-12-27 Thread Denny
Hi Tom,

On Sun, 2015-12-27 at 06:29 -0600, Tom Browder wrote:
> The host websites are hand-written using some Perl 5 CGI but are
> mostly static.  [...]
> 
> I am considering a move to Catalyst [...]

Why?  If they're static sites, it would make sense to serve them as
static HTML.

> 1.  Is possible to move to Catalyst incrementally?  In other words,
> can I start deploying Catalyst using at least some of my existing
> static code?

You can re-use your static HTML documents as templates and serve them
through Catalyst, but afaics there's not much point unless you're going
to be making them dynamic.

> 2.  Another concern is how the virtual hosts are served by Catalyst.
> Can there be multiple instances of Catalyst, or do I have to do some
> fancy footwork to handle virtual hosts with one instance.

You can definitely run multiple Catalyst applications (or multiple
copies of the same Catalyst application) on a single server using
fastcgi - I have 20 or so ShinyCMS installs on my server.  I haven't
tried the other methods.

Regards,
Denny



___
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] ShinyCMS doesn't work with Catalyst 5.90102

2015-11-11 Thread Denny
Hi all,

ShinyCMS fails to run with the latest release of Catalyst, 5.90102:
http://paste.scsys.co.uk/501327

It works okay with the previous release, 5.90100:
http://paste.scsys.co.uk/501326

I assume this is a conflict between some part of my code, and one or
more of the changes in the latest Catalyst release (maybe the 'preserve
state across a chain' changes), but I don't know how to dig into that.
Can anybody help or advise?

Thanks,
Denny



___
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] Simple question about "use Catalyst"

2015-10-19 Thread Denny
On Mon, 2015-10-19 at 14:21 +0100, Andrew wrote:

> I ran catalyst.pl to create a new app (at least I think that's how I
> did it - it was a couple of days back now),
> and when I opened the main pm file, near the top was:
>  
> use Catalyst::Runtime 5.80;
>  
> I'd just installed Catalyst 5.90101 via cpanm, so wasn't sure why 5.80
> was written there (for compatibility reasons?),
> so as I modify the script to suit my purposes, I've changed it to:
>  
> use Catalyst::Runtime 5.90101;
>  
> ...does it do anything, or make any difference?

It means anyone else who uses your application (and/or any other
machines you install it on yourself) will also have to have the newer
version of Catalyst installed.

If your app doesn't need any features that are in 5.9 but not in 5.8,
and you're not releasing it to the public, then it's probably not worth
changing it, but it won't hurt either way.  If you are releasing it to
the public, changing it will cause problems for other people who are
still running 5.8 on their machines.

If your app does need features that are only in 5.9 and you're releasing
it to the public, then of course you must change it, so anyone else
installing your app knows what libraries they'll need to
install/upgrade.



___
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] mod_fastcgi config for a Catalyst app.

2015-10-18 Thread Denny
Hi Andrew,

There's a sample Apache config and external fastcgi launcher command in
ShinyCMS:
https://github.com/denny/ShinyCMS/blob/master/docs/sample-apache-conf/httpd.conf
https://github.com/denny/ShinyCMS/blob/master/bin/external-fastcgi-server

Possibly having a look at those will help you figure out what to do with
your own environment.  Good luck!

Cheers,
Denny


On Sat, 2015-10-17 at 21:48 +0100, Andrew wrote:
> Could someone help me, with a bit of plain english please?
> Am finding the tutorials on getting mod_fastcgi installed and working
> a tad confusing.
>  
> I have a VPS with Cpanel and WHM.
> Apache 2.2.24
> A number of different user directories,
> only one of which has to run a Catalyst app.
> [Although it would be nice to use one user as a dev server, and
> another user as a production server]
>  
> I have downloaded http://fastcgi.com/dist/mod_fastcgi-current.tar.gz
> I extracted this on the hard drive of my MacBook Pro.
> This gave me the folder:
> mod_fastcgi-2.4.6
>  
> On my VPS, my apache appeared to be installed at /usr/local/apache
> ...so I opened up Makefile.AP2 within the mod_fastcgi-2.4.6 folder on
> my laptop, using a text editor, and changed:
> top_dir= /usr/local/apache2
> to the following:
> top_dir= /usr/local/apache
> ...so that the top directory path would be correct.
>  
> I then uploaded the entire mod_fastcgi-2.4.6 folder to the root of my
> VPS.
>  
> I opened a terminal window and logged in as root, using SSH.
> I changed directory to the folder I'd just uploaded:
> cd mod_fastcgi-2.4.6
> Then I entered the three command lines in the installation
> instructions, one after each other:
> cp Makefile.AP2 Makefile
> make
> make install
>  
> I then browsed to the folder:
> /usr/local/apache/modules/
> ...and saw the file: 
> mod_fastcgi.so
> ... was now in there, so assumed that's mod_fastcgi installed! =D
> Hooray!
>  
> So now I believe I need to:
> Configure Apache.
> Restart Apache.
> Run my Catalyst App.
> and this is where I'm having trouble.
>  
> Here are my problems:
>  
> PROBLEM ONE:
>  
> Tutorials imply the following line should be added to the httpd.conf
> file:
> LoadModule fastcgi_module modules/mod_fastcgi.so
> ...with modules being the folder mod_fastcgi.so is in on my VPS.
>  
> So - my first question - where in httpd.conf do I put it?
> At the very start?
> In between the  tags for the domain name I want the
> Catalyst App to be at?
> In the include conf files, for my domain name (the includes are in the
> last line before the virtual host tag closes)?
> Or do I forget about httpd.conf entirely, and shove it in a .htaccess
> file, in my app's directory?
>  
> From what I gather, External (aka Standalone Server Mode, aka as just
> Server) is the best mode to run the app under.
> This brings us nicely to
>  
> PROBLEM TWO:
> http://wiki.catalystframework.org/wiki/deployment/apache_fastcgi#Configure_Apache
> ...gets pretty confusing here.
> It gives the example of:
> 
>   FastCgiExternalServer /tmp/myapp.fcgi -host myhost:8081
>   Alias /myapp//tmp/myapp.fcgi/
> 
> I need to know how to customise this for my purposes.
> My server does have a /tmp/ directory, and I understand myapp.fcgi is
> totally fictional and shouldn't exist.
> Now - what about the rest of the first line? -host myhost:8081
> Documentation says we should change hostname and port as appropriate.
> What throws me is that the next bullet point says that if the catalyst
> app is actually on our apache server, that we should use "-socket
> " instead of "-port "  this is odd, because in the
> example, there is no "-port " used anywhere. It then goes on to say
> using "-host" will still work... then says we should use "localhost"
> as the hostname... before then saying we could use "user -port"
> instead, O_o.
> So should the line be:
>   FastCgiExternalServer /tmp/myapp.fcgi -host
> www.mydomainname.com:8081
> ...or:
>   FastCgiExternalServer /tmp/myapp.fcgi -host localhost:8081
> ...or:
>   FastCgiExternalServer /tmp/myapp.fcgi -socket
> some-sort-of-filename-goes-here
> (...which raises the question - what filename? mod_fastcgi
> documentation says the filename of the unix domain socket the app uses
> to communicate with the web server - I have no idea what that is,
> =S. )
> ...or:
>   FastCgiExternalServer /tmp/myapp.fcgi gamextra -8081
> (..my attempt at interpreting user -port)
> ...or should the line be something else entirely?? 
> I'm assuming:
>   Alias /myapp//tmp/myapp.fcgi/
> ...will be entirely correct as it is, yes?
>  
> PROBLEM THREE:
> Where do I 

Re: [Catalyst] mod_fastcgi config for a Catalyst app.

2015-10-18 Thread Denny
On Sun, 2015-10-18 at 15:50 +0100, Andrew wrote:
> I still don't know if 
> FastCgiExternalServer 
> /home/gamextra/public_html/GXCatalystTest/script/gxcatalysttest_fastcgi.pl
> ...is just a fictional filename that could be anything, or always has
> to literally point to your fastcgi script in the catalyst app's script
> folder.

Yes, it has to point to the fastcgi script for your application (which
Catalyst helpfully provides, as you've noted).
 
> Next thing I need to learn:
> If I've used:
> script/gxcatalysttest_fastcgi.pl -l www.game-extra.com:55900
> -p /tmp/myapp.pid
> ...to start the app.
> How does one stop or restart it?

This might not be the best way, but I just use top.  Enter u followed by
the relevant username to narrow down the process list, and look for the
one called perl-fcgi-pm rather than just perl-fcgi.  Then enter k
followed by the process number of the process you just found, and then
hit enter again to accept the default signal (15).

Regards,
Denny



___
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] Memory usage with FCGI? Server running out of RAM

2015-06-11 Thread Denny
I run a server with 18 separate installs of ShinyCMS running, with at least 3 
and sometimes 20 processes per install.  122 perl-fcgi processes in total.  
They look a bit bigger than most of your processes. I've got 8GB of RAM, and 
I'm pushing up against the edges of it a bit, but I don't usually have any 
problems.

Hope that's useful info!



On 11 June 2015 13:31:16 BST, Jesse Sheidlower jes...@panix.com wrote:

Sysadmin-fu needed: I have a personal server in the cloud that has 1 GB
of RAM. It's running Debian, and the usual server basics--MySQL, nginx,
etc. No X, of course.

There are three Catalyst apps running, all of them fairly small, using
nginx and FCGI (I run the MyApp_fastcgi.pl script to a socket, that
nginx then responds to). But they're taking up all the memory on the
system, and I can't run another Cat app (and sometimes even system
commands hang for lack of memory). I tried reducing --nproc to 1 for
two
of the three apps that I'm the only one using (the other has --nproc
3).
The output of top with M (sorting by RES) looks like (I removed a
few columns for spacing):

  PID USER VIRT  RES  SHR S  %MEMTIME+  COMMAND 

23766 www-data 440m 230m 2584 S  23.0   0:13.40 perl-fcgi 
16958 mysql428m 188m0 S  18.8 118:14.98 mysqld
25992 www-data 375m 158m 2608 S  15.9   0:06.80 perl-fcgi 
26884 www-data 238m  80m 2616 S  8.0   0:01.61  perl-fcgi 
 2513 www-data 282m  76m0 S  7.7   0:06.01  perl-fcgi 
 2512 www-data 182m  66m0 S  6.6   0:00.00  perl-fcgi-pm [Library]
 1825 www-data 172m  61m0 S  6.1   0:03.44  perl  
 2487 www-data 163m  46m   60 S  4.6   0:00.18  perl-fcgi-pm [CatSF]
 1692 root 119m 5128  140 S  0.5   0:56.32  rsyslogd  
19998 www-data 79452 3296 1136 S 0.3   6:10.61  nginx 
 2265 www-data 79768 3148  504 S 0.3  15:57.81  nginx 
[...]

Is this an expected or appropriate amount of memory usage? I appreciate
that 1GB isn't all that much memory nowadays, but this is a very
lightly
loaded machine, and I don't want to pay a lot more for a larger cloud
server to handle this if it's not necessary.

Thanks.

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

-- 
Sent from my phone. Please excuse typos, terseness, and top-posting.___
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] Advent Calendar... Grant proposal...

2015-01-18 Thread Denny
Hi Jens,

On Sun, 2015-01-18 at 20:16 +0100, Jens Gassmann wrote:
 i'm currently building a catalyst-based CMS - it is fully working, but 
 needs some help to make it open source and add some more features.
[...]
 For those who are interested in, i will gave a online presentation. 
 Please contact me if you like to contribute!

I'm the main author of ShinyCMS*, which is also an open source
Catalyst-based CMS with a variety of features (pages, blogs, shop,
forums, mailshots, etc etc).  I'd love to learn more about your CMS and
see if there are any useful ways we can work together, maybe even re-use
some of each other's code!  :)

Regards,
Denny

* http://shinycms.org  /  https://github.com/denny/ShinyCMS 



___
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] London Catalyst developer opportunity

2014-03-26 Thread Denny
Hi all,

Yesterday I interviewed for the job below.  They offered me the role,
but after agonising over it for 24 hours I've just turned it down,
purely on the grounds of the salary - I'm too used to contracting rates,
dropping back to a permanent role felt like stepping my career and my
earnings back 5 years.

However, I wanted to recommend the role to anyone else who's a bit less
experienced and a bit less greedy  :)  They seemed like really nice
people, the lead dev in particular seemed like he would be very easy to
work with.  They use Perl in-house for their main product, a Catalyst
app interfaced with a bunch of other weird stuff, and now they're
developing an in-house CRM from scratch, also as a Catalyst app (using
TT and DBIC, with Postgres at the back end).

There are two other developers including the lead, but they work on
maintaining, extending and refactoring the main product - the CRM
project would be the new developer's baby.  There aren't many greenfield
projects in Perl these days, so this was the factor that very nearly
sold it to me - the chance to design something from scratch and Do It
Right [tm] instead of fiddling around with 90's legacy code.  ;)

The company is based near Westbourne Park tube, their offices seemed
okay (currently being refurbished, but not shabby to start with), and
they're in a vaguely cool line of business.  The flexitime lets you
start anywhere between 8am and 10:30am, and they work 7 hour days.

I genuinely think it's a decent opportunity for someone, so I recommend
applying if you're at all interested and available.

Matthew is a decent agent, he's been doing Perl recruitment for a good
while now.  The only thing I'd quibble slightly with in the email below
is 'generous annual leave' - it's the standard 20 days plus bank
holiday, plus they close between Xmas and New Year and that doesn't come
out of your holiday allowance.  So, bonus time off at Xmas, but
otherwise not exceptional.  On the other hand, not mentioned at all is
their bonus/profit-share deal - but that only kicks in after the first
year, and didn't pay out last year, so don't count on it.

Cheers,
Denny


On Mon, 2014-03-24 at 09:54 +, Matthew Geppert wrote:
 I have an existing client struggling to find perl developers for a
 greenfield project, therefore wanted to reach out to my network to see
 if anyone is interested or may know that could help?... 
 
 It’s an 18month Fixed term contract on a pro rata salary of up to 
 £45,000 with generous annual leave, Flexitime and interest free 
 season ticket loan after three months based in London (onsite based). 
 They’re an agency looking to recruit an experienced Perl Developer 
 to join our expanding technical team. Within this role you will be 
 responsible for developing our in-house customer relations database 
 application.  
  
 You should have at least three years’ experience in software 
 development and 3-5 years Perl programming experience.  You must 
 have solid knowledge of web technologies including HTML, CSS, AJAX 
 and jQuery as well as a working knowledge of PostgreSQL, DBIx::Class 
 and Catalyst.  Experience with software versioning tools and Linux 
 operating systems would be an advantage.
  
 
 If you are interested please feel free to give me a call for a
 confidential conversation on 0207 183 3541 or email m...@osrecruit.com
 to find out more.



___
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] List of Applications using Catalyst

2013-06-08 Thread Denny
On Fri, 2013-06-07 at 16:16 -0700, bill hauck wrote:
 Does anyone know of a list of applications that are using Catalyst?

http://wiki.catalystframework.org/wiki/catalystpoweredsoftware



___
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] List of Applications using Catalyst

2013-06-08 Thread Denny
On Sat, 2013-06-08 at 10:00 -0700, Richard Bychowski wrote:
 On Jun 8, 2013, at 3:02 AM, Denny wrote:
  On Fri, 2013-06-07 at 16:16 -0700, bill hauck wrote:
  Does anyone know of a list of applications that are using Catalyst?
  
  http://wiki.catalystframework.org/wiki/catalystpoweredsoftware
 
 That's 18 links. Eight are dead links.

I didn't say it was a _good_ list.  :-p

 It strikes me that perl or perhaps specifically Catalyst developers 
 are building and releasing tools over applications. 

I think people are building plenty of applications inside commercial
environments, but not many that are publicly released.  People seem to
use Catalyst to solve big and quite company-specific problems, rather
than medium-sized generic problems.

 IMHO, the Catalyst community really needs more open source applications 
 to generate outside interest.  Am I alone in thinking this? I've been 
 eagerly watching the ShinyCMS project.

Thanks  :)  Feel free to join in!

 I suspect more developers will contribute once the project is closer
 to a 1.0 release?

That would be nice.  I'm not sure that Perl developers are particularly
scared of 0.x releases though... I feel it's more a lack of interest in
solving those medium-sized generic problems.

I have a designer pledged to build me a set of front-end templates for
the demo site, which I think is one thing that's essential before I
bundle up a 0.9 pre-release for people to look at.  The other thing I
wanted to do was finish the shop order processing stuff, but the client
paying some of the development costs for that has pulled out, which has
slowed things down considerably.

Once I get those two things done, I'll beg and possibly even bribe a few
people to look over the code and docs and maybe do some QA, and then
hopefully it  will be ready for a shiny 1.0 version number.  :)

Regards,
Denny



___
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] Unable to output anything in Root.pm - 'auto'

2012-10-29 Thread Denny
On Mon, 2012-10-29 at 15:43 +, Craig Chant wrote:
 By the way, what do you need the session-id for? Catalyst handles sessions 
 in a transparent way
 
 To authenticate users, I don't want to store authentication in the hash and 
 it seems the only other way to do this is via ORM, which I don't want to use 
 either.
 
 I find catalyst whenever I look at how it implements anything to do with DB 
 access, it forces ORM upon you, so I need to write my own authentication code 
 don't I ?

I'm pretty sure the default storage for session stuff is disk-based.



___
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] Changing Formhandler field-type/widget based on Catalyst user-role

2012-05-24 Thread Denny
On Wed, 2012-05-23 at 23:24 -0500, will trillich wrote:
 Short version: How can we toggle field X from being a Select (popup)
 for Admin users, to being a Hidden (nothing visible, but the value is
 maintained) for Manager users?

Short answer; don't.

If you're maintaining the value for users who aren't allowed to change
it, then you don't want it in your form data.  Form submissions can be
spoofed, so you'd have to double-check the value (or drop it) in your
Perl code anyway... so you might as well just do that, and remove it
entirely from the HTML (which seems to be a simpler problem?)

Regards,
Denny



___
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] Authentication in a Many Database Scenario

2012-05-09 Thread Denny
On Wed, 2012-05-09 at 21:09 +0100, Scott Simpson wrote:
 I’d like to offer users their own database (so that their own data is
 separate from other users) but use the same MVC code for all the user
 databases.

https://metacpan.org/module/TEEJAY/Catalyst-TraitFor-Component-ConfigPerSite-0.08/lib/Catalyst/Model/DBIC/ConfigPerSite.pm

...might interest you.  It's intended for running a database per site
for a multidomain webapp, but you might find some useful ideas in there.



___
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] Paging problem

2012-04-27 Thread Denny
On Fri, 2012-04-27 at 14:22 -0500, Kenneth S Mclane wrote:
  ok, I used bits from all over and have this sub now: 
[...]
 my $page = 1;
[...]
  when clicking any link the data doesn't change. 
 
That seems reasonable.  You need to change the value of $page if you
want to move to the next page of data - pass it in as a parameter.

Cheers,
Denny



___
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] Method name conflict with current versions

2011-12-28 Thread Denny
On Tue, 2011-12-27 at 18:08 -0800, Louis Erickson wrote:
 I'm trying to get ShinyCMS working

Yay!

 and had an old installation and nothing worked.

Boo!

Do you mean an old installation of ShinyCMS, or an old installation of
Perl, or an old installation of Catalyst and supporting modules?

 So, I installed perlbrew, installed a new Perl 5.14.2, and then used cpanm to 
 install new versions of all the needed modules.  Current as of yesterday.
 
 When I start parts of ShinyCMS, I get errors.
 
  wwonko@holly:~/projects/MyApp/script $ perl myapp_server.pl 
 Couldn't load class (MyApp) because: Due to a method name conflict in roles 
 'CatalystX::Component::Traits' and 'MooseX::Traits::Pluggable', the method 
 '_find_trait' must be implemented or excluded by 
 'Catalyst::Model::DBIC::Schema' at 
 /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Moose/Meta/Role/Application/ToClass.pm
  line 127

I see t0m has already posted the solution to this.  I wonder if you
could try updating your Catalyst (/Moose/etc) against your 5.10.0
install also, and let me know if there are any problems with ShinyCMS on
that stack?  I did most of the original development on 5.10.0 but I
recently updated to 5.12.4 when I had to reinstall Ubuntu...  I'd rather
ShinyCMS didn't leave 5.10.x behind just yet though!

Thanks and regards,
Denny

PS: If you'd like to find me for a chat at any point, I usually lurk in
#shinycms on irc.freenode.net  :)



___
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] Single-domain multi-shop, multi-gateway; linked to the one shopping-cart

2011-12-05 Thread Denny
On Mon, 2011-10-31 at 02:38 +1100, Alec Taylor wrote:
 Good morning,
 
 How would I go about integrating/developing a multi-levelled
 meta-shopping-cart using Catalyst?
 
 [ ... ]
 
 Thanks for all suggestions,


On Mon, 2011-12-05 at 15:53 +1100, Alec Taylor wrote:
 Good afternoon,
 
 How would I go about building a single-domain multi-shop with
 multiple-gateways; linked to the one shopping-cart; using Catalyst?
 
 Thanks for all suggestions,


Hi Alec,

My suggestion is that you should probably take the following approach:
1. Design the software architecture.
2. Implement the system as designed.
3. Test it thoroughly.

If you're not sure how to proceed with any of those steps, then given
that you seem to be talking about building a very large-scale commercial
application, and you haven't mentioned it being open source, I would
suggest that you should probably hire someone who does know how to do it
and pay them appropriately.

If you get stuck at specific technical points in step 2 or 3 then I'm
sure people on this list will be very happy to give you some guidance,
but if you've not even made a start on step 1 then I think you have some
work to do for yourself first - or some hiring to do.

Regards,
Denny



___
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] Dealing with timestamps from Postgres

2011-11-03 Thread Denny
On Thu, 2011-11-03 at 15:20 -0500, will trillich wrote:
 The very nucleus of Character: to do what you know you should do,
 when you don't want to do it. Stephen Covey

Good .sig quote for a thread about documentation  :)




___
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] Session duplicate key constraints on concurrent requests

2011-10-10 Thread Denny
The word you both want is 'lose'.  Loose means something slightly different 
(and slightly odd, when discussing data).


Tobias Kremer wrote:
 Matthias Dietrich wrote:
 you'll end up loosing info from session:new1.

 you'll loose data anyways.


___
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] Catalyst::Plugin::AutoCRUD example not working?

2011-10-07 Thread Denny
AutoCRUD is definitely maintained, and generally works very well.

'No sources defined' sounds to me like possibly your AutoCRUD config is 
wrong... I can't read the demo from here though, so can't help with specific 
advice, sorry.

--
Sent from my phone.  Please excuse terseness, typos and top-posting.

Janne Snabb sn...@epipe.com wrote:

Hi,

First of all, I am total newbie with Catalyst (but not with Perl),
so please ignore any cluelessnes.

I got interested in Catalyst and in particular
Catalyst::Plugin::AutoCRUD
and wanted to give it a try. I followed the instructions in the
INSTANT DEMO APPLICATION section of AutoCRUD manual page but can
not get it to work and do not have a clue how to troubleshoot.

The startup of the demo application is accompanied by some worrying
diagnostics outputs (see below).

If I try with old Catalyst (5.80032-1) and old Perl (v5.12.4) as
distributed by Ubuntu  Debian, I do get a server listening at port
3000 and can connect to it. I get the following message on the web
page:

 Welcome to AutoCRUD, an automagic web interface for databases

 The schema for database Dbic has been loaded, so please select a
 table by clicking on its label, below.

... but unfortunately there is nothing to click below that message.

The startup is accompanied with the following messages:

 Dynamic schema detected, will run in 0.04006 mode.

 Set the 'naming' attribute or the SCHEMA_LOADER_BACKCOMPAT
environment variable
 to disable this warning.

 Also consider setting 'use_namespaces = 1' if/when upgrading.

 See perldoc DBIx::Class::Schema::Loader::Manual::UpgradingFromV4 for
more
 details.
 *** WARNING
***
 * No sources found (did you forget to define your tables?)
*
 *  
*
 * To turn off this warning, set the CMDS_NO_SOURCES environment
variable. *

***
 [debug] Debug messages enabled
 [debug] Statistics enabled
 [warn] You are running an old script!

   Please update by running (this will overwrite existing files):
 catalyst.pl -force -scripts DemoApp

   or (this will not overwrite existing files):
 catalyst.pl -scripts DemoApp

 [debug] Loaded plugins:

..
 | Catalyst::Plugin::AutoCRUD  1.112770
   |
 | Catalyst::Plugin::ConfigLoader  0.30
   |

''
[..]

If I use current Perl with current Catalyst, I do not get a HTTP
server on port 3000. The application starts but I can not connect
to it. I get the following messages when starting:

 You are loading Catalyst::Engine::HTTP explicitly.

 This is almost certainally a bad idea, as Catalyst::Engine::HTTP
 has been removed in this version of Catalyst.

 Please update your application's scripts with:

   catalyst.pl -force -scripts MyApp

 to update your scripts to not do this.

 Dynamic schema detected, will run in 0.04006 mode.

 Set the 'naming' attribute or the SCHEMA_LOADER_BACKCOMPAT
environment variable
 to disable this warning.

 Also consider setting 'use_namespaces = 1' if/when upgrading.

 See perldoc DBIx::Class::Schema::Loader::Manual::UpgradingFromV4 for
more
 details.
 *** WARNING
***
 * No sources found (did you forget to define your tables?)
*
 *  
*
 * To turn off this warning, set the CMDS_NO_SOURCES environment
variable. *

***
 [debug] Debug messages enabled
 [debug] Statistics enabled
 [warn] You are running an old script!

   Please update by running (this will overwrite existing files):
 catalyst.pl -force -scripts DemoApp

   or (this will not overwrite existing files):
 catalyst.pl -scripts DemoApp

 [debug] Loaded plugins:

..
 | Catalyst::Plugin::AutoCRUD  1.112770
   |
 | Catalyst::Plugin::ConfigLoader  0.30
   |

''
[..]


Am I doing something wrong? Is AutoCRUD maintained? If not, is there
some replacement?

(Running catalyst.pl -force -scripts DemoApp as instructed in the
diagnostics output does not help, it does not seem like this is a
proper thing to do.)

--
Janne Snabb / EPIPE Communications
sn...@epipe.com - http://epipe.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/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 

Re: [Catalyst] Catalyst::Plugin::Authentication set_authenticated

2011-10-05 Thread Denny
I'm using it in ShinyCMS, with the same concerns.  Discussion in #catalyst when 
I was writing that bit of the code didn't really reach a conclusion on whether 
it was 'safe' to use it, but nobody had a better suggestion.

Regards,
Denny

--
Sent from my phone.  Please excuse terseness, typos and top-posting.

Bill Corr bc...@aptina.com wrote:

Hi,



Is the set_authenticated method really private? I am puzzled because in
the documentation for Catalyst::Plugin::Authentication there is an
example using this method -



$user = $c-find_user({ id = $id });

$c-set_authenticated($user); # logs the user in and calls
persist_user



Yet, later on it is listed as an internal method, with the usual
caveats
-



INTERNAL METHODS



These methods are for Catalyst::Plugin::Authentication INTERNAL USE
only. Please do not use them in your own code, whether application or
credential / store modules. If you do, you will very likely get the
nasty shock of having to fix / rewrite your code when things change.
They are documented here only for reference.



$c-set_authenticated( $user, $realmname )



Well, I am using it anyway!



Thanks,

Bill.


Aptina (UK) Limited, Century Court, Millennium Way, Bracknell,
Berkshire, RG12 2XT. Registered in England No. 06570543.

This e-mail and any attachments contain confidential information and
are solely for the review and use of the intended recipient. If you
have received this e-mail in error, please notify the sender and
destroy this e-mail and any copies.
___
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] Simple tutorials

2011-09-11 Thread Denny
On Sun, 2011-09-11 at 15:52 -0500, Chris Stinemetz wrote:
 Hello,
 
 I just finished installing catalyst along with strawberry perl. Would
 someone please recommend a good tutorial to get my feet wet?

http://lmgtfy.com/?q=Catalyst+tutorial

Top link.



signature.asc
Description: This is a digitally signed message part
___
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] Virtual file manager like CKFinder

2011-07-14 Thread Denny
On Thu, 2011-07-14 at 07:10 -0700, Siddhartha wrote:
 I'm trying to write a small web application. In the administrative 
 part of the application I need vitualny file manager. Something like 
 ajaxfilemanager or CKFinder or MCImageManager. They all have a php backend.
 
 Can I find a ready solution for Catalyst applications?

There's a half-finished (or possibly half-started) CKEditor-compatible
file manager built into ShinyCMS - feel free to pull the useful bits out
and use them if they do what you need.  (And send me any useful bits you
add!)

Regards,
Denny

https://github.com/denny/ShinyCMS 

https://github.com/denny/ShinyCMS/blob/master/lib/ShinyCMS/Controller/FileManager.pm
 

https://github.com/denny/ShinyCMS/tree/master/root/filemanager 



signature.asc
Description: This is a digitally signed message part
___
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] moniker_map arg in app_create.pl

2011-05-04 Thread Denny
On Wed, 2011-05-04 at 13:37 -0300, Hernan Lopes wrote:
 you should name your model singular, not plural

Species is singular and plural.  Like sheep.



signature.asc
Description: This is a digitally signed message part
___
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] Open Source CMS

2011-04-29 Thread Denny
On Fri, 2011-04-29 at 08:27 +0100, Goke Aruna wrote:
 Its been two hours trying to run ShinyCMS.
 
 The dependencies are too many.

I don't think the list is unusually long for a Catalyst app, although I
could be wrong*.  Did you already have Catalyst installed, or did you
have to start by installing Catalyst, Moose, DBIx::Class, etc?  That
does take quite a while the first time you do it.

 Is it possible to have all the dependencies in a file and run it 
 prior to running it.

I'm not entirely sure - isn't that what make is supposed to do?
Personally I just use the command-line cpan tool to manually install
whatever is in the Makefile.PL when I install other people's code...
anyone got any advice on packaging up for simpler deployment?

Cheers,
Denny

* Link to the Makefile.PL, so you can see the dependencies:
https://github.com/denny/ShinyCMS/blob/master/Makefile.PL 



signature.asc
Description: This is a digitally signed message part
___
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] Open Source CMS

2011-04-28 Thread Denny
On Thu, 2011-04-28 at 17:40 +0100, Mike Raynham wrote:
 I know that this is not a Catalyst question, but I hope to get the 
 opinions of those that use Catalyst.
 
 I develop web sites for small businesses, and really like using Perl and 
 Catalyst.  However, there are times when developing a custom CMS is not 
 really appropriate - usually because it takes too much time (and hence 
 money) to develop, and because there are lots of ready made systems out 
 there already that will do the job.
 ...
 Does anyone have any experiences with open source CMS frameworks that 
 they are able to share?

Hi Mike,

As Devin has already mentioned, I've got a basic CMS up and running, and
I'm still adding features at a reasonable pace (this month; forums).
Take a look at www.shinycms.org and https://github.com/denny/ShinyCMS
and come chat in #shinycms on irc.perl.org - more developers would be
very welcome, likewise users with a developer mindset - the docs are a
bit lacking but I'm very happy to answer questions!  :)

It would be nice to get a Perl CMS built that we can start recommending
to people, at least for basic stuff, instead of having to look
embarrassed and point people at Drupal, Wordpress, and other PHP
solutions.

Cheers,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] Response Headers

2011-03-28 Thread Denny
On Mon, 2011-03-28 at 08:12 -0500, John M. Dlugosz wrote:
 Where is Content-Type being set?
 
 I'd like to send it instead as application/xhtml+xml, if the Accept header of 
 the request 
 claims to take that.

Catalyst::View::TT::XHTML

Regards,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] apache2 fastcgi

2011-03-19 Thread Denny
On Sun, 2011-03-13 at 15:02 +, Mike Raynham wrote:
 The example in the Advent Calendar runs the app as an external process. 
   Here's a copy of one of my old external Apache Virtual Host files:
 
 [snip]
 
 To start the app as an external process (or 3), you need something like 
 this:
 
 /var/www/example.com/public_html/script/example_fastcgi.pl -n 3 \
 -l /var/run/example.socket -p /var/run/example.pid -d -e

Thanks for these examples...  I've been meaning to move from static to
external fastcgi for a while now, and this gave me the push and the help
I needed.

Cheers,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] Weird problem with Catalyst::Authentication, and redirects

2011-01-26 Thread Denny
On Wed, 2011-01-26 at 17:17 +0700, Ben van Staveren wrote:
 Hi folks, I've been breaking my head over this one for the last 3 hours and I 
 can't figure out what the hell is going on. I'm using 
 Catalyst::Authentication 
 to deal with authentication, as follows:
 [...]
 Strangely enough, it seems that the c-res-redirect isn't taking for some 
 reason, this used to work before, and suddenly stopped working. I've been 
 trying to figure out what I've changed that would cause this, and I haven't 
 touched any of the authentication bits at all.
 
 If I am in fact logged in, c-res-redirect works exactly as advertised and 
 will happily do the trick, except in this case where I have not logged in.
 
 Any ideas? I'm about ready to shoot this project in the head :(

Have you tried turning it off and then on again?  ;)

More seriously, I have found on multiple occasions that the Catalyst
Auth stuff can seem to get itself into an inconsistent state, such that
it starts behaving oddly (usually mine will successfully log in, but
fail to keep track of that fact), and the only way to fix it is to
delete the contents of the session store (database, in my case), delete
all the cookies for the site, and possibly wipe the browser cache too.

Other than that I'm not sure what to suggest.  Where does the auto
return to?  Is it possible it's coming back from there to before the
dashboard redirect, and so the redirect URL is getting overwritten
before the output is constructed?  (I've not used auto, so no idea if
this is a stupid question or not.)

Regards,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] Re: superuser switch-user session function?

2010-11-29 Thread Denny
On Mon, 2010-11-29 at 17:37 -0600, will trillich wrote:
 Aha! It looks like a sneaky, evil, wrong, mean, horrid way to
 switch-user in the middle of a session is to
 
 $c-session-{__user}{id} = $new_id_here; # since id = PK
 
 But that's undoubtedly bad form of the worst kind.
 
 What's the canonical non-sneaky above-board friendly golden way to do
 this?

t0m wrote something on the list a while back about putting your user
details into the stash manually rather than using $c-user directly.
One of the reasons he gave was that then, if you want to override the
(perceived) user session, you can override $c-stash-{ user } instead
of having to mess with $c-user itself.

Although presumably it would make sense to hinge the admin-only
functions (such as 'switch user') off of $c-user - so that you can
still switch back when you're done  :)

Regards,
Denny



___
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] Query : Catalyst forward and relative path in CSS.

2010-11-21 Thread Denny
On Sun, 2010-11-21 at 21:40 +0530, Rohan M wrote:
 2) I'm using relative path in the CSS -
 e.g background : url(../static/images/header.gif)
 
Now when I try to go to a page something like /person/edit/1 .. I
 loose the CSS because of the relative path.
 i) Is there a way to define a absolute path ?
 ii) Can we give Document_root kind of path to achieve this?

Not sure if you're not doing it this way for a reason, but personally I
always use paths relative to the document root in my CSS - like so:
background: url('/static/images/header.gif')

Regards,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] Query : Catalyst forward and relative path in CSS.

2010-11-21 Thread Denny
On Sun, 2010-11-21 at 21:40 +0530, Rohan M wrote:
 Dear All,
 
 I'm trying out the examples and learning Catalyst.
 
 Although, the scripts are working but I'm facing two problems -
 
 1) The $c-forward('controller/action') NOT working but
 $c-response-redirect('/controller/action') is working.
 Any reason ? I do not see any errors on the console.

-forward returns you to where it was called after it does its thing.
You might want -detach or -go for something closer in behaviour to a
redirect.

http://s.coop/5gg is the section of the manual that discusses the
differences between go/visit/detach/forward.

Regards,
Denny




signature.asc
Description: This is a digitally signed message part
___
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] Displaying template files without adding new controller actions

2010-10-11 Thread Denny
On Mon, 2010-10-11 at 15:02 +0100, Anthony Gladdish wrote:
 I'd like to add various web pages to my Catalyst app without the need
 to modify controllers and restarting the server.
 Instead, I just want to add a Template::Toolkit .tt2 file on the file
 system and it get picked up automatically.

Something like this may help...
(in a theoretical MyApp/Controller/Thing.pm)

sub view : Chained( '/' ) : PathPart( 'view' ) : Args( 1 ) {
my ( $self, $c, $template ) = @_;

# [ stuff to set template variables in stash goes here ]

$c-stash-{ template } = 'template-directory/'.$template.'.tt';
}

...so http://your.app/thing/view/foo will load the foo.tt template from
in template-directory.

That said, would you mind telling us a bit more about what you're
actually trying to achieve in your application?  There may be a better
or more standard way of doing it.

Regards,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] Displaying template files without adding new controller actions

2010-10-11 Thread Denny
On Mon, 2010-10-11 at 15:50 +0100, Anthony Gladdish wrote:
 Suppose I had a 100 different ( fairly static content ) web pages - I
 really don't want to have to create an action for each.

Depending on what you're doing, you may possibly want to take a look at
ShinyCMS: http://shinycms.org (specifically, the 'CMS Pages' features
and/or the Pages controller)

I can't claim it's particularly brilliant code, but it's there and
you're welcome to steal bits  :)  (or just use it, if it does roughly
what you need)

Regards,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] Defining ARRAY in Config::General config

2010-10-08 Thread Denny
On Fri, 2010-10-08 at 19:46 +0200, Alexander Hartmaier wrote:
 Am Dienstag, den 21.09.2010, 06:29 +0200 schrieb Pavel A. Karoukin:
  I am using Catalyst::Plugin::Mail and want to define email config in
  myapp.conf. But C::P::Mail expects email config variable to be array
  ref. How I can assign array value to config variable in myapp.conf?
 
 If you're referring to Catalyst::Plugin::Email you shouldn't use that
 any more as mailing doesn't need to be a plugin but a view.
 Try Catalyst::View::Email(::Template)

Following on from that advice (which I was also given, and followed),
here's a sample Catalyst::View::Email(::Template) config I had to work
out earlier this week.  There are a remarkable shortage of sample
Catalyst configs online, and I found it quite frustrating just trying to
find the right syntax to use - even though it's incredibly simple once
you know how.  Hope this helps.

Regards,
Denny


de...@serenity ~/code/shinycms $ cat shinycms.conf 
name   ShinyCMS
author Denny de la Haye 2...@denny.me

default_view HTML

View::Email
stash_key email_data
default
content_type text/plain
charset utf-8
/default
sender
mailer SMTP
mailer_args
Host localhost
/mailer_args
/sender
/View::Email

View::Email::Template
stash_key email_data
template_prefix emails
default
content_type text/html
charset utf-8
view HTML
/default
sender
mailer SMTP
mailer_args
Host localhost
/mailer_args
/sender
/View::Email::Template



signature.asc
Description: This is a digitally signed message part
___
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] User management with Catalyst (with email and URLs)

2010-08-26 Thread Denny
On Thu, 2010-08-26 at 13:10 +0200, David Schmidt wrote:
 Anyways, what you want can be done with Catalyst.
 
 1) user enters mailaddress and hits submit
 2) you generate a digest
 3) store digest + mailaddress in model
 4) send digest in URL to mailaddress
 5) user klicks the link
 6) validate digest and request password
 7) store pw in db
 
 catalyst makes all this very easy.

You're completely missing the point of the original message - he very
clearly enquired about pre-rolled solutions for this sort of thing.  Of
course he could write his own, but he'd rather not if there's a
neatly-packaged community-managed solution already available.


signature.asc
Description: This is a digitally signed message part
___
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: AW: [Catalyst] User management with Catalyst (with email and URLs)

2010-08-26 Thread Denny
On Thu, 2010-08-26 at 14:23 +0200, daniel.brunkho...@dataport.de wrote:
   Nope, there doesn't seem to be a Catalyst::Controller::Registration
   on CPAN.  Maybe there should be.
 
 I wish there was and I definitely think there should be, because in 
 my opinion this is a pretty common task.

I'm going to need this feature soon too...  I'd be happy to look at any
code you write and see if we can pull it together into a generic module
between us?  I guess it would fall under the CatalystX::Elements
umbrella, if that's still happening.

Cheers,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] World Country List

2010-08-03 Thread Denny
On Tue, 2010-08-03 at 22:02 -0300, Robyn Jonahs wrote:
 Hi I am learning to use HTML::FormBuilder. I want to add a select
 input that contains all of the world countries. I am new to Cat and
 Perl. I searched CPAN but can't seem to come up with a module that
 lists all of the countries.

Locale::Country might help here...

http://perldoc.perl.org/Locale/Country.html



signature.asc
Description: This is a digitally signed message part
___
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] How use two wrapper?

2010-06-06 Thread Denny
On Sun, 2010-06-06 at 12:41 +0800, Xiao Yafeng wrote:
 I'm new to Catalyst. I'd like to use one wrapper to some templates,
 the other wrapper to some other templates.

Hiya,

There's a page on the wiki which I think gives you what you want:
http://wiki.catalystframework.org/wiki/gettingstarted/howtos/template_wrappers

Read the 'Custom wrappers for parts of your site' section.

Regards,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] Catalyst in Ubuntu?

2010-03-21 Thread Denny
On Sun, 2010-03-21 at 19:05 +0100, Matija Grabnar wrote:
 Anyway, I noticed that Ubuntu server seems to lag seriously behind the 
 Catalyst packages I see on Debian unstable

Well yes.  Debian unstable isn't generally considered suitable for
production servers - there's a clue in the name.

Is there a reason you'd rather not install Catalyst from CPAN?

Regards,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] Catalyst in Ubuntu?

2010-03-21 Thread Denny
On Sun, 2010-03-21 at 19:33 +0100, Matija Grabnar wrote:
 Denny wrote:
  Well yes.  Debian unstable isn't generally considered suitable for
  production servers - there's a clue in the name.

 I realize that. However, if we think that the latest Catalyst is stable 
 enough, now is the time to act. A month from now will be definitely too 
 late.

Oh I see...  I thought your concern was for your own deployment, not for
improving Ubuntu.  Yes, it would be nice if the imminent LTS release of
Ubuntu had something reasonably recent and solid in it.



signature.asc
Description: This is a digitally signed message part
___
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] Catalyst::Plugin::Prototype: current state?

2010-03-20 Thread Denny
On Sat, 2010-03-20 at 09:02 -0700, Ovid wrote:
 You can connect to your server at http://curtis-poes-computer-3.local:3000
 [warn] Calling $c-view() will return a random view unless you specify 
 one of:
 [warn] * $c-config(default_view = the name of the default view to use)
 [warn] * $c-stash-{current_view} # the name of the view to use for this 
 request
 [warn] * $c-stash-{current_view_instance} # the instance of the view to 
 use for this request
 [warn] NB: in version 5.81, the random behavior will not work at all.
 [error] Caught exception in Veure::View::AutoCRUD::JSON-process must 
 provide object to convert at /Library/Perl/5.10.1/Catalyst/View/JSON.pm line 
 44
 
 I can't tell why from the docs.

Most of that is because your app view is called HTML.pm (at a guess)
whereas the AutoCRUD one is called TT.pm (iirc).  You need to add
'default_view HTML' to your app's .conf file to stop those warnings.

Not sure about the exception though, I don't recall having that problem.



signature.asc
Description: This is a digitally signed message part
___
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] strange generated DBIC accessor name

2010-03-10 Thread Denny
On Wed, 2010-03-10 at 14:15 +0100, t...@dix.cz wrote:
 Hello catal[yi]sters,
 
 I'm going to be crazzy about one generated accessor name:
 
 __PACKAGE__-has_many(
company_people, # I expected to be company_persons
Jf::Schema::Result::CompanyPerson,
{ foreign.role = self.id },
 );
 
 I have no people pattern in my database. Did I miss something?

People is the correct plural of person.  Apparently Catalyst uses
something fairly clever to generate the plurals for relationship names.

Regards,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] Fwd: Catalyst development project - promo release application for a record label

2010-02-21 Thread Denny
Just received this and I thought it might interest some people on here.
I'm not involved, please contact the author of the original email if
you're interested.


 Forwarded Message 
From: Damon Allen Davison allo...@gmail.com
To: j...@london.pm.org
Subject: [Jobs] Catalyst development project - promo release application
for a record label
Date: Sat, 20 Feb 2010 10:38:07 +

Hello All,

Southern is looking for someone to help develop a standalone Catalyst
application that will allow us to share digital promotional releases
with our customers and the press. The application should have the
following features, unless you'd like to take a stab at convincing me
that any of them are stupid:


Core features:

- Download code-based. The release is distributed by the user entering a
code into a form.

- Secure. We have a working prototype using standard Apache
authentication modules.

- CMS integration via REST.

- File uploader. We need to upload the promos.

- Code generator. We need to generate/export codes for the promos.


There are a number of other features I'd like to discuss with the
developer. I've also got a functional specification I can show you, if
you're interested in taking on the project. We need this finished and
deployed in six weeks.

I'd like this to be done in modern Perl with full documentation so I can
maintain it and add to it in future.

Ideally, I would also like to meet with you, so this gives local
(London) developers a slight advantage. This is still a telecommute job,
though.

We will have to agree on a development price once we've had a chance to
discuss the specification.


Required Skills

Catalyst
Moose
DBIC
Apache
MySQL
RESTful services


Desired skills:

Drupal Services module


Contact:

Damon
Southern Records
Telephone +44 20  8949 (M-F)
techj...@southern.com
No recruiters, no agencies. Actual developers only.



signature.asc
Description: This is a digitally signed message part
___
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] HTML editor plugin

2010-02-03 Thread Denny
On Wed, 2010-02-03 at 07:02 -0600, Paul Falbe wrote:
 I'm looking to create a little app to edit/create HTML strings to
 store in a mysql table.  These strings are going to be displayed on
 a web page for annoucements for a youth baseball league.  Before I
 went about creating one I thought I'd ask if there is a plugin/example
 out there I should use as a starting point.  Basically, I need a 
 Catalyst html editor plugin if such a thing exists.

Not Catalyst specific, but I've used ckeditor* in the past - it's a
drop-in replacement for textarea with a load of configuration options.

Bear in mind the obvious security risks of letting people input HTML and
then injecting it directly into your site - at a bare minimum you want
to strip out javascript stuff, including onclick etc.


* used to be called fckeditor, seems to have changed recently.



signature.asc
Description: This is a digitally signed message part
___
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] Netiquette (was: Reading Database At Startup)

2009-08-19 Thread Denny
On Wed, 2009-08-19 at 19:40 +0100, Tomas Doran wrote:
 On 19 Aug 2009, at 15:35, Matt Koscica wrote:
 
  On Wed, Aug 19, 2009 at 9:44 PM, Eden Cardim edencar...@gmail.com  
  wrote:
 
 Why did you feel that quoting Eden's entire post, including signature  
 was a good idea? Bottom posting and including the _ENTIRE_ message is  
 even worse that top posing IMO, as it forces the reader to scroll  
 past the message _they just read already_...

Yes, but.  Didn't we have this discussion a few months ago, with zero
result?

Specifically, J. Shirley almost always does this (bottom posting after
quoting entire message _with list sigs too_), and gave some other people
a hard time for pointing out that it's actually really unhelpful, in
reply to him pointing out quite stridently that he doesn't like
top-posting.  Apparently as long as you post at the bottom it doesn't
matter if it's easy to read your reply or not.

Digging through archives, that discussion seems to start around 1pm on
27 April 2009 (GMT/UTC), although the top posting discussion started
prior to that.

Regards,
Denny



signature.asc
Description: This is a digitally signed message part
___
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] Netiquette (was: Reading Database At Startup)

2009-08-19 Thread Denny
On Wed, 2009-08-19 at 20:13 +0100, Denny wrote:
 Specifically, J. Shirley almost always does this (bottom posting after
 quoting entire message _with list sigs too_)

I retract that.  Looking at the archives it seems he finally started
trimming the list sigs off the bottom sometime around June/July.


signature.asc
Description: This is a digitally signed message part
___
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/