Actions from Peter SergeantMovable Type Pro 4.382014-11-10T10:50:52Zhttp://blogs.perl.org/mt/mt-cp.fcgi?__mode=feed&_type=actions&blog_id=0&id=917Posted How to write a Developer CV/Résumé that will get you hired to Peter Sergeanttag:blogs.perl.org,2014:/users/peter_sergeant//591.65082014-11-10T10:50:52Z2014-11-10T10:52:46ZSlides from my LPW talk are now online! How to write a Developer CV/Résumé that will get you hired....Peter Sergeanthttp://blogs.perl.org/mt/mt-cp.fcgi?__mode=view&blog_id=591&id=917
Slides from my LPW talk are now online!

]]>
Commented on Perl 6 Status in Peter Sergeanttag:blogs.perl.org,2014:/users/peter_sergeant//591.6488#14306982014-10-31T03:59:46ZPeter Sergeant
OK. I have merged a commit that did this.]]>
Commented on Perl 6 Status in Peter Sergeanttag:blogs.perl.org,2014:/users/peter_sergeant//591.6488#14303782014-10-30T00:38:25ZPeter Sergeant
I am reticent to add the link to Perl 5 - I think anyone who cares about the status of Perl 6 probably already knows exactly how it relates to Perl 5, and I'm keen not to add too much extra stuff to the page. Happy to be persuaded I'm wrong though.]]>
Commented on Perl 6 Status in Peter Sergeanttag:blogs.perl.org,2014:/users/peter_sergeant//591.6488#14300012014-10-29T04:28:15ZPeter Sergeant
I think it would be useful to add a roadmap for Rakudo, too]]>
Posted Perl 6 Status to Peter Sergeanttag:blogs.perl.org,2014:/users/peter_sergeant//591.64882014-10-29T04:09:14Z2014-10-29T04:15:14ZToday, from Freenode's #perl6: 01:41 Is there no site that gives a current status of Perl6 work that a non-guru could follow? 01:42 Most of the hits under https://duckduckgo.com/?q=current+state+of+Perl6 are ca. 2010 and even http://perl6.org/compilers/features is close to two months...Peter Sergeanthttp://blogs.perl.org/mt/mt-cp.fcgi?__mode=view&blog_id=591&id=917
Today, from Freenode's #perl6:

01:41 < zzzzzzzzzz> Is there no site that gives a current status of Perl6 work
that a non-guru could follow?

01:42 < zzzzzzzzzz> Most of the hits under
https://duckduckgo.com/?q=current+state+of+Perl6 are ca.
2010 and even http://perl6.org/compilers/features is close
to two months old.

...

01:47 < zzzzzzzzzz> That's the impression I get but I have a hard
time getting much farther than that. For example, "what
exactly do I download to start learning, and why those bits
instead of other bits?"

...

01:52 < zzzzzzzzzz> Whichever. A site that took a snapshot of the state every
quarter or two would make it a lot easier for relative
noobs to get up to speed and start learning things.

This is a feeling I've shared for a while. Working out where Perl 6 is takes a bit of archeology, trying to figure out what the Compiler Feature matrix means.

Anyway, I've taken a stab at trying to create a very short, simple, regularly updated set of answers: http://perl6.guide/, hopefully accessible to Perl 5 developers and random other developers. It's on Github (there's a link in there), so if you think I've gotten something wrong, or want to update it, please send me a pull request.

]]>
Posted Launched http://perl.careers/ to Peter Sergeanttag:blogs.perl.org,2014:/users/peter_sergeant//591.64382014-10-03T04:28:58Z2014-10-03T04:37:12ZI know what you're thinking. You're thinking: "What this world has too few of, is recruiters. The world definitely needs more recruiters". And given that shocking lack of people trying to get you a job, I've launched Perl Careers. My...Peter Sergeanthttp://blogs.perl.org/mt/mt-cp.fcgi?__mode=view&blog_id=591&id=917
I know what you're thinking. You're thinking: "What this world has too few of, is recruiters. The world definitely needs more recruiters". And given that shocking lack of people trying to get you a job, I've launched Perl Careers.

My eventual goal is to try and do something like O'Reilly did back in the day - divert a significant portion of profits back in to the community via paying for high-quality Perl content/articles, sponsorship of conferences, and sponsorship in to TPF and similar organisations. This is going to take me a while to achieve; I'm planning to sponsor November's London Perl Workshop, and I'm flying to London for it, and I hope to start paying for high-quality Perl-related content at the beginning of next year. ORA used to pay $200-$400 for articles on Perl.com, and I think that's where I'll be aiming.

However, in the interim, I'm hiring for some great roles. I'm only willing to take on roles for companies I'd want to work at, so please get in contact: pete@perl.careers.

]]>
Posted Install XML::LibXML without root to Peter Sergeanttag:blogs.perl.org,2014:/users/peter_sergeant//591.64032014-09-16T01:50:43Z2014-09-16T01:56:54ZGet a source tarball for libxml2-dev. On `apt` systems: apt-get source libxml2-dev Configure it to install locally, and then install it: cd libxml2-dev/ ./configure --prefix=/home/peters/perl5/alien/ make make install Ignoring all other options like LIBS, INC, and the rest of the...Peter Sergeanthttp://blogs.perl.org/mt/mt-cp.fcgi?__mode=view&blog_id=591&id=917
Get a source tarball for libxml2-dev. On `apt` systems:

Ignoring all other options like LIBS, INC, and the rest of the stuff that's kindly recommended, you only care about showing Makefile.PL where to find xml2config:

perl Makefile.PL XMLPREFIX=~/perl5/alien/

And then it should cleanly make.

]]>
Posted Install Net::SSLeay without root to Peter Sergeanttag:blogs.perl.org,2014:/users/peter_sergeant//591.63882014-09-09T01:58:17Z2014-09-09T02:00:16ZWant to install Net::SSLeay on a Debian or Ubuntu system that you don't have root on, and doesn't have `libssl-dev` installed? Let me see if I can save you some time... You are going to need to keep a compiled...Peter Sergeanthttp://blogs.perl.org/mt/mt-cp.fcgi?__mode=view&blog_id=591&id=917
Want to install Net::SSLeay on a Debian or Ubuntu system that you don't have root on, and doesn't have `libssl-dev` installed? Let me see if I can save you some time...

You are going to need to keep a compiled version of libssl around, and so you need to decide where that will live: I went for: `~/perl5/alien`...

cd zlib-1.2.3.4.dfsg/ # Or whatever it is
./configure --prefix=~/perl5/alien
make
make install

cd ..

cd openssl-1.0.1/ # Or whatever it is
# These options took me approximately 15 years to figure out
./config shared -fPIC --prefix=~/perl5/alien
make

But this doesn't make install cleanly, as it wants to install the `man` pages centrally. I found a way around this by messing around with other flags but ... the `man` pages don't build anyway - ironically enough they throw a POD-related error. So: open up `Makefile`, find the line that looks like this:

install: all install_docs install_sw

And change it to:

install: all install_sw

Now you can:

make install

Change to wherever you have the Net::SSLeay code:

cd .cpanm/latest-build/Net-SSLeay-1.66
OPENSSL_PREFIX=~/perl5/alien/ perl Makefile.POD-related
make
make test
make install

]]>
Posted Perl as CPAN glue to Peter Sergeanttag:blogs.perl.org,2014:/users/peter_sergeant//591.62552014-08-02T09:06:29Z2014-08-02T09:08:36ZQuite a while I got interested in the idea of short, clear examples showing Perl as glue for CPAN. I recently refound these, and they caught my imagination: Generating an SVG graph of a git repository Web-service to illuminate a...Peter Sergeanthttp://blogs.perl.org/mt/mt-cp.fcgi?__mode=view&blog_id=591&id=917
Quite a while I got interested in the idea of short, clear examples showing Perl as glue for CPAN. I recently refound these, and they caught my imagination:

]]>
Posted Hiring Senior Devs in London to Peter Sergeanttag:blogs.perl.org,2013:/users/peter_sergeant//591.49422013-07-23T11:03:29Z2013-07-23T11:05:13ZI'm hiring two positions in my team in lovely, sunny Canary Wharf (London)... Development Manager Team Leader / Architect It took me a long time to write the job ads, so please have a good read! :-)...Peter Sergeanthttp://blogs.perl.org/mt/mt-cp.fcgi?__mode=view&blog_id=591&id=917
I'm hiring two positions in my team in lovely, sunny Canary Wharf (London)...

It took me a long time to write the job ads, so please have a good read! :-)

]]>
Commented on [FB]izzBuzz in Perl in hjkltag:blogs.perl.org,2012:/users/hjkl//1295.4125#2552762012-12-13T10:08:31ZPeter Sergeant
Slightly longer and uglier, no warnings:

say((('Fizz')[$_%3]||'').(('Buzz')[$_%5]||'')or$_) for 1..100;

]]>
Commented on [FB]izzBuzz in Perl in hjkltag:blogs.perl.org,2012:/users/hjkl//1295.4125#2552672012-12-13T09:55:10ZPeter Sergeant
As someone else has pointed out, brevity is not necessarily what you want to be optimizing for. That said:

say(('Fizz')[$_%3].('Buzz')[$_%5]or$_) for 1..100;

Throws warnings, though.

]]>
Posted MooseX::Params::Validate to Peter Sergeanttag:blogs.perl.org,2012:/users/peter_sergeant//591.40982012-12-04T08:48:22Z2012-12-04T08:57:50ZSubroutines that take more than a single argument should really be using something like MooseX::Params::Validate. Consider: sub vivisect { my ( $self, $args ) = @_; confess 'Expected a hashref of arguments' unless 'HASH' eq ref $args; my $hamster =...Peter Sergeanthttp://blogs.perl.org/mt/mt-cp.fcgi?__mode=view&blog_id=591&id=917
Subroutines that take more than a single argument should really be using something like MooseX::Params::Validate.

OK, so we know it accepts a hashref of arguments, and what's more, we know one of them is called hamster. But: what constitutes an acceptable hamster? What do we want to do if we don't have a hamster? What other arguments am I going to need? All of this is mental load at 7am and sure, maybe there's documentation, but maybe the intern snuck in some new options and didn't tell anyone...

Yes, it's some more typing. But now, as a reader, I know what's what. I know a hamster is optional, and I know what'll happen if I don't include it. I know no-one else has been adding other options like guinea_pig, because they'd show up there.