kasei's Journal http://use.perl.org/~kasei/journal/ kasei'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:24:06+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 kasei's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~kasei/journal/ Another year... http://use.perl.org/~kasei/journal/30374?from=rss <p>Almost a year since I've posted here. Sigh.</p><p>I spent quite a bit of the last year helping to write and edit a textbook for bioinformatics in beginning Perl. It should hopefully be published sometime later this year. The two authors I was working with were very open to my suggestions on getting the code into shape and keeping to Perl-ish idioms.</p><p>After writing and many rounds of editing, and with a looming deadline, they weren't as thrilled with my suggestion for getting a draft copy to Boston.pm. The reason for this was partly justified as Perl Mongers, like any technical group, not being the target audience for the textbook (something that came up quite a bit in the review process where skilled programmers and Computer Science professors griped about things that arguably aren't relevant to bioinformaticists who are just learning to program). I think having the book reviewed by the Perl Mongers would have been a good thing, so this was a bit disheartening.</p><p>Most of my time this past year not spent on the book was spent working on <a href="http://search.cpan.org/dist/RDF-Query/">RDF::Query</a>, my pure-perl <a href="http://www.w3.org/TR/rdf-sparql-query/">SPARQL</a> implementation for querying RDF data. Perl is an underdog language in the Semantic Web world, but there seem to be a few people working on keeping Perl able to wrangle RDF easily and efficiently.</p><p>Most of my recent RDF::Query work has been on compiling SPARQL queries to SQL so that the runtime of complex queries doesn't explode on large data sets. This often increases the speed of queries by an order of magnitude or more, and puts the speed of RDF::Query ahead of things like <a href="http://librdf.org/">Redland</a>, while maintaining the flexibility of user-defined query functions.</p><p>My most recent work has been on combining user-defined query functions with the underlying database features so that I can use PostGIS spatial functions directly from SPARQL queries. I believe this has great potential for using SPARQL to make location-aware queries of such things as photos, maps, restaurant reviews, etc. These queries are espeically interesting as a SPARQL endpoint can emit the query results (via XSLT) as RSS or KML which can be used as a live feed of data in applications such as Google Earth and news aggregators. Anyway, lots of fun to be had with that.</p> kasei 2006-07-21T20:20:40+00:00 journal Blessing http://use.perl.org/~kasei/journal/26041?from=rss <p>I'm not sure I like the fact that this works:</p><p> <code> bless\%); sub a { print pop } (\%))-&gt;a('hello'); </code> </p><p>The fact that the blessing sticks around after the object reference is gone just seems strange.</p> kasei 2005-08-02T19:34:59+00:00 journal Returning... http://use.perl.org/~kasei/journal/25911?from=rss <p>Wow. It's been a while since I logged in here. Just over three years, in fact. I've been reading the new posts and journals in an aggregator during that time, but I quite fell out of the practice of posting updates of my own. Part of that may have been due to the burnout of trying to cram an understanding of the perl internals and compiler suite into my head in too short a time.</p><p>In the mean time, I've been doing quite a bit of work on <a href="http://esw.w3.org/topic/SimplePhotoAnnotation">photo annotation</a> in RDF, <a href="http://kasei.us/archives/categories/projects/rdf-query/">implementing</a> a <a href="http://www.w3.org/TR/rdf-sparql-query/">SPARQL</a> query engine in perl, and <a href="http://sunsite.informatik.rwth-aachen.de/Publications/CEUR-WS//Vol-135/paper5.pdf">RDF-enabling a weblogging system</a>. Oh, and doing quite a bit of traveling and taking lots of photos.</p><p>I'm coming back, partly because I miss being involved (in whatever small way) in the perl community, and partly to help some friends. I've been asked to help out on a book being written that will involve lots of perl, to make sure it sits well with the perl community, and to ensure the programming aspects follow best practices and good style. In this, I hope to be able to leverage support from a community such as use Perl, and hope some of you might be so kind as to provide feedback and support when I need it. Anyway, I'll post more about that project as it unfolds.</p><p>So, it feels good to be back, and I hope this time I'll stick around.</p> kasei 2005-07-27T21:53:55+00:00 journal B::Generate http://use.perl.org/~kasei/journal/6533?from=rss <p>This just in from Simon (Regarding my <a href="http://use.perl.org/~kasei/journal/6336">issues</a> with creating a new CV with B::Generate):</p><blockquote><div><p> <code>B::CV-&gt;newsub_simple("mysub", $root);</code> </p><p>should do the trick.</p></div> </blockquote><p>with Arthur's response:</p><blockquote><div><p> Can I download you brain somewhere<nobr> <wbr></nobr>:-) </p></div> </blockquote><p>Good call. Thanks Simon!</p> kasei 2002-07-22T09:58:36+00:00 journal 5150 http://use.perl.org/~kasei/journal/6466?from=rss <p> Does anybody have any good ideas for what I can do with an <a href="http://www-1.ibm.com/ibm/history/catalog/itemdetail_57.html">IBM 5150</a> that I just rescued? It's got an enormous external 20 meg hard drive (woohoo!), an ubercool monochrome phosphorus monitor, and both 5.25" AND 3.5" inch disk drives! Unfortunately the original keyboard (one of those nice, noise ones - "click clack") got replaced with a new(er) quiet one<nobr> <wbr></nobr>:( </p><p> Right now it joins the 11 other computers in my growing collection of computer hardware. Most of them seem to be just <i>one</i> part away from functioning; the Cube needs an optical/CD drive, the sparc stations need two hard drives and one video card, the alpha needs a 2.5" IDE drive (I don't think these are made anymore - all I really need is the 2.5" IDE <i>cable</i>!). Most of the macs are in working order, thank goodness, as are the newer intel machines. Ahhhhh... so many computers, so little (time|money). </p> kasei 2002-07-19T02:16:42+00:00 journal Random thought... http://use.perl.org/~kasei/journal/6440?from=rss <p>Ok, I just had a thought... are there any screen capture programs (for any OS) that instead of emitting an image, emit a (Photoshop|Gimp) file with layers for each discrete UI element (Window, Toolbar, Dock, Mouse, Menu [for a mac], etc.)? It would be cool to open up this file, and be able to drag windows around, and re-organize a screen-shot, just like moving windows around<nobr> <wbr></nobr>:)</p><p>I'm not sure how much actual *use* I'd have for something like this, but it sure would be nifty!</p> kasei 2002-07-18T07:58:54+00:00 journal back to use.perl http://use.perl.org/~kasei/journal/6336?from=rss <p> Ok, so it's been a while. <a href="http://use.perl.org/~gnat/">gnat</a>'s <a href="http://use.perl.org/~gnat/journal/6315">latest journal</a> mentions me thusly: "the last part of that list is people who haven't updated their journals in months," so it's probably time to update<nobr> <wbr></nobr>:) </p><p> The reason I found myself not posting to use.perl as often as I'd like (or as often as I posted to the quasi-blog on my website) was that almost every entry had entirely nothing to do with perl. Other people may find that acceptable, but I always felt a little strange about posting to use.perl about everything *but* perl. </p><p> But with my server MIA for the last week and a half (zoidberg, where are you!), I suppose I can just start puting my ramblings on use.perl again. </p><p> On the perl front, I've been wrestling with <a href="http://search.cpan.org/search?dist=B-Generate">B::Generate</a> (finally under a threading perl - thanks Arthur!), and am having a wonderful time causing segfaults from perl-land. No, really. It's great!<nobr> <wbr></nobr>... I mean, it's <i>better</i> when it doesn't segfault, but even the segfaults are fun<nobr> <wbr></nobr>:) Anyway, I can't seem to figure out how to create a new CV with B::Generate - can this be done? It seems like I should be able to just instantiate a B::CV object and set the root and start ops, but B::Generate doesn't seem to provide a constructor for B::CV. Has anyone done this, or know how to do this? </p> kasei 2002-07-14T01:06:47+00:00 journal OSX CLI integration http://use.perl.org/~kasei/journal/4531?from=rss I love Terminal under OSX. I just wish it was easier to integrate the use of the Terminal with other applications. For example, I've got a finder toolbar scriptlet that starts a GraphicConverter slideshow with all images in the current directory. Now how do I start that from the Terminal? It's not as easy as I'd hope.<br> <br> On a related note, this silly bit saves me <b>so</b> much time:<br>&nbsp;&nbsp;<code>alias finder "open -a Finder"</code> <br>:) kasei 2002-04-29T17:26:06+00:00 journal Loathe RedHat http://use.perl.org/~kasei/journal/3143?from=rss After that mysterious problem that took down my computer some time ago, I was convinced to install anything but RedHat (RPM dependency hell being all too familiar to me on this particular machine). However, as I proceeded through several other operating systems, I found (quite to my dismay) that RedHat seems to be the only one that likes the combination of my video card, monitor, and mouse to be able to run X without a tremendous effort. Neither Debian (potato and woody), nor Free or OpenBSD would show me any love.<br> <br> Being overloaded as it is with school work (genomics, thesis, and all the other odds and ends), I couldn't find time to determine quite <i>why</i> none of the other OSes would give me a simple working X install, but alas, none would.<br> <br> The one exception to this, though not involving X specifically, was the wonderful BeOS (yow - dano rocks on this box). This is such a beautiful (both technically and in interface) OS, that it pains me to think that such a work could go so amazingly under appreciated<nobr> <wbr></nobr>... Unfortunately the<nobr> <wbr></nobr>/dev/random driver needed to use ssh sporatically causes the input_server to hang. Oh well.<br> <br> So it's back to my nemesis RedHat for the time being, because at this point, getting things done is probably more important than matters of taste.<br> <br> It's very nice to be back on a functioning development box; And to be able to use MySQL, PostgreSQL <i>and</i> Sybase (not to mention that super-neat <a href="http://use.perl.org/~Matts/journal/3042">SQLite</a>) all on one box (after developing under OSX for quite some time) is such a joy! So it is that work continues on the rewritten version 2 of <a href="http://search.cpan.org/search?dist=BingoX">BingoX</a> (after much pressuring from Wonko).<br> <br> Right... now it's back to the Philosophy.<br> <br> (on the playlist lately are <i>Handbags and Gladrags</i> by Stereophonics, and the <i>Am&eacute;lie</i> soundtrack, of which I can't seem to get enough) kasei 2002-02-27T03:12:12+00:00 journal genomics http://use.perl.org/~kasei/journal/2742?from=rss Back at school, I'm sneaking Perl into the mix at the <a href="http://genomics.wheatonma.edu/">Genomics project</a> here. Everything I do this semester on my "Genomics of the Regulatory Regions of Bacterial Flagellar and Motor Genes" project will be in Perl.<br> <br> Perl is already set (any day now) to go live managing some back end jobs for the existing <a href="http://genomics.wheatoncollege.edu/cgi-bin/lexicon.exe">Motif Lexicon</a> for the Project - linking user searches with data mined from the <a href="http://www.ncbi.nlm.nih.gov/">NCBI</a> <a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMed">PubMed</a> abstract database. Unfortunately the rest of the lexicon project is a big heaping mess of Visual C++ code implementing CGIs under IIS. CGIs<nobr> <wbr></nobr>... In C++! Thousands of lines of code waiting to be replaced by '<tt>use CGI;</tt>'. Or better yet, to be replaced by a mod_perl handler - Mmmmm... tasty... kasei 2002-02-09T19:42:38+00:00 journal rattle of death http://use.perl.org/~kasei/journal/2565?from=rss It sucks when one of the CPU fans gives off a death rattle, making it impossible to sleep, and letting the CPU overheat. It sucks even more when the primary IDE hard drive causes a kernel panic the next morning. Bad drives suck... but I'm able to boot from SCSI, and fsck the disk with no problems... it sure *seems* to be working. So pulling things that are important off of IDE to the SCSI drive seems in order. kernel panic. reboot. retry. kernel-panic. reboot. retry. ok. look through rest of drive for anything else important. kernel panic. sigh. pull power cord. Maybe a bad IDE controller? That would suck because it's onboard.<br> <br> Where do you put 100 gigs of media files when the computer with the cd-burner is the one on its death bed? Hmmm... that assumes I can pull all of that media off of the drive which is looking more and more unlikely.<br> <br> And I was going to do perl work today, too.<br> <br> Suck. kasei 2002-01-31T21:40:32+00:00 journal Page Parsers http://use.perl.org/~kasei/journal/2166?from=rss There were some slight mumblings on the Apache::XPP list yesterday... I'm a bit surprised, but somewhat glad to see that people are actually using XPP - it's been about 18 months since I worked on it (during the days when I was paid to do open source), and the mailing list is typically quite; I'm glad that I can maintain it for people who are using it, and apply patches that are sent in.<br> <br> Who was it who said (in a use Perl journal I think) that page parsers were one of those things which everybody has written. It's funny because it's true - when XPP was first written there were very few page parsers available, none of which were as minimal as what we needed. As time went on, however, XPP grew bigger, and the reasons for developing it were mostly the time investment and existing projects using it, since it grew closer and closer to other parsers with each revision. Ah well - I still use it (I helped design it, so it fits the way I think very closely).<br> <br> In the OSX world, I downloaded and tried iPhoto yesterday. Maybe I just don't get it, but it seems like a pretty poor piece of software. There are so many cool things that it <i>could</i> do, but I find that most of it (after about an hour of use) is just unintuitive. Maybe it's time for an open-source replacement... kasei 2002-01-16T03:34:47+00:00 journal I admit... http://use.perl.org/~kasei/journal/2078?from=rss <p>use Perl has taken over my life! I find myself reading the journals more frequently than just about any other website. Ah well, I suppose there are worse things I could be doing with my time<nobr> <wbr></nobr>;) So, like everybody else, I thought it best just to start a journal of my very own after lurking for so very long.</p><p>In other news, propagating to CPAN is a Math::RandomOrg module which will give you real randomness from the random.org server. Kindof a clunky interface at the moment, but the functionality is there...</p> kasei 2002-01-12T12:44:57+00:00 journal