Re: [Catalyst] Web hosting?

2008-01-05 Thread Martin Ellison
I've now sorted this out with DreamHost and we now have an account.

On 04/01/2008, Martin Ellison [EMAIL PROTECTED] wrote:

 The refusal email was (on face) from a human, and did not state any
 reason. I've replied asking for an explanation.

 On 04/01/2008, Jon Schutz  [EMAIL PROTECTED] wrote:
 
  On Fri, 2008-01-04 at 09:28 +0800, Martin Ellison wrote:
   Dreamhost have refused to accept our site on the grounds of their
   frad detection system. No explanation given, and I have no idea why
   as this is a legitimate business.
 
  Did you contact a human at Dreamhost and ask why?  In contrast to some
  hosting providers, I have found Dreamhost's humans to be reasonable
  people.
 
  --
  Jon SchutzMy tech notes http://notes.jschutz.net
  Chief Technology Officer
  http://www.youramigo.com
  YourAmigo
 
 
 
 
  ___
  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/
 



 --
 Regards,
 Martin
 ([EMAIL PROTECTED])
 IT: http://methodsupport.com Personal: http://thereisnoend.org




-- 
Regards,
Martin
([EMAIL PROTECTED])
IT: http://methodsupport.com Personal: http://thereisnoend.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] What can C::P::Cache cache?

2008-01-05 Thread Joe Landman

Joe Landman wrote:
Sounds like a strange question, but I want to know if I can put a 
complex data structure like a hash in there.  Do I need to serialize it 
first?


Alternatively, if it only handles scalars, that is also useful to know.

Thanks.


Well ... never mind.  I figured it out for my self.  Short version, the 
following appears to work nicely:


my $serialized_menu = $c-cache-get('menu');
if ($serialized_menu)
  {
   @menu= @{$serialized_menu};
   $c-log-debug('Root::_get_navbar menu retrieved from cache');
  }
  else
  {
   $c-log-debug('Root::_get_navbar rebuilding menu');

   # rebuild menu
   $c-cache-set('menu',[EMAIL PROTECTED]);
  }

For some reason the manual's

unless ( ... ) {

} ...

construct did not work for this case.

--

Joe Landman
[EMAIL PROTECTED]

___
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] CPAN install without test? [ot]

2008-01-05 Thread Martin Ellison
Does anyone know how to get CPAN to install a module without doing the test
steps at all? Force install still does the test steps; I just want to go to
the actual make install.

Slightly off topic, but if anyone knows how to install modules, it must be
Catalyst developers...   (the module in question is DBIx::Class; for some
reason it is failing the populate test).

-- 
Regards,
Martin
([EMAIL PROTECTED])
IT: http://methodsupport.com Personal: http://thereisnoend.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/


[Catalyst] I am misunderstanding something about Private actions

2008-01-05 Thread Joe Landman

Hi folks:

  Thought I had this nailed, but it looks like I really didn't 
understand it as I should have.


  Here is the problem.  I want to forward to some private actions to 
simplify the application (and avoid repeating myself).  I want to be 
able to do this from any controller in the code.  So in reading the 
manual, I thought I was supposed to do


$c-forward('MyApp::Root::do_something');

and not

$c-forward('/do_something');

The latter works, the former does not.  Is this intended?  Are both 
supposed to work?


On a related note, I like naming my internal methods with an underscore 
up front.  Yeah, maybe not the best practice these days, but call it an 
old habit.  What I noticed was that private  methods named _do_something 
didn't seem to show up in the private list.  Confused me a bit.  Should 
I avoid that practice with Catalyst?  Just name them 
INTERNAL_METHOD_do_something  or something like that?  Well, you get the 
idea ...


Joe



--
Joe Landman
[EMAIL PROTECTED]

___
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] utf8 / pg double encoding problem

2008-01-05 Thread Ash Berlin


On Jan 5, 2008, at 11:28 PM, Andrew Rodland wrote:


On Saturday 05 January 2008 04:54:59 pm Daniel McBrearty wrote:
well I'm damned, I thought I had this stuff working squeaky clean.  
But

I was wrong. I actually had two bugs cancelling each other out -
usually.
[snip]
--' [debug] abçöeü
[debug] $VAR1 = ab\x{c3}\x{a7}\x{c3}\x{b6}e\x{c3}\x{bc};
[debug] it's UTF8!

Looks like the problem is here... the utf8 flag is on, indicating  
that $edit
is a string of characters, rather than bytes -- but the dumper  
output seems
to show that these characters correspond to UTF-8 encoded bytes,  
instead of
the actual characters of the data -- meaning that the bytes actually  
stored
in the string are along the lines of ab\x{c3}\x{83}\x{c2}\x{a7}...  
not
good. Somewhere, your data got the utf8 flag set by assumption  
instead of
by decoding. $edit = decode(UTF-8, $edit) should clear it up,  
although

finding the original problem is probably a better idea. :)

Andrew


ISTR that last time I looked at C::P::Unicode, it did things in a  
manner that I didn't like. I can't remember if this is because i  
thought it was wrong or if it just didn't work right for me, but maybe  
some more eyes on C::P::Unicode might be a good idea.


-ash
___
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] utf8 / pg double encoding problem

2008-01-05 Thread Andrew Rodland
On Saturday 05 January 2008 04:54:59 pm Daniel McBrearty wrote:
 well I'm damned, I thought I had this stuff working squeaky clean. But
 I was wrong. I actually had two bugs cancelling each other out -
 usually.
 [snip]
--' [debug] abçöeü
 [debug] $VAR1 = ab\x{c3}\x{a7}\x{c3}\x{b6}e\x{c3}\x{bc};
 [debug] it's UTF8!

Looks like the problem is here... the utf8 flag is on, indicating that $edit 
is a string of characters, rather than bytes -- but the dumper output seems 
to show that these characters correspond to UTF-8 encoded bytes, instead of 
the actual characters of the data -- meaning that the bytes actually stored 
in the string are along the lines of ab\x{c3}\x{83}\x{c2}\x{a7}... not 
good. Somewhere, your data got the utf8 flag set by assumption instead of 
by decoding. $edit = decode(UTF-8, $edit) should clear it up, although 
finding the original problem is probably a better idea. :)

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/


Re: [Catalyst] Re: Rails is a Ghetto

2008-01-05 Thread Jay K

Yeah.  I gotta say, while I agree with many of Zed's points about
rails and it's community... his method of delivery just makes me think
that however smart he might be, he's somewhat immature.

Before I found Catalyst a couple years back, I was looking for a new
system to work with.  Rails was at the top of the heap and generating
much buzz at the time, so I attempted it for a while, and I came to
many of the same conclusions he did.  After a couple of months I
abandoned it and went looking for a more mature / workable system and
a less fanboy / more mature community.  I found that in Catalyst.

It is a shame that it took him so long to reach the same conclusions.
I'm sad to see that he went through some tough times because of it,
but the level of venom just makes him look immature.  Rails was a bad
choice, yes, for many of the reasons he describes, yes.  But take some
responsibility for your decisions and make some better choices.

I'm glad that Catalyst has the community it has, and I don't welcome
the thought of Rails deserters joining Catalyst ranks with Fanboy
enthusiasm and a penchant for loosing venom towards those they can't
convince of their rightness.

:-/

Jay


On Jan 5, 2008, at 12:17 PM, Daniel McBrearty wrote:


wow!

that's some rant. couldn't read it all the way, but half was
enough ...

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


---
May we not return to those scoundrels of old, the illustrious
founders of superstition and fanaticism, who first took the knife from
the altar to make victims of those who refused to be their disciples.
- Voltaire



___
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] CPAN install without test? [ot]

2008-01-05 Thread Oleg Pronin
notest install Module

2008/1/6, Martin Ellison [EMAIL PROTECTED]:

 Does anyone know how to get CPAN to install a module without doing the
 test steps at all? Force install still does the test steps; I just want to
 go to the actual make install.

 Slightly off topic, but if anyone knows how to install modules, it must be
 Catalyst developers...   (the module in question is DBIx::Class; for some
 reason it is failing the populate test).

 --
 Regards,
 Martin
 ([EMAIL PROTECTED])
 IT: http://methodsupport.com Personal: http://thereisnoend.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/


[Catalyst] Re: utf8 / pg double encoding problem

2008-01-05 Thread Aristotle Pagaltzis
* Daniel McBrearty [EMAIL PROTECTED] [2008-01-06 00:00]:
 [debug] abçöeü
 [debug] $VAR1 = ab\x{c3}\x{a7}\x{c3}\x{b6}e\x{c3}\x{bc};
 [debug] it's UTF8!

Err, why doesn’t Dumper say ab\x{e7}\x{f6}e\x{fc}? Strange that
the first line looks correct, though.

Regards,
-- 
Aristotle Pagaltzis // http://plasmasturm.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/


[Catalyst] Going through tutorial, part 2 and getting error

2008-01-05 Thread Andrew
A newbie getting back into perl and decided to start using it w/ Catalyst.  

I'm going through the tutorial, part 2 and modifying it by changing the Models, 
and slightly different presentation, but the structure of the data is the same 
(e.g. instead of a Book object I'm using a Customer object, but it's the same 
in that a Book can have many authors, a Customer can have many credit cards). 
So I'm making the example more applicable to what I'd to use it for and 
basically renaming stuff.

When I run script/myApp_server.pl I get the following error:

Couldn't instantiate component register::Model::registerModel, Cannot load 
schema class 'registerDB': DBIx::Class::Schema::throw_exception(): Can't locate 
MyAppDB/Customer.pm in @INC (@INC contains: 
/mnt/hgfs/mac/Desktop/share/catalyst/webpage/apps/register/script/../lib 
/home/owner/local/lib/perl5 /home/owner/local/share/perl/5.8.8 
/home/owner/local/lib/perl/5.8.8 /home/owner/local/lib /etc/perl 
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl 
.) at (eval 110) line 3.
Compilation failed in require at 
/usr/local/share/perl/5.8.8/Catalyst/Model/DBIC/Schema.pm line 271.
 at script/register_server.pl line 53 at script/register_server.pl line 53
Compilation failed in require at script/register_server.pl line 53.


Could I be running the helper scripts w/ the wrong arguments?  I know I have 
all the dependencies installed since I got the tutorial code from SVN, deployed 
in the same environment and it ran as expected.  I tried redoing it to see if I 
made any syntax mistakes and still same error message.  Any suggestions?  


   
-
Never miss a thing.   Make Yahoo your homepage.___
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/