jj's Journal http://use.perl.org/~jj/journal/ jj's use Perl Journal en-us use Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners. 2012-01-25T01:55:09+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 jj's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~jj/journal/ TPF News website redesign http://use.perl.org/~jj/journal/40500?from=rss <p> I've just uploaded a new design for <a href="http://news.perlfoundation.org/">http://news.perlfoundation.org</a>. Based on the <a href="http://perldoc.perl.org/">perldoc.perl.org</a> style, it implements Phil Smith's idea for the "Explore Perl" toolbar. I'll blog in more detail about this later, but essentially we've now got a single list of links that appear on multiple sites but are maintained in <a href="http://github.com/jonallen/perldoc.perl.org/blob/master/static/exploreperl.js">a single place</a>. </p><p> Many thanks to Ask, Squeaky, Phil Smith, and Karen for their help and ideas. </p><p> P.S. As with any redesign there may be the odd browser issue or bug, so if anything looks amiss please email me at <a href="mailto:jj@jonallen.info">jj@jonallen.info</a> and I'll look into it. </p> jj 2010-08-16T19:57:22+00:00 journal Building Web Mashups with Catalyst http://use.perl.org/~jj/journal/39671?from=rss <p> Last night I gave my talk <a href="http://perl.jonallen.info/talks/catalyst-web-mashups">Web Mashups with Catalyst</a> at the Birmingham Perl Mongers technical meeting. </p><p> We also had two guest speakers - Stuart Langridge talked about the future of Python web development, and Nick Harewood demonstrated Microsoft Silverlight and Expression Blend. </p><p> It was very interesting to hear about these different approaches to web development. Of particular interest was <a href="http://www.microsoft.com/expression/products/SketchFlow_OverView.aspx">SketchFlow</a> - seems like a great way to prototype and get feedback on the functional parts of a design without getting tied up over the visuals. </p> jj 2009-09-24T14:02:40+00:00 journal Easy thumbnail images from Catalyst http://use.perl.org/~jj/journal/39600?from=rss <p> A couple of days ago I released <a href="http://perl.jonallen.info/projects/catalyst-view-thumbnail">Catalyst::View::Thumbnail</a>, which provides an easy way to serve thumbnail images. It should work with any model that can put raw image data onto the stash (you don't need the MIME type, it's automatically detected), so a controller to produce thumbnails 100px high would look like this: </p><p> <code> sub thumbnail<nobr> <wbr></nobr>:Local<nobr> <wbr></nobr>:Args(1) {<br> &nbsp;&nbsp; my ($self, $c, $filename) = @_;<br> <br> &nbsp;&nbsp; $c-&gt;stash-&gt;{image} = $c-&gt;model('Images')-&gt;slurp($filename);<br> &nbsp;&nbsp; $c-&gt;stash-&gt;{y} &nbsp;&nbsp;&nbsp; = 100;<br> <br> &nbsp;&nbsp; $c-&gt;forward('View::Thumbnail');<br> }</code> </p><p> Have a read of the tutorial, <a href="http://perl.jonallen.info/writing/articles/creating-thumbnails-with-catalyst">Creating thumbnails with Catalyst</a>, and please let me know of any fearure requests or bug reports. </p><p> The source code is on GitHub at <a href="http://github.com/jonallen/Catalyst-View-Thumbnail/tree/master">http://github.com/jonallen/Catalyst-View-Thumbnail/tree/master</a>, and on CPAN at <a href="http://search.cpan.org/dist/Catalyst-View-Thumbnail">http://search.cpan.org/dist/Catalyst-View-Thumbnail</a>. </p><p> Cheers, </p><p> JJ </p> jj 2009-09-09T11:54:36+00:00 journal local::lib installation walkthrough http://use.perl.org/~jj/journal/39534?from=rss <p> I've put together a short guide to <a href="http://perl.jonallen.info/writing/articles/install-perl-modules-without-root">installing Perl modules without root access</a> using <a href="http://search.cpan.org/dist/local-lib">local::lib</a>. </p><p> If anyone has any corrections or suggestions for improvement, please <a href="mailto:jj@jonallen.info">let me know</a>! </p><p>Cheers,</p><p>JJ</p><p> <b>Update:</b> Yasuhiro Matsumoto has kindly posted a <a href="http://mattn.kaoriya.net/software/lang/perl/20090827150202.htm">Japanese translation</a> of the guide. Thanks! </p> jj 2009-08-26T13:59:14+00:00 journal perldoc.perl.org updated for Perl 5 version 10.1 http://use.perl.org/~jj/journal/39519?from=rss <p> Hot on the heels of the <a href="http://search.cpan.org/~dapm/perl-5.10.1/">Perl 5 version 10.1 release</a>, I've updated <a href="http://perldoc.perl.org/">http://perldoc.perl.org</a> with the new documentation. Thanks to Dave Mitchell and everyone else involved in getting the 10.1 release out, well done! </p><p> The old Perl 5 version 10.0 documentation has been moved to <a href="http://perldoc.perl.org/5.10.0">http://perldoc.perl.org/5.10.0</a>. </p><p> Cheers, </p><p> JJ </p> jj 2009-08-24T10:27:50+00:00 journal perldoc.perl.org source code on GitHub http://use.perl.org/~jj/journal/39462?from=rss <p> Today I uploaded the <a href="http://perldoc.perl.org/">perldoc.perl.org</a> source code to GitHub, the repository is at <a href="http://github.com/jonallen/perldoc.perl.org/tree/master">http://github.com/jonallen/perldoc.perl.org/tree/master</a>. Issues, feature requests, and patches are all very welcome! </p><p> I've also made a few additions to the perldoc FAQs on the <a href="http://perl.jonallen.info/projects/perldoc">project page</a>. </p><p> Cheers, </p><p> JJ </p> jj 2009-08-14T17:24:33+00:00 journal YAPC::Europe 2009 http://use.perl.org/~jj/journal/39419?from=rss <p> Just wanted to say a big thanks to Cog, Alberto, Joana, and everyone else involved in putting on such a fantastic conference! </p><p> I saw many excellent talks, caught up with lots of friends in the hallway track, enjoyed many bottles of Super Bock, and generally had a grand time. Thank you! </p><p> Oh, and my <a href="http://www.flickr.com/photos/pennysarcade/sets/72157621978864098/">YAPC::Europe photos</a> are now <a href="http://www.flickr.com/photos/pennysarcade/sets/72157621978864098/">online</a>. </p><p> Cheers, </p><p> JJ </p> jj 2009-08-08T13:15:38+00:00 journal Fixing Firefox Flicker http://use.perl.org/~jj/journal/39365?from=rss <p> A few people have pointed out to me that scrolling down pages on <a href="http://perldoc.perl.org/">perldoc.perl.org</a> was causing their screens to flicker. </p><p> Unfortunately I've not been able to reproduce the problem, even when using exactly the same web browser and OS versions. From the reports I've had, it only appears to affect Firefox, only affects a very small number of people, and has nothing to do with CPU power. </p><p> However, after some more investigation and help from those affected I think I've found a fix. </p><p> The perldoc CSS uses <code>visibility: hidden;</code> to hide the draggable page index window - this gets changed to <code>visibility: visible;</code> when the "Show page index" link is clicked. Today I updated the site to use <code>display: none;</code> and <code>display: block;</code> in addition to setting the <code>visibility</code> property, and according to reports this seems to have solved the problem. </p><p> Apologies to those affected, and thank you to Martin von Wittich, Offer Kaye, and Michael Ivanchenko for their help in testing. </p><p> Today's update also adds a <a href="http://perldoc.perl.org/preferences.html">preferences page</a> which allows you to change the positioning of the navigation bar from Fixed (the default - the nav bar is anchored to the top of the screen) to Standard (nav bar scrolls with the page content). </p><p> Cheers, </p><p> JJ - <a href="http://perl.jonallen.info/">http://perl.jonallen.info</a> </p> jj 2009-07-28T16:36:34+00:00 journal Improving perldoc.perl.org load times http://use.perl.org/~jj/journal/39332?from=rss <p> Following the <a href="http://use.perl.org/article.pl?sid=09/07/17/1910212">perldoc design update</a>, I've now started work on various fixes and optimisations. </p><p> The first of these is page load time. </p><p> After profiling in Safari, it became apparent that a large proportion of the load time was due to latency, and that the JavaScript files were blocking the loading of images, delaying the final page render. </p><p> These issues are now fixed, and the stats for the <a href="http://perldoc.perl.org/">perldoc homepage</a> are as follows: </p><ul> <li> <b>Images</b> <br> Reduced from <b>10</b> to <b>3</b></li> <li> <b>JavaScript files</b> <br> Reduced from <b>4</b> to <b>1</b></li> <li> <b>HTTP requests</b> <br> Reduced from <b>19</b> to <b>9</b> (3 of which are for Google Analytics)</li> <li> <b>Total download size</b> <br> Reduced from <b>222Kb</b> to <b>165Kb</b></li> </ul><p> With a few extra tweaks to the object load order and placement of JavaScript files, the overall page load time should now be significantly reduced. </p> jj 2009-07-22T10:39:36+00:00 journal Major update to perldoc.perl.org http://use.perl.org/~jj/journal/39307?from=rss <p> I'm pleased to announce a significant update to <a href="http://perldoc.perl.org/">perldoc.perl.org</a>, the Perl documentation website. </p><p> The main change is a complete new visual design, bringing a fresh, modern look to the site. Additionally there are a number of new features to aid navigation and usability - a floating page index window, recently read pages list, improved Pod rendering, and many more. </p><p> Over the next few weeks I'm planning a few more updates, including extending the site to hold documentation for all Perl 5.8.x releases. </p><p> I've tested the new design using a variety of browsers, but if anything looks amiss please email me at <a href="mailto:jj@jonallen.info">jj@jonallen.info</a> with your OS and browser versions, and if possible a screenshot. </p><p>&nbsp;</p><p> Cheers, </p><p> JJ - <a href="http://perl.jonallen.info/">http://perl.jonallen.info</a> </p> jj 2009-07-17T13:53:15+00:00 journal perldoc.perl.org source code released http://use.perl.org/~jj/journal/38153?from=rss <p>For anyone interested in how <a href="http://perldoc.perl.org/">perldoc.perl.org</a> is built, I've today released the source code at <a href="http://perl.jonallen.info/projects/perldoc">http://perl.jonallen.info/projects/perldoc</a>. </p><p> At the moment it's a bit 'rough and ready' - there's no documentation, no installer, etc - but at least it's now open source! </p><p> Happy Christmas! </p> jj 2008-12-24T13:48:30+00:00 journal E-commerce with Catalyst http://use.perl.org/~jj/journal/37878?from=rss <p> Earlier this year my girlfriend and I decided to start our own business, <a href="http://www.pennysarcade.co.uk/">Penny's Arcade</a>, an online retail website to sell gifts, home accessories, and artwork. </p><p> I've spent the last couple of months developing the site, <a href="http://www.pennysarcade.co.uk/">www.pennysarcade.co.uk</a>, using Catalyst, Handel, and OpenThought, and this week we went live! </p><p> This is the first serious project I've attempted with Catalyst, and I must say it's been quite a revelation. Compared to other tools I've used the speed of development was phenominal, and combined with a very simple method of deployment and configuration I can really appreciate now why it's so popular. </p><p> Aside from <a href="http://search.cpan.org/dist/OpenThought">OpenThought</a> which I've <a href="http://perl.jonallen.info/talks/lightweightajax">talked about</a> before, the other key module used was <a href="http://search.cpan.org/dist/Handel">Handel</a>. Handel provides facilities to manage shopping carts and orders, and was very easy to extend to allow for our own custom fields and delivery calculations. </p><p> I'll be <a href="http://conferences.yapceurope.org/lpw2008/talk/1612">talking</a> in more depth about the technical details at this year's <a href="http://conferences.yapceurope.org/lpw2008/index.html">London Perl Workshop</a>, but the short version is that the site came in under budget and ahead of schedule, with Catalyst, Handel, and OpenThought taking much of the credit. Thanks to all the module authors who made it possible! </p> jj 2008-11-14T14:45:01+00:00 journal YAPC::Europe 2008 photos http://use.perl.org/~jj/journal/37216?from=rss Just finished getting my photos online, they're at <a href="http://perl.jonallen.info/yapc/2008">http://perl.jonallen.info/yapc/2008</a> <p> Enjoy!</p> jj 2008-08-17T18:30:00+00:00 journal Artistic License upheld in court http://use.perl.org/~jj/journal/37192?from=rss Just spotted this on the front page of the BBC News: <p> <a href="http://news.bbc.co.uk/1/hi/technology/7561943.stm">http://news.bbc.co.uk/1/hi/technology/7561943.stm</a></p> jj 2008-08-15T13:34:05+00:00 journal perldoc.perl.org updated for Perl 5.10 http://use.perl.org/~jj/journal/35184?from=rss <p>Following the Perl 5.10 release, I've now updated <a href="http://perldoc.perl.org/">http://perldoc.perl.org</a> with the Perl 5.10.0 documentation. </p><p> The Perl 5.8.8 documentation is still available though, at <a href="http://perldoc.perl.org/5.8.8">http://perldoc.perl.org/5.8.8</a>. </p> jj 2007-12-21T16:06:44+00:00 journal I'm in yr Wired, plugging yr PM group! http://use.perl.org/~jj/journal/35168?from=rss Nice to see that Larry has great taste in T-shirts! (*) <p> <a href="http://www.wired.com/science/discoveries/news/2007/12/dayintech_1218">http://www.wired.com/science/discoveries/news/2007/12/dayintech_1218</a> </p><p> And, as Barbie pointed out, it's very kind of Wired to even name check the software that ran the conference website and currently runs the <a href="http://birmingham.pm.org/">Birmingham.pm</a> website too<nobr> <wbr></nobr>... Labyrinth<nobr> <wbr></nobr>:) </p><p> <small> (*) If you don't recognise it, it's the Birmingham Perl Mongers T-shirt we gave out to attendees at YAPC::Europe 2006<nobr> <wbr></nobr>:-) </small></p> jj 2007-12-20T16:38:29+00:00 journal pod2pdf 0.41 released http://use.perl.org/~jj/journal/34418?from=rss <p> I've finally got pod2pdf (used to create the PDF files on <a href="http://perldoc.perl.org/">perldoc.perl.org</a>) updated for compatibility with the latest version of <a href="http://search.cpan.org/dist/PDF-API2">PDF::API2</a>, and packaged up into a proper CPAN release. </p><p> It is available from <a href="http://perl.jonallen.info/projects/pod2pdf">http://perl.jonallen.info/projects/pod2pdf</a> or <a href="http://search.cpan.org/dist/pod2pdf">http://search.cpan.org/dist/pod2pdf</a>. </p> jj 2007-09-11T15:57:17+00:00 journal YAPC::Europe 2007 photos http://use.perl.org/~jj/journal/34308?from=rss Just finished uploading my photos from YAPC::Europe 2007 in Vienna, they're online now at <a href="http://perl.jonallen.info/yapc">http://perl.jonallen.info/yapc</a>. jj 2007-09-02T11:29:06+00:00 journal Ajax Perl syntax highlighting http://use.perl.org/~jj/journal/33014?from=rss <p>I've put together a set of scripts to dynamically apply Perl syntax highlighting to code examples on web pages. </p><p> It uses Perl::Tidy to perform the highlighting, and the <a href="http://www.openthought.net/software/">OpenThought</a> Ajax library to run the requests asynchronously so that initial page load times will not be affected by the extra processing. </p><p> Files and examples are available from <a href="http://perl.jonallen.info/projects/syntaxhighlighting">http://perl.jonallen.info/projects/syntaxhighlighting</a>. </p> jj 2007-04-17T20:22:20+00:00 journal XLSperl v0.3 released http://use.perl.org/~jj/journal/32947?from=rss <p> As part of the <a href="http://birmingham.pm.org/">Birmingham Perl Mongers</a> World Tour, I recently gave my <a href="http://perl.jonallen.info/talks">"Excel on the Command Line"</a> talk to the Gloucester Linux User Group. </p><p> A few days later I received an email from one of the attendees who'd tried out the accompanying software, <a href="http://perl.jonallen.info/projects/xlstools">XLSperl</a> (which lets you use Perl one-liners to process Microsoft Excel files), with a few suggestions. </p><p> So, after a few train journeys spent hacking code I've released a new version which has the following improvements: </p><ul> <li>The %F and @F variables (in autosplit mode) are tied, so modifying $F{A} also changes $F[0]</li> <li>You can now create Excel files from XLSperl, using the new "XLSprint" command</li> <li>XLSperl can now process plain text as well as Excel files (for easy conversion of text data into XLS format)</li> </ul><p> Source code and binaries for Linux x86, Windows, and Mac OS X (Intel) can be downloaded from <a href="http://perl.jonallen.info/projects/xlstools">http://perl.jonallen.info/projects/xlstools</a>. </p> jj 2007-04-09T19:00:23+00:00 journal Perl beer http://use.perl.org/~jj/journal/32349?from=rss For <a href="http://birmingham.pm.org/">our</a> social meeting last night, we visited a <a href="http://birmingham.openguides.org/cgi-bin/wiki.cgi?Wellington">different pub</a>. <p> And coincidentally they sold <a href="http://images.jonallen.info/display.pl?template=perl&amp;image=497">Perl beer</a>! </p><p> Which was not bad at all<nobr> <wbr></nobr>;-)</p> jj 2007-02-08T10:08:58+00:00 journal YAPC::Europe review in Linux User magazine http://use.perl.org/~jj/journal/31513?from=rss <p> Issue 67 (November 2006, out now) of UK magazine <a href="http://www.linuxuser.co.uk/">Linux User and Developer</a> is featuring a 4-page review of the <a href="http://www.birmingham2006.com/">YAPC::Europe 2006</a> conference - "Code, Curry, and Community". </p><p> There's plenty of photos as well, including Larry Wall, Brian McCauley (nobull), Simon Cozens, Jonathan Stowe (gellyfish), Steve Pitchford (lilstevey), Karen &amp; Marty Pauley, and many others at the Conference Dinner - so if you attended, you may well see yourself in the magazine! </p><p> Cheers, </p><p> JJ<br> <a href="http://perl.jonallen.info/">http://perl.jonallen.info</a></p> jj 2006-11-05T13:04:34+00:00 journal YAPC::Europe photos http://use.perl.org/~jj/journal/30875?from=rss All my photos are on-line now at <a href="http://perl.jonallen.info/yapc">http://perl.jonallen.info/yapc</a>. <p> Many thanks to everyone who attended! </p><p> JJ</p> jj 2006-09-04T09:54:13+00:00 journal YAPC::Europe photos http://use.perl.org/~jj/journal/30822?from=rss Hi, <p> If you're at YAPC::Europe this year you'll have probably noticed me taking lots of photos... </p><p> I've started to put them on-line now at <a href="http://perl.jonallen.info/yapc">http://perl.jonallen.info/yapc</a>. </p><p> Cheers, </p><p> JJ</p> jj 2006-08-31T10:58:55+00:00 journal YAPC::Europe day 0 photos http://use.perl.org/~jj/journal/26519?from=rss YAPC::Europe 2005 day 0 photos on-line at <a href="http://perl.jonallen.info/yapc">http://perl.jonallen.info/yapc</a> <p>&nbsp;<br> JJ<br> <a href="http://perl.jonallen.info/">http://perl.jonallen.info</a><nobr> <wbr></nobr>:: <a href="http://perldoc.perl.org/">http://perldoc.perl.org</a></p> jj 2005-08-31T08:21:28+00:00 journal Update to Perldoc search http://use.perl.org/~jj/journal/25665?from=rss I've made a change to the search engine on <a href="http://perldoc.perl.org/">perldoc.perl.org</a>. <p> If you enter a Perl function, manpage, or core module name intp the search box the site will now bypass the results list and go directly to the relevant page, a much quicker form of direct navigation than using the menus. </p><p> As an example, a search for <a href="http://perldoc.perl.org/search.html?q=pod">pod</a> will initially bring up the <a href="http://perldoc.perl.org/perlpod.html">perlpod</a> manpage with a link to access the <a href="http://perldoc.perl.org/search.html?q=pod&amp;r=no">full list of results</a>. </p><p> JJ<br> <a href="http://perl.jonallen.info/">http://perl.jonallen.info</a><nobr> <wbr></nobr>:: <a href="http://perldoc.perl.org/">http://perldoc.perl.org</a></p> jj 2005-07-12T23:15:02+00:00 journal Search engine on perldoc.perl.org http://use.perl.org/~jj/journal/24245?from=rss I've added a search engine to <a href="http://perldoc.perl.org/">perldoc.perl.org</a>. Rather than being a full text search, the algorithm is optimised for looking up module names, functions, and FAQs (as an example, try a search for '<a href="http://perldoc.perl.org/search.html?q=regex">regex</a>' or '<a href="http://perldoc.perl.org/search.html?q=open">open</a>'). <p> The code is still under development, so any feedback on instances where it did not find the page you were searching for would be very helpful. </p><p> Cheers, </p><p> JJ<br> <a href="http://perl.jonallen.info/">http://perl.jonallen.info</a><nobr> <wbr></nobr>:: <a href="http://perldoc.perl.org/">http://perldoc.perl.org</a></p> jj 2005-04-17T19:50:00+00:00 journal Update to perldoc.perldrunks.org http://use.perl.org/~jj/journal/23465?from=rss Following user feedback I've made a few updates to the <a href="http://perldoc.perldrunks.org/">http://perldoc.perldrunks.org</a> documentation site, the main changes are:<ul> <li>Improved interlinking of 'perl' manpage (thanks Aristotle [1])</li> <li>Updated syntax highlighting rules to create links for Perl function names and core modules</li> <li>Moved 'perlop' page to new top-level section 'Operators' (thanks Bart [2])</li> <li>Moved 'perlrun' page to 'Overview' section</li> <li>Moved 'perltodo' page to 'History/Changes' section</li> <li>Fixed numerous broken links in functions pages (thanks Aristotle [1])</li> <li>Added some missing functions ('getpwnam' etc)</li> </ul><p> Please post any bug reports / comments here or email jj@jonallen.info </p><p> JJ </p><p> [1] <a href="http://perlmonks.org/?node_id=424389">http://perlmonks.org/?node_id=424389</a> <br> [2] <a href="http://use.perl.org/comments.pl?sid=24572&amp;cid=37738">http://use.perl.org/comments.pl?sid=24572&amp;cid=37738</a></p> jj 2005-03-02T22:09:28+00:00 journal [ANN] Update to http://perldoc.perldrunks.org http://use.perl.org/~jj/journal/22777?from=rss Hi, <p> I've just released an update to <a href="http://perldoc.perldrunks.org/">http://perldoc.perldrunks.org/</a>, which improves the look of the HTML pages, including syntax highlighting of all Perl code examples. </p><p> A complete archive of the site can be downloaded for off-line use at <a href="http://perldoc.perldrunks.org/perldoc.tar.gz">http://perldoc.perldrunks.org/perldoc.tar.gz</a> (~14M file). If you've not seen <a href="http://perldoc.perldrunks.org/">http://perldoc.perldrunks.org/</a> before, it contains the complete Perl 5.8.6 documentation set in both HTML and PDF formats. Please read the project page at <a href="http://perl.jonallen.info/projects/perldoc">http://perl.jonallen.info/projects/perldoc</a> for a full list of features. </p><p> Please send any comments or bug reports to <a href="mailto:jj@jonallen.info">jj@jonallen.info</a>. </p><p> Cheers, </p><p> JJ</p> jj 2005-01-18T20:10:57+00:00 journal