/home/rafl Comment Feedhttp://perldition.org/This is Florian Ragwitz' blogAngerwhale2011-11-03T09:42:56ZRe:Anonymous Cowardurn:guid:d1c6c673-7b25-45cb-b110-79a5ab96c3922011-08-28T06:59:39Z

freelance writer

Re:Anonymous Cowardurn:guid:d1c6c673-7b25-45cb-b110-79a5ab96c3922011-08-28T06:59:39Z

freelance writer

Re:Anonymous Cowardurn:guid:d1c6c673-7b25-45cb-b110-79a5ab96c3922011-08-28T06:59:39Z

freelance writer

Re:Anonymous Cowardurn:guid:d1c6c673-7b25-45cb-b110-79a5ab96c3922011-08-28T06:59:39Z

freelance writer

Re: Parameterized Roles with MooseX::DeclareAnonymous Cowardurn:guid:266fc7cb-43c9-413e-bdb4-59642603cfa12011-06-17T13:46:20Z
Just one clarification - in the examples above: return $p->prefix .":". $self->$orig($string); is later in the MooseX; ::Declare version transformed into: return $self->$orig("$prefix: $string"); does that mean that the MooseX::Declare peeks into the parameter and parses it to remove $prefix: and them attach it to the output of $self->$orig($string); ?
Re: Declaring Catalyst ActionsAnonymous Cowardurn:guid:e373b0d1-0a44-4114-9162-afd3ed6c6e6f2011-04-12T09:44:57Z
I agree with the author of the post that Catalyst cms is very effective. In fact, if I consider this whole situation with my current cms in general, it is very promising. I got an idea that Catalyst will help me to be tagteted at success.
Re: Re: Re: Implementing Typed Lexical VariablesAnonymous Cowardurn:guid:6e9a36be-2193-4276-b308-e4fc8b85fc662009-05-03T23:11:16Z

Thanks, Florian. - Dotan

Re: Declaring Catalyst ActionsAnonymous Cowardurn:guid:6d89c6bb-f5e9-44cc-ac63-242521ba2bc22009-05-03T12:10:18Z

Great work so far, to catch up any late readers, there's an ongoing conversation about this on IRC and I've blogged as well at:

http://jjnapiorkowski.vox.com/library/post/rethinking-catalyst-actions-and-controllers.html

http://jjnapiorkowski.vox.com/library/post/catalyst-actions-part-2-details-and-clarification.html

Athough I think at this point some of the stuff I wrote there my minds been changed on :) However people with useful dieas and willing to hack code welcome to join the discussion.

Re: Running tests that require an X serverAnonymous Cowardurn:guid:78ab4f83-a5bb-4b3c-8284-642fe8a230f42009-05-03T09:11:16Z

I encountered the same problem (and the same solution) a few years ago.

I created Test::NeedsDisplay which goes some way towards automating the spawning of xvfb-run when the host has no DISPLAY.

Re: Re: Implementing Typed Lexical VariablesFlorian Ragwitzrafl@fsfe.orgurn:guid:2d800d8a-24e9-4dad-bf49-b2847bc3dad62009-05-02T23:46:12Z

That's what the empty prototype in the anonymous sub that get's installed in the blog posts as well as MooseX::Lexical::Types on CPAN is for:

$meta->add_package_symbol('&'.$type_name => sub () { $decorator });

It allows you to tell perl that your function doesn't take any arguments and is constant. With that, it can be inlined, which means it will be called during compile time and the result will be put in the place where the function call was:

$ perl -le'{ package bob; } sub foo () { q{bob} }; my foo $bax = q{bax}; print $bax;'
bax

Note that the package, which name is returned by foo, still needs to exist.

Re: Implementing Typed Lexical VariablesAnonymous Cowardurn:guid:a05d8b69-4fcd-4333-bc29-f62d30466e072009-05-02T18:41:24Z

This is dazzling, but what's an inlineable function and how do I get one? I can avoid the 'No such class' error by declaring a package, but not by declaring a sub.

perl -le 'my foo $bax = q{bax}; print $bax;'
No such class foo at -e line 1, near "my foo"
Execution of -e aborted due to compilation errors.



perl -le 'package foo; package main; my foo $bax = q{bax}; print $bax;'
bax

  perl -le 'sub foo { q{bob} };  my foo $bax = q{bax}; print $bax;'
No such class foo at -e line 1, near ";  my foo"


Re: Re: Running tests that require an X serverFlorian Ragwitzrafl@fsfe.orgurn:guid:0c5f1789-824b-40d9-9c9f-09085c424d042009-05-01T21:18:10Z

The login currently uses Crypg::OpenPGP, which is rather broken. Porting to Crypt::GpgME has been discussed, but it's probably not going to happen soon. I'd love to see Angerwhale support OpenID, but I'd rather just be blogging and have anonymous comments instead of wasting a lot of time on this. Sorry. :-/

Re: Running tests that require an X serverAnonymous Cowardurn:guid:204a3c80-67f2-4d38-88d6-4749182c4f552009-05-01T15:55:27Z

COMMENT

This is awesome.

LOGIN FAIL

I tried to log in for a while, but angerwhale claims I'm not 0x9a0cda99... and I most certainly am. That login either needs better directions or smarter behaviors -- otherwise, openid is probably a better option.

Re: Running tests that require an X serverAnonymous Cowardurn:guid:fc993814-9a8b-4e9b-adac-f497b431f2412009-04-30T18:11:57Z

That's a great tip. I've added a link from the CPAN Testers wiki at Tips and Tricks

-- dagolden