このページは大阪弁化フィルタによって翻訳生成されたんですわ。

翻訳前ページへ


blogs.perl.org - blogging the onion
The Wayback Machine - http://web.archive.org/web/20120622144227/http://blogs.perl.org:80/

Find a misspelt module name

I often make typing mistakes. The other day I upgraded to Perl 5.14. I decided to not use the old libraries of Perl 5.10.1 and Perl 5.12.3 which ./Configure suggested, since sometimes these don't work properly. So I had to reinstall all Perl modules. It turned out that I needed quite a few. My bad typing caused several problems. For example, I typed "cpanm CGI::Compress:Gzip" instead of Compress::Gzip and "cpanm Lingua::Stopwords" instead of StopWords.

Announcing Math::Mathematica

After coming home from YAPC::NA I have a renewed vigor for coding. Because of that, I decided to brush up one of my modules that I haven’t released, document it and release it to CPAN.

Schwern and others talked about how to bring new people into Perl. For many this means making sure to include women and minorities in events and projects. For science however, I think part of the problem is the inertia of commonly used software. People don’t want to use Perl, because Mathematica makes math easy. True, but it makes programming hard IMO.

So here it is, another in my line of Perl-for-Science modules: Math::Mathematica hopes to make doing science easier in Perl. It basically starts a command-line instance of Mathematica in a PTY and controls the IO to and from it. This allows for easy writing of scripts those people that want the power of Mathematica’s math engine with the power of Perl’s language (something that Mathematica distinctly lacks).

Here is a simple example.

use Math::Mathematica;
my $math = Math::Mathematica->new;
my $result = $math->evaluate('Integrate[Sin[x],{x,0,Pi}]');

returns 2, as expected.

Of course I would prefer that you scientists/mathematicians look into my PerlGSL modules or PDL, however if you need to make a slower transition from Mathematica to Perl, this should help ease you in.

For completeness, the equivalent PerlGSL code would be

use PerlGSL qw/:integration/;
my $pi = 4*atan2(1,1);
my $result = int_1d( sub{ sin(shift) }, 0, $pi );

Bugfix for the Mobi-Format

Perlybook releases v0.11.

The reason for this is a quite annoying bug (or missing feature) which displayed content from POD-links (the L tag) as is. Luckily this just occurred for the Mobi-format.

To fix this, we released a new version ob EBook::MOBI (v0.46) and added some minor changes to perlybook.org to allow better supp…

Dancer is community-driven

cross-posted from dams blog

Dancer is community-driven

Long time I haven't blogged about Dancer.

Antelink is a french startup, specializing in Software Life Cycle Management and Open Source Component Detection. They provided us with cool Dancer sourcecode analyzis graphs.

Overall contribution by users

="http://damien.krotkine.com/images/dancer_analysis_…

Marpa & customizing the Ruby Slippers

The Marpa parser introduced Ruby Slippers parsing. But the Ruby Slippers were just part of a broader feature of Marpa -- its "situational awareness". With the latest release of Marpa::R2, applications now have efficient access to the broader awareness.

For those new to this blog /var/www/index.html

YAPC::NA 2012: Mojolicious, swag, and pizzazz

The Intro to Mojolicious talk at YAPC::NA 2012 was a success!

One person came up afterwards and told me it was one of the most cogent talks at the conference. Awesome! I was definitely shooting for cogent. Someone else even mentioned that it was their favorite talk of the event, and that is indeed high praise for which I am truly grateful.

I put a lot of work into the flow of the presentation, intending for it to come across as much like a mojocast as possible. In watching the…

My YAPC::NA 2012 Moose talk slides are up!

At YAPC::NA 2012 I gave a talk about Moose, and I've uploaded the slides.

The talk was fairly successful and people approached me later and said they enjoyed it and found it very useful. I'm happy to hear that. I hope they will help you too. :)

If you have any questions regarding the slides, please let me know. The video should follow at some point.

I was told color-blind people might have trouble with some red on green emphasis in the slides. Do not worry, slideshare shows the entire text under the slid…

My Bingo Results at YAPC::NA 2012

After seeing the Bingo card idea at an Atheist conference, I suggested it to JT Smith, who decided it was indeed a good idea. JT did the design, thought of the tasks and wrote down the rules and printed it. When people came to YAPC::NA 2012, they got a cool bingo card with their swag bag and had to mark things off.

I don't know how many did indeed do it, but I did. The idea is simple: by putting some things as a fun task, it motivates you into doing it. I know I'm per…

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.