Re: reading other people's lexicals

2003-06-16 Thread Robin Houston
On Fri, Jun 06, 2003 at 09:40:20PM +0100, Nicholas Clark wrote: I can hook into a call from a subroutine in that module, so I've looked at PadWalker as a way of getting at it, but it seems that it can only see lexicals defined within the subroutine. I'm not sure if this is an unintended

Re: Is it a bird ?

2002-02-01 Thread Robin Houston
On Fri, Feb 01, 2002 at 09:52:51AM +, [EMAIL PROTECTED] wrote: There is at least one quine that works for almost every programming language; the empty quine. But that's cheating really. [robin@puffinry robin]$ touch empty.c [robin@puffinry robin]$ gcc empty.c /usr/lib/crt1.o(.text+0x18):

Re: Is it a bird ?

2002-01-31 Thread Robin Houston
A discussion of this topic would hardly be complete without mentioning http://qs321.pair.com/~monkads/index.pl?node_id=133971 or http://qs321.pair.com/~monkads/index.pl?node_id=41310 .robin.

Re: Callbacks in class definition woe

2002-01-31 Thread Robin Houston
On Thu, Jan 31, 2002 at 05:26:36PM +, Jonathan Peterson wrote: $self-{rb}-addHook('invoke-on-contents', \Checker::invoke_on_contents); $self-{rb}-addHook('follow-url-test', \Checker::follow_url_test); You need to close over $self. Try this: $self-{rb}-addHook('invoke-on-contents', sub

Re: Callbacks in class definition woe

2002-01-31 Thread Robin Houston
On Thu, Jan 31, 2002 at 05:46:20PM -, Ivor Williams wrote: $self-{rb}-addHook('invoke-on-contents', sub {my $foo = $self; $foo-invoke_on_contents}); The intermediary $foo makes the anonymous sub into a closure. I don't _think_ you need the intermediary $foo, unless I'm missing

Re: Open Certification

2002-01-28 Thread Robin Houston
On Mon, Jan 28, 2002 at 06:29:36AM -0800, Randal L. Schwartz wrote: If they don't care about a chain of authority, you're it! Randal, I think you're missing the point (and I think you probably know it...) Of *course* a credible certification needs a chain of authority, but Larry doesn't

Re: Perl challenge

2002-01-28 Thread Robin Houston
On Mon, Jan 28, 2002 at 05:42:29PM +, Redvers Davies wrote: 195.43.246.52 Either its broken now or i've failed entirely to see the point :-) You need to fake the Host: header. Why not just put the entry in your /etc/hosts, and use the name? .robin.

Re: Advocacy link fest

2002-01-26 Thread Robin Houston
And on PageRank specifically, _The PageRank Citation Ranking: Bringing Order to the Web_. http://citeseer.nj.nec.com/page98pagerank.html I don't think it's publicly known _exactly_ what combination of factors Google uses in its ranking algorithm, but if your page has good textual relevance

Re: Advocacy link fest

2002-01-25 Thread Robin Houston
On Fri, Jan 25, 2002 at 01:26:14PM +, Simon Wilcox wrote: Google promotes sites based on being linked to. From this it follows that everyone who runs a website should link to nms from their homepage, or as close to it as possible, to get it shoved up the list a bit. It's also worth

Re: Implementing continuations in perl

2002-01-24 Thread Robin Houston
On Thu, Jan 24, 2002 at 01:31:50PM -, Ivor Williams wrote: Is there a way of getting a coderef for where you are inside caller? The coderef for where you are is an interesting concept, which sadly doesn't map very well to perl's internals. Only subroutines have coderefs; there isn't a

Re: bad nasty evil thread

2002-01-24 Thread Robin Houston
On Thu, Jan 24, 2002 at 03:38:06PM +, Lucy McWilliam wrote: I'm tempted to do a lightning talk (good practise for my viva) but I don't actually do anything astonishing Perl-wise, it's just the biology/methods that are quite fun. Oh yeah, do it! I know a lot about Perl but very little

Re: Perl Based Email Archiver

2002-01-24 Thread Robin Houston
On Thu, Jan 24, 2002 at 11:45:32AM -0500, Tommie M. Jones wrote: Also the Archiver does not know anything about thread structure. If anyone is an email expert and has some suggestions about it please let me know. I did not want to base it on the subject line so if there is another possible

Re: call level oddness

2002-01-21 Thread Robin Houston
Do you want to find the coderef of foo from _within_ a pre or post handler? If so, I imagine that's more or less equivalent to finding a coderef for 'bar' from within 'foo', given sub xxx { foo(); bar(); baz(); } It can certainly be done using Want-like techniques, but it'll make

Re: I want it now ...

2002-01-19 Thread Robin Houston
On Sat, Jan 19, 2002 at 07:59:52AM +0100, Paul Johnson wrote: Maybe you can ask the powers that be whether the ^=~ operator has a name? It's obviously a firework. .robin.

Re: OT perl question

2002-01-15 Thread Robin Houston
On Tue, Jan 15, 2002 at 04:06:40PM +, David Cantrell wrote: In C, you want isatty(3). In perl, try stat()ing STDIN. Or just use: if (-t) { ...} Pretty unreliable though - what if you used it in a pipe? I think the environment is a better way to go. It's actually pretty useful that you

pretty patterns

2002-01-10 Thread Robin Houston
Did any of you fo the the patterns thing last night? (I intended to, but I got distracted by set theory) What happened? How was it? .robin.

Re: Persistent/static vars in perl

2002-01-05 Thread Robin Houston
On Sat, Jan 05, 2002 at 01:48:13AM +, robin szemeti wrote: wild guess my($id) declares the variable at compile time regardless of the conditional, saving a likkle space for it .. and satisfying the scoping of 'strict' the conditional prevents initialisation of the variable at run time

Re: Why perl works for me.

2001-12-12 Thread Robin Houston
On Wed, Dec 12, 2001 at 05:15:38PM +0100, Newton, Philip wrote: And the answer was? Don't leave us hanging like this! :) 1 while s/\.(.*\.)/$1/; or something like that? s/\.(?=.*\.)//g; or even s/(.*)(?=\.)/ $_=$1; tr=.==d; $_ /e; .robin.

Re: Array Ref Weirdness

2001-12-11 Thread Robin Houston
On Mon, Dec 10, 2001 at 10:59:47AM -0800, Randal L. Schwartz wrote: ... My hunch is that this works in the same way that @a-[3] ... works, in that an array name is sometimes automatically a ... reference to that array, even though the language definition would ... argue otherwise. I've heard

[PATCH] Re: weird regexness

2001-12-06 Thread Robin Houston
--- op.c.orig Thu Dec 6 12:08:38 2001 +++ op.cThu Dec 6 12:14:57 2001 @@ -2055,6 +2055,13 @@ desc, sample, sample); } +if (right-op_type == OP_CONST + cSVOPx(right)-op_private OPpCONST_BARE + cSVOPx(right)-op_private OPpCONST_STRICT) +{ +

Re: [OT] Antialiased fonts...

2001-12-04 Thread Robin Houston
On Mon, Dec 03, 2001 at 10:29:52PM +, Nic Gibson wrote: And on a vaguely related perl related topic... has anyone upgraded Perl on OS X? I want to do it but I've blown up os X too many times recently and want to know someone else has made it work first. Yes, I have. My advice is not

Re: Re: IRC

2001-12-03 Thread Robin Houston
On Mon, Dec 03, 2001 at 03:51:01PM +, [EMAIL PROTECTED] wrote: Nope, busted somewhere here then. Using www.missingU.com/irc/ as a public webchat client ( behind fireway, so no inhouse chat ), getting the following response http://www.chickshardware.com/emb/mouselike/008846881x3.html

Re: Warnings, uninitialized value...

2001-11-27 Thread Robin Houston
On Tue, Nov 27, 2001 at 07:02:50PM +0100, Newton, Philip wrote: (And I'm not sure whether $x is distinguishable from ($x = undef). Hm... They don't seem to be currently distinguishable AFAICT. [robin@penderel robin]$ perl -MDevel::Peek -e 'Dump $x; $y = undef; Dump $y;' SV = NULL(0x0) at

Re: Books

2001-11-21 Thread Robin Houston
On Wed, Nov 21, 2001 at 12:20:15PM +, Dominic Mitchell wrote: -rwxrwxrwx 1 bin 25802 Mar 21 12:07 unix Is that... what I think it is? 25K? I've never seen one much less than a megabyte. .robin. -- Sometimes I sit in front of my washing machine and contemplate the worthlessness of

Re: Perl modules for different bases?

2001-11-19 Thread Robin Houston
On Mon, Nov 19, 2001 at 09:56:47AM +, Matthew Byng-Maddick wrote: This is indeed correct, Ah, consistency at the expense of reasonableness! :-) Wha's the operating system in which if you drag a file icon to the printer, it will print the file *and then delete it*? .robin. -- It really

Re: Re: Re: TPJ

2001-10-31 Thread Robin Houston
On Wed, Oct 31, 2001 at 06:10:11AM -0800, Dave Cross wrote: If I write can write an article for either perl.com or perlmonth, then I'm going to offer it first to perl.com. Sure I don't _need_ the $250, but it's nice to have if it's available :) I'm still dubious about how much effect the

Re: sunday / saff london

2001-10-31 Thread Robin Houston
On Wed, Oct 31, 2001 at 05:47:44PM +0100, Merijn Broeren wrote: http://www.statistics.gov.uk/products/p5768.asp Page 6, the seasonally adjusted table. No particular bias. Isn't that *because* it's seasonally adjusted? I won't pretend I understand exactly what they're doing, but the note in

Re: Config Management Role

2001-10-31 Thread Robin Houston
On Wed, Oct 31, 2001 at 06:19:33AM -0800, Randal L. Schwartz wrote: my %foo; $foo{$a[$_]} = $a[-1-$_] for 0..$#a; my (%foo, $i); $foo{$_} = $a[--$i] for @a; Hmm. .robin. -- Sometimes I sit in front of my washing machine and contemplate the worthlessness of life. My washing machine isn't

Re: Config Management Role

2001-10-30 Thread Robin Houston
On Tue, Oct 30, 2001 at 09:03:18PM +, Dave Cross wrote: Secondly, what is an easier way to populate %foo? [blank space inserted] C@foo{@a} = reverse @a, presumably. Is that sample intended to be indicative of the kind of code you'll be

Re: keyboards

2001-10-25 Thread Robin Houston
On Wed, Oct 24, 2001 at 07:18:49PM -0400, anathema wrote: Does it stand up to soup? I loved my last keyboard, it's a pity that I've had to replace it. Didn't rinsing it work then? .robin. -- That would be a glorious life, to addict oneself to perfection; to follow the curve of the

Re: ANNOUNCE: New Heretics meeting

2001-10-24 Thread Robin Houston
On Wed, Oct 24, 2001 at 11:40:34AM +0100, Mark Fowler wrote: Thursday after the first Wednesday of the month. Official meeting is on Thursday the 8th. That is also the Thursday after the first Thursday of the month in this case, you have to admit. .robin.

Re: pdcawley++

2001-10-24 Thread Robin Houston
On Wed, Oct 24, 2001 at 12:35:31PM +0100, James A. Duncan wrote: I was under the impression that code spat out by B::Deparse was passing any test that wasn't reliant on order of BEGIN blocks (and therefore things like pragmata where a little bit squew whiff[0]). That accounts for 90% of the

Re: Be afraid. Be very afraid.

2001-10-24 Thread Robin Houston
Is there a reason that you have to use flat text files to store these data? (It seems like borderline insanity, not that that need be a bad thing). If you had the information in an RDBMS, it would be much easier to generate the sort of report you want (and would probably be quicker too).

Re: keyboards

2001-10-24 Thread Robin Houston
On Wed, Oct 24, 2001 at 09:30:13AM -0400, Mz anathema wrote: Can anyone suggest a good way to recover a soup-soaked keyboard? Wash it under the tap, and leave it to dry thoroughly (upside down somewhere warm). Sounds mad, but it's worked for me in the past. Remember to unplug it first :-)

Re: NMS

2001-10-24 Thread Robin Houston
On Wed, Oct 24, 2001 at 08:19:39AM -0700, Dave Cross wrote: My latest work was checked into CVS on Penderel. I'll check and see what I've got in my local copy. I would guess that what you checked into CVS is still in /home/cvsroot.old/nms Presumably that could easily be copied into the new

Re: NMS

2001-10-24 Thread Robin Houston
On Wed, Oct 24, 2001 at 05:05:22PM +0100, Greg McCarroll wrote: however as the guys who admin the box do so on a voluntary basis, i would take a personal backup of anything important you put on the box Where's the logic in that? Are volunteers more likely to make mistakes resulting in

Re: NMS

2001-10-24 Thread Robin Houston
On Wed, Oct 24, 2001 at 05:45:39PM +0100, Greg McCarroll wrote: i was more implying that you had the right to bitch at paid professionals, with the people who currently admin the box the only right you have is to buy them beer ;-) I agree :-) sorry I misunderstood you .robin. -- Images

Re: The Visual Display of Quantitative Information

2001-10-23 Thread Robin Houston
On Tue, Oct 23, 2001 at 12:01:38PM +0200, Newton, Philip wrote: Ranks in the Perl arcana along with ignoring lines beginning with dot and some letters My perl doesn't seem to do that. Or do they have to be particular letters? The most arcane special case that I know about is that a spurious

Re: one for dave (new module)

2001-10-23 Thread Robin Houston
On Tue, Oct 23, 2001 at 02:44:41PM +0100, Richard Clamp wrote: +sub gay::is { http://www.cookwood.com/cgi-bin/lcastro/perlbbs.pl?form=4700; } I think you want s/form/read/ there. .robin.

Re: Classic Computer Books (Non-Perl)

2001-10-18 Thread Robin Houston
I'm surprised no one has mentioned the Mythical Man Month, which despite its age is still delightfully sane and readable. One of my favourites is _Inner Loops_ by Rick Booth (http://cseng.aw.com/book/0,,0201479605,00.html), for its sheer enthusiasm. A book-length hymn to the joys of performance

Re: Classic Computer Books (Non-Perl)

2001-10-18 Thread Robin Houston
How could I forget Edward Tufte's beautiful, beautiful book _The visual display of quantitative information_. I've never, of course, been called upon to display quantitative information in a visual form - but oh, what a book! http://www.edwardtufte.com/1576494545/tufte/books_vdqi .robin.

Legal Notice

2001-10-05 Thread Robin Houston
Whenever I restart my computer, a dialogue box appears saying Legal Notice: You are accessing a controlled system that contains commercially sensitive and confidential information. Access to this system is granted for the sole purpose of conducting work related to [company]. Use of these

Re: outage, explanation

2001-10-04 Thread Robin Houston
On Thu, Oct 04, 2001 at 07:54:22AM +0100, Greg McCarroll wrote: [...] the long sequences (overruns) on rpc statd in the logs? We still get those on our boxen sometimes. It makes me feel very smug that I upgraded months ago :-) .robin. -- Sometimes I sit in front of my washing machine and

Re: Hand-me-down books

2001-09-26 Thread Robin Houston
On Wed, Sep 26, 2001 at 02:23:31PM +0100, Simon Wilcox wrote: Err, it's about the same size as most o'reilly books and about 1 thick. It's from their blue period, with grasshoppers on the front. What about the binding? Should we do a series of reviews of technical books, concentrating

Re: Friday Morning Fun

2001-09-25 Thread Robin Houston
On Mon, Sep 24, 2001 at 08:47:50PM +0200, Paul Johnson wrote: Actually, I'd think this would be a good candidate for a warning, which you would have got if you had explicitly compared to $. I agree. By the way, what version did that code come from? I took it from perl@10996, though it's the

Penderel HTTP logs

2001-09-21 Thread Robin Houston
I propose changing the format of the access_log from common to combined, so that the User-agent and Referer are also logged. Does anybody object? .robin. -- select replace(a, CHR(88), replace(a,,'')) from ( select 'select replace(a, CHR(88), replace(a,,)) from (

Re: Friday Morning Fun

2001-09-21 Thread Robin Houston
On Fri, Sep 21, 2001 at 03:16:53AM -0700, Dave Cross wrote: [...] the right answer for the wrong reason, [...] This was puzzling me, but I think I've got it. They interpret it as C($i) = (1, 2); -- is that it? .robin.

afterquoting (was: Friday Morning Fun)

2001-09-21 Thread Robin Houston
This discussion has given me an idea for an unusual (but valid) way of quoting strings. For example: use strict; my $x = hello =; print $x

Re: Friday Morning Fun

2001-09-21 Thread Robin Houston
On Fri, Sep 21, 2001 at 06:30:25AM -0700, Dave Cross wrote: No need to change anything. We'll just tell 'em that's what $i = (1, 2); does. No-one will ever know the difference :) Do you mean to say that people use untied variables? Where's the fun in that? .robin.

PPD

2001-09-17 Thread Robin Houston
Is there a Win32 user out there who would be prepared to make a PPD file of Want-0.05 for me? Most Win32 users are limited to only three kinds of context at the moment, poor things. .robin.

Re: The best film of all time?

2001-09-17 Thread Robin Houston
On Mon, Sep 17, 2001 at 05:02:52PM +0100, Robin Houston wrote: Brazil Actually, I'm wondering whether Casablanca might be better. Difficult call. I just hope I'm never in a burning building with the last remaining copy of each, and only enough time to rescue one. .robin.

Re: PPD

2001-09-17 Thread Robin Houston
On Mon, Sep 17, 2001 at 05:38:24PM +0100, Mark Fowler wrote: I've got a windows box[1] and I'll have a go if you want. I love you :-) 1) What's a PPD file? Is that like a PPM? I think that the PPM (Perl Package Manager) installs PPD files (no idea what it stands for) Ah hold on. PPD is

Re: PPD

2001-09-17 Thread Robin Houston
On Mon, Sep 17, 2001 at 05:50:59PM +0100, Robin Houston wrote: VC++ 6m if you have a recent (6xx) ActivePerl. This isn't an obscure sub-version. It is simply that the m key is next to the comma. .robin.

Re: Linux Format

2001-09-14 Thread Robin Houston
On Fri, Sep 14, 2001 at 06:36:57PM +0100, Dave Cross wrote: And one of the few people who gets specific mention is Robin Houston :) Oh yes? Tell me more! .robin. -- God! a red nugget: a fat egg under a dog.

The day after the second Monday of the month

2001-09-13 Thread Robin Houston
'Recently the International Day of Peace was moved from the third Tuesday of September to the Tuesday following the second Monday of September.' http://www.worldpeace.org/culture.html .robin.

Re: bork

2001-09-13 Thread Robin Houston
On Thu, Sep 13, 2001 at 03:22:35PM +0100, jo walsh wrote: penderel went bork for a little while, spitting out erudite stuff about scsi bus errors :/ I was trying to compile Python on it, at the time it died. Perhaps it took exception. .robin.

Re: History of number systems [Was: Re: Happy Birthday]

2001-09-10 Thread Robin Houston
On Mon, Sep 10, 2001 at 04:34:00PM +0100, Simon Wilcox wrote: I *should* know this I feel sure [1] but can anyone point to the design decision that led to us all using Hex ? It's a convenient compaction of binary notation, as used by computers everywhere. Each hex digit corresponds to a

precision (was: Divorcing data storage from business logic)

2001-07-09 Thread Robin Houston
On Mon, Jul 09, 2001 at 05:05:14PM +0200, Philip Newton wrote: I want an alternative to MySQL; it has to be free. Is there such an alternative?. At least one of your feet is such that the other is not better than it. Put forward such a foot. .robin. -- Have you been certain you came to me

Re: ICFP

2001-07-06 Thread Robin Houston
On Fri, Jul 06, 2001 at 02:09:25PM +0100, Greg McCarroll wrote: for a number of years i've fancied entering the ICFP's competiton http://cristal.inria.fr/ICFP2001/prog-contest/ with a Perl entry, would anyone else be interested in forming a team? Could be a laugh. It's worth bearing in

Re: Job

2001-07-05 Thread Robin Houston
On Wed, Jul 04, 2001 at 08:26:45PM +0100, David Cantrell wrote: Or at least, that was the only way I could cast floats to int or vice versa back whn I was writing Java. Eh? [robin@dev robin]$ cat Foo.java public class Foo { public static void main (String[] args) { double b = 3.14159;

Re: Job

2001-07-03 Thread Robin Houston
On Tue, Jul 03, 2001 at 03:36:35PM +0100, Matthew Byng-Maddick wrote: I like Perl too. And C. Not so fond of Java. Am trying to learn Haskell. Does that make me weird? No, i don't think so. But programming languages are a religious topic, aren't they? Often i think people just feel threatened

Re: Job

2001-07-03 Thread Robin Houston
On Tue, Jul 03, 2001 at 04:54:07PM +0100, David Cantrell wrote: If Vignette's is a good application for it then thank fuck I haven't seen any bad applications of it. Perhaps Vignette's implementation of tcl really really sucks (wouldn't surprise me seeing how shit they are at ... well,

Re: Job

2001-07-03 Thread Robin Houston
On Tue, Jul 03, 2001 at 05:27:02PM +0100, David Cantrell wrote: So, as someone who probably knows tcl better than I do - is it a tclism or a SSism that you have to use a different number of depending on how deeply nested your code is? You mean [ right? It's an SSism, and an

Re: X windows

2001-07-02 Thread Robin Houston
On Mon, Jul 02, 2001 at 07:41:36AM +0100, Greg McCarroll wrote: does anyone know how to find out what font a wterm is using, or indeed an xterm - i've tried xwininfo and it doesnt give this information I don't know what a wterm is, but an xterm will use whatever font you tell it to. You

Re: Anyone there?

2001-06-29 Thread Robin Houston
On Fri, Jun 29, 2001 at 02:29:39PM +0100, Cross David - dcross wrote: The new design of http://www.perl.com - good or bad? execrable. .robin.

Re: rewarding tasks

2001-06-28 Thread Robin Houston
On Thu, Jun 28, 2001 at 12:21:13PM +0100, Lee Goddard wrote: I'd be really really careful about going for the postgrad option: I did it last year and the level of frustration was very high. A good friend of mine is at Sussex at the moment, doing A-life stuff at cogs. Is that what you did? He

Re: realaudio, streaming, recording, linux (whoops i went keywords instead of subject)

2001-06-27 Thread Robin Houston
On Wed, Jun 27, 2001 at 04:01:57PM +0200, Niklas Nordebo wrote: Couldn't you just link /dev/dsp to a file? I doubt it. The application would die when its ioctls failed, I would think. OTOH you *could* write a small device driver which behaves like a proper sound driver, but saves the data to a

Re: rewarding tasks

2001-06-27 Thread Robin Houston
On Wed, Jun 27, 2001 at 07:06:07PM +0200, Marcel Grunauer wrote: During a conversation on #london.pm the topic of rewarding tasks came up. It seems you can take small projects to completion, but not big ones; I've certainly never worked for a company that had seen a big project all the way

Re: filehandle in a tied scalar

2001-06-25 Thread Robin Houston
On Mon, Jun 25, 2001 at 12:30:12PM +0200, Marcel Grunauer wrote: I'm about to try that. Let me know how it goes :-) I got perl@10907 to compile with only a few minor problems, so there is bleadperl on this box now... at last! kew-wel. what problems? .robin. -- It really depends on the