clkao's Journal http://use.perl.org/~clkao/journal/ clkao'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:09:18+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 clkao's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~clkao/journal/ For people reading jobs.perl.org http://use.perl.org/~clkao/journal/34575?from=rss I recently posted <a href="http://jobs.perl.org/job/6855">a job on jobs.perl.org</a>. In the post the applicants are asked to send along their best and worst code. I got a couple of cv without those. Dear people, if you fail to read the post carefully or simply ignore the request, why shouldn't I ignore your cv? clkao 2007-10-01T02:44:22+00:00 journal Hate software http://use.perl.org/~clkao/journal/31772?from=rss A couple of months ago, I shopped at <a href="http://www.nealsyardremedies.com/">Neal's Yard Remedies</a> which I like at a lot, except the amusing <a href="http://flickr.com/photos/clkao/243411387/">receipt I got</a>. <p> I went there again today. The girl at the shop came to me and asked: "Sir, can I offer you a cup of tea while you are browsing" which was very sweet. </p><p> Got the stuff I wanted and paid. "Receipt in the bag?" she asked. </p><p>"Can I take a look?" </p><p> Guess what? It's still the fscked pound sign, plus an item I bought apparently became "Rose &amp;amp;..." </p><p> After some digging, apparently they are using the whole integrated service provided by <a href="http://www.cybertill.co.uk/">Cyertill</a>. Does anyone know people who work there?</p> clkao 2006-12-01T02:38:32+00:00 journal Devel::Cover mini-hackathon http://use.perl.org/~clkao/journal/30432?from=rss <p> <a href="http://www.bestpractical.com/">Best Practical</a> is sponsoring a <a href="http://search.cpan.org/dist/Devel-Cover/">Devel::Cover</a> hackathon with Paul Johnson next Tuesday in London. </p><p>We've already got a long list and lots to do, but would love to hear about what you want from Devel::Cover. </p><p>If you are around London and would like to attend, please send mail to clkao DooT bestpractical.com. Note that the hackathon is during work hours, so you might need to make it a work-excuse to come! </p><p>In any case, we should be around #perl-qa during the hackathon, see you there! </p><p> <b>UPDATE: </b> Devel::Cover 0.56 is released! See <a href="http://search.cpan.org/src/PJCJ/Devel-Cover-0.56/CHANGES">what we've made</a> <a href="http://flickr.com/photos/clkao/tags/develcover">during the hackathon!</a></p> clkao 2006-07-26T13:42:32+00:00 journal v6-alpha 0.011 released - help wanted http://use.perl.org/~clkao/journal/30407?from=rss <p>Some power of Mystery dragged me into hacking v6.pm over the weekend. It now <a href="http://feather.perl6.nl/~clkao/smoke-perl5.html">passes 785 tests</a> from the pugs test suite. </p><p>It's a very interesting process to make the tests pass, and in fact it's quite trivial most of the time. It is also a great chance to learn Perl6 - by implementing it! </p><p>If you have a few spare hours and want to have some fun, in the meantime helping out the perl6 project and reusing your perl5 skills, you can start with the parsed but failed tests - they have perl5 version of the perl6 code generated in the<nobr> <wbr></nobr>.tc file. To run the test, checkout the latest <a href="http://pugscode.org/">pugs</a> and simply do</p><blockquote><div><p> make build_perl5; perl util/src_to_blib.pl<br> util/prove6 t/01-sanity</p></div> </blockquote><p> There might be a few modules missing, install them from CPAN. You will see the tc files after you run the tests. I think subroutines/ </p><p>you can also see the test output at the <a href="http://feather.perl6.nl/~clkao/v6-smoke.out">output</a>, and identify what fails to parse at all. Starting with t/statements/ might be a good idea. </p><p>And, of course, get on irc.freenode.net #perl6, see you there!</p> clkao 2006-07-25T02:23:42+00:00 journal fun with microperl http://use.perl.org/~clkao/journal/29353?from=rss <p>I got dragged into an <a href="http://www.porta2030.net/">art project</a> for helping out firefighting messaging between some <a href="http://usa.asus.com/products4.aspx?l1=12&amp;l2=44&amp;l3=0&amp;model=460&amp;modelmenu=1">small mipsel devices</a> running linux. </p><p> The distribution comes with <a href="http://search.cpan.org/src/NWCLARK/perl-5.8.8/README.micro">microperl</a> in its package system, however it wasn't built with select() by default, which makes it pretty much useless for writing network applications. So I was hoping to cross-compile standard perl and modules to mips, but it seemed really painful. I gave up and ended up just enabling HAS_SELECT for the cross-compiled microperl. </p><p> Now I have to use Socket.pm to actually do the networking bit. It turned out lots of crucial bits are written in xs, so I reimplemented them in pure perl. (Ya, I know it's bad to pack platform-dependent structure manually) </p><p> So I have a tiny application controlling a local led display and buttons IO device, as well as broadcasting and processing events over network, all in a few hours after I get the microperl and socket working! </p><p> Anyway, it's quite fun hacking and I am looking forward to the show itself!</p> clkao 2006-04-17T22:00:51+00:00 journal svl http://use.perl.org/~clkao/journal/25035?from=rss <a href="http://crucially.typepad.com/">sky</a> and I decided to have a small hackathon over the weekend. Well, we decided to write a tool to help hackathon - svl. so it's p2p helper for svk that makes use of Bonjour. So you walk into a room full of crazy people and decide to hack on something, you can start straight away without setting a repository somewhere else in the world. We've got discover and sharing working already after a few hours of hacking. sleep&amp; clkao 2005-06-03T23:41:18+00:00 journal use SVN::Core--Perl5 http://use.perl.org/~clkao/journal/24897?from=rss <p>Autrijus and I have been hacking a bit. The following code now works:</p><p>use SVN::Core--Perl5;<br>use SVN::Client--Perl5;</p><p>say SVN::Core.VERSION;<br>SVN::Client.new.log('http://svn.openfoundry.org/pugs' , 'HEAD', 'HEAD', 0, 1,<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sub { say join(',', @_) });</p><p>It shows you the latest commit of pugs.</p><p>What's the big deal? Well,</p><ul><li>It's Perl6</li><li>It uses an XS Perl5 module, SVN::Core</li><li>The method (log) has a callback written in Perl6.</li></ul><p>That means you can start using Perl6 to write code gluing cpan modules.</p> clkao 2005-05-27T02:45:49+00:00 journal Perl http://use.perl.org/~clkao/journal/23309?from=rss I got a bit annoyed or rather upset with how <a href="http://svk.elixus.org/">software I wrote</a> <a href="http://bazaar-ng.org/svk.html">is</a> <a href="http://superbeast.ucsd.edu/~landry/ArX/codecon/img22.html">evaluated</a> regarding Perl, despite how <a href="http://superbeast.ucsd.edu/~landry/ArX/codecon/img34.html">well</a> it <a href="http://superbeast.ucsd.edu/~landry/ArX/codecon/img33.html">performs</a>, and how <a href="http://wagner.elixus.org/~clkao/svk-cover/">careful</a> it is written. What can I say? ETOOMUCHFUD. I should probably quit hacking for more <a href="http://210.59.224.194/~happyman/ids/index.cgi?mode=album&amp;album=./%2302_%A6A%A5%CD%AF%E0%B0%AA">hiking</a>. clkao 2005-02-22T17:20:56+00:00 journal perl repository http://use.perl.org/~clkao/journal/21349?from=rss <p>It has never been so easy to get the source of Perl, with development history. I have managed to fix a few other vcp bugs and mirrored the perl repository from Perforce at activestate with svk.</p><p>Web interface:</p><p>http://svn.clkao.org/svnweb/perl/log/p4-trunk/<br>http://svn.clkao.org/svnweb/perl/log/p4-5.8/</p><p>Repository at svn://svn.clkao.org/perl/p4-trunk/</p><p>They will be kept synced daily. I'll see if perl.org is interested in hosting it once the new svk/svn::mirror are released.</p> clkao 2004-10-15T07:07:45+00:00 journal svk for translation http://use.perl.org/~clkao/journal/20819?from=rss Yes, <a href="http://svk.elixus.org/">svk</a> again. But not about version control for your code this time. It's about using it for <a href="http://www.onlamp.com/pub/a/onlamp/2004/09/09/svk_translation.html">document translation</a>, with some cheesy screenshots. clkao 2004-09-10T13:11:19+00:00 journal Gifts http://use.perl.org/~clkao/journal/20725?from=rss <p> So it's my birthday, and I want to give everyone birthday presents. I've long wanted to do so to urge people give away gifts on their own birtday, so you can receive things all over the year but just have to prepare once. </p><p> OK, so the gift for you is the first beta release of svk, which is considered ready for general use. I hope this helps your productivity. Also there's bonus gifts for people developing <a href="http://lkml.org/lkml/2004/8/21/58">Linux</a> or <a href="http://lists.freebsd.org/pipermail/freebsd-hackers/2004-September/008112.html">FreeBSD</a> </p><p> And if you like it, please feel free to send me gifts on your birthday too.<nobr> <wbr></nobr>:)</p> clkao 2004-09-04T12:33:11+00:00 journal automated build testing http://use.perl.org/~clkao/journal/20355?from=rss <p>So there is whole lot of dependencies that are either static or actively moving along with svk. Mainly Perl 5.8.[0-5], Subversion 1.[01].x branches as well as trunk. I would like to do automated building on the combinations, and see if any of them breaks trunk of SVN::Mirror and svk. testautobuild seems to be the closest, but I am not sure if it could do a chain of build tests after skimming the sample configuration file.</p><p>Anyone has experiences with similar test requirement?</p> clkao 2004-08-11T07:31:57+00:00 journal svk alpha coming soon http://use.perl.org/~clkao/journal/17323?from=rss So the most <a href="http://svk.elixus.org/index.cgi?MergeFeatures">non-trivial features</a> are finished in <a href="http://svk.elixus.org/">svk</a>. I'll be releasing 0.08 as alpha, featuring advanced merging facilities for distributed branches. Stay tuned.. clkao 2004-02-10T11:02:56+00:00 journal dvorak http://use.perl.org/~clkao/journal/14108?from=rss I cut my finger on Sunday. hopefully it will be fine within two weeks. so I decided to learn single-handed dvorak.<blockquote><div><p> <i>once upon a time we all type slowly....</i></p></div> </blockquote> clkao 2003-08-14T00:47:53+00:00 journal subversion perl bindings http://use.perl.org/~clkao/journal/13849?from=rss <p>looks like i'm <a href="http://subversion.tigris.org/issues/show_bug.cgi?id=1437">getting</a> commit access for the <a href="http://svn.elixus.org/member/clkao/svn-perl/">perl bindings</a> of subversion. </p><p>the subversion internals are pretty clean, but the api looks even cleaner when using perl:</p><blockquote><div><p> <code> my $ra = SVN::Ra-&gt;new($url);<br> $ra-&gt;get_logs (['/'], $fromrev, $torev, $getpath, $strict, \&amp;receiver); </code></p></div> </blockquote><p> yes I read <a href="http://use.perl.org/~sky/journal/13809">sky's journal</a>. I had some very evil plan about subversion few months ago, and it seems getting closer with the perl bindings support now. I'll post some design notes later. </p><p> also I don't know if it's just me who noticed that perl folks tend to think subversion people are on various of drug (someone said so on irc), and the subversion people don't really appreicate perl.</p> clkao 2003-08-01T19:24:40+00:00 journal