Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

2shortplanks (968)

2shortplanks
  (email not shown publicly)
http://2shortplanks.com/
AOL IM: trelane2sp (Add Buddy, Send Message)
Yahoo! ID: trelane2sp (Add User, Send Message)

Mark Fowler has never been the same since he was elected leader of the London Perl Mongers. The strain manifests itself mainly in releasing various [cpan.org] modules [cpan.org] to CPAN, giving talks [2shortplanks.com], and use of the Trelane nick on #london.pm for endless procrastination. Doctors are still seeking a cure.
Thursday July 01, 2004
11:34 AM

Test::Builder::Tester release, Test::DatabaseRow to come..

I just released a new version of the test suite module testing module Test::Builder::Tester. We've been using it for a few weeks at Fotango and we haven't had any problems with it, so I thought it was about time I released it to the masses (so they can point out all the things I've forgotten to do in this release ;-) )

This version now allows you to ignore if the error output doesn't match what you've declared when you're checking the output of your test suite's test. This is most useful when you're developing stuff (I've been using it while I've been building the new version of Test::DatabaseRow) and you're not entirely sure what format the debug output's gonna take, and you don't want to write those tests just then.

The new version of Test::DatabaseRow's in my subversion repository. It has loads of new features - testing that all rows match a criteria, specifying criteria based on what a row contains, checking that rows come out in the right order... I think it all works now apart from the debug output - which is of course one of the most important things with a Testing tool - it has to help you fix the bugs once you've found them.

Tuesday June 29, 2004
11:29 AM

The ongoing Mark Fowler world tour.

I've been accepted to speak at YAPC::Europe in Belfast, presenting the same talk on bundling stuff for CPAN that I presented at YAPC::NA this year. Cool. And I've already written the slides, so I don't have to panic too much, and I'm only speaking for 20min (which is much less than the few hours I've been speaking at previous conferences.) This might actually give me time to sit back and relax at a conference for once.

I'm looking forward to it and catching up with people; Of course, just as with this year's YAPC::NA I'm going to be flying out the evening after the conference (this time it's someone's wedding I've got to get back for.) So this time I'm having the forethought to tell people; If you want to meet up with me and have a beer email me/leave a comment here/leave a comment on my wiki page on the YAPC::EU wiki and we'll see what we can do tuesday/wednesday/thursday night.

See you all in Belfast.

Sunday June 27, 2004
12:07 PM

Jetlag, unicode, Template Toolkit

So, jetlag is a pain in the rear. I'm still stuck in EST, even though I'm living in GMT+1 again. It'd be fine to stay this way, but I'm sure Fotagno would object to me getting into work five hours late, and I can't leave in turn five hours late from the office as that means the pubs would be shut by that time!

Not that our special guests of honour turn up to the pub when we arrange meetings for them, oh no. ;-)

All this staying up to the wee hours has meant that I've had lots of time to code. This weekend I've mainly been patching the Template Toolkit to deal correctly with unicode templates. Which is nice.

Saturday June 19, 2004
06:10 PM

møøse

Wait three months for a journal entry and then two come along at once.

I've been playing a lot with UTF8 and the UTF8 flag a lot recently and I ended up creating This script that creates this list of what happens when you toggle on and off the UTF8 flag for various bytes, print the output to a utf8 filehandle and Devel::Peek Dump the scalar to see what Perl is actually storing. Fun huh?

06:05 PM

Long time no hear

So I haven't written in here in ages. Maybe I should comment on YAPC::NA.

My talks went okay. People came up and asked sensible questions (which is great, as this means they've been paying attention.) Other people came up and said that they really liked both the bundling for cpan stuff as there's nowhere this is really documented well in one place (to my knowledge - please correct me if I'm wrong) and the modules I selected from CPAN for my talk as there's so many modules on CPAN they couldn't find the wheat in the chaff. It's always great to get feedback like that and is one of the reasons I love to talk. Thanks for everyone's kind words.

I should really get round to emailing the few people that I didn't get to say thanks for their talk. Geoff, if you're reading this both your talks rocked. Simon, though your talk on AMF::Perl was plauged by technical problems, the software looks really promising. Allison, nice keynote. Perrin, I've learned about a couple of interesting looking modules from you. Andy, Bill - you already know that both talks you did rocked. Ian, you've made me think about kwiki again. Worry about people in tin foil hats.

I took some pictures of which I got iPhoto to create a cruddy web page for me. See James and Alex soaked to the skin by several tons of falling Canadian water. Marvel at us watching Euro 2004 on dodgy video feeds. See Katrien being bored by Perl geeks. Be amazed by the funky waffle maker.

One of the things from the Town Hall was an idea mentioned to write a guide to writing lightning talks. When I get back from New York state, I'll have a go at doing this as London.pm is currently organising a Lightning Talk only tech meet next month. Which, of couse I'm still looking for speakers from. Instructions how to apply in that link.

Sunday April 11, 2004
05:43 AM

'ave a natter

So, I've been accepted to speak at YAPC::NA.

I've got two talks. Firstly there's a new version of the advent calendar talk, which I'm hoping has been accepted as a tutorial. It's another year on, and we're now up to a hundred modules that have been covered by the advent calendar. So, instead of listing all the modules I've picked this year, I'm going to pick my favorites (the favorites of the favorites as it were) and give a tutorial on using them. The CPAN modules every user should know about kinda thing.

This dovetails nicely with the twenty minute talk I'm giving as part of a London.pm presentation to the UK Unix User Group on Perl. I'm meant to be covering CPAN, showing how cool it is, so I'll probably use the same modules in that as in the tutorial - just without the explaining how the modules work kinda way.

The second talk I've got accepted for YAPC::NA is about turning a Perl module into a distribution. It's a short talk that covers things like writing a Makefile.PL, bundling the thing, writing simple tests, etc. The kind of thing that all Perl Programmers need to know. I suspect most people at the conference will know this already, but for the intermediate programmers there it should provide useful; More importantly, I think it's a talk that needs writing so there's a resource I can point people at whenever I talk about how Perl's distributions work.

All this reminds me I need to sort out the next London.pm technical meet, which looks atm like it could be clashing with the Austrian Perl Workshop. I shall have to give this some thought, and find out who, it anyone is going and schedule things accordingly.

05:13 AM

Meetings, Meetings and Meetings

So, there's been three London.pm meetings since I last wrote. First, there was the heretics meeting that took place at the Founders Arms. That was nice: Sitting by the side of the river on the first day of the year warm enough to do it. I still can't believe the barman had to ask "Are you serious" when I ordered twenty pints of special, a waggledance and a pint of lemonade. Maybe he had something against us Lemonade drinkers.

The main social meeting this month was at the Windmill on the eve of Good Friday, which meant it wasn't that busy. It's a small venue though so it filled up all the same. I was plagued by a terrible headache the whole day and ended up burbling to myself in the corner, or so it seemed.. hitherto finally turned up and we wished him a happy birthday in the traditional way(we bought him booze.)

Finally Abigale and his fiancee were in town, and unexpectedly so was I (long story...short version: don't lose your passport) so a few of us met up with them at the Windsor Castle (no, not that one, the pub in Notting Hill) yesterday and ate the truly excellent sausages.

Friday March 26, 2004
12:50 PM

Test::DatabaseRow again

Just released a new version of Test::DatabaseRow. This copy's been bouncing around the Fotango CVS server for a couple of weeks now and seems okay; I just got the co-maintainance flag from Profero so I can continue to develop it.

The changes allow you to get at the results extracted from the database aafter Test::DatabaseRow after row_ok has executed. I'm not sure if I like this interface at all, but darn it, it is practical and saves you having to drop back to using the straight dbi when you just want to do that little bit more complicated test.

I had a thought about allowing Test::DatabaseRow to have munging functions to munge all values extracted before they're compared. For example, using OpenTDS with a MSSQL database you get back strings that are space padded and it'd be nice to be able to munge them to strip the extra spaces at the end of strings.

That'll have to wait to the next release.

Friday March 19, 2004
06:09 AM

March Tech Meet

London Perl Mongers had a tech meet at Morgan Stanley last night. This is the coolest venue we've been in yet. Not only did they have a massive back projected screen, but every two seats had their own LCD screen showing what was on the main screen. How cool is that?

Oh the Perl! Yes, we did talk about that. Andy kicked off with his talk on Template::Sitemap, which is essentially how he created a simple XML format that, with a shedload of convince, can be easily accessed from within his website. Looked good - I've implemented similar things in the past, but never really abstracted it out from the site I was working on or added the functionality that makes the sitemap manageable. I look forward to the CPAN release.

Andy was followed by Shevek explaining Acme::HaltingProblem (which apparently has only one bug), and then jerakeen gave his talk on Bot::BasicBot. Bot::BasicBot was one of my modules that I gave up ownership on because I didn't have time to implement all the features that people were requesting. Tom's done a lot of work, especially in the boring mundane sections, like getting the damn thing to connect to channel if it fails for any network reason. I'd never have had the patience to do that.

After the break Nik talked about use DateTime to compute sets and intersections to work out a combination of outages on his network. Many questions were asked. Nik agreed that he'd post to the DateTime list to talk about it, so I await that post. He went on to talk about Text::vFile::asData that looks interesting, and reminds me that I should talk to richardc about applying some of the work they've been doing on parsing/generating iCal feeds to doing more with the London.pm.ics feed.

Shevek talked about SRS, which is a scheme for rewriting email addresses that are forwarded in order to verify that they came from where you thought they did when they're forwarded.

Finally Simon talked about Maypole, which as far as I can gather is toolkit for creating ways of rendering and editing databases, with powerful default states. Big applications in twenty lines of code. Powerful combination of Template Toolkit and Class::DBI. Looked interesting. I will wait the month he's going to spend (thanks to TPF donations) documenting the code.

I really enjoyed this meet. As I was saying to James, none of the talks were "This is the best thing in the world ever" or "We've developed the new framework that's going to make everything else obsolete". They were "there's this problem, and we wrote this/used this tool which was helpful maybe you'll find it helpful or do something similar too". I was impressed greatly by the number of talks that talked about other approaches that they'd tried and showed how they'd prototyped similar solutions in the past. Conference organisers take note: These are the kind of talks we really liked.

Monday March 15, 2004
10:25 AM

Random Bits

Isn't it odd how we pick up random tips here and there?

Last week I showed someone the env perl trick.

#!/usr/bin/env perl

As the shebang line. This uses whatever Perl is first in your path. Today they showed me back in return the handy "recursive_test_files" option to Module::Build that lets you put subdirectories of tests in "t/". Sweet.

The best tip I've learnt and passed on (which I'm sure everyone else knows about by now) is using \G in the mysql shell. This prints out results with a line per column rather than trying to render some kind of table, meaning that things take way more space to print out but don't fall over horribly when the output is wider than the screen and wrapping occurs.

Hmm. I should apt-get install ispell on this box. Oh well, you'll have to put up with my speeling mistkes for a while.