rhesa
Recent Actions
-
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...
Comment Threads
-
kustodian commented on
SSH Can Do That? Productivity Tips for Working with Remote Servers
Great article, so many useful tips for.
One small suggestion. I wouldn't recommend enabling ForwardAgent in your .ssh/config, since that could be a security risk if you connect to a malicious host. I would suggest that you use ssh -A when you need it, or enable ForwardAgent just for specific hosts.
-
Smylers commented on
SSH Can Do That? Productivity Tips for Working with Remote Servers
enable ForwardAgent just for specific hosts
Good point. Thanks for suggesting this.
-
BillThom21 commented on
SSH Can Do That? Productivity Tips for Working with Remote Servers
I actually use WebDrive to do this, if anyone still happens to be looking for a reasonably-priced option. It is a bit less expensive than Expandrive (which I will admit I have never tried). But I've always had success with Webdrive and have been using it for years. www.webdrive.com
-
David Cantrell commented on
SSH Can Do That? Productivity Tips for Working with Remote Servers
For persistent connections I find it better to use the
%C
token inControlPath
. It produces a shorter string, so will help get around some path length restrictions. Also, that really ought not to be a path in a world-readable place like/tmp
! -
Smylers commented on
SSH Can Do That? Productivity Tips for Working with Remote Servers
Both good ideas.
%C
didn't exist when I wrote the above.On a laptop only used by me, I was using
/tmp/
(it avoids need to know your username to put in the config), but for shared computers it isn't a good idea.
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.