Safe Travels
Though many are sticking around to take in all that Madison has to offer, many others are headed back home from YAPC::NA 2012. Safe travels to you all.
[From the YAPC::NA Blog.]
Though many are sticking around to take in all that Madison has to offer, many others are headed back home from YAPC::NA 2012. Safe travels to you all.
[From the YAPC::NA Blog.]
So I'm in Madison, Wisconsin for YAPC::NA 2012. Yesterday, I was supposed to meet up at one of the hackathons. I went to the Pyle building and searched the rooms and even accidentally went into brian's workshop (sorry brian!).
When I got to the hackathon room, it was pretty quiet but active. I had met Robert Blackwell two days prior at a dinner and had a lovely conversation and fun time with him. Robert had brought a ton of hardware (11 hours drive!!) and set up an entire room just so we could hack on hardware. Wait. Hardware?
At this point, I should probably mention I'm not a hardware guy. I can hook up the computer, change memory sticks, and I even replaced a CPU once - but that's pretty much it. Hardware is totally out of my league. I really don't understand it, nor was I ever really interested in it.
So I'm there and I just wanna sit and work on pointless boring stuff when Robert says "hey, how about trying Arduino?"
We finally fixed a bug in our voting app, so we were able to vote the talk proposals. We have accepted lots of talks (thanks for the great proposals). Even those talks that have not been accepted yet are not rejected at all. They will be reconsidered in the next round of voting...
So today and in the next few days, you'll see a lot of blog posts introducing the accepted talks.
I am very pleased to announce Marpa::R2 -- "Release 2" of the Marpa parser. For those unfamiliar, the Marpa algorithm is something new in parsing -- it parses anything you can write in BNF and, if your grammar is in one of the classes currently in practical use, it parses it in linear time. Marpa::R2's parse engine is written in optimized C, so that Marpa::R2's speed is competitive with parsers of far less power.
An important feature of the Marpa algorithm is "situational awareness". Marpa knows at every point in the parse exactly how far it has progressed in each rule, and can share this information with the application. The advantages of this go beyond error detection -- Marpa's situational awareness is accurate, graceful and fast enough to be used as a parsing technique in its own right -- Ruby Slippers parsing.
YAPC::NA’s talks for Day 3 begin at 9am, with the plenary starting at 8:40am. Yesterday was a big success, but now it’s sort of sad that we’re already to day 3. Oh well, there’s always next year! Here’s to hoping that we go out with a bang in day 3.
Don’t forget that you can watch live on the web for free:
[From the YAPC::NA Blog.]
Here's a small script which I whipped up just now. I thought of trying out MetaCPAN::API, but after about 5 minutes of trying to find a way to list an author's distributions (and failed), I resorted to a quick hack using Mojo::DOM.
Here's a sample output:
HTML-Tree has long been a source of memory leaks for programmers who weren’t very careful with it. Because it uses circular references, Perl’s reference-counting garbage collector can’t clean it up if you forget to call $tree->delete when you’re done.
Perl added weak references (a.k.a. “weakrefs”) to resolve this problem, but HTML-Tree has never taken advantage of them. Until now.
HTML-Tree 5.00 (just released to CPAN) uses weak references by default. This means that when a tree goes out of scope, it gets deleted whether you called $tree->delete or not. This should eliminate memory leaks caused by HTML-Tree.
Unfortunately, it can also break code that was working. Even though that code probably leaked memory, that’s not a big problem with a short-running script. The one real-world example I’ve found so far is pQuery’s dom.t. In pQuery 0.08, it does:
Inspired by http://www.slideshare.net/c9s/perlhacksonvim I wrote (well ... copied for the larger part) a script to open the Module currently under the cursor in vim.
Typing \fm will lookup the first Module found in available Perl library paths (plus current working directoy . '/lib')
I did search for some time and read a bit about ctags and pltags but ended up confused. add this to your vimrc
""""""""""""""""""""""""""""""""""""
" find module in perl INC and edit "
""""""""""""""""""""""""""""""""""""
function! GetCursorModuleName()
let cw = substitute( expand(""), '.\{-}\(\(\w\+\)\(::\w\+\)*\).*$', '\1', '' )
return cw
endfunction
function! TranslateModuleName(n)
return substitute( a:n, '::', '/', 'g' ) . '.pm'
endfunction
function! GetPerlLibPaths()
let out = system('perl -e ''print join "\n", @INC''')
let paths = split( out, "\n" )
return paths
endfunction
function! FindModuleFileInPaths()
let paths = [ 'lib' ] + GetPerlLibPaths()
let fname = TranslateModuleName( GetCursorModuleName() )
for p in paths
let f = p . '/' . fname
if filereadable(f)
exec "edit " . f
return 1
endif
endfor
echo "File not found: " . fname
endfunction
nmap fm :call FindModuleFileInPaths()
Day 2 of YAPC::NA 2012 talks begin today at 9am sharp. The banquet was a huge success last night, and yesterday’s talks had the audience buzzing. Can’t wait to see what today brings. Hopefully you’re not all hung over from The Linode Beer Garden and the Perl Foundation party last night.
Don’t forget that you can watch live on the web for free:
[From the YAPC::NA Blog.]
Please welcome Webfusion as a silver sponsor of this years' YAPC::Europe.

Established in 1997, Webfusion is one of the UK's leading web hosting groups. We offer cost-effective, feature-rich hosting packages for everyone from businesses, web developers, designers and hobbyists. With 24/7 technical support, robust Firewall server protection and a state-of-the-art UK based data centre with Webfusion your website is always in safe hands.
www.webfusion.co.uk
It is with great pleasure that we officially announce a new sponsor for the CPAN Testers Project. Webfusion have provided us with Managed Hosting, for us to use with some of the supporting websites. As such, we will be using it for the Analytics and Matrix websites, as well as a secondary failover site for the Static Reports site.
Webfusion are the latest corporate sponsor to support CPAN Testers. If your company would like to support CPAN Testers, please get in touch. You can also donate to the project via the CPAN Testers Fund, managed by the Enlightened Perl Organisation.
For further details, please see the CPAN Testers Blog.
I cannot decide if I was too harsh. I try not to let the usual drone of noobs on SO to get to me. My problem was that the OP is being both ignorant AND demanding. Read the post and let me know, I'm back and forth between being enraged and contrite.
Kip Hampton will give a talk at YAPC::NA 2012 described as:
Developing for the Web shouldn’t be hard. Yet, many smart developers make it more difficult than it needs to be by choosing tools and frameworks that do not fully take advantage of all that HTTP has to offer. This talk demonstrates how projects at all levels— from the simplest brochureware site to the most advanced Hypermedia APIs—can be made simpler by getting back to the basics of HTTP. We introduce Tamarou’s internal application development and publishing framework, Magpie (scheduled for public release to coincide with YAPC::NA) and step through a series of real-world examples to show how its resource-oriented approach to development keeps simple things simple and makes hard things easier.
Topics include:
* Why MVC is the wrong way to think about Web development.
* Why most frameworks that claim to be RESTful aren’t (and how that makes life harder)
* An brief introduction to Resource-oriented development.
* A series of production-tested Magpie recipes covering the gamut of Web-dev from simple templated sites through advanced Hypermedia applications.
[From the YAPC::NA Blog.]
Thanks to tinita! She started a Wiki page where you can find a list of restaurants that offer vegan / vegetarian food:
May proved quite an interesting month. Firstly, I got several confused emails relating to the Status page on The CPAN Testers Reports site. Secondly, we ran out of slots in the namespace for Amazon. And then thirdly a very involved discussion on versions on the mailing list.
$ whois bonchon.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
...
=-=-=-=
Visit AboutUs.org for more information about bonchon.com
AboutUs: bonchon.com
Domain name: bonchon.com
Registrant Contact:
BonChon
Jinduk Seh ()
Fax:
213 W 35th Street
HASH(0x1030ba64)
New York, New York 10001
US
Administrative Contact:
BonChon
Jinduk Seh (bonchon@bonchon.com)
+1.2122739797
Fax: +1.2122739774
213 W 35th Street
HASH(0x1030ba64)
New York, New York 10001
US
Technical Contact:
BonChon
Jinduk Seh (bonchon@bonchon.com)
+1.2122739797
Fax: +1.2122739774
213 W 35th Street
HASH(0x1030ba64)
New York, New York 10001
US
Status: Locked
Name Servers:
ns1.ipage.com
ns2.ipage.com
...
Matt Trout (mst) will give a talk at YAPC::NA 2012 described as:
A tale of systems introspection, service inference and parallel computing - how we used the Tak systems automation framework to help track a customer’s infrastructure.
[From the YAPC::NA Blog.]
We welcome urbia.com AG as a Silver Sponsor of this years' YAPC::Europe.

urbia.com AG (a company of Gruner + Jahr AG & Co KG) operates the web community www.urbia.de targeting young families with topics like pregnancy, birth, baby and parenting at its core. www.urbia.de attracts 6,5 million visits and 2,3 million unique users per month which makes us the market leader in the parenting segment in Germany.
Perl has been proudly powering our platform since 1998. In the meantime we migrated our code base to Modern Perl making use of the Catalyst MVC framework, DBIx::Class, Template::Toolkit, Moose and tons of other wonderful CPAN modules without which we would have never been so successful. To thank the excellent community and show our continuing support, we decided to sponsor this year's YAPC::EU in Frankfurt. If you're interested in joining our team in Cologne, go to http://www.urbia.de/allgemein/jobs to check out our open positions and/or contact us at jobs@urbia.com.
I'm pleased to announce the release of mod_perl 2.0.7, available at
the following apache.org URL, along with a CPAN mirror near you
shortly, as well as http://perl.apache.org.
This release of mod_perl contains an update for perl 5.16, see the
change log below. Thanks to the code contributor and mod_perl dev team
members who made this quick release possible!
http://apache.org/dist/perl/mod_perl-2.0.7.tar.gz
http://apache.org/dist/perl/mod_perl-2.0.7.tar.gz.asc (pgp sig)
MD5 (mod_perl-2.0.7.tar.gz) = e8b3d7b6d67505a8e3050cb9042b944b
=item 2.0.7 June 5, 2012
Fix breakage caused by removal of PL_uid et al from perl 5.16.0. Patch from
rt.cpan.org #77129. [Zefram]
I was tweaking my procmailrc today. My procmailrc recognizes a number of common pattern-based spam items and logs those into logs that I rotate on a regular basis. Anything else gets fed into a Mail::Audit-based "Sortmail" script. As I was testing a minor tweak, I noticed that the logfile for Sortmail (driven by the Mail::Audit object) wasn't getting any messages.
Long story short... I had opened the Mail::Audit logfile as "-", because I wanted it to use stdout, which in my procmailrc I had directed to the proper log.
But RJBS recently changed Mail::Audit from using the two-arg open for this name to the three-arg open for this name, and this was only apparent once I had used the CPAN diff tools (only in the source, and not documented, sadly).
Yes, I had created a 30MB logfile named "-" in my home directory. After carefully removing that file, and using an explicit filename for logfile, all was good.
But this is a heads-up for anyone else who might have presumed that "-" means stdout in Mail::Audit... you might be logging somewhere odd right now. :)
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.