essuu's Journal http://use.perl.org/~essuu/journal/ essuu'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-25T02:15:26+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 essuu's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~essuu/journal/ New Class::DBI mailing list http://use.perl.org/~essuu/journal/25944?from=rss <p>There's been a lot of <a href="http://use.perl.org/~sri/journal/25919">heat</a> and <a href="http://use.perl.org/~schwern/journal/25940">light</a> in the Class::DBI community and sadly Tony feels sufficiently hounded to close the mailing list but after discussion with him I've set up a new one. It is no way intended as a fork in the community but more as a way of allowing the community to continue until Tony feels able to participate again.</p><p>I don't much care for what's happened, it leaves a sour taste but I do know that I want to see the project and the community continue. Those interested can sign up at <a href="http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi">http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi</a> </p> essuu 2005-07-29T09:52:13+00:00 journal Feeling tainted http://use.perl.org/~essuu/journal/12422?from=rss <p>I've recently upgraded SpamAssassin to the latest version including new Bayesian goodness so I've been looking for spam to train it on.</p><p>Now the <a href="nms-cgi.sourceforge.net">NMS</a> support mailing list gets spam. <strong>Lots</strong> of spam. As much as 30% of the traffic is spam which, for some reason, sourceforge doesn't filter out.</p><p>My procmail rules filter out mailing list messages into their folders before SpamAssassin runs on the rest. I forget why but it means that all this spam sits in the nms-support folder and for the most part I ignore it. But now I've been going back and filtering it out by hand into a spam folder to pass to SpamAssassin.</p><p>I've only been through 300 or so of the 4,500 messages and I feel slightly queasy. I'm off to do something else for a while...</p> essuu 2003-05-24T15:38:01+00:00 journal Perl for the desktop http://use.perl.org/~essuu/journal/10117?from=rss <p>I read brian_d_foy's <a href="/~brian_d_foy/journal/10109">journal on the subject of pre-requisites</a> and wanted to make a comment but comments aren't enabled so I'll make them here instead.</p><p>First of all I think he is spot on in his comments but I wouldn't necesarily class web applications as end-user. A developer of some sort still has to install them and they're intended for <i>other people</i> to use. User applications reside on the desktop (to all intents and purposes). I am talking about users here in the context of normal people who use computers to get their jobs done. Not us lot who have a somewhat different relationship with the things<nobr> <wbr></nobr>:)</p><p>Now most users in this class use either Windows or Mac OS. In both cases installing an application is as simple as draging-and-dropping (in the Mac case) or running setup.exe (on windows). There is no equivalent in the perl case... </p><ol> <li>Install perl</li><li>Install the gui widget library (in C or whatever)</li><li>Install the perl/gui bindings and all the other CPAN modules required</li><li>Install the app</li></ol><p> What I really want is something that will take my code, an build me a distribution that includes core perl, only the core modules that I am actually using, the widget library, cpan modules and my code. It doesn't have to be compiled, except when the target is a OS that doesn't traditionally have a compiler (like windows, again).</p><p>Does such a thing exist ?</p> essuu 2003-01-22T12:23:53+00:00 journal This week I have mostly been writing perl http://use.perl.org/~essuu/journal/9109?from=rss <p>All in all, this has been a good week for me. True, I haven't launched my new company website like I promised myself I would do without fail but I have had fun with perl.</p><p> <b>London.pm technical meeting</b> </p><p>We had a tech meet. Lot's of people have written about it, including <a href="/~acme/journal/9081">Acme</a>, <a href="/~barbie/journal/9072">Barbie</a>, <a href="/~Ranguard/journal/9080">Ranguard</a>, <a href="/~sphyg/journal/9079">Spyhg</a> and <a href="/~2shortplanks/journal/9083">twoshortplanks</a>. Many thanks to the latter (a.k.a. Mark) for organising it &amp; to Profero for hosting it.</p><p>I love tech meets. I like learning unexpected things, such as finding out about a module that's going to make my life easier. I like catching up with people I haven't seen for a while. I always come away from a meeting more enthused about perl than I was before.</p><p> <b>Personalising Flash</b> </p><p>My work project this week has been writing some little cgi scripts to process data for a client-side e-invite written in Flash. Simple requirement, add the invitee's name into the movie and capture their response when they click on various buttons. Oh, and email them with the link to their invite. And can we see who's responded ?. Ah, and we'd better send them a confirmation email if they've said yes. Don't you just love the shifting sands of client requirements<nobr> <wbr></nobr>:)</p><p>Using perl, SQLite and some Apache rewrite rules I soon had it all working nicely. One of my favourite reasons for using perl is that it allows me to generate html if I want to, or text, or run from the command line or as CGI. Perl is happy in all these environments. So much more flexible than torturing asp, coldfusion etc etc which are the hammers I've seen other companies use to drive in these sort of screws.</p><p>Two lessons I learned though : </p><ol> <li>Flash is like perl, it has lots of facets and few people know them all. I was surprised to find out that the designers knew nothing about Flash's interactive capabilities despite them being excellent graphic designers. I found myself having to learn some Flash just to get the project working. I shouldn't be surprised I suppose, I know next to nothing about writing gui apps in perl yet I am reasonably confident with cgi and data munging.</li><li>Self contained scripts are fine but the instant you start cutting and pasting that DBI connect string and some SQL code into the next script, paste them into a module and share it between your scripts. You <b>will</b> be grateful for it later, when the next request comes along !</li></ol><p> <b>Quizz of the Week</b> </p><p>I haven't had much time for this over the last 2 or 3 weeks and procmail has been piling up unread emails in the qotw mailbox for me but the heat and light around the "use strict and warnings mantra" debate put it back on my radar. I tried <a href="http://perl.plover.com/~alias/list.cgi?mss:31:200211:njgaebdjlojcljakklmf">this weeks quiz</a> today and made a <a href="http://perl.plover.com/~alias/list.cgi?1:mss:733:200211:iphepehoeenleooohjej">passable attempt</a> at it. It was fun to try and unlearn all the idioms I usually use. I think it resulted in a better solution so I must try to be similarly objective in my normal coding.</p> essuu 2002-11-23T13:28:40+00:00 journal Iritating sigs &amp; broken applications. http://use.perl.org/~essuu/journal/8172?from=rss Some people will know that I've been having all sorts fun and games over the last few weeks trying to get a refund out of a domain registrar that charged me for renewing a domain, didn't renew it (because they'd detagged it) and then tried to charge me &#163;50 to retag it.<br> <br> Thankfully, those nice folks over at <a href="http://www.blackcatnetworks.co.uk/">Black Cat Networks</a> were able to take control of the domain for me and look after it for a mere 11.75 GBP and I now have my main email domain back. It's only taken <b>six weeks</b>.<br> <br> Three things have particularly annoyed me about the whole affair. <ol> <li>The registrar made no attempt to contact me before detagging it. No warning, no invitation, nothing and then they tried to charge me a stupid amount to fix it.</li><li>Their renewal application is so broken that it will quite happily accept and bill my credit card for something it can't deliver. Isn't that fraudulent ?</li><li>In my dealings with $registrar, each email has the same standard sig on it which has been driving me increasingly mad. Remember that I'm trying to <b>not</b> use their service:</li></ol><blockquote><div><blockquote><div><p> <tt>Thank you for using our service<br> <br>$person<br> <br>$registrar</tt></p></div> </blockquote></div> </blockquote><p> To give this little rant some perl content, I've now written a little perl script that looks at my xml list of registered domains every day and emails me when one is due for renewal. Every day I find new uses for perl that make it so much more useful beyond the boundaries of cgi scripts<nobr> <wbr></nobr>:-)</p> essuu 2002-10-04T13:04:40+00:00 journal WWW::UsePerl::Journal broken http://use.perl.org/~essuu/journal/7984?from=rss I suddenly noticed that <a href="http://use.perl.org/~richardc">richardc</a>'s dead handy journal-to-mail script has stopped working. A bit of digging identified changes to the use.perl.org user page as the culprit.<br> <br> A simple change to the module fixed it (at least as far as it passes it's tests and runs the code I need it to<nobr> <wbr></nobr>:). It's been mailed to the relevant people but here's my patch in case you need it right now.<blockquote><div><p> <tt>---<nobr> <wbr></nobr>/usr/lib/perl5/site_perl/5.6.1/WWW/UsePerl/Journal.pm&nbsp; &nbsp; &nbsp; &nbsp;Sun Mar&nbsp; 3 20:09:14 2002<br>+++ lib/WWW/UsePerl/Journal.pm&nbsp; Wed Sep 25 02:15:14 2002<br>@@ -43,7 +43,7 @@<br> );<br> <br>-$VERSION = '0.05';<br>+$VERSION = '0.06';<br> <br> =head2 new<br> <br>@@ -100,7 +100,7 @@<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;my $content = $self-&gt;{ua}-&gt;request(GET UP_URL . "/~$user/")-&gt;content;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;die "Cannot connect to " . UP_URL unless $content;<br> <br>-&nbsp; &nbsp; &nbsp; &nbsp; $content =~ m#User info for $user \((\d+)\)#ism<br>+&nbsp; &nbsp; &nbsp; &nbsp; $content =~ m#$user \((\d+)\)#ism<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;or die "$user does not exist";<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$1;<br>&nbsp; &nbsp; &nbsp;}</tt></p></div> </blockquote> essuu 2002-09-25T01:24:18+00:00 journal At last ! http://use.perl.org/~essuu/journal/7934?from=rss Sony have finally managed to deliver my new battery. Only a week late and missing YAPC but hey, it's here. For some reason the power management utility on my linux install seems to think I have 7 days of power in it, even though it has gone from 100% to 87% in the last 20 mins. Even I can do the maths that works out it will actually last about 2.5 hours.<br> <br> Still, that's much better than it was when I bought it second hand just before yapc::2001, when it could manage about 45 minutes on a full charge. Perhaps the iBook can wait a while... essuu 2002-09-23T16:57:06+00:00 journal Strange happenings and Sony inepitude http://use.perl.org/~essuu/journal/7901?from=rss Saturday didn't happen. Honest.<nobr> <wbr></nobr>;-)<br> <br> I did go to Oktoberfest though, the party split with some jumping in a cab and Barbie &amp; friend, Andy Wilson and I going one stop on the U-Bahn. No problem, thought I, we'll meet them there.<br> <br> No one had explained how utterly, utterly huge Oktoberfest is. I have never seen so many people so drunk in one place ever. And this from a memeber of london.pm ! Needless to say, we didn't find the others but I did have a go on the <a href="http://www.somecoasters.com/main/coasters/eurostar/eurostar.html">rollercoaster</a>. It was awesome, even after drinking for most of the day. Sometimes, though, I really wish I didn't wear glasses (I don't get on with contacts) as it sort of spoils the fun when everything is even more blurred than usual. Next year I might actually have to make a special trip to sample Oktoberfest properly.<br> <br> Sunday dawned bright and early for me as I made my way to the airport at 7am. Somehow I had managed to book an earlier flight than all the other london.pm'ers but in a way that was good as I really was too tired and jaded to talk this morning.<br> <br> Now I'm back at home and pondering what I learned from YAPC.<ul> <li>Larry rocks, we really appreciate you coming all the way over.</li><li> <a href="http://use.perl.org/~Schwern/journal">Schwern</a> is a brave man.</li><li> <a href="http://use.perl.org/~cwest/journal">Casey West</a> would have provided one of the most memorable moments of the conference, except <b>it didn't happen.</b><nobr> <wbr></nobr>:)</li><li>iBook is the portable computing platform of choice for descerning geeks.</li><li>Perl is very much alive and well</li><li> <code>ExtUtils::ModuleMaker</code> and <code>Test::More</code> look very useful and will feature in future projects.</li><li>Drinking with Grep, Gellyfish and Evil Dave leads to badness. Strictly speaking I learned this last year too but I foolishly seem to have forgotten it<nobr> <wbr></nobr>:)</li><li>I really should make more effort to learn the local language. We had 8 months warning after all.</li></ul><p> So where are we going next year ? Can't wait !<br> <br> And Sony ? Well having failed to deliver it <a href="http://use.perl.org/~essuu/journal/7812">before the conference</a>, they also failed to deliver it <a href="http://use.perl.org/~essuu/journal/7823">at the conference</a>. I decided that I didn't want to waste any more money on international calls to listen to their awful hold music so I figured I'd just hassle them when I got back. Guess what I found on my doormat when I got home ? Yup - A card from DHL saying they had attempted to deliver the battery on Friday. So Sony hadn't redirected the shipment at all. I suppose I shouldn't really be surprised<nobr> <wbr></nobr>:-(</p> essuu 2002-09-22T13:12:27+00:00 journal Shopping http://use.perl.org/~essuu/journal/7865?from=rss Woo !<br> <br> Today has been a good day. Although I got here a bit late, I've seen some really interesting talks, including several lightning talks, Security in Perl Scripts and Tagmemics.<br> <br> Larry's talk was really interesting, linking many concepts and ideas into a though provoking half hour.<br> <br> Schwern's refatcoring talk was interesting too, I hadn't thought of refactoring in quite that way before.<br> <br> The highlight of today has been the auction. As usual hosted by Greg McCarroll and apparently 2,500 eur has been raised.<br> <br> I am now the proud owner of a Copenhagen.pm t-shirt (only 1 of 8) and a totally unique stein signed by Larry. I like this way of raising funds.<br> <br> Now it's time for beer. essuu 2002-09-20T16:33:00+00:00 journal Day 2 http://use.perl.org/~essuu/journal/7849?from=rss Day 2 of the conference proper was excellent. I saw Casey West talk about using Template Toolkit. I already use TT2 a lot but it was still god to watch someone talk about it with such enthusiasm.<br> <br> James Duncan talked about Pixie, a very cool looking object database. I can already see uses for it in some of my own work.<br> <br> Gellyfish's talk was a truely awe-inspiring demonstration of the art of off-the-cuff, hungover presenting<nobr> <wbr></nobr>:)<br> <br> I dropped in on Geoffrey Avery's talk about ExtUtils::ModuleMaker which seems like a very powerful replacement for h2xs and then settled into the main hall for power and bandwidth. I wasn't too interested in Thomas Klausner's obfuscation talk, I was waiting for the Testing talk following it, but I found myself considerably impressed by what he was able to do. I've always considered obfuscation to be a bunch of clever tricks of no real use but I think that I may spend more time looking at it. Theone thing that the lecture revealed to me was that obfuscation teaches you a lot about the guts of perl and that can only be good in the long run.<br> <br> Paul Johnson's Testing and Code Coverage talk was interesting but very dry. Most of it was taken up with discussing the definitions and theory of code coverage. I would have preferred to see longer spent on actually using the tools available to perl programmers, such as Pauls own <code>Devel::Cover</code>.<br> <br> After tea, we had a series of excellent lightning talks and the Jos Boumans took us through POE for beginners. Jos is a very entertaining speaker and the war stories he used to fill the time at the end of the talk were very funny.<br> <br> The evening went the usual route, with much beer consumed and ending in Greps room for a game of guess the tune (thanks to many gigabytes of mp3s and iTunes) and much singing fuelled by a bottle of Bushmills from the bar.<br> <br> Day three is starting slowly<nobr> <wbr></nobr>:-/ essuu 2002-09-20T07:59:11+00:00 journal No surprises http://use.perl.org/~essuu/journal/7823?from=rss This morning brings a complete lack of surprises. The usual suspects have wandered in to the conference looking as rough as anything<nobr> <wbr></nobr>:-)<br> <br> And Sony have completely failed to deliver my <a href="http://use.perl.org/~essuu/journal/7804">new battery</a>. Despite speaking to them on Monday their system still has no record of the DHL tracking number, so how they can have redirected it to Germany I fail to underdstand. Needless to say the "Customer service representative" was unable to say when I might see the thing. Lack of battery sucks mightily<nobr> <wbr></nobr>:-( essuu 2002-09-19T08:56:44+00:00 journal End of day 1 http://use.perl.org/~essuu/journal/7812?from=rss This afternoon was Advanced Testing with Schwern. He really is an entertaining speaker and covered a lot of ground, albeit in a somewhat "unconventional" style<nobr> <wbr></nobr>:)<br> <br> I was reminded, however, of one really important tip for speakers - <b>when taking questions, always repeat them back so the rest of the audience can hear.</b> Schwern does this really well and makes his wandering interactive style much easier to follow.<br> <br> Now we're off to drink beer I think. essuu 2002-09-18T15:34:50+00:00 journal YAPC::Europe - no thanks to Sony http://use.perl.org/~essuu/journal/7804?from=rss Well here we are at YAPC in Munich and it seems a perfect opportunity to begin writing my journal.<br> <br> There was a meetup last night for those of us who arrived early and much beer was consumed. No surprises there I guess, although it was great to see Larry Wall there. Which other language designers hang out with the people who use their language ?<br> <br> This morning I attended Mark Overmeer's talk on Mail::Box. It was a good grounding the why's and wherefore's of this mammoth module.<br> <br> Right now I am sitting waiting for Schwern's Advanced Testing talk to begin, attached by a mains umbilical to the wall despite having a shiny Vaio and wireless networking.<br> <br> Why ? Because those lovely people at Sony failed to deliver a new battery before I left the UK. Supposedly they're now shipping it directly to my hotel but I'm not holding my breath.<br> <br> Funny how popular you become when you bring a 4-way power strip with you though...<nobr> <wbr></nobr>:-) essuu 2002-09-18T11:26:59+00:00 journal