Greg McCarroll wrote:
We'd also not have a language that attracts people who like to fly giant
kites (Andy W. and a few others)
/me waves
For the record, the Way I Do It these days is using Badger::Filesystem.
http://badgerpower.com/docs/Badger/Filesystem/File.html
e.g.
print
On 25/07/2011 14:53, Ash Berlin wrote:
Curiously I've arrived at gatwick far more often than I've left from there
OK, I'll bite. My curiosity is piqued. How can this be?
A
On 31/05/2011 15:08, David Cantrell wrote:
And Hungarian notation is good!
pronounI adjectiveRespectfully verbDisagree.
initialA
On 11/02/2010 17:28, Richard Huxton wrote:
You already have an id attribute on the toggle links (e.g.
toggler_1). Add a class on each tr: depends_on_1 and then a couple
of lines of jquery or similar should let you toggle the rows on/off.
As per my previous response, complete with example:
On 05/02/2010 14:53, David Cantrell wrote:
tr
tda href=javascript:toggle('children_of_this::module')+/a/td
tdthis::module/td
tdblahblahblah/td
/tr
Add all the dependencies to the tr. e.g.
tr class=depends-This-Module depends-That-Module
Then use jQuery to toggle a
On 14/01/2010 17:41, Philip Newton wrote:
Yes - you're missing the fact that in order to compute the differences
(which it has to if it doesn't want to transfer the whole file), it
has to read the entire file over the slow NFS link into your
computer's memory in order to compare it with the
On 15/01/2010 20:23, Roger Burton West wrote:
And to calculate the checksum on each block of the file, it has to, um,
read each block of the file... yes?
Sorry, I missed this bit in Philip's message:
if both source and destination are on a local file system
I was thinking about remote
Here are the answers (just on the off-chance that anyone got stuck) along
with explanations of the clues for those who don't grok cryptic crosswords
(or LPM).
[P]
[O]
[N]
[B][U][F][F][Y]
[E]
[P][I][E][S]
[R]
On 12/12/2009 20:24, Aaron Trevena wrote:
for my xmas london.pm crossword.. also anybody to proof read and check
it would be appreciated.
I saw your message yesterday afternoon and my brane starting ticking.
Then this morning I saw your other message saying that it's all now
compiled and sent
I've got some code that's making Perl segfault.
I'm creating a linked list using array references as nodes. The first element
in the array ref contains some data, the second item contains a reference to
the next item. Think cons lists.
while (++$n $max) {
$token = [token $n];
On 04/11/2009 07:55, Andy Wardley wrote:
I've got some code that's making Perl segfault.
Here's the complete script in case anyone wants to play along at
home:
http://wardley.org/perl/linked_list_segfault.pl
A
On 04/11/2009 10:46, Paul LeoNerd Evans wrote:
That's highly suspect.
That was my first thought. But no, it's not specifically 32,768.
It depends on the platform/perl version. In once case, ~25k was
enough, and in other it was a shade over 39k.
A
On 04/11/2009 10:45, Matthew Boyle wrote:
mine seems to be running out of stack space:
[chemn...@10:36 ~]$ gdb perl
[...]
(gdb) run downloads/linked_list_segfault.pl
Starting program: /usr/bin/perl downloads/linked_list_segfault.pl
Ah! That's the magic incantation I needed. I was trying
On 04/11/2009 10:46, Dagfinn Ilmari Mannsåker wrote:
It seems to be recursing when freeing @tokens, I'm see the following stacktrace:
Aha, that would explain it.
I think it's time to take this to p5p.
I will. Thanks everyone.
A
Abigail wrote:
That brings up an image of a civil servant stamping glasses. And once a
month, a moves for a week from Brussles to Strassbourgh.
20 or so years ago there was a UK Weight and Measures Authority near
where I lived in Kingston. Although I never did it myself, a number of
my school
On 24/09/2009 12:37, Ovid wrote:
one of my friends [...] always wears Iron Maiden t-shirts, has an Iron Maiden
tattoo
Well at least he has good taste in music. :-)
I saw a youngster at the skatepark the other day wearing a Number of the
Beast T-Shirt. I was about to tell him that I once
This just in from the Department of Preaching to the Choir:
http://aplawrence.com/Girish/perl-cpan.html
Python and lua are excellent languages too and I am sure that Python is
much better than perl in many many respects but there is one key difference.
The difference is CPAN.
[...]
On 28 Jul 2009, at 01:01, Randy J. Ray wrote:
The tricky part that I can't seem to quite get right, is how to
properly
localize the changes made to @INC so that it gets properly restored
when the
scope exits. That is, I don't want the user to have to explicitly
undo their
previous calls.
David Cantrell wrote:
Can anyone point me at a tutorial which will show me how to put a map in
a page, point it at my own map tiles, and Just Work?
points/
http://wardley.org/misc/map_overlay.html
It's not a tutorial but it shows the 20 or so lines of code you need to
create a custom tile
Nicholas Clark wrote:
Of course this can also be solved in various other ways,
[...]
but that doesn't feel as elegant an interface.
Perhaps not, but IMHO having two distinct methods is the Right Way To Do It.
Anything else runs the risk of being Too Clever By Far[1].
I would have an
Joel Bernstein wrote:
Fell for the bait and top posted with my vamp face on.
Did it actually mean something or just random made up word noises?
I know a little BuffyL33Tspeak. I will attempt to translate into the
Queen's English:
I allowed myself to be drawn into this conversation
Zbigniew Lukasiak wrote:
Is it then a reasonable rule when writing a 'high level web
library/framework' to restrict the forms to always submit to their own
address?
It's a reasonable default, but not so good as a restriction. I can think
of several occasions where my forms don't submit
Robin Berjon wrote:
I can certainly see how I can brute-force my way out of this, and I'm
pretty sure it'll involve some of that. But what I was wondering about
is whether there are tricks and good ideas to doing this right/more
easily, and evil traps to be wary of.
The two main approaches
Peter Corlett wrote:
Like comments, constant names should expand on the meaning of the code
rather than just repeat it, and should mean the same thing in each
place.
I totally agree that constant names shouldn't obfuscate their values,
and they should always have the same, sane value.
I don't know about Moose, but Badger at least has a catchy (annoying) tune :-)
Mushrm! Mushrm!
Talking of catching tunes, a long time ago in a mailing list far, far away,
I wrote [1]:
Moose operates at a slightly higher level of abstraction [than Badger]. To
stretch the analogy,
I have a file which defines a MySQL database schema. It looks a bit
like this:
/*
This table defines users of the
system who are Buffy fans.
*/
CREATE TABLE buffy_fans (
..etc...
);
I feed it in thusly:
$ mysql my_db_schema.sql
And it says:
usage: who
Andy Wardley wrote:
Before I go and write this myself,
http://wardley.org/computers/perl/intro4mac.html
Comments, corrections, additions, etc., welcome.
A
Spiros Denaxas wrote:
I would also add an honorary mention to TextMate, a pretty decent
editor for Mac OS X [1]. I was first introduced to it by the mighty
evdb and have
been using it diligently at $work and $home ever since.
It's already there.
Christopher Jones wrote:
What a cunning ruse! I only hope they haven't read that message, and
will continue to respond to such provocation.
I don't know if this is the wiser people to whom Ovid referred, but
it hits the nail on the head:
http://bash.org/?152037
Quote:
Start the sentence
Chisel Wright wrote:
I don't this should be limited to Mac folk.
You accidentally the verb. :-)
A
Chisel Wright accidentally the verb:
I don't this should be limited to Mac folk.
Paul Makepeace wrote:
See how long it takes you to actually come up with a verb that gives a
substantially different mearning from the (presumably) original intent...
Darn this digital medium! I can't read your
Before I go and write this myself, does anyone know of any online or
dead-tree resources that give a gentle introduction to using Perl on
Mac OSX? I'm working with a couple of web designers who want to learn
a bit of Perl, but need a bit of hand-holding when it comes to using
the command line
Richard Huxton wrote:
Hmm - skimming these articles, I'm not hugely impressed. The chap(ess?)
behind them is clearly a developer rather than a DBA.
You're right. I perhaps should have quantified that better as a good
*introduction* to the subject. It was a bit hand-wavy on the detail,
but it
I'm ashamed to admit that I didn't know about http://proudtouseperl.com
until the recent thread, and it looks like I wasn't the only one. But
visibility aside, it's great to see more Perl site/blogs springing up
around the place.
Can I take this opportunity to remind people about the Perl
Richard Huxton wrote:
Yep - that's what sharding is all about - separate disconnected silos
of data.
I thought sharding specifically related to horizontal partitioning. i.e.
splitting one table across several databases, e.g. records with even row
ids in one DB, odd in another. Apologies if
Mark Fowler wrote:
What's the collective group think on these?
There's a good series of articles on sharding starting here:
http://lifescaler.com/2008/04/database-sharding-unraveled-part-i/
The conclusion I drew from it was that functional partitioning
(where possible) was much easier to
Mark Blackman wrote:
What remains for this shininess to be made live?
The gate keeper of the London.pm fortress hath just this hour granted
me access after much wrangling with the dragons of ssh and walls of fire.
Verily now that I have entered shall I proceed to make shiny the castle
walls.
Behold!
http://london.pm.org/
There's a few pages not building properly... working on that now.
A
James Laver wrote:
Quick investigation with firebug tells me that firefox thinks the
background the text is on is some darkish orange/brown so it chose a
nice white background to help it stand out... I assume it's some
bizarre div stacking bug.
Hmm... it appears to work OK for me on FF (3.0.4
David Cantrell wrote:
See also http://search.cpan.org/~domizio
Which sends you here:
http://perl.4pro.net/perlish_coding_style.html
My poor eyes. Make it stop. Burn it with fire.
A
Paul Makepeace wrote:
I'd aim for 950-ish width - not much of a sacrifice from 1024
aolMe Too!/aol
960 is a particularly magical number because it's divisible by 1, 2, 3, 4,
5, 6, 8, 10, 12, 15, 16, 20 and 24, so it's a good start for grid-based
designs, or anything with columns. And as you
Léon Brocard wrote:
Andy, care to put your changes live?
All checked in. It'll need to be built on the target machine.
I've added 3 more colour schemes (light brown, teal and purple) for those
who find the orange a bit too garish. I've also added a print stylesheet.
The stylesheet switcher
Nigel Rantor wrote:
I've already poked Andy about this when he put up the initial version.
Here's my reply to Nigel, for the benefit of anyone else interested.
reply
Yes. I've always been a fluid-layout kinda guy. 800x600 is annoyingly
narrow when you've got a large monitor, so a fluid
Nicholas Clark wrote:
Whilst we fully support there's more than one way to do it, the availability
of different hues of orange should provide more than enough alternatives. :-)
Aha! Well the brown design *is* actually orange! It's exactly the same hue
as the orange (30 deg), but de-saturated
http://www.youtube.com/watch?v=Xe1TZaElTAs
quote
Perl is a shinto shrine.
Perl exists not as an edifice but as an act of love. Perl is a viable
programming option again today because millions of people woke up this
morning loving Perl.
And more importantly, they love one another
I can pick off a few of the easy ones.
[SPOILERS]
6) What company was Larry Wall working for when he wrote Perl 1?
JPL.
9) When will Perl 6 be released?
Christmas
10) Who was the most important pioneer of Perl Poetry?
Sharon Hopkins
13) Think of a witty and/or
I've got a *very* strange problem with Perl segfaulting seemingly at
random, but quite predictably based on things that it really shouldn't
care about (like comments).
It's so weird that my first thought was that it was faulty memory in my
machine. But I've tried it on two machines (both macs)
Nicholas Clark wrote:
Have you tested your code with 5.8.9-RC2 yet?
Just tried it now and it works OK.
Do you think it's worth perlbugging for the record?
Thanks everyone. It's a long time since I found a bug in perl!
A
Andy Wardley wrote:
I can help there.
How about this?
http://wardley.org/london.pm.org/
I tarted up the layout and styling a bit, added the glass onion (I'm
determined to get that on at least one Perl site!), updated some of the
content on the Home and About pages (including how to check
David Dorward wrote:
Can features which only work with JS on be added entirely with JS please?
Hmmm... the JS *should* be non-JS friendly because onclick will be ignored by
non-JS browsers. The Small/Large is switched on CSS rather than JS, but
that will fail if you've got CSS disabled.
Dirk Koopman wrote:
Personally I would go for a completely different base colour, or stick
to the original orange, rather than shift slightly in the yellow/green
direction.
It's the same orange, at least the strips down the side are. The darker
orange bits in the header are the same hue (30
James Laver wrote:
Distributed curry is definitely a winning idea.
Ack.
Ours was quite tasty and rather cheap for a meal out in london (even when
you factor in we had two bottles of wine between 3 of us).
Mine was a rather splendid meal in the Bombay Brasserie in Woking. I dined
with a
Léon Brocard wrote:
http://slashcode.cvs.sourceforge.net/viewvc/slashcode/
... which would make it even easier for people to tweak. Any volunteers?
I'll gladly take it on, but I haven't heard anything back from pudge to
suggest that he's open to the idea.
A
Nigel Hamilton wrote:
TPF have never owned the domain perl.com - but they have always had a
right to own it. The TPF and the community have a right to get the goodwill
back.
Tom has never been the owner of the goodwill and trademarks associated with
Perl.
Tom Christiansen was one of the
Léon Brocard wrote:
http://london.pm.org/ is our web site. It's orange, which is nice.
However, I can spot a few things that we can improve:
1) It still lists Greg as leader
2) It doesn't list how to check out the website as below
3) It doesn't have an onion tilted at a jaunty angle
4) It
Aaron Trevena wrote:
My dad was on the Generation Game, I think he was demonstrating
carving a swan out of ice.
Did he do well?
A
Ovid wrote:
Marketing is not inherently evil.
Can I put in a plug for branding, too.
A
Ovid wrote:
Out of curiosity, have you spoken with pudge about this?
He hasn't seemed interested, but I could be wrong.
I've (just) pinged him a heads-up in case he hasn't seen it, but his
other comments in the thread seem to suggest that it's not his highest
priority right now.
But that's
Robin Berjon wrote:
Well for one I think it's a clear improvement over what's there today.
On the downside I would say: a) you probably didn't intend this but it
looks a little bit too much like the default Drupal theme,
No, I didn't intend it, but I noticed the similarity straight away.
It's
I put a few ideas together for a *.perl.org facelift.
http://wardley.org/use.perl.org/test.html
At the moment it's just a stick in the ground. It's probably the
wrong kind of stick and not in the right place, but it's a start.
Pass it on.
A
Dave Hodgkinson wrote:
In response to Ovid's post on use.perl:
Also see this lively discussion in Reddit.
http://www.reddit.com/r/programming/comments/7h3pa/perl_5_is_dying/
A
Richard Huxton wrote:
I must say I'm a bit disappointed that it wasn't about how you were
bitten by a radioactive badger and now have the ability to snuffle
through hedgerows and spread TB to cattle. That's probably me though :-)
Oh that happened too. I just didn't have time to fit it into
The slides for my Badger Power talk are here, complete with extended
footnotes.
http://badgerpower.com/talks/lpw2008/start.html
This culminates in a bit a rambling rant about how hard it is to write
generic software, why OO is fundamentally broken, and why coder reuse is
more important than
Paul Makepeace wrote:
foreach my $given_source (%publication_map_by_name) {
ENOKEYS: You are locked out of the house.
A
[EMAIL PROTECTED] wrote:
[...] a detailed project plan for the management and also some of the investors.
They want it to include clear diagrams and I've been recommended UML,
Did the management/investors recommend UML?
The reason I ask is that UML diagrams probably won't mean that much to
Paul Makepeace wrote:
Guido eventually Making a Decision.
What's interesting is that python gets ?: without any additional keywords,
or... punctuation: http://www.python.org/dev/peps/pep-0308/
X if C else Y
I don't like having the condition in the middle of the expression.
It would have
Paul LeoNerd Evans wrote:
my $foo = $a + $b;
The meaning of '+' is already known to most people so there's no cognitive
overhead there.
One of the things _I_ like about Perl is that it accepts the fact that
larger alphabets yield shorter sentences.
I get what you're saying, and agree to
Randy J. Ray wrote:
Izzat the one what has to do with not getting into a land war in Asia or
a battle of wits with a Sicilian[*]?
That reminds me of John Cleese's talk on the important of making mistakes.
Of course there are true copper bottomed mistakes, like spelling
the word “rabbit”
Aaron Trevena wrote:
In fact it's pretty well known that Orwell was no fan of the stalinist
communism he saw in Spain,
Never mind that. What was his position on the prevalence of non-alphanumeric
operators in Perl? :-)
A
Nigel Rantor wrote:
Let's take ~~ for example. It's arguably harder to type than in. And
by that I mean for *me* it is harder to type.
I agree. ~~ is particularly hard for me to type on keyboards that put it at
the bottom left right next to the shift key (i.e. Macs). 'in' is much easier
to
Dave Cross wrote:
This is probably simple,
This is the general problem that I have with ORMs. You have something
which is a fairly straightforward SQL query but can't figure out how to
make the ORM generate the query that you already know you want.
It's a bit like using a phrasebook to speak
Paul Makepeace wrote:
One aspect, that befalls any abstraction system, is that you run into
a situation where a lot of work is being hidden behind a simple
interface.
True, although this is something that can be easily mitigated with a
bespoke object method or two and an orcish manoeuvre.
Raphael Mankin wrote:
If there were many such IF statements in my templates I would tend to
use separate templates for the user states (or whatever) and let the
controller route to the appropriate one.
Sure, but this could be the site/login template, included from the
site/sidebar which got
Aaron Trevena wrote:
99.9% of the time that is either a rare edge case, or a case of not being
totally up to speed.
Depends on the ORM, though. I'm not knocking DBIC in particular (which is
certainly one of the best, IMHO), but there are a lot of other ORMs out
there in various different
Dave Hodgkinson wrote:
Then what's the benefit of an ORM? (general question, not just to you :)
The answer is abstraction. What was the question? :-)
Actually, there's no standard set of benefits because there no such thing
as a standard ORM. It has come to be used as a catch-all term for
It seems they've fixed the bug.
http://rhn.redhat.com/errata/RHBA-2008-0876.html
A
David Cantrell wrote:
Can anyone recommend a pub near Hampton Court for lunch?
The Albany is about 10 minutes walk from the station (~3 mins in a car).
Lovely location on the river, but popular and often busy. It's Gastro
Pub style. Turn left out of the station. Go a few hundred yards,
turn
Paul Johnson wrote:
Recently, another thirty or so pipes have been added to this group and
very occassionally I am noticing a problem whereby select will indicate
that a pipe is ready for reading and sysread will attempt to read from
the pipe, but there is actually nothing there to be read, and
Paul Makepeace wrote:
Anyway, so has anyone moved from svk to git? Any thoughts on the experience?
I still use SVN for most of my stuff. I could never figure out SVK.
Git and Mercurial are both a doddle to set up and use. If I need to do any
complex branching/merging then I'll typically
Peter Corlett wrote:
If a business idea can't justify spending a tenner or so a month on a
virtual server, it's surely not worth pursuing?
Sure, but not all web sites are businesses, and not all business have people
who are comfortable using a command line, or even configuring a server using
a
Elliot Moore wrote:
http://blog.vipul.net/2008/08/24/redhat-perl-what-a-tragedy/
(https://bugzilla.redhat.com/show_bug.cgi?id=379791)
And here:
http://use.perl.org/~nicholas/journal/37274
Which says:
So to be fair they are still asleep on the job. Where's I'm awake and doing
this
Chris Jack wrote:
Rumour is Ross Perot made his billions on change requests...
I love that clown act he does.
A
Dirk Koopman wrote:
I agree. This is something that people that want fixed prices never seem
to factor in.
The other thing they often forget is fixed spec.
I've had clients who think that fixed price equates to an all-you-can-eat
buffet with an open bar.
A
Simon Luff wrote:
I'm up for this, who else we got?
Ooops! A major foul up on my part, I'm afraid. I forgot to check with
my Good Lady Wife, and it turns out I'm supposed to be babysitting.
Can't find anyone else to take my place at this short notice.
Bugger. As they say.
I can be there
Nicholas Clark wrote:
You mean that you don't want to come to the london.pm social meeting that
evening?
Awww.bollocks!
A
Sam Vilain wrote:
How about the Weyside? Not an ale pub but a few on tap, and a nice
meeting spot.
Yep, that works for me.
How about next thursday?
A
Piers Cawley wondered:
..if there's any nearby town in Surrey whose name begins with D.
Simon Wistow wrote:
Dorking?
No, I'm typing with my hands this time. :-)
Guildford or Surbiton would be better, being on fast (haha) rail links
up t'smoke way. Dorking is a smaller, harder to get to,
Kate L Pugh wrote:
So you're starting a new project, and you've designed a database
schema, and you want to write some code to set up the tables in the
database.
I use a template to generate the setup script for me.
A
Just for fun:
How many lines of Perl code have been written? Ever.
Here's my back-of-an-envelope guess:
First, how many Perl programmers are there?
Well, let's say that there are ~200 london.pm members who live in the
london catchment area and can be bothered to go to a london.pm
Richard Atkinson wrote:
If you don't mind travelling to Guildford, Surrey
[...]
I'm rather partial to beer, myself.
I live in Guildford, Surrey and I'm also rather partial to beer.
I think it must be time to organise the second ever Surrey.pm
meeting.
A
Steve Purkis wrote:
# chaining:
$obj-foo( $a_value )
-bar( $another_value );
I recognise how useful this can be but I'm not a fan of it.
IMHO, the foo() method of an object should return the foo of
the object. It shouldn't magically switch to returning the
object
Nigel Hamilton wrote:
Talking about inventing deities ... was anyone around when the GOD 'Kibo'
was invented on Usenet?
Yep. I've met and partied with Kibo himself. I have a special Kibo
Love Number of 1, reserved for people who have hugged Kibo and have been
told by Kibo that he loves them,
James Campbell wrote:
If God created the universe, who created God?
God didn't create the universe. God is the universe.
That's about the only thing that all the religious texts can agree on -
that God, or whatever name you chose for the concept, is omniprescient
and omnipotent. This
Andy Wardley wrote:
That's about the only thing that all the religious texts can agree on -
that God, or whatever name you chose for the concept, is omniprescient
and omnipotent. This implies that God is everywhere and in everything and
there can be nothing that is outside of God.
Iain
Paul Johnson wrote:
I think I wrote my first ever goto code in C yesterday.
Way back when I was a teen-geek, I played around writing a few games,
mostly in C, with the odd bit of assembler thrown in for bad taste.
One of these was a rip-off of the classic Tron light-cycle game.
I got myself
You know how people are always asking what it means to be a
london.pm member? Do you have to live in London? Do you have
to attend meetings? Do you have to watch Buffy? Or do you just
have to be subscribed to the mailing list?
Well I have a great idea! How about we all carry London.pm ID
Nicholas Clark wrote:
I smell a conspiracy. :-)
Sorry, that's my dick again.
I'll get my coat.
A
Michel Rodriguez wrote:
I actually enjoyed this thread.
Me too. It has been the most valuable discussion about XML I've had in
ages. It prompted me to go and find out more about RelaxNG (ThankYou,
ThankYou), RDF::Schema, and various other XML bits that I really should
have kept more
Dave Cross wrote:
Was it the excitment of finishing the book that finally sent
you completely over the edge?
No, I'm fine thanks. But I think my alter ego has got a few problems. :-)
A
Lusercop wrote:
This world is very rapidly becoming
a really unpleasant place in which to live.
I disagree. The world is a wonderful and beautiful place to live.
Some of the people who live it in are unpleasant, but they are the
tiny minority. Alas they also tend to have most of the power
1 - 100 of 238 matches
Mail list logo