Re: similarity detection

2002-10-08 Thread Paul Makepeace
On Tue, Oct 08, 2002 at 11:43:47AM +0100, alex wrote: > sqrt( (x0-x1)^2 + (y0-y1)^2 + (z0-z1)^2) > > so, in your particular example you could try a 26 dimensional space where > each dimension is the frequency of a particular letter in the alphabet. if I think you will find that thi

Re: applying patterns

2002-10-08 Thread David Cantrell
On Tue, Oct 08, 2002 at 10:39:54PM +0100, Simon Wistow wrote: > This kind of stuff is incredibly simple to program[0], biologists have > known it's how ants do it for years yet we still have crappy static > routing tables. Random is good if you are starting from a base of no knowledge. If, howe

Re: [Job]

2002-10-08 Thread Simon Wilcox
On Tue, 8 Oct 2002, Dave Hodgkinson wrote: > > Mtasty... > > http://www.it.Jobserve.com/jobserve/EmailJob.asp?jobid=3dJ8C4ABDBF27FE78B5 Then again... "You must have worked for a company that is involved in Network Security, preferably one that produces security products..." Now that

Re: applying patterns

2002-10-08 Thread Simon Wistow
On Tue, Oct 08, 2002 at 10:13:20PM +0100, Shevek said: > On Tue, 8 Oct 2002, Nigel Hamilton wrote: > You mean agent systems? agentlink.org or whatever, FIPA, the whole show > like that. Read 'Creation - Life and how to make it' by Steve Grand (http://london.pm.org/reviews/create_life.html) and

[Job]

2002-10-08 Thread Dave Hodgkinson
Mtasty... http://www.it.Jobserve.com/jobserve/EmailJob.asp?jobid=3dJ8C4ABDBF27FE78B5

Re: applying patterns

2002-10-08 Thread Paul Sharpe
> Simon Wistow exasperatedly wrote: > > Hauling this whole thread back on topic for one, last, death rattle > > attempt at bringing it back where I wanted to discuss - > > > > what I think si interesting is not only looking for recurring patterns > > in programming but looking at problems in compu

Re: applying patterns

2002-10-08 Thread Shevek
On Tue, 8 Oct 2002, Nigel Hamilton wrote: > It amazes me that no single ant has a blue print for what the Ant hill is > going to look like ... But yet somehow they manage to work together to > make a huge hill, with little passageways and storage rooms etc. > > Each ant's pattern of work blends

Re: applying patterns

2002-10-08 Thread Tim Sweetman
Simon Wistow exasperatedly wrote: > Hauling this whole thread back on topic for one, last, death rattle > attempt at bringing it back where I wanted to discuss - > > what I think si interesting is not only looking for recurring patterns > in programming but looking at problems in computing as a w

Re: applying patterns

2002-10-08 Thread Nigel Hamilton
> what I think si interesting is not only looking for recurring patterns > in programming but looking at problems in computing as a whole (inodes, > makefiles, process schedulers) and applying them on a microcosm or even > on a microcosm. Or even more interesting - apply your learning to > another

Re: applying patterns

2002-10-08 Thread Simon Wistow
On Tue, Oct 08, 2002 at 05:21:15PM +0100, Shevek said: > I disagree entirely. This gives the impression that one should consciously > code from the book. Au Contraire. If you don't understand the pattern properly *then* you'd be cut and pasting from the book. But sometimes it's just nice to alre

Re: applying patterns

2002-10-08 Thread Ben
On Tue, Oct 08, 2002 at 04:34:56PM +0100, Nigel Wetters wrote: > On Tue, 8 Oct 2002, Paul Johnson wrote: > > > And anyway, in my day "pattern" was spelt "recipe" :-) > > Sort of. Patterns are small ideas. They work well in combination. Many > recipes are larger, and solve whole problems. I part

Re: applying patterns

2002-10-08 Thread Shevek
On Tue, 8 Oct 2002, Simon Wistow wrote: > On Tue, Oct 08, 2002 at 04:34:56PM +0100, Nigel Wetters said: > > I espouse them and use them. The target audience is all programmers, as > > one of their aims is to provide a common language. > > As I understand it patterns in programming are for two r

Re: ADSL Help

2002-10-08 Thread matt baker
> > Because come the day you want to plug in another machine, you won't have > > to deal with the crawling horror that is the NAT implementation on most > > ADSL 'routers'? > > > Thanks for all the help, but I think I'm now even more confused. > > I think I need an ADSL router (with built in fire

Re: applying patterns

2002-10-08 Thread Simon Wistow
On Tue, Oct 08, 2002 at 04:34:56PM +0100, Nigel Wetters said: > I espouse them and use them. The target audience is all programmers, as > one of their aims is to provide a common language. As I understand it patterns in programming are for two reasons : 1. Don't reinvent the wheel. Somebody el

Re: applying patterns

2002-10-08 Thread Nigel Wetters
On Tue, 8 Oct 2002, Paul Johnson wrote: > For that matter, how much do people who espouse patterns conciously > use them? Maybe expert, or even good programmers are not the target > audience. I espouse them and use them. The target audience is all programmers, as one of their aims is to provide

Re: code evaluation in comment!

2002-10-08 Thread Rafiq Ismail
On Tue, 8 Oct 2002, Barbie wrote: > #print STDERR "return=[$session,".(join(",",@retvals))."]"; > With that said, why do I get the following error in the log file? > Use of uninitialized value in join or string at > c:/INetPub/wwwroot/elizium/cgi-bin/lib/Security.pm line 95. You haven't got Apach

Re: ADSL Help

2002-10-08 Thread Robert Shiels
From: "Chris Andrews" <[EMAIL PROTECTED]> > > On Mon, 7 Oct 2002, Lusercop wrote: > > > On Mon, Oct 07, 2002 at 05:42:32PM +0100, Jon Reades wrote: > > > I wish that Zen let you specify a number of IP addresses -- their handy > > > 'configurator' is smart enough to ask a few questions about what y

Perlidex

2002-10-08 Thread Adam Goldstein
Although it was not my original intention to have everyone on the list receive a registration code, I am not going to disable its use from this version of Perlidex. However, I most likely will disable it from future uses of Perlidex. I guess you could consider the version that you're using "Perl

Re: [APACHE - OT] RewriteRule - FIXED

2002-10-08 Thread Lusercop
On Tue, Oct 08, 2002 at 03:24:36PM +0100, Leo Lapworth wrote: > An upgrade from 1.3.22 to 1.3.26 fixed the problem. What machines are these, can we r00t them via the chunked-encoding vulnerability? -- Lusercop.net - LARTing Lusers everywhere since 2002

Re: code evaluation in comment! (fwd)

2002-10-08 Thread Barbie
From: "Rafiq Ismail" <[EMAIL PROTECTED]> > You haven't got Apache::Registry caching your cgi's have you? Or it could > be Mod_perl? Try a server restart or using StatINC if you're not on a > production server. Shouldn't be making changes there though. I restarted the server and started a new web

Re: code evaluation in comment! (fwd)

2002-10-08 Thread Rafiq Ismail
-- Forwarded message -- Date: Tue, 8 Oct 2002 16:15:02 +0200 (CEST) From: Rafiq Ismail <[EMAIL PROTECTED]> To: London PM <[EMAIL PROTECTED]> Subject: Re: code evaluation in comment! On Tue, 8 Oct 2002, Barbie wrote: > #print STDERR "return=[$session,".(join(",",@retvals))."]"; > W

Re: [APACHE - OT] RewriteRule

2002-10-08 Thread Graham Barr
On Tue, Oct 08, 2002 at 01:45:18PM +0100, Leo Lapworth wrote: > On Tue, Oct 08, 2002 at 01:06:41PM +0100, Paul Makepeace wrote: > > Try , > > > > RewriteLog /var/log/apache/rewrite.log > > RewriteLogLevel 1 > > > > And see if you can figure it out, perhaps with a higher LogLevel.

Re: [APACHE - OT] RewriteRule - FIXED

2002-10-08 Thread Leo Lapworth
Well, even though the documentation says: RewriteRule Compatibility: Apache 1.2 (partially), Apache 1.3 An upgrade from 1.3.22 to 1.3.26 fixed the problem. Now to go and install it on 4 other machines, this time I think I'll use a debian package rather than the source.. so that upgrading will b

Re: [APACHE - OT] RewriteRule

2002-10-08 Thread Lusercop
On Tue, Oct 08, 2002 at 01:45:18PM +0100, Leo Lapworth wrote: > Everything is applied correctly, but the regex just doesn't seem to work! It's RSE's code, don't expect it to work :-) -- Lusercop.net - LARTing Lusers everywhere since 2002

code evaluation in comment!

2002-10-08 Thread Barbie
Note the '#' at the beginning of the following line: #print STDERR "return=[$session,".(join(",",@retvals))."]"; With that said, why do I get the following error in the log file? Use of uninitialized value in join or string at c:/INetPub/wwwroot/elizium/cgi-bin/lib/Security.pm line 95. If I de

Re: similarity detection

2002-10-08 Thread Shevek
On Tue, 8 Oct 2002, Paul Golds wrote: > On Tue, Oct 08, 2002 at 12:11:38PM +0100, Shevek wrote: > > > d(x,y) = (x1 - y1)^2 + (x2 - y2)^2 + (x3 - y3)^2 > > The point being you don't need to square either, in which case you do get > > > a different ball. > > Surely you do need to square, or somet

Re: similarity detection

2002-10-08 Thread Graham Seaman
On Tue, 8 Oct 2002, Paul Golds wrote: > On Tue, Oct 08, 2002 at 12:11:38PM +0100, Shevek wrote: > > > d(x,y) = (x1 - y1)^2 + (x2 - y2)^2 + (x3 - y3)^2 > > The point being you don't need to square either, in which case you do get > > > a different ball. > > Surely you do need to square, or somet

Re: similarity detection

2002-10-08 Thread Ben
On Tue, Oct 08, 2002 at 01:18:13PM +0100, Shevek wrote: > > Actually I was referring (with much gesticulation) to different metrics > having different balls, but ... yes, in this case you are right. > > The point being you don't need to square either, in which case you do get > a different ball.

Re: [APACHE - OT] RewriteRule

2002-10-08 Thread Leo Lapworth
On Tue, Oct 08, 2002 at 01:06:41PM +0100, Paul Makepeace wrote: > Try , > > RewriteLog /var/log/apache/rewrite.log > RewriteLogLevel 1 > > And see if you can figure it out, perhaps with a higher LogLevel. > Generally I tend to use [PT] (pass-through) especially if there are > con

Re: similarity detection

2002-10-08 Thread Paul Golds
On Tue, Oct 08, 2002 at 12:11:38PM +0100, Shevek wrote: > > d(x,y) = (x1 - y1)^2 + (x2 - y2)^2 + (x3 - y3)^2 > The point being you don't need to square either, in which case you do get > a different ball. Surely you do need to square, or something with a (for example) difference of 10 on x, -10

Re: applying patterns

2002-10-08 Thread Shevek
On Tue, 8 Oct 2002, Paul Johnson wrote: > > Shevek said: > > > This is what TIEARRAY is for. It is purely, simply and totally an > > iterator pattern. > > What? TIEARRAY was an iterator pattern before iterator patterns > existed? How can that be? Do abstract concepts "come into existence"?

Re: similarity detection

2002-10-08 Thread Shevek
On Tue, 8 Oct 2002, Ben wrote: > On Tue, Oct 08, 2002 at 12:11:38PM +0100, Shevek wrote: > > Metric space theory tells you that your distance computation is valid > > whether you square or not. It's still a valid metric. The unit ball is a > > slightly different shape ... > > Nonsense. > > d(

Re: applying patterns

2002-10-08 Thread Paul Johnson
Shevek said: > This is what TIEARRAY is for. It is purely, simply and totally an > iterator pattern. What? TIEARRAY was an iterator pattern before iterator patterns existed? How can that be? Actually, I'm not sure which one came first because I rarely use ties and I don't think I've ever us

Re: [APACHE - OT] RewriteRule

2002-10-08 Thread Paul Makepeace
On Tue, Oct 08, 2002 at 12:11:48PM +0100, Leo Lapworth wrote: > Hi Guys, > > Sorry about this... > > I'm trying to do a (very simple!) RewriteRule but > it's not having any of it... Unheard of! Everyone gets rewrite rules right the first time! :) Try , RewriteLog /var/log/apache/rewr

Re: similarity detection

2002-10-08 Thread Tim Sweetman
> > Firstly, AI notwithstanding, this is going to be a heuristic fudgy mess. > > Therefore you should not expect your solution to work reliably, and you > > will need manual techniques for merging/cross-relating similar jokes. > > This is the classic search engine problem. Well, sort of - search

Re: similarity detection

2002-10-08 Thread Lusercop
On Tue, Oct 08, 2002 at 12:21:26PM +0100, Ivor Williams wrote: > Sounds an interesting project. Could have more applications than jokes. > Jeeves with attitude? Jeeves is a cheat. -- Lusercop.net - LARTing Lusers everywhere since 2002

Re: similarity detection

2002-10-08 Thread Ben
On Tue, Oct 08, 2002 at 12:11:38PM +0100, Shevek wrote: > On Tue, 8 Oct 2002, alex wrote: > > > indeed - i seem to vaguely remember that i didn't use the sqrt in my > > postal sector[0] comparisons (it was to calculate nearest specsavers > > retail outlets to a postcode) and sql looked something

RE: similarity detection

2002-10-08 Thread Ivor Williams
On Tuesday, October 08, 2002 11:50 AM, Tim Sweetman [SMTP:[EMAIL PROTECTED]] wrote: > nemesis wrote: > > > > Hello again, > > > > I have a database (mySQL) full of variable length text fields (average > > about > > 1500 characters, 250 words). Curently there are about 250 fields, but I > > hop

Re: similarity detection

2002-10-08 Thread Nigel Hamilton
> > indeed - i seem to vaguely remember that i didn't use the sqrt in my > > postal sector[0] comparisons (it was to calculate nearest specsavers > > retail outlets to a postcode) and sql looked something like this: > > Metric space theory tells you that your distance computation is valid > whet

[APACHE - OT] RewriteRule

2002-10-08 Thread Leo Lapworth
Hi Guys, Sorry about this... I'm trying to do a (very simple!) RewriteRule but it's not having any of it... The Example in the docs shows: RewriteRule ^/somepath(.*) /otherpath$1 [R] for GET /somepath/pathinfo In my VirtualHost I have: RewriteRule ^/mag/(.*) /foxtons/magazines/cover_story/$

Re: similarity detection

2002-10-08 Thread Shevek
On Tue, 8 Oct 2002, alex wrote: > indeed - i seem to vaguely remember that i didn't use the sqrt in my > postal sector[0] comparisons (it was to calculate nearest specsavers > retail outlets to a postcode) and sql looked something like this: Metric space theory tells you that your distance compu

Re: similarity detection

2002-10-08 Thread Shevek
On Tue, 8 Oct 2002, alex wrote: > so, in your particular example you could try a 26 dimensional space where > each dimension is the frequency of a particular letter in the alphabet. if This will fail for the same reason that this is a crappy hash algorithm. All English sentences tend to have th

Re: applying patterns

2002-10-08 Thread Shevek
On Tue, 8 Oct 2002, Marty Pauley wrote: > On Tue Oct 8 09:47:35 2002, Paul Mison wrote: > > I believe -- and I was half paying attention to the talk, half > > relaying it on IRC, which is Bad and Wrong and which I now Regret, so > > don't be surprised if I've got this compeletly wrong -- that

Re: similarity detection

2002-10-08 Thread alex
ps a final refinement might be to weight each dimension by total frequency of that letter in the jokes database. eg less frequent letters like j or x contain more information than more frequent ones (eg the vowels - s, r, t etc) alex On Tue, 8 Oct 2002, nemesis wrote: > alex wrote: > > probabl

Re: similarity detection

2002-10-08 Thread alex
indeed - i seem to vaguely remember that i didn't use the sqrt in my postal sector[0] comparisons (it was to calculate nearest specsavers retail outlets to a postcode) and sql looked something like this: SELECT *,((northing-?)*(northing-?))+((easting-?)*(easting-?)) AS distance FROM posta

Re: similarity detection

2002-10-08 Thread nemesis
alex wrote: > probably completely crap but following is an approach i have been thinking > about for a while and have been looking for the right soft/textual dataset > to try it out on. Thanks everyone for the suggestions. I certainly have some more ideass to work on. Will

Re: Straw poll

2002-10-08 Thread Rafiq Ismail
On Tue, 8 Oct 2002, Barbie wrote: > From: "Ivor Williams" <[EMAIL PROTECTED]> > > > Also, how > > about covering Devel::ptkdb. This is a graphical Tk debugger, and very > > handy for debugging cgi scripts (just alter the shebang line to add > > -d:ptkdb. Even works on Windows). > > This I would li

Re: similarity detection

2002-10-08 Thread Roger Burton West
On or about Tue, Oct 08, 2002 at 11:43:47AM +0100, alex typed: > b) find proximity by distance in the n-dimensional space. > eg for a 3-d space you would use this formula: > > sqrt( (x0-x1)^2 + (y0-y1)^2 + (z0-z1)^2) Remembering that if you just want "the X closest p

Re: similarity detection

2002-10-08 Thread nemesis
Simon Wistow wrote: > On Tue, Oct 08, 2002 at 11:23:59AM +0100, nemesis said: > >>Alternatively I could generate some stats about every field as I entered it into >>the database, ie number of words and a list of the most repeated words (minus >>common words) and their frequency. Then I could c

Re: similarity detection

2002-10-08 Thread Tim Sweetman
nemesis wrote: > > Hello again, > > I have a database (mySQL) full of variable length text fields (average about > 1500 characters, 250 words). Curently there are about 250 fields, but I hope > this to expand to as many as possible (it is an online joke archive). Well... Firstly, AI notwiths

Re: similarity detection

2002-10-08 Thread alex
probably completely crap but following is an approach i have been thinking about for a while and have been looking for the right soft/textual dataset to try it out on. the fundamental idea is: a) map each instance into a point in n-dimensional space b) find proximity by distanc

Re: similarity detection

2002-10-08 Thread Simon Wistow
On Tue, Oct 08, 2002 at 11:23:59AM +0100, nemesis said: > Alternatively I could generate some stats about every field as I entered it into > the database, ie number of words and a list of the most repeated words (minus > common words) and their frequency. Then I could calculate similarity based

Re: applying patterns

2002-10-08 Thread Marty Pauley
On Tue Oct 8 09:47:35 2002, Paul Mison wrote: > > I believe -- and I was half paying attention to the talk, half > relaying it on IRC, which is Bad and Wrong and which I now Regret, so > don't be surprised if I've got this compeletly wrong -- that mjd's > point was not so much that the patter

Re: Straw poll

2002-10-08 Thread Barbie
From: "Ivor Williams" <[EMAIL PROTECTED]> > Also, how > about covering Devel::ptkdb. This is a graphical Tk debugger, and very > handy for debugging cgi scripts (just alter the shebang line to add > -d:ptkdb. Even works on Windows). This I would like to see. Haven't had a chance to try it yet, b

similarity detection

2002-10-08 Thread nemesis
Hello again, I have a database (mySQL) full of variable length text fields (average about 1500 characters, 250 words). Curently there are about 250 fields, but I hope this to expand to as many as possible (it is an online joke archive). I need to be able to check that when I add another field

Re: applying patterns

2002-10-08 Thread Nicholas Clark
On Tue, Oct 08, 2002 at 11:08:01AM +0100, Simon Wistow wrote: [snip relevant bit about Moveable Type, that didn't happen mention which language it is implemented in] > Possibly if I mention Buffy, pies, monkeys dancing or beer this might > slip through a few peoples's content filters. But not

[HELP WANTED] SMS experts

2002-10-08 Thread Simon Wilcox
I've received an invitation to tender for a very nice job involving lots of SMS messaging, about which I know very little but it has a lot of potential so I'm really keen to have a go at it. If anyone has commercial experience of such things and would like to work with me on a pitch, and hope

Re: applying patterns

2002-10-08 Thread Simon Wistow
On Tue, Oct 08, 2002 at 09:47:35AM +0100, Paul Mison said: > I know Simon will hate this, but a lot of blogs do this. Most blog > engines are baked, but people want frying for stuff like 'what mp3 am > I listening to', so they output (after each entry) a php or (much > less commonly) TT templat

RE: Straw poll

2002-10-08 Thread Ivor Williams
-Original Message- From: Nicholas Clark [SMTP:[EMAIL PROTECTED]] Sent: Sunday, October 06, 2002 10:54 AM To: [EMAIL PROTECTED] Subject:Straw poll And if a talk introducing the perl debugger were given at a YAPC, how many people would think it worthy of going to? [Ivor]

Re: Perlidex Comment

2002-10-08 Thread Paul Mison
On 07/10/2002 at 14:05 -0700, Adam Goldstein wrote: >Dear Mr. Mison, > > I am the developer of Perlidex, a program you seem to dislike. > I was reading [the archives] and came accross your commentary. > I would like to address your concerns. [snipped some text, including useful feature enhance

Re: applying patterns

2002-10-08 Thread Paul Mison
On 07/10/2002 at 19:09 +0100, Shevek wrote: >On Mon, 7 Oct 2002, Simon Wistow wrote: > >> It has oft (http://perl.plover.com/yak/design/) been said that patterns >> in the Gang of Four sense don't really apply to Perl. > >What fool said that? Of course they apply! Sure some of the strict typing

Re: Straw poll

2002-10-08 Thread Rafiq Ismail
On Sun, 6 Oct 2002, Nicholas Clark wrote: > > If ${'no-one in particular'} did a talk (or tutorial) on advanced used of the > perl debugger, how many people would think "bah. That's more advanced that I > know about. I would have preferred it if he did an introduction to the perl > debugger, as my