Uncategorized

Perlbuzz news roundup for 2013-10-21

October 21, 2013 News roundup, Uncategorized No comments

These links are collected from the
Perlbuzz Twitter feed.
If you have suggestions for news bits, please mail me at
andy@perlbuzz.com.

Perlbuzz news roundup for 2013-10-14

October 14, 2013 News roundup, Uncategorized No comments

These links are collected from the
Perlbuzz Twitter feed.
If you have suggestions for news bits, please mail me at
andy@perlbuzz.com.

Perlbuzz news roundup for 2013-08-26

August 26, 2013 News roundup, Uncategorized No comments

These links are collected from the
Perlbuzz Twitter feed.
If you have suggestions for news bits, please mail me at
andy@perlbuzz.com.

Perlbuzz news roundup for 2013-08-12

August 12, 2013 News roundup, Uncategorized No comments

These links are collected from the
Perlbuzz Twitter feed.
If you have suggestions for news bits, please mail me at
andy@perlbuzz.com.

Perlbuzz news roundup for 2013-06-03

June 3, 2013 News roundup, Uncategorized No comments

These links are collected from the
Perlbuzz Twitter feed.
If you have suggestions for news bits, please mail me at
andy@perlbuzz.com.

Debunking the “five weekends every 823 years” myth with Perl

March 20, 2013 Uncategorized 1 comment

Have you seen this bit of bunk posted recently? It goes like this:

This year, July has five Fridays, five Saturdays and five Sundays. This happens once every 823 years. So: copy to your status and money will arrive within 4 days… based on Chinese Feng Shui.

Of course it’s crap, and of course Snopes.com does a fine job of debunking it. But what if you want more evidence? Perl to the rescue! Here’s a little program that finds and counts all the months with five full Fri-Sun weekends in the next 823 years.

#!/usr/bin/perl
# Debunking the five weekends myth
# http://www.snopes.com/inboxer/trivia/fivedays.asp
use strict;
use warnings;
use feature 'say';
use DateTime;
my $start = 2013;
my $end   = $start + 823 - 1;
say "Months with five full weekends between $start and $end";
my $nmonths = 0;
for my $year ( $start .. $end ) {
for my $month ( 1..12 ) {
my $eom = DateTime->last_day_of_month(
year => $year, month => $month );
if ( $eom->day == 31 && $eom->day_of_week == 7 ) {
say $eom->month_name, ' ', $year;
++$nmonths;
}
}
}
say "There will be $nmonths months with five full
weekends in the 823 years between $start and $end.";
$ ./five-weekends
Months with five full weekends between 2013 and 2835
March 2013
August 2014
May 2015
...
October 2832
July 2833
December 2834
There will be 823 months with five full weekends in the
823 years between 2013 and 2835.

perl101.org needs a new maintainer

March 13, 2013 Uncategorized No comments

A few years back, I started perl101.org as a website that I could point newbies at for simple explanations of how to do basic tasks. I found the same questions getting asked over and over on StackOverflow, so I figured I’d aggregate the common answers together. It’s the same reason I put together bobby-tables.com to explain SQL injection and htmlparsing.com to explain how to parse HTML without regular expressions.

However, for the past couple of years I haven’t touched it, and I’d like it if someone who would actually maintain it, like I haven’t, would take it over, domain name, hosting and all. If this sounds like something you’d be interested in, drop me an email.

Everything you need to know about the Perl 5 / Perl 7 debate

February 8, 2013 Uncategorized No comments

There has been much bandwidth burned up the past week talking about if Perl 5 should get renamed to Perl 7. Here are the only two things that matter:

  • Perl 5 is not going to be renumbered to Perl 7, if for no other reason than because Perl 6 exists, and doing so would effectively say “Perl 6 does not matter.”
  • Perl 6 will not be renamed to anything else, no matter how much you might want it to be. Larry has spoken.
  • The End.

You want to help Perl’s perception? Instead of arguing with trolls, including that InfoWorld guy, or debating Perl’s problems based on anecdotal evidence, how about making something awesome using Perl? If there’s something awesome that you love about Perl, then tell people about the awesome thing. Nobody has ever said “Hey, Perl is great” because of something they read. They say it because of code that they use.

Where can someone find Perl modules to contribute to?

December 10, 2012 Uncategorized 2 comments

Bradley Andersen (his gmail username is bradley.d.andersen) wrote asking

i am looking to try and contribute to perl and foss in general. do you know of a list of perl modules that are currently marked as ‘maintainer died’ that i might hijack, or, some list of module maintainers who may be looking for help? i am interested also in learning python and doing roughly the same kind of thing in that domain.

Here are my suggestions, and I trust others will add suggestions in the comments:

  • First, pick a module that you actually use. The best module to work on is one that you already use. Check its bug queue, which will probably be at rt.cpan.org, but not necessarily.
  • Take a look at the ADOPTME user on CPAN. This is where orphaned packages go to live.
  • Check out 24pullrequests.com, a holiday-themed site of open source projects looking for help.
  • OpenHatch says it is “dedicated to matching prospective free software contributors with communities, tools, and education.”

Remember, not all contributions to projects need to be in the form of written code. There are plenty of ways to help out that work on the module tests and infrastructure, or don’t require any coding at all. For some ideas, see my article 14 Ways To Contribute to Open Source Without Being a Rock Star”.

Perlbuzz news roundup for 2012-11-26

November 26, 2012 Uncategorized No comments

These links are collected from the
Perlbuzz Twitter feed.
If you have suggestions for news bits, please mail me at
andy@perlbuzz.com.