user-pic

rhesa

  • Commented on Identifying CPAN distributions you could help out with
    With regards to CGI, the latest release isn't from 2001, but from a month ago. MetaCPAN shows the github repo for it, so contributing to CGI is easy....
  • Commented on Thread pool for a boss/worker model
    Another suggestion: beanstalkd and the Perl module Beanstalk::Client. I use this by forking off a number of workers per machine. Then I add more machines as load increases. Having isolated processes that only talk to the beanstalkd server means I...
  • Posted Method::Signatures::Simple 1.01 released to CPAN to rhesa

    I’m pleased to announce version 1.01 of Method::Signatures::Simple. It provides a little sugar for writing methods and functions. Chip Salzenberg requested the addition of a function keyword with the same signature…

  • Commented on SSH Can Do That? Productivity Tips for Working with Remote Servers
    I like using autossh to persist and share ssh connections. see http://aaroncrane.co.uk/2008/04/ssh_faster/ for a good writeup....
  • Commented on Hash::ConstantHash
    I think the reason you didn't find anything on CPAN is that this is usually called "consistent hashing". There are at least two on CPAN that I know of: Set::ConsistentHash, Algorithm::ConsistentHash::Ketama. Furthermore, libmemcached has a couple of consistent hashing algorithms...
  • Commented on Method Extraction in Vim
    I've been using a script by Jesse Vincent, ever since Piers Cawley mentioned it. @Aristotle, I see you commented on that post. Is this the script you mean?...
  • Commented on Perl101: Encapsulation via Protected Abstract Methods
    Thought I'd whip up an example using MooseX::Declare: https://github.com/rhesa/example-encapsulation It doesn't actually use subclassing. I've chosen to make the abstract Employee a role. The input and output validation is done using types. I'd like to know if my approach makes...
  • Commented on Google Talk with Perl
    I have no idea where I found this solution, but it works fine: $conn->Connect( ... ); # as above # change hostname on session my $sid = $conn->{SESSION}{id}; $conn->{STREAM}{SIDS}{$sid}{hostname} = 'gmail.com'; $conn->AuthSend( ... ); # as above It doesn't read...
  • Commented on Beauty
    You don't really need the arrow: $actions{$chosen}(@inputs); works just like $AoH[1]{foo} vs. $AoH[1]->{foo}. The arrow does provide a clue that you're calling a subroutine, so I leave the arrow in, while omitting it with nested data structures....
  • Commented on Hello
    perl -E 'say "Hi"'...
  • Commented on Migration Issues
    I signed up on the 9th (with username "rhesa"), and wanted to see if I could post something today. I got a "user not found" error, so I signed up again with the same username, but it turns out I'm...
Subscribe to feed Recent Actions from rhesa

Subscribe to feed Responses to Comments from rhesa

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.