Robrt's Journal http://use.perl.org/~Robrt/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 pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 Robrt's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~Robrt/journal/ HTTP/1.1 301 Moved Permanently http://use.perl.org/~Robrt/journal/33361?from=rss <p><tt>Location: <a href="http://blog.rbrt.com/">http://blog.rbrt.com</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 http://use.perl.org/~Robrt/journal/30439?from=rss <p>The perl.org 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 http://use.perl.org/~Robrt/journal/29498?from=rss <a href="http://www.google.com/">Google's</a> <a href="http://code.google.com/soc/">Summer of Code</a> is now <a href="http://code.google.com/soc/student_step1.html">accepting applications</a>. We've got a whole bunch of <a href="http://www.perl.org/advocacy/summerofcode/ideas.html">ideas</a> and <a href="http://www.perl.org/advocacy/summerofcode/">more</a>. Robrt 2006-05-03T04:53:17+00:00 journal Line Noise http://use.perl.org/~Robrt/journal/29497?from=rss 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 http://use.perl.org/~Robrt/journal/28981?from=rss LISP != perl, but Perl owes a lot to LISP. Here's two interesting origin of LISP papers:<ul> <li> <a href="http://www.paulgraham.com/rootsoflisp.html">Paul Graham's "The Roots of LISP"</a></li> <li> <a href="http://www-formal.stanford.edu/jmc/history/lisp/lisp.html">McCarthy's "History of LISP"</a></li> </ul> Robrt 2006-03-14T01:45:45+00:00 journal OSCON Deadline Approaches http://use.perl.org/~Robrt/journal/28659?from=rss Today (Monday) is the last day to submit your proposal (on time) for <a href="http://conference.perl.com/">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 http://use.perl.org/~Robrt/journal/28651?from=rss <p>At <a href="http://www.socallinuxexpo.com/">SCALE</a> today, I joined <a href="https://www.cacert.org/">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 xrl.us expansion http://use.perl.org/~Robrt/journal/28121?from=rss <code> perl -MLWP::Simple -pi.bak -e 's{(http://xrl.us/\w+)}{get("http://metamark.net/api/rest/simple?short_url=$1")<nobr>|<wbr></nobr> |$1}ige' </code> Robrt 2005-12-24T18:41:52+00:00 journal Vee! http://use.perl.org/~Robrt/journal/28113?from=rss Update: <p> At the <a href="http://conferences.oreillynet.com/os2005/">O'Reilly Open Source Conference</a> this year many of the speakers put money in a hat in order to get <a href="http://static.flickr.com/21/30441519_ed6f0cc230.jpg?v=0">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 http://use.perl.org/~Robrt/journal/27659?from=rss If you know about a 2006 perl related conference, please send me an email to robert (the thing that goes here) perl.org and I'll update the perl.org list of events. Robrt 2005-11-20T04:10:30+00:00 journal Off By One Error http://use.perl.org/~Robrt/journal/27439?from=rss 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 http://use.perl.org/~Robrt/journal/27437?from=rss 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="http://producingoss.com/">Producing Open Source Software - How to Run a Successful Free Software Project</a> (read online, <a href="http://www.amazon.com/exec/obidos/ASIN/0596007590/">Buy buy from Amazon</a>, <a href="http://www.oreilly.com/catalog/producingoss/">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! http://use.perl.org/~Robrt/journal/26956?from=rss Brian and Andrew of Ejelta LLC (creators of <a href="http://isbndb.com/">isbndb.com</a>) donated a blade server to perl.org. 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="http://www.rlx.com/">RLX</a> 300ex. <p> <a href="http://www.askask.com/">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.) http://use.perl.org/~Robrt/journal/26955?from=rss 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 http://use.perl.org/~Robrt/journal/26954?from=rss Go see <a href="http://www.serenitymovie.com/">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 http://use.perl.org/~Robrt/journal/26414?from=rss Jesse has snagged <a href="http://tim.oreilly.com/">Tim's</a> copy of <a href="http://xrl.us/rtbook/">Essential RT</a>. There's <a href="http://obra.livejournal.com/71251.html">photographic evidence.</a> Robrt 2005-08-22T03:13:55+00:00 journal Conference Dangers http://use.perl.org/~Robrt/journal/26132?from=rss <a href="http://use.perl.org/~acme/journal/26079?from=rss">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 http://use.perl.org/~Robrt/journal/25746?from=rss <p> <a href="http://use.perl.org/~speters/journal">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="http://www.oreilly.com/catalog/rtessentials/">RT Essentials</a>.</p> Robrt 2005-07-17T07:25:16+00:00 journal Room at the RT inn at OSCON http://use.perl.org/~Robrt/journal/25577?from=rss <p> Apparently there are still a few seats available for the <a href="http://conferences.oreillynet.com/cs/os2005/view/e_sess/6794">RT Tutorial</a> at <a href="http://conference.perl.com/">OSCON</a> this year. <a href="http://conferences.oreillynet.com/cs/os2005/create/ord_os05">Get them</a> while they're hot. </p><p> Everyone who has attended the class loves it. It's based on <a href="http://bestpractical.com/services/training.html">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 http://use.perl.org/~Robrt/journal/25363?from=rss Apparently <a href="http://use.perl.org/~merlyn/journal">some</a> <a href="http://www.stonehenge.com/merlyn/">one</a> actually uses <a href="http://search.cpan.org/search?query=Bundle%3A%3AEverything&amp;mode=module">Bundle::Everything</a>. So, I uploaded an updated version tonight. Robrt 2005-06-26T05:14:24+00:00 journal Label Maker http://use.perl.org/~Robrt/journal/25352?from=rss <p> The local Staples had some refurbished <a href="http://www.staples.com/Catalog/Browse/Sku.asp?PageType=1&amp;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!) http://use.perl.org/~Robrt/journal/25241?from=rss <p> You are going to <a href="http://conferences.oreillynet.com/os2005/index_new.csp">OSCON</a> this year, right?</p><p> You're coming to my talks? And hearing all the other great <a href="http://conferences.oreillynet.com/pub/w/38/speakers.html">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 http://use.perl.org/~Robrt/journal/24915?from=rss It is long past time to redo learn.perl.org. <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 perl.org</tt> with your ideas.</p> Robrt 2005-05-27T20:30:17+00:00 journal noc log http://use.perl.org/~Robrt/journal/24587?from=rss For those of you who are looking for information on perl.org developments, you probably want to look at the <a href="http://log.perl.org/">noc log</a>. Robrt 2005-05-09T00:50:00+00:00 journal YACTABGM http://use.perl.org/~Robrt/journal/23529?from=rss Yet another cool thing about <a href="http://maps.google.com/">Google Maps</a>...<p> You can misspell street names, and it's still happy. <a href="http://maps.google.com/?q=3731%20wlshr%20los%20angeles">Try it.</a></p> Robrt 2005-03-07T06:01:01+00:00 journal "Geeky Music" http://use.perl.org/~Robrt/journal/23271?from=rss These two songs recently came across a programming language list... <ul> <li> <a href="http://www.prometheus-music.com/audio/eternalflame.mp3">eternalflame.mp3</a></li> <li> <a href="http://www.seas.upenn.edu/~geoffw/longest-path.mp3">longest-path.mp3</a></li> </ul> Robrt 2005-02-20T18:20:38+00:00 journal RAID rules http://use.perl.org/~Robrt/journal/22544?from=rss 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 http://use.perl.org/~Robrt/journal/21839?from=rss 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 perl.org: spam + virus stats http://use.perl.org/~Robrt/journal/21838?from=rss <p> I should have been doing something productive last night, but instead I ran some analysis and aggregation against perl.org'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="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/"> 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 @cpan.org 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="http://www.surbl.org/">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="http://sagar.org/spam/">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="http://www.virusthreatcenter.com/article.aspx?articleId=160&amp;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! http://use.perl.org/~Robrt/journal/21207?from=rss <a href="http://modauthmysql.sourceforge.net/">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