htoug's Journal http://use.perl.org/~htoug/journal/ htoug'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:11:42+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 htoug's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~htoug/journal/ Yes! I have got a new (perl) job! http://use.perl.org/~htoug/journal/26521?from=rss I have just handed in my notice at my current job. On october 1.st I will start as perl-developer doing mod_perl on linux.<p> A nice change from the place where I am now (and have been the last 13 years), where the manglement in their infinite witlessness have decided that we should drop everything we have developed in perl and change to<nobr> <wbr></nobr>.Not and C#. A decision I had vigorously fought against for 9 months.<br> The decision was taken nearly 2 years ago, and since then development and maintainance of our production perl-systems has been trottled down to nearly nothing - much to the annoyance of the users who are happy with th systems and want more.<br> Tool and architecture decisions have been totally lacking - in fact nothing has happened - except that all developers got a 3 day<nobr> <wbr></nobr>.Not and C# course last spring; a course that we all have forgotten everything from by now.</p><p> Just after my holidays I stumbled across an add from <a href="http://www.adapt.dk/">Adapt</a>, where one of the Copenhagen Perl Mongers works. I applied and got the job.</p><p> I'm looking forward to it sooo much<nobr> <wbr></nobr>;-)</p> htoug 2005-08-31T08:55:02+00:00 journal RTFM - I should have learned it by now http://use.perl.org/~htoug/journal/22120?from=rss I've just wasted nearly a whole week chasing a wierd bug in DB_File (or so it seemed at first).<p> We have a number of Alphas running Tru64 (about 20) and our home directory is NFS-mounted on all the machines (so you have your files with you everywhere).</p><p>The web-development Alphas have just beeen upgraded from Tru64 v4.0G to v5.1B - the server people did a clean install, so as to remove any lint collected over the years.<br>I had sync'ed<nobr> <wbr></nobr>/usr/local (with out perl environment and other tools) from the Perforce depository and tested.<br>Everthing was OK.<br>The machines were released to the users and everyone seemed happy until the guy on the table next to me said that his Apache::ASP setup acted strangely, it crashed whenever he fiddled with the $Session-variable in his scripts.<br>"Hmmm...." I said. "I'll have a look at that". Famous last words.</p><p> The apache server crashed with a segmentation violation deep down inside Apache::ASP's internals - I finally tracked it down to a call to DB_File.<br>"No problem - I'll just upgrade DB_File" I thought - perhaps something has broken in the upgrade - so a recompilation might be called for.<br> Download the latest DB_File, and do <tt>Perl Makefile.PL</tt>, <tt>make test</tt> and <em>boom</em> DB_File fails in its tests.</p><p> Wierd - DB_File shouldn't SEGV.</p><p> Check rt.cpan.org for known bugs: I found one, where someone reported that the version of the underlying BerkeleyDB delivered with Tru64 v5.1B had a bug.</p><p> Download the latest berkeleyDB, compile and install. Retest DB_File: still <em>boom</em>.</p><p> Now I'm getting desperate. One of out test-machines runs the same Apache::ASP application as originally gave the error, so I looked there and everything semed ok - it was at a lower patchlevel than the dev.box but otherwise the same.<br>I tested DB_File on that: <em>boom</em>, hmmmm....</p><p> I looked in the DB_File code, and it seems that it sends a wrong argument to the db_del function - deep down in a macro in an XS-file. I wanted to make a small test-case, so that I could see if that was the error. So I headed back to BerkeleyDB, and looked for example code.<br>A the README passed over my screen something about 'NFS' caught my eye.</p><blockquote><div><p>* To run the test harness for this module, you must make sure that the directory where you have untarred this module is NOT a network drive, e.g. NFS or AFS.</p></div> </blockquote><p> I was doing all this in my 'work' subdirectory to my home - which is NFS mounted!</p><p> Move over to<nobr> <wbr></nobr>/tmp and try again.</p><p> Everything works!</p><p> It seems that Tru64 v4.0G had an undocumented feature that allowed BerkeleyDB files to be on an NFS-mounted filesystem. This feature has been removed in v5.1B.</p><p> Once again the lesson is: when debugging, take your time. Check <i>every</i> step, and do read the READMEs - don't assume that you can remember it from last you installed, things may have changed.</p><p> The fix was to move Apache::ASP's session-state files away from the home directory tree to somewhere in<nobr> <wbr></nobr>/tmp, and everyone is happy.</p> htoug 2004-12-03T09:56:15+00:00 journal Fond memories of YAPC::EU 2004 http://use.perl.org/~htoug/journal/21561?from=rss I finally got hold of a deck of Fluxx cards. Now my not so copious free time will diminish even further as we delve deeper and deeper into the fine details of this marvelous game, that reminds me of the evenings at the Days Hotel - I just miss the pub, the talking, the beer and all that, but the Fluxx nearly makes up for that.<p> The boys already like it, and we wast^Wenjoyed over 3 hours yesterday.</p><p> I blame Geoff! (updated, thx Scott)</p> htoug 2004-10-28T09:49:36+00:00 journal