Posts Tagged ‘Perl’

Thursday 3. June, 2010

Longing for a more Mooseish DBIx::Class? Eventually there will be MooseX::DBIC, but if you need something while you’re waiting, you could check out MooseX::DBIC::AddColumn which lets you do Moose-like column definitions in your Result classes.

Wednesday 2. June, 2010

I’m mentoring a Google Summer of Code project to improve the Mojolicious test suite this year, and my student has just set up a blog to journal his progress. Check it out, you might even learn something.

Tuesday 1. June, 2010

12:27 <ribasushi> a call to all git-heads

12:28 <ribasushi> recently haarg did a seemingly perfect conversion of dbic from svn to git (a non-trivial feat)

12:28 <ribasushi> I am calling for people who actually know git to randomly poke at the new history and notufy me of whatever problems they see

12:28 <ribasushi> http://github.com/haarg/DBIx-Class

12:29 <ribasushi> (also you can ascertain the quality of the conversion, and potentially draft haarg to do a catalyst conversion as well – it took him a couple of freaking hours to do dbic)

12:32 <marcus> awesome

12:32 <marcus> haarg++

12:33 <marcus> it looks freaking good

12:33 <ribasushi> marcus: please spread the word to get more eyeballs on this, if nothing pops up in the next day and a half we’ll be  switching dbic over

Consider this me having spread the word to you ;-)

Sunday 28. March, 2010

Thinking about submitting a talk for NPW 2010 in Reykjavik? The deadline for the Call for Paper is tomorrow, 29th of march, so you’d better hurry up and get that submission in there. I’ve submitted a talk, and am really looking forward to visit iceland. I’ve never been, but from the photos I’ve seen it seems like a beautyful place.

Yet another Perl MVC micro-framework with a name that will be confused with my wiki software. From the Author’s description:

(PoC)yet another sinatra-ish framework built on CPAN module.

Rather than ’shaggadelic’ or ‘dance’, this one starts the app with ‘zigorou’. I can’t see it catching on.

Sunday 7. March, 2010

I recently held a introduction to the Mojolicious web framework for Oslo.pm. Here are the slides:

Sunday 21. February, 2010

Like most serious Perl people, CPAN is the main reason I still use Perl after all this time. This huge, wonderful library of Perl code usually helps me avoid reinventing any wheels. On the other hand, the standard CPAN client is one of my most regular hate objects when coding Perl.

It’s not that it lacks any features I need, rather the opposite, the damn thing has a million options, and no good defaults. CPANPLUS is only adding to this mess with even more options. However, now there’s a better solution. 

Check out miyagawa’s new CPAN client cpanminus. And when I say check out, I mean it literally. Get it from github so you won’t have to bother configuring the default cpan shell again:

 $ git clone git://github.com/miyagawa/cpanminus.git

You might want to use one of the tagged releases rather than master tho. Install it in the regular way (perl Makefile.PL && make install) and you’re good to go. Using it is a breeze:

Command-Central:cpanminus marcus$ cpanm Mojo

Fetching http://search.cpan.org/CPAN/authors/id/K/KR/KRAIH/Mojolicious-0.999921.tar.gz

Building and testing Mojolicious-0.999921 for Mojo…

Mojo installed successfully.

cpanminus gives you all the information you want and nothing more, and it asks no questions. If you want to see the full build output, you can check out ~/.cpanm/build.log

Saturday 28. November, 2009

In addition to recent fatherhood and doing my own startup, I am now the leader of the Oslo Perl Mongers. Look forward to tech talks from Oslo.pm in the months to come. :)

Friday 6. November, 2009

If you want to write tests for your JavaScript code from Perl, Claes’ module Test::JavaScript::More comes in handy. This module works by evaling everything from the use line as JavaScript. Of course, now you’re mixing two languages in one file, which is not going to make any of your syntax validators happy. However, loading it like this will please both perl and jslint:

m| /* |; # Comment out JavaScript
use Test::JavaScript::More;
__END__ = '';  // It's is all JS from here. */
ok(1,'Success!');

One final note. I had some problems building the cpan module of JavaScript on OSX with Spidermonkey from ports. If you have the same problem, get the latest and greatest version from GitHub, which fixes this issue.

Thursday 8. October, 2009

A really simple tutorial for creating these 2d-barcodes that you see android use all the time.