Robrt's Journal Robrt'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:03:32+00:00 pudge Technology hourly 1 1970-01-01T00:00+00:00 Robrt's Journal HTTP/1.1 301 Moved Permanently <p><tt>Location: <a href=""></a></tt> </p><blockquote><div><p> The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cacheable unless indicated otherwise. </p><p> The new permanent URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s). </p></div> </blockquote> Robrt 2007-05-28T05:01:10+00:00 journal Weird spam <p>The webmaster alias recieved the following email this week: </p><p> <tt> implementation of alarm seems to fail on some/all of the implementations<br> <br> may refere to http://URL for a better alternative of<br> handling timer based sub calls.<br> <br> thanks and regards<br> Venkat Ravi Shankar k<br> 00919848226880<br> <br> </tt> </p><p> I've replaced the actual url with "URL", because I don't really want to link to it. But.. here's an excerpt: </p><p> <tt> This is to confirm that enclosed BIODATA / Curriculum Vitae, and Specs of all Projects undertaken in the Past and those that are due are Original Independent work, derived from my own Market research, I Vouch for the authenticity of the Specifications and Facts Mentioned. </tt> </p><p> It goes on to contain an entire resume... with large sections on how he only wants to be paid in government bonds. </p><p> Weird. </p> Robrt 2006-07-27T01:19:12+00:00 journal Summer of Code accepting applications <a href="">Google's</a> <a href="">Summer of Code</a> is now <a href="">accepting applications</a>. We've got a whole bunch of <a href="">ideas</a> and <a href="">more</a>. Robrt 2006-05-03T04:53:17+00:00 journal Line Noise I wrote this regular expression yesterday:<nobr> <wbr></nobr><tt>/\._.*/</tt> <p> My thought at that moment? Yes, perl <b>is</b> line noise. </p><p> Anyone want to guess what it's for?</p> Robrt 2006-05-03T04:37:13+00:00 journal LISP History LISP != perl, but Perl owes a lot to LISP. Here's two interesting origin of LISP papers:<ul> <li> <a href="">Paul Graham's "The Roots of LISP"</a></li> <li> <a href="">McCarthy's "History of LISP"</a></li> </ul> Robrt 2006-03-14T01:45:45+00:00 journal OSCON Deadline Approaches Today (Monday) is the last day to submit your proposal (on time) for <a href="">OSCON 2006</a> (aka the 10th Annual Perl Conference.) <br> <br> You know you want to. Robrt 2006-02-13T05:07:18+00:00 journal CAcert <p>At <a href="">SCALE</a> today, I joined <a href="">CAcert</a>. It feels like a less chaotic version of the PGP web of trust. I've got enough points that I can start to "assure" (or vouch for) others identity. </p><p> So, if you run into me at a pm meeting, or conference, feel free to ask me to assure you. Just be sure to bring the proper paperwork and ID!</p><p> <b>Update:</b> Got some more CAcert points today, so I can now give people 35 assurance points.</p> Robrt 2006-02-12T06:06:33+00:00 journal expansion <code> perl -MLWP::Simple -pi.bak -e 's{(\w+)}{get("$1")<nobr>|<wbr></nobr> |$1}ige' </code> Robrt 2005-12-24T18:41:52+00:00 journal Vee! Update: <p> At the <a href="">O'Reilly Open Source Conference</a> this year many of the speakers put money in a hat in order to get <a href="">Vee</a>, the speaker coordinator a gift. We got her a gift certificate to a swanky spa near her house. </p><p> A few months pass... </p><p> I realize that I never checked in to see how the swanky spa was.... so I checked in and she was raving about it. (In a good way!) </p><p> So, if you helped, Thanks!</p> Robrt 2005-12-24T00:32:54+00:00 journal 2006 Conferences If you know about a 2006 perl related conference, please send me an email to robert (the thing that goes here) and I'll update the list of events. Robrt 2005-11-20T04:10:30+00:00 journal Off By One Error I updated the Parrot smokeserver today, and suddenly the output display was horribly garbled. I started taking apart the regular expression, converting it into a<nobr> <wbr></nobr>//x with comments, and suddenly the answer was clear! <p> Someone added a field to the middle of the data set, and didn't increment all the following field id's. (I.e., $7, $8, $8, $9...). </p><p> Lesson #1: Be careful when inserting to the middle of a set. If you can safely insert at the end, do so. </p><p> Lesson #2: Don't use the numbered regexp capture syntax for large numbers of capture groups. Use ($foo, $bar, $baz) =<nobr> <wbr></nobr>/(.)(.)(.)/ instead. </p><p> I didn't write the original code - I just had to fix it. (Luckily, I like fixing things.)</p> Robrt 2005-11-04T04:40:19+00:00 journal Producing Open Source Software I've only read the table of contents and skimmed a few chapters, but Karl Fogel (of CVS and Subversion fame) has written a "must read" book. <p> <a href="">Producing Open Source Software - How to Run a Successful Free Software Project</a> (read online, <a href="">Buy buy from Amazon</a>, <a href="">buy from O'Reilly</a>) is an overview of most aspects of the open source world. He covers everything from Version Control Systems to Hired Guns to Releases and Version Numbering. Karl's been doing open source for years, and has some great anecdotes to share, and he does it in a friendly and explanatory manner. </p><p> Even if you've been doing open source for years, you'll get something out of the book, even if it's just reassurance that you're not the only one who thinks that way. </p><p> Karl has been one of the driving forces behind the Subversion project. I'm consistently impressed with how Subversion is run. Decisions are well thought out, things are planned, flamewars are rare, discussions are civil. You too can have a happy project. </p> Robrt 2005-11-04T00:28:29+00:00 journal Blades! Brian and Andrew of Ejelta LLC (creators of <a href=""></a>) donated a blade server to It's a few years old, but still quite capable. We're not totally sure what we're going to use it for once we get it running. It's a <a href="">RLX</a> 300ex. <p> <a href="">Ask</a> and I spent yesterday afternoon playing with it, and have it mostly figured out, although we need a little more time to get it just right. </p><p> The management interface on it is <i>sweet</i> (to use one word.) Built in console server, remote management, etc all in a very snappy and easy to use web interface. </p><p>Blades. They are the way of the future.</p> Robrt 2005-10-01T00:10:18+00:00 journal Fire! (Again.) The hills above my house are on fire again. Fun to look at, not so great to breathe. Its close enough that (if I could get past the firemen) I could go roast marshmallows if I wanted. (No, this is not the "big" Los Angeles fire of the week, but a smaller one.) I am perfectly safe. Robrt 2005-10-01T00:06:30+00:00 journal Serenity Go see <a href="">Serenity</a>. It's good. <p> The movie was consistently enjoyable, same high quality as the show, good story, good action. (No spoilers here.) </p><p> I went to see a 1:30 matinee and the theatre wasn't close to packed. I suspect tonight will be a lot busier. The audience definitely enjoyed it, and managed to turn off their cell phones and clap only at the beginning and end. </p><p> If I do have one misgiving it is that I didn't see it on a digital projector. (I've been spoiled.) It was a fresh print, no scratches or dirt, and everything was quite nice... but I would have liked just a little more sharpness. </p><p> Still reading? Get thee to a theatre!</p> Robrt 2005-09-30T23:59:45+00:00 journal RT Essentials found (almost) in the wild Jesse has snagged <a href="">Tim's</a> copy of <a href="">Essential RT</a>. There's <a href="">photographic evidence.</a> Robrt 2005-08-22T03:13:55+00:00 journal Conference Dangers <a href="">Acme hit me on the head with a stuffed camel.</a> I survived. Robrt 2005-08-05T23:31:01+00:00 journal RT: Mass Custom Field Update <p> <a href="">Steve Peters</a> asked if I could consolidate the <tt>Win32</tt> and <tt>mswwin32</tt> types in the Operating System CustomField in perlbug. Definitely a reasonable request, especially since we couldn't figure out what the difference was.</p><p>First try was to use RT's bulk update, but it didn't want to let me change custom fields... so... I wrote a script: </p><blockquote><div><p> <tt>#!/home/perl/bin/perl<br>use strict;<br>use warnings;<br>use RT;<br>use RT::Queues;<br>use RT::Tickets;<br>RT::LoadConfig();<br>RT::Init();<br>my $tx = RT::Tickets-&gt;new($RT::SystemUser);<br>my $cf = RT::CustomField-&gt;new($RT::SystemUser);<br>my $q&nbsp; = RT::Queue-&gt;new($RT::SystemUser);<br>$tx-&gt;FromSQL(q[queue="perl5" and "cf.perl5.{Operating System}" = "Win32"]);<br>$q-&gt;Load('perl5');<br>$cf-&gt;LoadByNameAndQueue(Queue =&gt; $q-&gt;Id,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Name =&gt; 'Operating System');<br>while (my $t = $tx-&gt;Next) {<br>&nbsp; &nbsp; my $os = $t-&gt;FirstCustomFieldValue("Operating System");<br>&nbsp; &nbsp; $t-&gt;DeleteCustomFieldValue(Field =&gt; $cf-&gt;Id,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Value =&gt; $os);<br>&nbsp; &nbsp; $t-&gt;AddCustomFieldValue(Field =&gt; $cf-&gt;Id,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Value =&gt; 'mswin32');<br>}</tt></p></div> </blockquote><p>It gets the job done. There's a few things that aren't quite "simple enough"... but we'll see about knocking those out in the next version.</p><p>Learn more about RT in the soon to be published book <a href="">RT Essentials</a>.</p> Robrt 2005-07-17T07:25:16+00:00 journal Room at the RT inn at OSCON <p> Apparently there are still a few seats available for the <a href="">RT Tutorial</a> at <a href="">OSCON</a> this year. <a href="">Get them</a> while they're hot. </p><p> Everyone who has attended the class loves it. It's based on <a href="">our full day tutorial</a>, which leaves people stunned. (And I mean that in a good way.) </p> Robrt 2005-07-08T03:00:56+00:00 journal Bundle::Everything 0.04 Apparently <a href="">some</a> <a href="">one</a> actually uses <a href=";mode=module">Bundle::Everything</a>. So, I uploaded an updated version tonight. Robrt 2005-06-26T05:14:24+00:00 journal Label Maker <p> The local Staples had some refurbished <a href=";Sku=521045">P-touch RPT-11xx label makers</a> near the register. $29.95 minus a $20 mail in rebate. They're $24.95 on the website, plus shipping. </p><p> Seems like a pretty good deal, so I got one. The best part, the rebate can be applied for online. No stamps to lick! </p><p> All is not perfect. The rebate website uses the user agent to block out Linux, (but works fine with firefox/mozilla once you lie about the UA). But, after that, it was the easiest rebate form I've ever filled out. And, the device takes six AAA batteries, not AA as the box says. </p> Robrt 2005-06-25T04:06:51+00:00 journal OSCON Early Registration Deadline Approaches (Rapidly!) <p> You are going to <a href="">OSCON</a> this year, right?</p><p> You're coming to my talks? And hearing all the other great <a href="">speakers</a>?</p><p>The price goes up on Monday. Remember to register now.</p><p>(Ok, now that I'm done shilling, really, this is <b>the</b> Open Source event to be at. Maybe I've been living in LA too long, but Portland is a beautiful city, with great weather the week of the conference.)</p> Robrt 2005-06-16T18:39:09+00:00 journal learn perl It is long past time to redo <p> What would <b>you</b> want to see on a site for people who want to learn perl? (Probably beginners mostly.) Email me at <tt>new-learn at</tt> with your ideas.</p> Robrt 2005-05-27T20:30:17+00:00 journal noc log For those of you who are looking for information on developments, you probably want to look at the <a href="">noc log</a>. Robrt 2005-05-09T00:50:00+00:00 journal YACTABGM Yet another cool thing about <a href="">Google Maps</a>...<p> You can misspell street names, and it's still happy. <a href="">Try it.</a></p> Robrt 2005-03-07T06:01:01+00:00 journal "Geeky Music" These two songs recently came across a programming language list... <ul> <li> <a href="">eternalflame.mp3</a></li> <li> <a href="">longest-path.mp3</a></li> </ul> Robrt 2005-02-20T18:20:38+00:00 journal RAID rules Got home from New Years Eve party to find my computer acting odd and eventually totally locking up. Turns out I had ended up with a bad sector on one of my drives. Rebooted, the the drive was marked as failed. (But by that time the drive had figured out that it was a bad sector and to remap it.) Reactivated the drive, waited a while for it to re-sync, and all was back to normal. No data loss! (And only minor hassle.) Robrt 2005-01-03T07:11:24+00:00 journal Gifts What do I want for the holidays/my birthday? <br> <br> <small>(My grandparents want to know.)</small> Robrt 2004-11-14T04:52:30+00:00 journal spam + virus stats <p> I should have been doing something productive last night, but instead I ran some analysis and aggregation against's caught spam mailboxes.</p><p>The end result, a lot of numbers, not enough pretty graphs. What I really want to do is put the data into <a href=""> RRDtool</a>, and update it regularly -- but properly configuring RRDtool to do fancy things is a black art I have not mastered yet.</p><p>In the end, we get a whole lot of spam and viruses every day. We get around the same number of messages -- but the viruses take up an order of magnitude more space. (And don't compress very well either.)</p><p>On the positive side, we're not passing this stuff on to the mailing lists or users. On the negative side, there's no sign of this tapering off. The spam level has stayed relatively constant for the past few months, although we've begun trapping a bunch more since we started using <a href="">SURBL</a>. Virus levels fluctuate widely.</p><p>If anyone is interested in playing with the data, let me know. I'd expect some pretty graphs in return.</p><p>I'd plug <a href="">National Shoot a Spammer Day</a>, but really it's the virus writers. Why can't they write small viruses? In some ways, the <a href=";tag=vtc.zdnn.pb"> latest MyDoom variant</a> is progress. In my book, it gets classified as spam.</p> Robrt 2004-11-14T04:28:46+00:00 journal When threads collide! <a href="">mod_auth_mysql</a> is not thread safe. This means it does not play well with Apache2's Worker MPM. <p> When two threads try and use the same database handle at the same time, bad things happen. Kaboom! </p><p> Temporary Workaround: set ThreadPerChild to 1. </p><p> Eventual Workaround: make it thread safe.</p> Robrt 2004-10-06T04:43:23+00:00 journal