NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Cycling (Score:2)
However, I'm lucky in that all the way to work is downhill and all the from work is uphill. So I can come home and get straight in the shower.
I love my Brompton [bromptonbicycle.co.uk]. :-)
-Dom
[1] Actually, I cycled in before, it's just that it was such a short distance it was hardly worth mentioning. :-
Re:Cycling (Score:3, Interesting)
Does it ride well? It looks like it would be hard(er) work than it should be...
Re:Cycling (Score:3, Informative)
As to riding it, it's not terribly hard work. I've got a 5 speed model which is nicely geared. It's easy in the lower gears, but you can notch up a reasonable speed in the high gears. The main difficultly that I found when I started riding was that you're quite high up in the saddle, with smallish handle bars. This makes the bike feel very responsive to your movements. But I'm so used
CIDR addresses (Score:2, Informative)
Re:CIDR addresses (Score:2)
It also probably uses a lot more RAM than mine. I tried to keep everything on disk because of the sheer volume of IPs (totaling just over 2 million). We tried to do everything in RAM but it used about 600M of memory, which is too much on an alrea
Re:CIDR addresses (Score:1)
One of MJD's test files had 65536 separate but contiguous x/32 CIDR addresses to merge. If addresses's are contiguous then the middle node is deleted, and the hash object is left with just the start and end of the joined range. If ranges are overlapping, then periodic calls to 'clean' will eliminate the overlapping nodes. If you have many completely separate ranges, then yeah it'll take alot of memory. I'm not sure what you mean by LHS and RHS though (well, I know what they mean, but not the context here :-
Re:CIDR addresses (Score:2)
Re:CIDR addresses (Score:1)
Ah, then (I think) it would've been easily doable with Net::CIDR::Lite, though what you ended up with is probably more efficient speed and memory-wise, especially if there are alot of lists (and I admit the docs of N::C::L are lacking).
Instead of merging the lists, you'd create a 'spanner' object (dumb name, but I didn't know what else to call it), where the labels are the Socket::inet_aton() of what you want assig
Happy Cycling? (Score:2, Informative)
I didn't last more than half a year because I took a corner too fast and broke both my arms. Given that I'd already come off my bike due to poor cornering (which left me picking gravel out of my back in the shower) a few years beforehand I decided to give up.
I've told quite a few people this story and be
Re:Happy Cycling? (Score:3, Funny)
-Dom
Re:Happy Cycling? (Score:2)
You should have a look at some of the new CatEye bright white LED battery powered headlights. They're so bright that they make me feel silly for getting one of the hub dynamo systems. :)
Bitwise string ne bitwise integer (Score:1)
You must have used two strings. Bitwise combination of two strings is different in Perl, than of integers. In fact, if any operand is a number, Perl will try to convert the other argument to a number, too.
Result:
vs.
Result:
In the case of strings, Perl will bytewise combine the bits of the bytes of which the strings consist. For numbers, Perl just combines the integers, commonly 32 bits each.
Re:Bitwise string ne bitwise integer (Score:2)
Re:Bitwise string ne bitwise integer (Score:1)