Re: sub signatures coming

2014-02-25 Thread Will Crawford
On 25 February 2014 03:45, Paul Makepeace  wrote:

> Finally. But don't believe the python/perl comparison troll, as
> python, for once, actually outguns perl on a character chomping basis,
>
> sub pairwise_sum ($arg1, $arg2) {
> return map { $arg1->[$_] + $arg2->[$_] } 0 .. $#$arg1;
> }
>
> def pairwise_sum(list1, list2):
> return [i + j for i, j in zip(list1, list2)]

List::Util and List::MoreUtils go partway to fixing that, but yes, a
"native" zip/unzip operation would be nice :)

> Paul


Re: I have a bikeshed, colour suggestions appreciated

2013-12-03 Thread Will Crawford
There's a helpful site at http://red.bikeshed.org/ ... no, wait, ...
http://blue.bikeshed.org/ which might help.

On 3 December 2013 14:14, Aaron Trevena  wrote:
> So.. some of you might know I quite like bikes.. I now have a proper
> bikeshed (or at least I will once I've built and attached the doors
> tonight) - and I was hoping you nice people could give me some helpful
> suggestions.
>
> Thanks in advance,
>
> A.
>
> --
> Aaron J Trevena, BSc Hons
> http://www.aarontrevena.co.uk
> LAMP System Integration, Development and Consulting


Re: Could use some hotel/travel help

2013-09-26 Thread Will Crawford
Morning tongue croissant!

On 26 September 2013 11:22, James Laver  wrote:
> On Thu, Sep 26, 2013 at 11:05 AM, Kieren Diment  wrote:
>> Yeah, but I already won. Ungetlemanly as my strategy was.
>>
>> --
>> Sent from my phone, so please excuse spelling mistakes, top posting, brevity 
>> etc.
>
> You were in Nidd. Also, we were playing Mornington Croissant.*
>
> James
> * http://www.isihac.co.uk/games/mcvariations/mc-m.html


Re: Robot turtles

2013-09-23 Thread Will Crawford
On 23 September 2013 13:58, Nicholas Clark  wrote:
...
> But E seems to be more interested in rockets than water*. Maybe she'll
> become a rocket scientist.

Or, if the hydrophobia is strong enough, a hovercraft engine?


Re: A simple and elegant job application

2013-05-15 Thread Will Crawford
If you can paste the question into google, and then paste the answer
back into the application form quick enough to not be told "too slow",
there might be a place for you ... in the next Star Wars movie. As a
Gungan Jedi.

On 15 May 2013 12:23, Martin Robertson  wrote:
> google fail :
> https://www.google.co.uk/search?q=726+*+333+%2B+592+-+994
>
>
> On 15 May 2013 12:13, Will Crawford  wrote:
>
>> I did try entering "What base is this in?" but it said "Wrong."
>>
>>
>> On 15 May 2013 12:00, DAVID HODGKINSON  wrote:
>> >
>> > On 15 May 2013, at 11:21, Travis Basevi  wrote:
>> >
>> >> http://www.mythic-beasts.com/cgi-bin/job.pl
>> >
>> > This is SO base 10-centric.
>> >
>>


Re: A simple and elegant job application

2013-05-15 Thread Will Crawford
I did try entering "What base is this in?" but it said "Wrong."


On 15 May 2013 12:00, DAVID HODGKINSON  wrote:
>
> On 15 May 2013, at 11:21, Travis Basevi  wrote:
>
>> http://www.mythic-beasts.com/cgi-bin/job.pl
>
> This is SO base 10-centric.
>


Re: ISNIC DNS

2013-05-08 Thread Will Crawford
On 8 May 2013 10:37, Dave Cross  wrote:

>   http://whois.net/whois/fkth.at
>

changed:20130508 11:14:29

Is their clock fast, or is that Icelandic time?


Re: Raising Perl awareness on Tiobe + Wikipedia, etc.

2013-03-21 Thread Will Crawford
On 21 March 2013 17:28, David Cantrell  wrote:

> GM: There is another loud bang and some crunching sounds, as DD's new
> clone arrives. He lands upside down and may or may not have taken some
> damage to the head. He thinks he's just fine though.
>

Is this first or second edition paranoia?
/me looks both ways and shuffles behind the nearest cover.


Re: jQuery

2013-03-21 Thread Will Crawford
On 21 March 2013 12:31, James Laver  wrote:

> AngularJS has the bizarre glory of "daftest release names i've ever seen":
> https://en.wikipedia.org/wiki/AngularJS#Releases
>

I suspect "increase-gravatas" [sic] is a reference to Iain M. Banks' famous
"gravitas"-related Ship Names[0].

[0] http://everything2.com/user/sam512/writeups/Culture+ships


Re: 3/15/2013 10:26:49 AM

2013-03-15 Thread Will Crawford
On 15 March 2013 10:40, DAVID HODGKINSON  wrote:

> It originated from 109.103.92.141 which is in Romania.
>
> More likely a Joe-job.
>

Someone register steakandjjday.com?


Re: French invasion

2013-02-13 Thread Will Crawford
World's narrowest undefended border? :)


On 13 February 2013 10:40, Richard Foley  wrote:

> I knew that darned tunnel would be used one day...!
>
> --
> Ciao
>
> Richard Foley
>
> http://www.rfi.net/books.html
>
> On Wed, Feb 13, 2013 at 11:19:00AM +0100, Philippe Bruhat (BooK) wrote:
> > Hello,
> >
> > We'll be in London (Covent Garden area) for an extended week-end from
> > February 23rd to 26th.
> >
> > And more importantly, we'll be available for food and drinks on the
> > evenings of Sunday February 24th and Monday February 25th, if anyone
> > is interested!
> >
> > --
> >  Philippe Bruhat (BooK)
> >
> >  Food and life were both meant to be shared with others.
> >(Moral from Groo The Wanderer #119
> (Epic))
>


Re: Dim sum TODAY 12:30 at Pearl Liang

2013-01-28 Thread Will Crawford
Make sure you send the Penzance Duck and not the Chicken Surprise ...



On 28 January 2013 11:11, Schmoo  wrote:

> Some could be posted to you, but may arrive slightly 'rubbery'...
>
> Gaz
>
> On 28 January 2013 10:43, Piers Cawley
>  wrote:
> > I'm marooned in Cornwall. Rather a long way from Pearl Liang. Or any
> decent
> > Chinese food, frankly.
> >
> > On 28 January 2013 10:28, Dave Hodgkinson  wrote:
> >
> >> Anyone else marooned in Stockley Park?
> >>
> >> On Mon, Jan 28, 2013 at 8:22 AM, Leon Brocard  wrote:
> >>
> >> > Yet again it's time for dim sum! This time Simon Wistow, our long-lost
> >> > ex-leader who is on this side of the pond for a change, wants dim sum
> so
> >> > we shall oblige. Come join us!
> >> >
> >> > Pearl Liang
> >> > 8 Sheldon Square, W2 6EZ
> >> > http://london.randomness.org.uk/wiki.cgi?Pearl_Liang%2C_W2_6EZ
> >> > http://www.pearlliang.co.uk/
> >> > Today, 12:30
> >> >
> >> > London.pm dim sum is a social event where we meet up every so often at
> >> > lunch at a different Chinese restaurant, spend about an hour (and
> about
> >> > £10 cash) eating tasty dim sum (steamed and fried dumplings), then go
> >> > our separate ways.
> >> >
> >> > PS It's quite hard to find unless you know where you are going. Check
> >> > the links.
> >> >
> >> > See you there, Léon
> >> >
> >>
>
>


Re: Hotels for the LPW

2012-10-25 Thread Will Crawford
On 25 October 2012 18:12, Nigel Metheringham  wrote:
> Smylers wrote:
>> You don't need to be a member. You do get a duvet (but need to bring
>> your own towel).
>
> I'm worried - several hours, and no one grabbed the obvious HHG
> reference and ran with it...

I was all tapped out from the Léon, the Balhatchet and the Figueiredo, sorry :)



Re: [ANNOUNCE] London Perl Mongers Technical Meeting 2012-10-30

2012-10-24 Thread Will Crawford
The Locale, the Widget and the Wide character in say at -e line 1.?

On 23 October 2012 19:43, Roger Burton West  wrote:
> On Mon, Oct 22, 2012 at 07:27:08PM +0100, Leon Brocard wrote:
>>and we will have a bonus talk:
>>Pedro Figueiredo: "The problem with Perl".
>
> What next, Mere Perlianity?
>
> (Sounds great, pity I can't make it.)
>
> R


Re: Available...

2012-10-02 Thread Will Crawford
On 2 October 2012 12:06, Denny <2...@denny.me> wrote:
...
> Short memory.
...
> Or post a meta-question here, of course  :)

Yes, seems like it ;)

[ When is a question not a question? ]


Re: [OT] benchmarking "typical" programs

2012-09-21 Thread Will Crawford
On 21 September 2012 10:22, Nicholas Clark  wrote:

> Unless there's a CPAN-in-a-box for doing most of the four steps.
> (which doesn't depend on external C libraries. That was one of my
> "preferably" criteria)

Alas, the best ones are indeed C (or C++) libraries: Search::Xapian
(my preference); KinoSearch; yada yada.

> So, next question - if I wanted to be as lazy as possible and write a search
> engine (as described above) using as much of CPAN as possible, which modules
> are recommended? :-)

Probably look at all the Lucene-related modules and steal some code.

You wouldn't need to do a full-blown engine with spelling correction,
fancy query parsing etc.

> Nicholas Clark


Re: Brainbench perl test?

2012-09-04 Thread Will Crawford
On 4 September 2012 14:27, Jasper  wrote:
> On 4 September 2012 14:12, Piers Cawley
>  wrote:
...
>> Or, in an attempt to really drive it home:
>>
>> blarg(n) is equal to blarg( n - 1 ) * 2  +  blarg( n - 2 )
>>
>> There you go. Not the Fibonacci sequence, but still a recursive
>> definition, trivially implementable with a recursive condition given a
>> couple more bits of knowledge (the values of blarg(0) and blarg(1)).

> Aha! A couple more bits of knowledge. Now my machine can stop dying
> when I run my program.
>
> The question as originally described is a starting point to deciding
> if someone can think logically, but it does not fully describe the
> problem.

The point most of us are trying to make is that a programmer who
doesn't *ask* you for those "bits of knowledge" hasn't understood the
question sufficiently :)


Re: Puzzle

2012-08-28 Thread Will Crawford
I thought "clang" _was_ an onomatopoesis, and "bash" could be the
other language?

On 28 August 2012 14:39, Simon Cozens  wrote:
> On 28/08/2012 22:16, Will Crawford wrote:
>>
>> ACME, Email, Getopt, Date?
>
>
> Nice! Which leaves:
>
> woolfy, book, ash, cog (IRC nicks)
> clang, awk, ping, comm (Unix commands)
> crunch, biff, kapow, bash (Batman onomatopoeia)
>
> Except that "bash" isn't a Batman onomatopoeia word. (And there's a "clank",
> "clunk" and a "clange" but no "clang".) Oops.


Re: Puzzle

2012-08-28 Thread Will Crawford
ACME, Email, Getopt, Date?

On 27 August 2012 02:17, Smylers  wrote:
> Hello. Happy Bank Holiday, for those of you in England, Wales, or
> Northern Ireland. If anybody's in the mood for a puzzle, here's one I've
> created:
>
> It's in the style of the Connecting Wall round of BBC4's 'Only Connect'.
> Here are 16 clues. The puzzle is to sort them into 4 groups of 4, with
> each group having a connection that links its items. Some clues could be
> a valid member of more than one group, but there's only one way of
> arranging the items perfectly, assigning them such that each group has 4
> distinct items.
>
>   book   crunch bash   email
>   acme   ping   ashdate
>   clang  coggetopt kapow
>   awkbiff   comm   woolfy
>
> All the clues are in lower-case (erm, as you can see); capitalize any
> letters as required when putting them in their groups.
>
> It's allowed for London.pm to solve this collaboratively -- if you think
> you've got a group of 4 items, post a follow-up mail suggesting them and
> I'll say whether they are a valid group. (Of course, if you wish to have
> a go at solving it without any help, ignore any follow-up mails on this
> thread.)
>
> Please don't look clues up on the internet, or elsewhere; that's
> cheating.
>
> Good luck!
>
> And if you like puzzle-based quizzes, the new series of 'Only Connect'
> (some questions written by me) starts tonight on BBC4 at 20:30, and will
> afterwards be on iPlayer here: http://www.bbc.co.uk/programmes/b01m9ty9
>
> Cheers
>
> Smylers
> --
> http://twitter.com/Smylers2


Re: Dim Sum?

2012-07-11 Thread Will Crawford
On 11 July 2012 13:10, Dave Hodgkinson  wrote:
>
> Does anyone have a craving for Dim Sum in the West End tomorrow? A 100% Venda 
> turn out
> again would count as a fail... :)

If we could go to Pearl Liang again that might be reachable for us :)


Re: Programming Heresy

2012-03-30 Thread Will Crawford
On 30 March 2012 15:38, Gareth Harper  wrote:
> On 30 March 2012 15:08, Steve Mynott  wrote:
>>
>> Ummm this is london.pm.  People in London don't have sheds.
>>
>
>
> I live in London, and I have a shed.  So do most of my neighbours
> (close to Aleandra Palace)

^^^ was this a Freudian slip?

>
> Gareth
>



Re: Programming Heresy

2012-03-30 Thread Will Crawford
On 30 March 2012 11:23, Dirk Koopman  wrote:
> On 30/03/12 10:24, Steve Mynott wrote:
>>
>> Has anyone tried programming outside?
>>
>> E-ink (like on the Kindle) works well in sunlight and I wondered if
>> any such device would be useable (ideally with a decent keyboard).
>>
>
> Get yourself a decent man shed with some decent windows that you can open.

What kind of colour is "man"?


Re: Where to buy Cassocks?

2012-01-31 Thread Will Crawford
On 31 January 2012 13:13, Dave Hodgkinson  wrote:
>
> On 31 Jan 2012, at 13:03, David Cantrell wrote:
...
>> and it is great for scaring people in on foggy evenings.
>
> Got a top hat and cane?

... and spare time to wander around Whitechapel?


Re: Worst Recruitment Experience

2011-12-09 Thread Will Crawford
On 9 December 2011 12:53, Smylers  wrote:

> Leo, I appreciate your point about not naming employers before they've
> had a reasonable time to respond. The above events took place on 2000
> August 29th -- is 11 years long enough? (If so, I'd like to name the
> employer as 'The Guardian'. If you still think it's a bit soon then I
> won't.)

I presume the interview date and time were misprinted?

;)


Re: Beware: NET-A-PORTER

2011-12-09 Thread Will Crawford
On 9 December 2011 11:42, Smylers  wrote:
> Rudolf Lippan writes:
[...]
>> 3) That NET-A-PORTER was aware that I let another opportunity go based
>>    on my understanding that my employment was pending a 'final
>>    signature'.
[...]
>> 4) That as a condition of final sign off [...] I agreed to this.
[...]
>> 5) That NET-A-PORTER decided to withdraw the position at this point

> That's really unfortunate for you, especially since you'd turned down
> other work. It certainly sucks from your side.
>
> But I'm struggling to extrapolate from that into behaviour by
> Net-a-Porter that I need to beware of.

He may well have had the choice of whether to wait for this "sign off"
instead of taking another role. But if they were aware of his having
another offer, took their time, let him think the role was "in the
bag" and then yanked it after it was too late for the other position,
and knew this to be the case, they've very much left him in the lurch.

> It sounds like they said they
> hoped to do something but it hadn't been approved yet, then later turned
> out that approval wasn't granted. That's unfortunate, and frustrating,
> certainly, but it doesn't seem immoral.

It's basically a sort of "bait and switch". You may not consider it
"immoral", he does, and at the end of the day it's a betrayal of a
trust which - apparently - they knowingly asked for and accepted.
Hence the warning to the rest of us that this might happen. It's a
salutory lesson, even if you think it's perfectly "moral", that we
should all watch out for the possible effects of "economics", and to
censure him for providing that warning to all of us is like telling
the green cross code guy "hey, people get run over if they mess with
cars".



Re: look what i made!

2011-11-30 Thread Will Crawford
On 29 November 2011 17:56, lesleyb  wrote:
> On Tue, Nov 29, 2011 at 09:30:21AM +, alex knowles wrote:
[...]
>> http://perlmonks.org/?node_id=567471
> Regretably, that example gives
> $# is no longer supported at ./node.567471.pl line 12.
> under 5.14.2

It amounts to printf("Just another perl hacker", 42); :)


Re: Ruby?

2011-11-16 Thread Will Crawford
On 16 November 2011 10:53, Leo Lapworth  wrote:
> On 15 November 2011 22:05, Dave Hodgkinson  wrote:
>> Any freelancers out there with Ruby experience could use some retainer
>> time for support work?
>
> /me checks he's subscribed to the right list... yep.. says Perl in the
> title still!

It's OK, there was no "on topic" tag ;)

> Leo
>


Re: LPW 2011 carpooling

2011-08-19 Thread Will Crawford
On 19 August 2011 14:37, David Cantrell  wrote:

> OK, so the unlimited free wine also helps.

Wonder how much that's pushed the ticket prices up? ;)