Re: mod_perl PerlTransHandler weirdness
On Tue, Jun 17, 2003 at 10:43:27PM +0100, Phil Lanch wrote: On Tue, Jun 17, 2003 at 01:38:57PM +0100, Joel Bernstein wrote: On Tue, Jun 17, 2003 at 04:30:03AM -0700, Randal L. Schwartz wrote: you don't want $r-pathinfo (which won't be set during trans). you want $r-uri, which will be something like /THISBITHERE. The only difference that makes is to change the 404 Not Found to 400 Bad Request. you didn't mean numeric addition here (people might think you've been writing Java recently): Eek, does it show? :( - $r-internal_redirect($handlerpage++login=+$login); + $r-internal_redirect($handlerpage..login=.$login); Yes, my bad. I'd already fixed that, but it's good to get a sanity check :-) with this change and using $r-uri, it looks like it might be working, but i don't have PHP built in so can't test it convincingly. Doesn't seem to be. We've currently gone for a custom ErrorDocument 404 page, which does some processing and either 404s or redirects to the user page, having done a db lookup to check if it's a valid user. Which is a bit cracky, but is also how I suggested doing things in the first place (and was told it wasn't an option...) This one is really really bugging me - can anybody suggest an alternative way to do this redirection (I think it's too complicated a case for mod_rewrite)? but mod_rewrite is probably better. The problem (afaict) is that mod_rewrite doesn't offer enough granular control to apply the tests we were using. These may, of course, be overkill, or a result of working at the solution rather than at the problem. Thanks all for the help. /joel
Number Indicating Participation in London.pm (NIPL) (was: assimilating CPAN)
Simon Wistow wrote: London.pm, defined, for me anyway as a generously geographically diverse community of people who think that London.pm are cool I think we're selling ourselves short with a single membership bit. An 8 bit integer would give you much more scope for fun, er, I mean, calculating an interesting and informative Number Indicating Participation in London.pm (NIPL). For example: hacks perl | lives or works in London area | | actively subscribed to mailing list | | | regularly attends London.pm technical meetings | | | | reguarly attends London.pm social meetings hic/ | | | | | has written an Acme module | | | | | | watches Buffy | | | | | | | owns a pony | | | | | | | | +-+-+-+-+-+-+-+-+ |1|0|1|0|0|0|0|0| --- abw's NIPL is exposed! +-+-+-+-+-+-+-+-+ 1 6 3 1 8 4 2 1 2 4 2 6 8 By living outside London and not attending meetings regularly enough, I'm faced with a rather bare bit field. I'm not proud of having a bare NIPL, I can tell you. And as for that unset Buffy bit, well, perhaps best if we don't mention that at all. I can only say that it's a real shame that Buffy isn't at one with my NIPL. Anyway, using the ready reckoner above, I can easily measure my own NIPL: abw.nipl = 160 Why not measure your own NIPLs? You don't have to show anyone else your NIPLs if you don't want to... But temember people, a pony is for life, not just to fill your last NIPL bit. I've told the folk at petsovernight.com to watch out for any suspicious orders for ponies coming from the London area or from anyone living in a generously geographically diverse community of people who think that London.pm are cool. We know who you are, and we're watching your NIPLs carefully! A (blowing clouds of smoke across the oily, calm waters)
Re: Number Indicating Participation in London.pm (NIPL) (was: assimilating CPAN)
On Wed, Jun 18, 2003 at 12:08:20PM +0100, Andy Wardley wrote: Simon Wistow wrote: London.pm, defined, for me anyway as a generously geographically diverse community of people who think that London.pm are cool I think we're selling ourselves short with a single membership bit. An 8 bit integer would give you much more scope for fun, er, I mean, calculating an interesting and informative Number Indicating Participation in London.pm (NIPL). For example: hacks perl | lives or works in London area | | actively subscribed to mailing list | | | regularly attends London.pm technical meetings | | | | reguarly attends London.pm social meetings hic/ | | | | | has written an Acme module | | | | | | watches Buffy | | | | | | | owns a pony | | | | | | | | +-+-+-+-+-+-+-+-+ |1|0|1|0|0|0|0|0| --- abw's NIPL is exposed! +-+-+-+-+-+-+-+-+ 1 6 3 1 8 4 2 1 2 4 2 6 8 [snipped] I suppose that makes braingirl a bit part of london.pm: http://www.rsub.com/rsubox/ click on the ponies link. But who knows, I am quite new on that list? may be I beat a dead horse. :) -- stef
Re: Number Indicating Participation in London.pm (NIPL) (was: assimilating CPAN)
On Wed, Jun 18, 2003 at 12:08:20PM +0100, Andy Wardley wrote: For example: hacks perl [snip] | | | | | | | owns a pony Wouldn't hacking perl be more of a lowest common denominator here? You also missed out the crucial IRC bit. I'd rearrange the bits to: owns a pony | lives or works in the London area | | actively subscribed to mailing list | | | regularly attends London.pm technical meetings | | | | regularly attends London.pm social meetings | | | | | is a regular on #london.pm | | | | | | has written an Acme module | | | | | | | hacks perl | | | | | | | | --- 1 6 3 1 8 4 2 1 2 4 2 8 I had to drop the Buffy bit. On your original scale, my NIPL is bigger than yours, but not by much, at 250 to 160. On this modified scale, my NIPL towers over yours by 125 to 33, which is clearly a much more reasonable result. ;) -- $x='4a75737420616e6f74686572205065726c'#Earle Martin .'206861636b65720d0a';for(0..26){print #http://downlode.org/ chr(hex(substr($x,$y,2)));$y=$y+2;}# http://openguides.org/
Re: Number Indicating Participation in London.pm (NIPL) (was:assimilating CPAN)
Earle Martin wrote: Wouldn't hacking perl be more of a lowest common denominator here? You also missed out the crucial IRC bit. I'd rearrange the bits to: owns a pony | lives or works in the London area | | actively subscribed to mailing list | | | regularly attends London.pm technical meetings | | | | regularly attends London.pm social meetings | | | | | is a regular on #london.pm | | | | | | has written an Acme module | | | | | | | hacks perl | | | | | | | | --- 1 6 3 1 8 4 2 1 2 4 2 8 I had to drop the Buffy bit. That's a first design flaw : eight parameters will be enough for all purposes. On your original scale, my NIPL is bigger than yours, but not by much, at 250 to 160. On this modified scale, my NIPL towers over yours by 125 to 33, which is clearly a much more reasonable result. ;) That's a second design flaw : the mandatory ordering of bits, and the temptation to score people according to their NIPL's weight. I'd like to propose an alternative implementation, the London.pm Indice of Purity String. Instead of using bits, it uses characters that may or not be present in a string. # is a regular on #london.pm L lives or works in the London area P hacks perl a has written an Acme module b watches Buffy m actively subscribed to mailing list p owns a pony s regularly attends London.pm social meetings t regularly attends London.pm technical meetings Then, we could use the Levenshtein distance (did I got the spelling right?) to #LPabmpst to calculate the degree of purity. For free, by calculating the L-distance between two members' LIPSs, we could have a rational measure of their affinity. For example, the company of someone who doesn't watch Buffy won't be very appealing to me. Aren't LIPSs better than NIPLs ? -- RGS : my $LIPS = q/Pbm/;
Re: Number Indicating Participation in London.pm (NIPL) (was: assimilating CPAN)
Earle Martin wrote: I had to drop the Buffy bit. Is that based on the assumption that the bit is redundant, given that anyone whose Buffy bit isn't set can't be a *real* member of London.pm. I'll get my coat then. A
Re: Number Indicating Participation in London.pm (NIPL) (was: assimilating CPAN)
Rafael Garcia-Suarez wrote: Aren't LIPSs better than NIPLs ? I think there's a pun in there about coming up with a compromise whereby your LIPS meet up with my NIPLs, but I really don't want to go there. A
Re: Number Indicating Participation in London.pm (NIPL) (was: assimilatingCPAN)
Andy Wardley wrote: Simon Wistow wrote: An 8 bit integer would give you much more scope for fun, er, I mean, calculating an interesting and informative Number Indicating Participation in London.pm (NIPL). [snip] We know who you are, and we're watching your NIPLs carefully! Hello Andy and London-PM'ers I feel like we're reinventing the wheel: take a look at http://www.xmltwig.com/pgc/ Maybe we could just extend the Perl Geek Code to implement a Location field... what you think about this? Ah! I haven't looked at CPAN yet, but is there a ACME module implementing the Perl Geek Code (en|de)coder ? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Luis Campos de Carvalho Perl Monk, Unix Sys Admin, OCP/DBA Oracle Computer Scientist =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Re: Number Indicating Participation in London.pm (NIPL) (was:assimilating CPAN)
On Wed, 18 Jun 2003, Luis Campos de Carvalho wrote: I feel like we're reinventing the wheel: take a look at http://www.xmltwig.com/pgc/ Especially as the Perl Geek Code is maintained by a member of London.pm, who could probably be bribed into updating it (my sister owns a pony, can I set half a bit there?) Michel Rodriguez Perl amp; XML http://www.xmltwig.com
Re: Number Indicating Participation in London.pm (NIPL)
Michel Rodriguez wrote: On Wed, 18 Jun 2003, Luis Campos de Carvalho wrote: I feel like we're reinventing the wheel: take a look at http://www.xmltwig.com/pgc/ Especially as the Perl Geek Code is maintained by a member of London.pm, who could probably be bribed into updating it (my sister owns a pony, can I set half a bit there?) If it's updated to support pmership, it should support multiple allegiances, eg london.pm|paris.pm|dahut.pm. -- Robin Berjon [EMAIL PROTECTED] Research Engineer, Expwayhttp://expway.fr/ 7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488
Re: Number Indicating Participation in London.pm (NIPL) (was:assimilating CPAN)
On Wed, 18 Jun 2003, Luis Campos de Carvalho wrote: /me is ashamed by not knowing this. /me voluntary himself to help update. /me hopes native english speakers don't mind about correcting my english errors. Excellent, patches and comments welcome. It might be time to drop the XML crap too and start from scratch. I believe there is a Geek Code module on CPAN, let's embrace and extend it! And it's not like the original author is a native speaker either... Michel Rodriguez Perl amp; XML http://www.xmltwig.com
Re: Number Indicating Participation in London.pm (NIPL) (was: assimilating CPAN)
Luis Campos de Carvalho wrote: /me hopes native english speakers don't mind about correcting my english errors. Don't worry about it; most english people can't spel anyway. :-) -Dom -- | Semantico: creators of major online resources | | URL: http://www.semantico.com/ | | Tel: +44 (1273) 72 | | Address: 33 Bond St., Brighton, Sussex, BN1 1RD, UK. |
Re: Number Indicating Participation in London.pm (NIPL) (was: assimilating CPAN)
On Wed, Jun 18, 2003 at 11:51:59AM -0300, Luis Campos de Carvalho wrote: Michel Rodriguez wrote: Especially as the Perl Geek Code is maintained by a member of London.pm, who could probably be bribed into updating it (my sister owns a pony, can I set half a bit there?) That's analogue. Do we do analogue? Michel Rodriguez Perl amp; XML http://www.xmltwig.com /me is ashamed by not knowing this. /me voluntary himself to help update. /me hopes native english speakers don't mind about correcting my english errors. It's hard to tell who the native English speakers are. (I believe that almost 50% of this thread comes from native French speakers, but there's no difference in the quality of English (or the humour) in any of the messages) Nicholas Clark
English spelling correction [Was: NIPL]
Dominic Mitchell wrote: Luis Campos de Carvalho wrote: /me hopes native english speakers don't mind about correcting my english errors. Don't worry about it; most english people can't spel anyway. :-) Sorry, Mitchell. Can't avoid it. It's like a compulsion. Please correct me always. Offlist would be nice. This is for all London-PM'ers: do this as a personal favor to me. Thank you all. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Luis Campos de Carvalho Computer scientist, unix sys admin, Perl Monk, Oracle OCP/DBA bad english writer. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Re: English spelling correction [Was: NIPL]
On Wed, 18 Jun 2003, Luis Campos de Carvalho wrote: Please correct me always. Offlist would be nice. This is for all London-PM'ers: do this as a personal favor to me. That'll be 'favour' then ;-) /J\
Re: English spelling correction [Was: NIPL]
On Wed, Jun 18, 2003 at 04:28:18PM +0100, Jonathan Stowe wrote: On Wed, 18 Jun 2003, Luis Campos de Carvalho wrote: Please correct me always. Offlist would be nice. This is for all London-PM'ers: do this as a personal favor to me. That'll be 'favour' then ;-) In this matter, I prefer the american flavor. :) -- stef /J\
Going to Pub Tommorow (Thursday) Night
Some of us (Kake and I, and maybe others) are going to the pub tommorow (thursday) night, we will be there from earlyish to lateish. The pub that has been choosen after much careful thought is, http://grault.net/cgi-bin/grubstreet.pl?Anchor_Bankside,_SE1_9EF This will be the final test of the Anchor for me to decide if it is still a fun pub or not after its refurbishment. If anyone is coming for the first time to a social meet feel free to mail me off list for a mobile number. Err not that this is an official social meet, its just drinking by the river. Greg -- Greg McCarroll http://www.mccarroll.org.uk/~gem/ jabber://[EMAIL PROTECTED] msn://[EMAIL PROTECTED]
Re: Number Indicating Participation in London.pm (NIPL)
On Wednesday, June 18, 2003 16:45 +0200 Robin Berjon [EMAIL PROTECTED] wrote: Michel Rodriguez wrote: Especially as the Perl Geek Code is maintained by a member of London.pm, who could probably be bribed into updating it (my sister owns a pony, can I set half a bit there?) If it's updated to support pmership, it should support multiple allegiances, eg london.pm|paris.pm|dahut.pm. The London.pm geek code needs to specify distance from London thus: '+' x (5 - int(logsubn/sub(great_circle_distance_from_london))) where n is chosen such that logsubn/sub(Adelaide) == 5.9, for values of Adelaide equal to the furthest place from London. -- David Cantrell
Re: Number Indicating Participation in London.pm (NIPL) (was: assimilating CPAN)
On Wed, Jun 18, 2003 at 03:59:30PM +0100, Dominic Mitchell wrote: Luis Campos de Carvalho wrote: /me hopes native english speakers don't mind about correcting my english errors. Don't worry about it; most english people can't spel anyway. :-) For once, I'm glad I'm an American... :-) dha -- David H. Adler - [EMAIL PROTECTED] - http://www.panix.com/~dha/ Good marriages work this way too, by the way. I love my wife differently than I did at the beginning, but I certainly don't love her any less.- Larry Wall
Re: mod_perl PerlTransHandler weirdness
On Wed, Jun 18, 2003 at 11:58:39AM +0100, Joel Bernstein wrote: Doesn't seem to be. We've currently gone for a custom ErrorDocument 404 page, which does some processing and either 404s or redirects to the user page, having done a db lookup to check if it's a valid user. Which is a bit cracky, but is also how I suggested doing things in the first place (and was told it wasn't an option...) but mod_rewrite is probably better. The problem (afaict) is that mod_rewrite doesn't offer enough granular control to apply the tests we were using. These may, of course, be overkill, or a result of working at the solution rather than at the problem. the only test you've mentioned that i think mod_rewrite can't do is a db lookup to check if it's a valid user (assuming that means a lookup in an RDBMS; it *could* do a lookup in a plain DBM file). you could get round that by making mod_rewrite use an external filter program, but that could be a lot scarier than your custom 404 page solution ... -- Phil Lanch0xD78D598DA6635CF32AB24593C98994B7D95B33E3 If I knew then what I know now, I would have said 'I don't recall'. -- Frank Doyle, FBI
Re: Going to Pub Tommorow (Thursday) Night
From: Greg McCarroll [EMAIL PROTECTED] Some of us (Kake and I, and maybe others) are going to the pub tommorow (thursday) night, we will be there from earlyish to lateish. The pub that has been choosen after much careful thought is, http://grault.net/cgi-bin/grubstreet.pl?Anchor_Bankside,_SE1_9EF Oooh, there is a direct train from Wallington to London Bridge, and it's payday tomorrow. Would serendipity be the correct word? /Robert
Re: Number Indicating Participation in London.pm (NIPL) (was:assimilating CPAN)
On Wed, 18 Jun 2003, David H. Adler wrote: On Wed, Jun 18, 2003 at 03:59:30PM +0100, Dominic Mitchell wrote: Luis Campos de Carvalho wrote: /me hopes native english speakers don't mind about correcting my english errors. Don't worry about it; most english people can't spel anyway. :-) For once, I'm glad I'm an American... :-) In this day age? Viva la France! -- Chris Devers[EMAIL PROTECTED] LINO [Acronym for Last In Never Out.] A stack uncertain whether Pascal or C argument conventions prevail. -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995
Re: MiddleEarth hacking
On Tue, 17 Jun 2003, Lucy McWilliam wrote: www.theonering.net are looking for a voluntary perl hacker. Amusing comments on a postcard. http://www.theonering.net/perl/newsview/8/1055722384 Except, they're in Kenosha, Wisconsin: http://www.theonering.net/theonering/contact.html OOO weee ooh I hack Perl like Buddy Hobbit... Oh oh and you're Galadriel I don't care what they say about this stupid ring I don't care 'bout that *ahem* -- Chris Devers[EMAIL PROTECTED] NAN [Not A Number] A set of bits known as a number to Rene Magritte but rejected by the IEEE FLOATING-POINT Polizei. -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995
Re: Number Indicating Participation in London.pm (NIPL) (was: assimilating CPAN)
On Wed, Jun 18, 2003 at 05:48:16PM -0400, Chris Devers wrote: On Wed, 18 Jun 2003, David H. Adler wrote: On Wed, Jun 18, 2003 at 03:59:30PM +0100, Dominic Mitchell wrote: Luis Campos de Carvalho wrote: /me hopes native english speakers don't mind about correcting my english errors. Don't worry about it; most english people can't spel anyway. :-) For once, I'm glad I'm an American... :-) I am pretty afraid by what happens there. See this guy that can't even cite von Clausewitz right and confuses marketting, evangelism and war. http://www.plamondon.net/james/02_plamondon.htm or ESR that confuse Gandhi sayings with DoD escalation procedures or says gun and zen in the same breadth. http://www.ntk.net/index.cgi?b=02003-06-06l=39#l Are they lunatics or representative of a gentler and kinder nation ? In this day age? Viva la France! Today is pretty gloomy. The police arested alledged iranian terrorists and there was people who tried to immolate themselve with fire in protestation. One is in critical condition. http://famulus.msnbc.com/FamulusIntl/reuters06-18-083338.asp?reg=MIDEAST -- stef -- Chris Devers[EMAIL PROTECTED] LINO [Acronym for Last In Never Out.] A stack uncertain whether Pascal or C argument conventions prevail. -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995
Re: 501 Not Implemented
On Mon, Jun 16, 2003 at 07:51:54PM +0100, Patrick Mulvany wrote: On Mon, Jun 16, 2003 at 11:32:13AM +0100, Ben wrote: Hi, I'm having a nasty HTTP implementation mismatch. Some server I'm talking to using LWP (I can't tell what the server actually is, and Netcraft don't know either) is returning a 501 to a POST, not sending any response body and then closing the connection. (As a side effect, this is causing a segfault somewhere down in the XS code, but I think I understand how to workaround this and will isolate the cause and try and patch it later). Now, I know that a 501 SHOULD contain a response body, but that's kind-of not relevant. What I want to know is what server conditions could cause it to think that a 501 is an appropriate thing to send back. I know that Not Implemented could apply to a request method or a transfer-coding but are there any other examples that people know of that could trigger this? Are you setting the Referer correctly for those pages? Ah, you see, this isn't a page which a browser would ever see. It's an application that I POST some XML to, and it gives me back another XML document based on what I send it. I have a document which describes how this thing is supposed to work, and it doesn't behave the way it's supposed to. If I send it garbage, well-formed but invalid XML or correctly formed but incorrect XML, then I get an error message. If I send it something correct, I get a 501 and no return document. Which is why I think it shouldn't be the transfer-coding or anything else. It clearly *can* interpret my requests, as it knows what incorrect ones look like. Best bet it to browse it while capturing the datastream. Then you really know what it will accept rather that what you thought it needed. Then you can backout to a minimum data request. I've tried that. Same behaviour in the browser. I'm now pretty sure the problem is with them, but the only contacts I have are non-technical. I tried asking for someone technical's email address and got told that my existing contact would be happy to answer my questions, which *really* isn't what I wanted. Most annoying, all round. Ben
Re: MiddleEarth hacking
On Wednesday, June 18, 2003, at 06:00 PM, Chris Devers wrote: OOO weee ooh I hack Perl like Buddy Hobbit... Oh oh and you're Galadriel I don't care what they say about this stupid ring I don't care 'bout that augh... my... head... splittting... must resist urge to use this as my new .sig -- muppet scott at asofyet dot org
Re: Number Indicating Participation in London.pm (NIPL) (was: assimilating CPAN)
On Wed, Jun 18, 2003 at 05:48:16PM -0400, Chris Devers wrote: On Wed, 18 Jun 2003, David H. Adler wrote: On Wed, Jun 18, 2003 at 03:59:30PM +0100, Dominic Mitchell wrote: Luis Campos de Carvalho wrote: /me hopes native english speakers don't mind about correcting my english errors. Don't worry about it; most english people can't spel anyway. :-) For once, I'm glad I'm an American... :-) In this day age? I see everyone missed the For once part... Viva la France! That's Vive. HTH, HAND. :-) dha -- David H. Adler - [EMAIL PROTECTED] - http://www.panix.com/~dha/ Free Randal Schwartz! http://www.rahul.net/jeffrey/ovs/ (ok, maybe not free, but competitively priced!)
Re: Number Indicating Participation in London.pm (NIPL) (was:assimilating CPAN)
On Wed, 18 Jun 2003, David H. Adler wrote: On Wed, Jun 18, 2003 at 05:48:16PM -0400, Chris Devers wrote: In this day age? I see everyone missed the For once part... Viva la France! That's Vive. HTH, HAND. :-) I see you missed that creative spelling was the order of the day :) -- Chris Devers[EMAIL PROTECTED] Ibid Ben Passim (?35-?100 B.C.E.) The oft-quoted Eastern scholar. -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995