Elthek's Journal http://use.perl.org/~Elthek/journal/ Elthek'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:27:14+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 Elthek's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~Elthek/journal/ Banking. http://use.perl.org/~Elthek/journal/8493?from=rss <p>CPAN module of right now: <a href="http://search.cpan.org/author/CHRIS/Finance-Bank-HSBC-1.01/HSBC.pm">Finance::Bank::HSBC</a>.</p><p><a href="http://search.cpan.org/author/PETDANCE/WWW-Mechanize-0.31/lib/WWW/Mechanize.pm">WWW::Mechanize</a> is gorgeous, and got the bulk of the screen-scraping done in under fifty lines of code. Much kudos to <a href="http://use.perl.org/~petdance/journal/">Petdance</a> (and Skud, as I hear she started things off) for writing it.</p><p>Life otherwise fine. I'm working on the dissertation for my degree, which is modifying a Java compiler (Jikes, written in C++) to target That Evil<nobr> <wbr></nobr>.NET Thing, using a C# assembler (<code>System.Reflection.Emit</code>). I figure I can't be called on not having enough buzzwords on my CV ever again.</p> Elthek 2002-10-21T15:24:14+00:00 journal ICFP http://use.perl.org/~Elthek/journal/7529?from=rss I entered the <a href="http://icfpcontest.cse.ogi.edu/">ICFP Programming Contest</a> with <a href="http://use.perl.org/~acme/journal">acme</a> this year. It was fun. We have a <a href="http://printf.net/icfp.html">page</a> describing how our bot works, and it includes some funky animated gifs of it in action against some of the other bots. Yay, code. Elthek 2002-09-04T23:10:14+00:00 journal base::Glob http://use.perl.org/~Elthek/journal/7377?from=rss <blockquote><div><p> <code>package Class::Bar; sub method {2};<br> package Nomatch::Foo; sub method {3};<br> package main;<br> use base::Glob qw(Class::*);<br> print main-&gt;method(); # prints 2</code></p></div> </blockquote><p> See what going to see Damian talk does to a geek? </p><p> I've spent all of this week at work in full-time lectures from Damian. He only started to hurt my brane at the end of today; however, he gave his "Life, the Universe and Everything" talk to London.pm last night - I haven't felt such a feeling of interconnectedness since first reading _Goedel Escher Bach_. He used <code>DFA::Cellular</code>, <code>Quantum::Superpositions</code> and, um, Klingon, to solve <a href="http://www.auburn.edu/~smith01/notes/maxdem.htm">Maxwell's Demon</a>. Yow. </p><p> Sleeptime now. <code>base::Glob</code> on the CPAN for the above. It's java-style adding of IS-As through globs on packages in the symbol table.</p> Elthek 2002-08-29T00:21:23+00:00 journal Tech meet http://use.perl.org/~Elthek/journal/6465?from=rss <blockquote><div><p> <i>So, here's the scene. You turn up to OSCON. You're talking to Larry and Damian about your latest module, <code>Acme::Jam</code>, they're agreeing and telling you how cool you are. You can't put a foot wrong. You bounce down to the front of the auditorium to begin your talk, go full-screen and..</i></p><p><i><nobr> <wbr></nobr>..it's too late. They've seen the Powerpoint window. Larry sighs, and you can see Mark-Jason Dominus mouth "re-tard-o" at you from the back.<br></i></p></div> </blockquote><p>I gave a talk on MagicPoint to london.pm tonight. I think it went okay. Slides and source available <a href="http://printf.net/mgp/">here</a>.</p> Elthek 2002-07-18T23:25:14+00:00 journal Filehandle fun. http://use.perl.org/~Elthek/journal/6071?from=rss <p><code>void:chris~ % perl -e 'use IO::Timestamp::STDERR; print STDERR "pony!\n"'<br>[Sat Jun 29 20:08:58 2002]: pony!</code></p><p><code>void:chris~ % perl -e 'use IO::Timestamp; tie *FD, 'IO::Timestamp'; print FD "pony!\n"'<br>[Sat Jun 29 20:08:40 2002]: pony!</code></p><p>Well, I'm sure someone somewhere will find it useful, especially with PerlModule inside Apache. If this is you, let me know and I'll do the PAUSE thing. Maybe. I'd rather have hidden the ties and had 'use IO::Timestamp *FD;', but there's perl brokenness when throwing tied FDs around and I don't think it can be done. Living with <a href="http://use.perl.org/~richardc/journal/">richardc</a> has its advantages, in that he offered to get <code>Devel::Caller</code> to be able to resolve the filehandles and allow the tie to go through to them. People who understand opcode mangling plus-plus.</p><p>I start at MSDW on Monday. I've less than two days of non-suitdom left.</p> Elthek 2002-06-29T19:17:15+00:00 journal Exams, Rach 3, Chess, Regexen. http://use.perl.org/~Elthek/journal/5372?from=rss <p>So, I've finished ex**s for the year. I've got a month of relaxing before I start working for The Man.</p><p>I saw Nelson Goerner and the BBC Philharmonic play the Rach 3 recently, which was wonderful. I'm going to miss having piano access (the University has a lovely grand piano in one of the lecture theatres) over the Summer.</p><p>What to do with the next month? Two things:</p><ul> <li> <b>Get better at chess</b> - I'm out of practice. Hopefully FICS will get me back in shape. I'd also like to try and research some midgames in the Modern; I've been playing (and winning, thankfully) with it lately, and my books don't cover many of the lines, though I've more on the way. Amazon is my co-pilot.</li><li> <b>Hack teh Regexps@$!!</b> - I'd also like to sit alone in a dark room for a few days and come out with named backreferences for regexps for the perl5 re engine, as Python has - viz.<nobr> <wbr></nobr><code>/(?P&lt;word&gt;\b\w+)\s+(?P=word)/</code> and repeated words; <a href="http://use.perl.org/~robin/journal">Robin</a> talked about these recently and made a lot of sense.</li></ul><p>Congrats, of course, to Jarkko et al for 5.8.0-RC1. In other news, <a href="http://printf.net/bizarro.jpg">this cartoon</a> (entirely worksafe) made me giggle.</p> Elthek 2002-06-02T19:56:54+00:00 journal .plan http://use.perl.org/~Elthek/journal/5175?from=rss <p>Plan for the next few months:[1]</p><ul> <li>30th May: Finish the year at <a href="http://www.umist.ac.uk/">UMIST</a>, preferably without failing it.</li><li>~15th June: Move to London, move in with <a href="http://use.perl.org/~richardc/">richardc</a> and <a href="http://use.perl.org/~mstevens/">mstevens</a>. Attend many london.pm meets, drink beer, be merry.</li><li>1st July: Start an internship with <a href="http://www.ms.com/">Morgan Stanley</a>, as an Analyst in the I.T. dept. Write shiny Perl code.</li><li>1st September: Head back to UMIST for the start of my final year..</li></ul><p>There.</p><p>[1]: Also serving as a 'who-Elthek-is', since I have not the tuits to write a bio at the moment. See <a href="http://printf.net/">http://printf.net/</a> if you care.</p> Elthek 2002-05-23T14:26:53+00:00 journal When JAPHs Attack. http://use.perl.org/~Elthek/journal/5174?from=rss <p>I posted this to london.pm yesterday:</p><p><code> chris@lexis:~$ perl -le'@a=($^O eq 'darwin')?qw(100453 81289 9159):qw<br>(23152 19246 2040);while(&lt;&gt;){chomp;push @b,$_ if grep {$.==$_}@a}push<br>@b,$^X;print ucfirst join(" ",@b[2,0,3,1]).","'&lt;/usr/share/dict/words<br></code><br>It seems to be even less portable than I'd thought; it works on OS X and all versions of Redhat and Mandrake that I can find, but.. nothing else.</p><p>Oops. Next up, ripping the text straight from perlfaq1..<nobr> <wbr></nobr>;-)</p> Elthek 2002-05-23T14:08:30+00:00 journal