published on in cpan dependents facebook html::highlighter like perl plack

Using Plack to Like a Module on Facebook

We've made a couple of fun changes to cpan-mangler. First off, you can now "like" modules on Facebook:

mangler-facebook.png{.mt-image-center width=“600” height=“141” style=“text-align: center; display: block; margin: 0 auto 20px;”}{onclick=“window.open(‘http://blogs.perl.org/users/olaf_alders/assets_c/2010/11/mangler-facebook-342.html','popup','width=989,height=233,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false”}

Now, up and downvoting of modules would be a lot more useful, but this can be fun (and confusing for your friends):

mangler-facebook-like.png{.mt-image-center width=“600” height=“109” style=“text-align: center; display: block; margin: 0 auto 20px;”}{onclick=“window.open(‘http://blogs.perl.org/users/olaf_alders/assets_c/2010/11/mangler-facebook-like-345.html','popup','width=566,height=103,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false”}

Secondly, Lee Aylward added support for HTML::Highlighter:

mangler-highlighter.png{.mt-image-center width=“600” height=“251” style=“text-align: center; display: block; margin: 0 auto 20px;”}{onclick=“window.open(‘http://blogs.perl.org/users/olaf_alders/assets_c/2010/11/mangler-highlighter-348.html','popup','width=605,height=254,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false”}

Thirdly, we've added a tweaked version of Jesse Thompson's CPAN Dependents Greasemonkey script.

mangler-search.png{.mt-image-center width=“600” height=“424” style=“text-align: center; display: block; margin: 0 auto 20px;”}{onclick=“window.open(‘http://blogs.perl.org/users/olaf_alders/assets_c/2010/11/mangler-search-351.html','popup','width=977,height=692,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false”}

If you've already got cpan-mangler installed, a "git pull" should get you going (you'll likely need to install some additional modules). If you haven't, you can clone the repo and get yourself started in just a couple of minutes. Have fun with it!

Comments

Author: john napiorkowski

Date: 11/03/2010 12:05:42 AM

Very cool, some of this stuff should probably be built in to the core cpan search stuff, but its great to see those features added in this creative way.

Good for Perl advocacy as well!

Thanks! John


Author: Olaf Alders

Date: 11/03/2010 06:14:31 PM

Thanks, John! It really would be nice to see some changes in the core CPAN search. This was really just a fun way to mess with Plack, but I actually do use it as my default search tool for CPAN now.

As far as search goes, Toronto.pm is in the very early stages of putting an open CPAN search API together.

https://github.com/CPAN-API/cpan-api/wiki

We just started this past weekend (no code in the repo yet), but we should have a useful proof of concept online shortly.


Author: http://oid.fox.geek.nz/kent.fredric

Date: 11/19/2010 03:16:35 AM

Would love it if somebody eventually put up this hacked-cpan-interface up on the WWW so we can all use it without needing to host our own =)