Bash and Its Startup File Execution Algorithm

Hi Folks

Yesterday I had an unpleasant experience trying to install Perl's BerkeleyDB (article to follow), during which I spent a long time fiddling with my ~/.bashrc and ~/.profile files, trying to set LD_LIBRARY_PATH to make that module accessible. Hint: I was on the wrong track.

In the end I wrote an article to clarify what bash runs, in what order. This is basically a note-to-self, but I hope others will benefit too.

Bash and Its Startup File Execution Algorithm

cPanel is Hiring!

cPanel has an opening for an Internal Systems Perl Developer. They describe the job as:

Are you?

cPanel is growing its Internal Systems Development department and looking for a software craftsman with advanced knowledge of Perl and working knowledge of Linux and FreeBSD operating systems.  You’ll be tasked with developing, implementing, and maintaining cPanel’s internal and external software products.  Sound like this could be you?  Read on. 

Perl5 in the browser update

Perlito5 is an ongoing implementation of perl5, with a javascript backend. The compiler is written in perl5. It compiles itself to javascript, so it can run in a browser.

The test suite can be run with node.js. It now passes 288 tests. About a hundred of these tests are from the official perl5 test suite.

$ prove -r -e 'node perlito5.js -Bjs' t
t/base/cond.t ...................................... ok
t/base/if.t ........................................ ok
t/base/lex.t ....................................... Failed 37/57 subtests
t/base/num.t ....................................... ok
t/base/pat.t ....................................... ok
t/base/rs.t ........................................ No subtests run
t/base/term.t ...................................... No subtests run
...

Posting Pertama

Boleh gak sih ngeblog di blogs.perl.org tapi gak ngebahas perl?

Perl documentation word clouds

This is totally useless, but I've written a script to create word clouds from perl's core pod files. As an example, here's the word cloud from perlunifaq : perlunifaq.png

Perl, Medical Research and Maple Syrups

Kartik Thakore will give a talk at YAPC::NA 2012 described as:

A problem, a dream and crazy canucks. How we hope to use Perl to facilitate and extend medical research in Canada.

[From the YAPC::NA Blog.]

Hacking on Dancer

If you're not familiar with Dancer, it's a Perl framework written by Alexis Sukrieh and inspired by Ruby's [Sinatra](http://en.wikipedia.org/wiki/Sinatra_(software)) framework. Though some call it a "micro-framework", according to Wikipedia, Sinatra is used by Apple, BBC, the British Government, LinkedIn, Engine Yard, Heroku, GitHub, and Songbird. That impressive list shows that Sinatra, and thus Dancer, is far more powerful than you might think at first glance.

So far, while I love Catalyst, I've found that I'm hacking out a Web service much faster with Dancer than I would have with Catalyst and I used Catalyst quite a bit. I've submitted a couple of minor patches, but I'm very happy with my latest enhancement to Dancer.

Nordic Perl Workshop 2012 - CFP

Stockholm Perl Mongers and our fellow Nordic Perl Mongers arranges the annual Nordic Perl Workshop in Stockholm, Sweden in the beginning of the summer (late may / early june). This is the third time the workshop is arranged in Stockholm and the 10th time
in total.

Nordic Perl Workshop is a workshop for the community by the community and we want you to submit interesting and inspiring presentations in order to make the workshop successful. Talk lengths are the usual 20 and 40 minutes but we might consider
longer ones if motivated. Any subject is welcome as long as it's related to Perl somehow - from algorithms for social graphing and web-technologies to Perl5 core optimizations and language implementation targeting the Parrot VM. To submit a talk either do
it online on the workshop website[1] or to claes at surfar.nu. If submitting via email please prefix the subject with [NPW].

Please submit talks no later than Monday 30th of April. Accepted speakers will be notified Friday 4th of May.

Vim IDE

View image

Using multiple windows, multiple tabs, code folding, auto-complete, perl-support Vim script and taglist source code browser script.

Registers, markers, jumplists are not very expressive in a screenshots. Anyway I suggest Vim users to try the perl-support plugin. It may considerably speed up your development process.

It always amuses me when I see people talking about Vim or Emacs using words like primitive editor. I know that those people are usually the kind of people that have no idea what these editors can do without that much customization. Also regarding speed, they are usually no match for a Vim or Emacs experimented user.

(I used to be a Java programmer using Netbeans and Intellij IDEA not long ago :). In fact I still use Java occasionally.)

CHI: Universal caching for Perl

Jonathan Swartz will give a talk at YAPC::NA 2012 described as:

Caching is a critical piece of any performance-sensitive website or application. CHI provides a unified, implementation-independent caching API - a “DBI for caching”. It works with the gamut of popular cache backends and offers features well beyond the usual caching API, such as probabilistic expiration, background re-computation, and multi-level caches.

The author will describe how to wield CHI for more flexible and effective caching, and relate some lessons managing hundreds of distinct cache namespaces on a high-traffic web site.

[From the YAPC::NA Blog.]

Vim Screenshot

As requested in the Fight Night post, here is a screenshot of a Perl file loaded in Vim (in this case CGI::Simple).

Vim

Please help improve Pod::Perldoc 3.17

Pod::Perldoc is a "dual-life module" that ships with Perl core, but also sits outside of it. Over the weekend, I released Pod::Perldoc 3.17 which incorporates several bug fixes and adds several new features.

In the latest release we've:

  • Added better support for UTF8 in the pod -> *roff -> *roff-formatter -> pager pipeline - unfortunately a lot of UTF8 support for pod remains at the mercy of *roff-formatters. People running perl on Mac OS X, for example, will get old crufty versions of groff that do not process UTF8 input, even though Pod::Man supports UTF8 output.

  • Improved support for $PAGER and $PERLDOCPAGER definitions that expect pipelines or input redirection

  • Improved behavior of -l -q

  • Added two new formatter classes (ToANSI and ToTerm) which bypass many of the UTF8 problems with *roff-formatters.

  • Made it easier for downstream utilities to define their own command line arguments

  • Closed over 20 bug tickets on the RT queue. Some of these bug reports were years old unfortunately.

MooseX::App::Cmd

I'm finally taking advantage of the co-maintainer bit that Yuval Kogman gave me last year and putting out new releases of MooseX::App::Cmd.

Thank You Sponsors!

We’d like to thank our sponsors for stepping up to support us. We really couldn’t do this without their support.

You too could sponsor YAPC.

[From the YAPC::NA Blog.]

How to do confrence proceedings in (Xe)Latex

So, I had actually been wondering this for quite a while as I had thought that I would at some point be asked to typeset a journal or conference proceedings. I searched on Google but I could never get anything worthwhile to come up. However, I decided the time for research was over and the time to just attempt it was on me; this is also because I now have a publisher for the colloquium proceedings that I am running in the summer.

So, first of all some code

Perl and Cucumber

On one hand, I love getting bug reports for my Cucumber on Perl distro - it means people are using it, which is nice. On the other hand, I wish I hadn't but the bugs in in the first place...

Should I buy that Perl book?

"Mike" asks on blogs.perl.org "Is the book worth buying?", specifically asking about The Definitive Guide to Catalyst.

I wrote this over a year ago, but I never posted it. I found it again when I was writing Can you learn Perl from an old Learning Perl?. I still like it, so I've give it to you.

At the heart of this question is (probably) the definition of economics: "How do I spend my limited resources on any of my alternatives to reach my goal?" There are, at least, three components there:

  • Your resources (money, time)
  • The alternatives
  • Your goal

The first two are easy to quantify. You probably know how much money, time, and effort you want to spend. You can easily get a list of books available for acquisition (donation, purchase, library loan). The third one is a bit more complex, and the hardest one for a book's author to satisfy. It's also the one that makes Mike's question almost impossible to answer, so start with that.

What are the goals?

Sinan Unur is sponsoring YAPC::NA 2012! Sinan Unur is an...



Sinan Unur is sponsoring YAPC::NA 2012!

Sinan Unur is an economist and developer who appreciates the beauty, power, and convenience of Perl, especially when he is not allowed to use it. He blogs about Perl and other programming topics on ν42 and you can usually find him answering questions on Stackoverflow.

[From the YAPC::NA Blog.]

A Little Light(?) Reading

Courtesy of the Hacker News Twitter feed, I read a really interesting piece from slate.

Where's _why? by Annie Lowrey

Ostensibly, the article is about the former Ruby developer, enthusiast, mascot and resident oddball named "_why". He dramatically disappeared from the open-source world dramatically one day, taking all of his software and writings with him. But that's not the only theme of the article.

The article's driving thread is the author learning some basic programming, and learning in part from _why. The more interesting thing is the outsider-become-closer-to-insider perspective on the hacker culture. This include the response of the Ruby community to _why leaving and the effort to find, save, and adopt his works.

Read it, I found it thought provoking and a great read.

YAPC Proceedings

We've already mentioned in the "Call for Speakers", that we'd like to print proceedings for this years' YAPC::Europe. We think that proceedings are a good way to call back the talks you have heard and to get more information about topics you were unable to attend.

It would be great to have a "book" with (nearly) all talks of the schedule...

So we ask the speakers to send their talks as papers, too. We use the tools that were created for the German Perl Workshop many years ago. As this is a proven toolchain, we can provide packages that the speakers can use to write the papers. There is a package for each of these three formats: Pod, PerlPoint, LaTeX. You can find the "HowTo" on our website.

Please send your papers to proceedings@yapc2012.de.

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.