[PUB] Spread Eagle, NW1
I liked this pub. No music, few fruit machines, good (Young's) beer including Winter Warmer on tap and (bottled, of course) Double Chocolate Stout. The Hamster race was bizarre, to say the least, but I liked the pub. Oh, and it's only about 4 minutes stagger from Wagamama, which was closed by the time we got there. The pub is on the corner of Parkway and Albert Rd, about 4 or 5 minutes walk from the tube. Plenty of seating, friendly bar-staff. I saw 3 or 4 different lagers, Guinness, 3 or 4 bitters on tap, and of course Double Chocolate Stout. I don't think it would be suitable for a pubmeet (possibly too far North, no food, didn't see a function room, and the toilets are downstairs (not good for disabled people) but I recommend it as a nice place to drink in Camden. Yeah. *rubs head in disbelief at his hangover* Sorry this isn't more comprehensive, but I was quite drunk last night. /joel
Re: [PUB] Spread Eagle, NW1
I liked this pub. No music, few fruit machines, good (Young's) beer including Winter Warmer on tap and (bottled, of course) Double Chocolate Stout. The Hamster race was bizarre, to say the least, but I liked the pub. Oh, and it's only about 4 minutes stagger from Wagamama, which was closed by the time we got there. What's wrong with fruit machines? Some of us (well, perhaps just me) are attracted to the beautiful, hypnotic lights, and the voices that whisper Play with me, play with me, and win frequent, 'moral' victories over them, while learning the true value of money. +Pete
Re: [PUB] Spread Eagle, NW1
On Tue, Jan 28, 2003 at 09:22:39AM +, Joel Bernstein wrote: The pub is on the corner of Parkway and Albert Rd, about 4 or 5 minutes walk St. Only problem for me is that it's the pub where my parents drink, and it used to be a whole lot nastier than it is now :-) -- Lusercop.net - LARTing Lusers everywhere since 2002
Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
here's an additional suggestion: how about we meet up for drinks after attending the Stop the War rally [1] on February 15th. who would like to propose some venues (after 5:30 in the hyde park vicinity)? yes, i am cheekily introducing a charged, political sub-thread, but hey, if we have enough CFT for regular pub meets, maybe we should also use it do our bit for world peace. flames to Dave Null alex (who doesn't actually want to start a lengthy discussion on the war/non-war) [1] http://www.stopwar.org.uk -- __ STOP THE WAR - be there on 15 Feb - www.stopwar.org.uk -- alex nunes | t 020 7603 5723 | check us out on the web director | f 020 7603 2504 | at http://www.codix.net codix.net | 107 shepherd's bush road, london, w6 7lp
Re: [PUB] Spread Eagle, NW1
On Tue, Jan 28, 2003 at 09:22:39AM +, Joel Bernstein wrote: The pub is on the corner of Parkway and Albert Rd, about 4 or 5 minutes walk from the tube. Plenty of seating, friendly bar-staff. I saw 3 or 4 different lagers, Guinness, 3 or 4 bitters on tap, and of course Double Chocolate Stout. And, of course, a london.pm'er behind the bar! I don't think it would be suitable for a pubmeet (possibly too far North, no food, didn't see a function room, and the toilets are downstairs (not good for disabled people) but I recommend it as a nice place to drink in Camden. I agree. It also can get very full. Camden is probably too far North for a pubmeet. Which is a shame, as there are some good pubs outside the Circle Line. Ben
Re: [PUB] Spread Eagle, NW1
From: Peter Sergeant [EMAIL PROTECTED] Date: 1/28/03 10:01:38 AM What's wrong with fruit machines? Some of us (well, perhaps just me) are attracted to the beautiful, hypnotic lights, and the voices that whisper Play with me, play with me, and win frequent, 'moral' victories over them, while learning the true value of money. Ah, but most of us (being programmers) can do the maths and know that in the long term you will always money. This pretty much destroys any interest in playing :) Dave... -- http://www.dave.org.uk Let me see you make decisions, without your television - Depeche Mode (Stripped)
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
From: alex [EMAIL PROTECTED] Date: 1/28/03 10:26:50 AM here's an additional suggestion: how about we meet up for drinks after attending the Stop the War rally [1] on February 15th. who would like to propose some venues (after 5:30 in the hyde park vicinity)? Excellent idea. Why not meet up beforehand? We could be one of those big groups on the match - with a banner. Perl Mongers for Peace or something like that :) yes, i am cheekily introducing a charged, political sub-thread, but hey, if we have enough CFT for regular pub meets, maybe we should also use it do our bit for world peace. Sounds perfectly reasonable to me. flames to Dave Null Who he? alex (who doesn't actually want to start a lengthy discussion on the war/non-war) Oh :( Can we? Please. [1] http://www.stopwar.org.uk Dave... -- http://www.dave.org.uk Let me see you make decisions, without your television - Depeche Mode (Stripped)
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
On Tue, 2003-01-28 at 10:36, Dave Cross wrote: From: alex [EMAIL PROTECTED] Date: 1/28/03 10:26:50 AM here's an additional suggestion: how about we meet up for drinks after attending the Stop the War rally [1] on February 15th. who would like to propose some venues (after 5:30 in the hyde park vicinity)? Excellent idea. Why not meet up beforehand? We could be one of those big groups on the match - with a banner. Perl Mongers for Peace or something like that :) There was a bloke on Radio 4 bemoaning there the fact there didn't seem to be a group for him to demo with, there wasn't a straight white middle aged bloke group. There is now. -- Dave Hodgkinson [EMAIL PROTECTED]
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
On Tue, Jan 28, 2003 at 02:36:54AM -0800, Dave Cross wrote: Excellent idea. Why not meet up beforehand? We could be one of those big groups on the match - with a banner. Perl Mongers for Peace or something like that :) Works for me. Roger
Re: [PUB] Spread Eagle, NW1
On Tue, 28 Jan 2003, Peter Sergeant wrote: I liked this pub. No music, few fruit machines, good (Young's) beer including Winter Warmer on tap and (bottled, of course) Double Chocolate Stout. The Hamster race was bizarre, to say the least, but I liked the pub. Oh, and it's only about 4 minutes stagger from Wagamama, which was closed by the time we got there. What's wrong with fruit machines? Some of us (well, perhaps just me) are attracted to the beautiful, hypnotic lights, and the voices that whisper Play with me, play with me, Such stimuli are available from several other sources, at the right kind of meet. and win frequent, 'moral' victories over them, while learning the true value of money. Not so sure about the moral element of them, though. the hatter
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
here's an additional suggestion: how about we meet up for drinks after attending the Stop the War rally [1] on February 15th. who would like to propose some venues (after 5:30 in the hyde park vicinity)? actually - i was gonna go to this - it would be nice to know some people in case of legal trouble/tear gassing etc. (only half kidding) where are you gonna meet? and can i join you (if you're going that is)? al Excellent idea. Why not meet up beforehand? We could be one of those big groups on the match - with a banner. Perl Mongers for Peace or something like that :) yes, i am cheekily introducing a charged, political sub-thread, but hey, if we have enough CFT for regular pub meets, maybe we should also use it do our bit for world peace. Sounds perfectly reasonable to me. flames to Dave Null Who he? alex (who doesn't actually want to start a lengthy discussion on the war/non-war) Oh :( Can we? Please. [1] http://www.stopwar.org.uk Dave... -- http://www.dave.org.uk Let me see you make decisions, without your television - Depeche Mode (Stripped) -- for(split/%/,'0aFn%2fLMdi%2eQ`%3aK%6e/:]%6c[f%6f0CDTWb%6b^%6a)%6dc%20-' .'5?%21E%61.=A\e%638a%6537g%67l%6829BGV%69;k%70JZ%724X%73+U_jm%74,16HI' .'RY%75*%77NOPS%78h%79@'){s#..##;$==hex$;s#.#$*[ord$]=chr$=#eg}print@*
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
this was also roger's idea. yes, let's do it. london perl mongers for peace sounds really cool but i would also respect the view that in terms of Perl Advocacy and gaining mindshare in corporate land, having Perl associated with political ideology could be doing the wider community a disservice. On the other hand, is anyone in corporate land ever going to see such a banner (probably not). but for my 2p, yes, a banner would be fab. are you volunteering dave? Excellent idea. Why not meet up beforehand? We could be one of those big groups on the match - with a banner. Perl Mongers for Peace or something like that :) I was thinking of somewhere around Trafalgar Square 12:15 unless other people advise this as likely to be unreachable by public transport at this time. alex -- __ STOP THE WAR - be there on 15 Feb - www.stopwar.org.uk -- alex nunes | t 020 7603 5723 | check us out on the web director | f 020 7603 2504 | at http://www.codix.net codix.net | 107 shepherd's bush road, london, w6 7lp
Re: [PUB] Spread Eagle, NW1
On Tue, Jan 28, 2003 at 10:01:38AM +, Peter Sergeant wrote: I liked this pub. No music, few fruit machines, good (Young's) beer including Winter Warmer on tap and (bottled, of course) Double Chocolate Stout. The Hamster race was bizarre, to say the least, but I liked the pub. Oh, and it's only about 4 minutes stagger from Wagamama, which was closed by the time we got there. What's wrong with fruit machines? Some of us (well, perhaps just me) are attracted to the beautiful, hypnotic lights, and the voices that whisper Play with me, play with me, and win frequent, 'moral' victories over them, while learning the true value of money. They flash and dazzle me, and they're always located on the edge of my peripheral vision. I've no comment on the gambling aspect, I just dislike the silly noises they make and the flashing. /joel
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
On Tue, 2003-01-28 at 10:53, alex wrote: this was also roger's idea. yes, let's do it. london perl mongers for peace sounds really cool but i would also respect the view that in terms of Perl Advocacy and gaining mindshare in corporate land, having Perl associated with political ideology could be doing the wider community a disservice. On the other hand, is anyone in corporate land ever going to see such a banner (probably not). but for my 2p, yes, a banner would be fab. are you volunteering dave? London Mongers for Peace? Suitably ambiguous and aphasics will read mingers which will be entirely apt. -- Dave Hodgkinson [EMAIL PROTECTED]
Re: [PUB] Fitzroy Tavern, Fitzrovia
At 00:05 28/01/03, David H. Adler wrote: On Mon, Jan 27, 2003 at 11:37:57AM +, Kate L Pugh wrote: A suggestion from Ben - the Fitzroy Tavern. It's another Sam Smith's pub, but Ben says the beer is decent, so I'll leave him to defend that point of view. It's on Charlotte Street, parallel to Tottenham Court Road: Since you guys are in england, I suppose you wouldn't know this, but it's also the location of the monthly Doctor Who meet. :-) dha, likes Sam Smith beers, actually. Didn't know there was one. I go to the regular science fiction book fan meeting which happens on the first Thursday of the month. (Bit of an irritating coincidence that). It will also be worth going to Picocon at Imperial College on the 22 Feb which is also the same weekend as Redemption - a Blake's Seven Babylon Five convention *near* London, but not in it There are several media gatherings which I don't really participate in including a reasonably regular Star Trek gathering which I heard was in Pages Bar, and there is a reasonably active Star Wars fanclub Delta Force (URL forgotten) Del Cotter has started to collate UK based SF fan gatherings which may include a Dr Who pub meet. Try news:uk.people.sf-fans or http://www.branta.demon.co.uk/ PS I have lots of fantasy books which need reviewing for DiverseBooks.com too. Alex McLintock PICOCON ADVERT This year Picocon 20 is on the 22nd February 2003 to be held at Imperial College, London, UK. We have two Guests of Honour: Jack Cohen and Gwyneth Jones. There will also be other events throughout the day, such as networked games and a pub-style quiz, and we will be showing a film in the evening. Picocon membership is £2.00 to ICSF members, £5.00 concessions (other students, DHSS, OAP), and £8.00 for everyone else. Admission to the film only is £3.50. For more information please see our web page at: http://www.su.ic.ac.uk/icsf/social/events/picocon_ 20.html or email me. In particular, the web page will be updated as soon as we've confirmed the film we're showing. Alternatively, please feel free to contact me if you have any questions. Available for java/perl/C++/web development in London, UK or nearby. Apache FOP, Cocoon, Turbine, Struts,XSL:FO, XML, Tomcat, JSP http://www.OWAL.co.uk/
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
london perl mongers for peace sounds really cool but i would also respect the view that in terms of Perl Advocacy and gaining mindshare in corporate land, having Perl associated with political ideology could be doing the wider community a disservice. How about: London Peace Mongers or JAPH: Just Another Peace Hacker or #!/usr/bin/peace or Java Sucks! Perl Roolz! (ok, that last one doesn't say much about peace, but it might get seen on telly and that in itself would be quite funny :-) A
Re: [PUB] Spread Eagle, NW1
On Tue, Jan 28, 2003 at 02:29:56AM -0800, Dave Cross wrote: From: Peter Sergeant [EMAIL PROTECTED] Date: 1/28/03 10:01:38 AM What's wrong with fruit machines? Some of us (well, perhaps just me) are attracted to the beautiful, hypnotic lights, and the voices that whisper Play with me, play with me, and win frequent, 'moral' victories over them, while learning the true value of money. Ah, but most of us (being programmers) can do the maths and know that in the long term you will always money. Money as a verb - what's the secret of your success Dave? P -- Paul Makepeace ... http://paulm.com/ If you build it, then welcome all squirrels! -- http://paulm.com/toys/surrealism/
Re: [PUB] Spread Eagle, NW1
From: Paul Makepeace [EMAIL PROTECTED] Date: 1/28/03 1:49:53 PM On Tue, Jan 28, 2003 at 02:29:56AM -0800, Dave Cross wrote: From: Peter Sergeant [EMAIL PROTECTED] Date: 1/28/03 10:01:38 AM What's wrong with fruit machines? Some of us (well, perhaps just me) are attracted to the beautiful, hypnotic lights, and the voices that whisper Play with me, play with me, and win frequent, 'moral' victories over them, while learning the true value of money. Ah, but most of us (being programmers) can do the maths and know that in the long term you will always money. Money as a verb - what's the secret of your success Dave? It's a good job that publishers employ proof readers and copy editors :) ... you will always _lose_ money. Dave... [just happy that he wrote maths and not math] -- http://www.dave.org.uk Let me see you make decisions, without your television - Depeche Mode (Stripped)
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
On Tue, Jan 28, 2003 at 02:36:54AM -0800, Dave Cross wrote: how about we meet up for drinks after attending the Stop the War rally [1] on February 15th. who would like to propose some venues (after 5:30 in the hyde park vicinity)? Excellent idea. Why not meet up beforehand? We could be one of those big groups on the match - with a banner. Perl Mongers for Peace or something like that :) I'm definately up for that! Let me know i can help somehow, I still have CFT.
Re: [PUB] Fitzroy Tavern, Fitzrovia
On Tue, 28 Jan 2003, Alex McLintock wrote: It will also be worth going to Picocon at Imperial College on the 22 Feb which is also the same weekend as Redemption - a Blake's Seven Babylon Five convention *near* London, but not in it i noticed they clashed, at least we didnt clash with micrcon. PICOCON ADVERT This year Picocon 20 is on the 22nd February 2003 to be held at Imperial College, London, UK. We have two Guests of Honour: Jack Cohen and Gwyneth Jones. There will also be other events throughout the day, such as networked games and a pub-style quiz, and we will be showing a film in the evening. Picocon membership is £2.00 to ICSF members, £5.00 concessions (other students, DHSS, OAP), and £8.00 for everyone else. Admission to the film only is £3.50. For more information please see our web page at: http://www.su.ic.ac.uk/icsf/social/events/picocon_ 20.html or email me. In http://www.su.ic.ac.uk/icsf/social/events/picocon_20.html will be more helpful. particular, the web page will be updated as soon as we've confirmed the film we're showing. Alternatively, please feel free to contact me if you have any questions. the rumour is that the film will be 12 monkeys. also the main reason to coem of course is to drink cheap beer. but i could be biased. :) The rumour is also that picocon will have Peter F Hamiliton next year. -- Bob Walker http://www.randomness.org.uk/ Help! Mutated Tigers from the Antartic are invading Outer Mongolia. Send the Mashed Bunnies of Perpignan to defeat them.
RE: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
On Tuesday, January 28, 2003 1:35 PM, Andy Wardley [SMTP:[EMAIL PROTECTED]] wrote: london perl mongers for peace sounds really cool but i would also respect the view that in terms of Perl Advocacy and gaining mindshare in corporate land, having Perl associated with political ideology could be doing the wider community a disservice. How about: London Peace Mongers or JAPH: Just Another Peace Hacker or #!/usr/bin/peace Reminds me of a rule we used to have in the Makefile defaults: love: echo not war? Ivor.
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
On Tue, Jan 28, 2003 at 01:35:28PM +, Andy Wardley wrote: How about: #!/usr/bin/peace Ah, but in HippieCommieSympNix peace is in the /bin directory, as it's an essential part of bringing up the system... R
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
On Tue, Jan 28, 2003 at 02:29:12PM -, Ivor Williams wrote: Reminds me of a rule we used to have in the Makefile defaults: love: echo not war? Arrgggh! -- Lusercop.net - LARTing Lusers everywhere since 2002
Re: Weird Money (was Re: YAPC::Europe)
On Mon, Jan 27, 2003 at 02:31:55PM +, Nicholas Clark wrote: Do we know any London pubs I can spend the five US dollars I have? Hmm. Grubstreet doesn't (yet) list this information. That's a good suggestion. If anyone has any knowledge of places (not just pubs) that accept foreign currency of any kind, please do contribute it and we can set up a search category for it. -- $x='4a75737420616e6f74686572205065726c'#Earle Martin .'206861636b65720d0a';for(0..26){print #http://downlode.org/ chr(hex(substr($x,$y,2)));$y=$y+2;}# http://grault.net/grubstreet/
[JOB] - MS stuff!!
Sorry to taint the list but I thought some one out there might be interested. Foxtons has two perm technical roles available: 1) Technical Architect -- http://leo.cuckoo.org/tmp/tech_arch.htm (I've got it in word format for anyone who wants it!) This role is basically my equivelant but running internal CRM system and team, rather than the web. - VB/COM/ASP / SQL Server 7/2000 2) Database Administrator (SQL Server 7/2000) - http://leo.cuckoo.org/tmp/dba.htm (again in word for those who want it) Happy to answer questions off list if anyone wants further info. Both will be based in Chiswick - Gunnersbury Tube station. If anyone is interested (please feel free to pass this on to other people) drop me an email: [EMAIL PROTECTED] and I'll pass your CV on. Leo p.s. I'll fess up - there is a prize draw for refering people - hence wanting the cv's to come via me, I'll donate some money to YAS if I win. p.p.s I think the salaries are going to be fairly good (I know they want the right people for these roles) but I don't know the exact figures.
Re: Weird Money (was Re: YAPC::Europe)
On Mon, Jan 27, 2003 at 07:37:53PM +0100, Paul Johnson wrote: Just about everything I get in my hotmail account is spam... And that address has never been publicly advertised by me anywhere, ever. I signed up for a hotmail account recently so I could use MSN Messenger to talk to some people. Spam started arriving within a day, despite my never having used the account, and having made sure that I wasn't listed in any 'directory' (read: spam harvester's delight) of theirs. This suggests to me that there is something deeply fucked about hotmail at a profound level. -- $x='4a75737420616e6f74686572205065726c'#Earle Martin .'206861636b65720d0a';for(0..26){print #http://downlode.org/ chr(hex(substr($x,$y,2)));$y=$y+2;}# http://grault.net/grubstreet/
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
Lusercop wrote: On Tue, Jan 28, 2003 at 02:29:12PM -, Ivor Williams wrote: Reminds me of a rule we used to have in the Makefile defaults: love: echo not war? Arrgggh! I liked the earlier versions of AIX (among others) where the default error for make was 'don't know how to make [foo]' thus: $ make love don't know how to make love $ Which always seemed kind of sad to me. -- Jonathan Peterson Technical Manager, Unified Ltd, +44 (0)20 7383 6092 [EMAIL PROTECTED]
Re: [PUB] Spread Eagle, NW1
On Tuesday 28 January 2003 13:49, Paul Makepeace wrote: Ah, but most of us (being programmers) can do the maths and know that in the long term you will always money. Money as a verb - what's the secret of your success Dave? there was an implicit 'lose' in there. these days whenver people mention money it is taken as read that you will be losing it. q.v. dotcom revolution. -- Robin Szemeti
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
On Tue, Jan 28, 2003 at 03:31:47PM +, Jonathan Peterson wrote: Lusercop wrote: On Tue, Jan 28, 2003 at 02:29:12PM -, Ivor Williams wrote: Reminds me of a rule we used to have in the Makefile defaults: love: echo not war? Arrgggh! I liked the earlier versions of AIX (among others) where the default error for make was 'don't know how to make [foo]' thus: $ make love don't know how to make love $ Which always seemed kind of sad to me. This is of course, just like those lovely csh tricks. It seems that on FreeBSD -STABLE, the error message is make: don't know how to make %s. I was hoping for something more like the GNU make: | $ make -f /dev/null chinese-embassy | make: *** No rule to make target `chinese-embassy'. Stop. -- Lusercop.net - LARTing Lusers everywhere since 2002
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
On Tue, Jan 28, 2003 at 10:26:50AM +, alex wrote: how about we meet up for drinks after attending the Stop the War rally [1] on February 15th. who would like to propose some venues (after 5:30 in the hyde park vicinity)? What a jolly good idea. I've always wanted to turn up to something like that with a Fascists for Peace or suchlike banner ;-) -- David Cantrell | Member of the Brute Squad | http://www.cantrell.org.uk/david While researching this email, I was forced to carry out some investigative work which unfortunately involved a bucket of puppies and a belt sander -- after JoeB, in the Monastery
Re: Weird Money (was Re: YAPC::Europe)
Earle Martin said: I signed up for a hotmail account recently so I could use MSN Messenger to talk to some people. You don't actually need a hotmail account to use msn messenger though. A passport is enough to do the job, so when i finally closed down my hotmail account last year i just created a new passport using an email address in my own domain. Jody
Re: Weird Money (was Re: YAPC::Europe)
I signed up for a hotmail account recently so I could use MSN Messenger to talk to some people. Spam started arriving within a day, despite my never having used the account, and having made sure that I wasn't listed in any 'directory' (read: spam harvester's delight) of theirs. This suggests to me that there is something deeply fucked about hotmail at a profound level. Weirdly, my old hotmail account is fairly well publicised, and I get minimal spam... Did you pick a particularly easy-to-generate username? I'm under the impression some spammers just send to $[EMAIL PROTECTED] where $word comes from any number of sources... +Pete
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
From: David Cantrell [EMAIL PROTECTED] On Tue, Jan 28, 2003 at 10:26:50AM +, alex wrote: how about we meet up for drinks after attending the Stop the War rally [1] on February 15th. who would like to propose some venues (after 5:30 in the hyde park vicinity)? What a jolly good idea. I've always wanted to turn up to something like that with a Fascists for Peace or suchlike banner ;-) They probably exist from appeasement anti-war demos of the late 1930s. Wouldn't a Baath party banner be more suitable today? :- -- 1024/D9C69DF9 Steve Mynott [EMAIL PROTECTED]
How to split 6 digits into 3 lots of 2
Hey all, I heard there were a few people here who knew a bit about Perl :) Is there an easy way to split 123456 into 12-34-56? I've been splitting with a basic // into an array, and then printing 2 array elements at a time, sorta like: $array[0] . $array[1] So - is there an easier way? Thanks in advance. -- Phil. --- (_ ) UNIX is user-friendly,\\\, ) ^ it's just picky about its friends!\/, \( cXc_/_) ---
Re: How to split 6 digits into 3 lots of 2
On Tue, Jan 28, 2003 at 11:22:48PM +, Phil Pereira wrote: Is there an easy way to split 123456 into 12-34-56? $ perl -lne 'print $1-$2-$3 if /(\d\d)(\d\d)(\d\d)/' 123456 12-34-56 $ This should start a good TIMTOWTDI thread :) Paul -- Paul Makepeace ... http://paulm.com/ What is six pence halfpenny? Two cabbages and a giraffe. -- http://paulm.com/toys/surrealism/
Re: How to split 6 digits into 3 lots of 2
On Tue, Jan 28, 2003 at 11:35:29PM +, Paul Makepeace wrote: On Tue, Jan 28, 2003 at 11:22:48PM +, Phil Pereira wrote: Is there an easy way to split 123456 into 12-34-56? $ perl -lne 'print $1-$2-$3 if /(\d\d)(\d\d)(\d\d)/' 123456 12-34-56 $ This should start a good TIMTOWTDI thread :) If you insist: echo 123456 | perl -lne 'print join -, /../g' -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net
Re: How to split 6 digits into 3 lots of 2
Paul Johnson said: On Tue, Jan 28, 2003 at 11:35:29PM +, Paul Makepeace wrote: On Tue, Jan 28, 2003 at 11:22:48PM +, Phil Pereira wrote: Is there an easy way to split 123456 into 12-34-56? $ perl -lne 'print $1-$2-$3 if /(\d\d)(\d\d)(\d\d)/' 123456 12-34-56 $ This should start a good TIMTOWTDI thread :) If you insist: echo 123456 | perl -lne 'print join -, /../g' Or just for fun: echo 123456 | perl -lne 'print join -, unpack a2a2a2, $_' Jody
Re: How to split 6 digits into 3 lots of 2
Paul Johnson wrote: If you insist: echo 123456 | perl -lne 'print join -, /../g' Are you *mad*?! Do you think keystrokes grow on *trees*??!! There's about to be a war on, you know! Start conserving those characters now, citizen! echo 123456 | perl -ple's/..(?=.)/$-/g' ;-) Damian
Re: How to split 6 digits into 3 lots of 2
On Tue, Jan 28, 2003 at 04:35:46PM -0800, Damian Conway wrote: Paul Johnson wrote: If you insist: echo 123456 | perl -lne 'print join -, /../g' Are you *mad*?! Do you think keystrokes grow on *trees*??!! There's about to be a war on, you know! Start conserving those characters now, citizen! echo 123456 | perl -ple's/..(?=.)/$-/g' Hmm, time to whip out the mind-twisting metacharacters, echo 123456 | perl -ple's/..\B/$-/g' Patriotically yours, Paul -- Paul Makepeace ... http://paulm.com/ What is the swirly thing in my coffee trying to tell me? If higher, then fewer. -- http://paulm.com/toys/surrealism/
Re: How to split 6 digits into 3 lots of 2
Paul Makepeace wrote: Hmm, time to whip out the mind-twisting metacharacters, echo 123456 | perl -ple's/..\B/$-/g' Patriotically yours, Paul Well done, thet mahn! See cheps, thets the spirit! Aht this rayte we'll jolly well heve Johnny Foreigner orn the bally wropes in noh tahme! Tally ho! Damian
SQL switcheroo
I'd like to switch the values of a field in two rows. 1-2 while 2-1, say. I have a table containing: = select * from pageplans order by rank; id | parent | child | rank | loopable | required ++---+--+--+-- 3 | 2 | 5 |1 | f| t 5 | 2 | 7 |2 | f| t 14 | 2 | 3 |3 | t| f 2 | 2 | 4 |4 | f| t [etc] So there are a bunch of things order by rank. I'd like to implement a move up/down in SQL. So say the target was id=20 moving up, I'd like its rank to become 1, and id=10's rank to become 2. Basically I need a simultaneous update, set rank=rank+1, set rank=rank-1 What I'd like to avoid is having to perform a select to pull out the ids of the two rows (where rank=? or rank=?+1) Any ideas? So far I select out the two rows, and then perform two updates (eww!). Despite this sledge-hammer approach, it's still quite complicated. # Originally just looked at rank+1, rank-1 but this is more # resilient to gaps in rank (1,2,4,..) all_pageplan_id_and_next_by_rank = qq{ select id, rank from pageplans where parent=:1 and (rank=:2 or rank=(select min(rank) from pageplans where rank :2)) order by rank }, # other one similarly (min - max, - ) sub switch_rank_at { my ($dir, $parent_id, $rank) = @_; begin_work; my $id_ranks = $dir eq 'up' ? all_pageplan_id_and_prev_by_rank($parent_id, $rank) : all_pageplan_id_and_next_by_rank($parent_id, $rank); # flip 'em. Note the 0 / 1 positions. update_pageplans('rank', $id_ranks-[1]{rank}, $id_ranks-[0]{id}); update_pageplans('rank', $id_ranks-[0]{rank}, $id_ranks-[1]{id}); commit; } Paul PS All hail PostgreSQL for allowing even this! -- Paul Makepeace ... http://paulm.com/ What is free will? Not today. -- http://paulm.com/toys/surrealism/
Re: Drink for Peace? [[was: [PUB] Spread Eagle, NW1]]
On Tue, 28 Jan 2003, Jonathan Peterson wrote: I liked the earlier versions of AIX (among others) where the default error for make was 'don't know how to make [foo]' thus: $ make love don't know how to make love $ Which always seemed kind of sad to me. Googling for funny unix commands turns up many, many hits. Excerpts from the first one: % make fire Make: Don't know how to make fire. Stop. % why not? No match. % gotta light? No match. % !1984 1984: Event not found. # (on some systems) % How's my lovemaking? Unmatched '. % How would you rate Bush's incompetence? Unmatched . % [Where is Jimmy Hoffa? Missing ]. % [Where is my brain? Missing ]. % ^How did the sex change^ operation go? Modifier failed. % ^How did the sex change operation go? Bad substitute. % If I had a ( for every $ Congress spent, what would I have? Too many ('s. % man: why did you get a divorce? man:: Too many arguments. % scan for Arnold Schwarzenegger^J^D Arnold Schwarzenegger: terminator not found % cat 'the can of tuna' cat: cannot open the can of tuna % rm Quayle-brains rm: Quayle-brains nonexistent % cat door: paws too slippery cat: cannot open door: paws too slippery % look into my eyes look: cannot open my eyes % talk Gorvachev@Kremlin talk: Kremlin: Can't figure out network address. % talk Comrade Khruchev [Your party is not logged on] % echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc GET A LIFE! % ping elvis.rice.edu | awk '{print substr($1,1,5), $2, $3}' elvis is alive http://www.lns.cornell.edu/~pvhp/perl/unix.html There were many, many others on that page. More still on other pages. It's a little like The Onion -- very funny at first, but repetitive and slightly boring after a few minutes. As opposed to, say, The Big Lebowski, which never gets old :) -- Chris Devers[EMAIL PROTECTED] pun moratorium, n. The doomed campaign to deoxymoronize computer humor. In particular, the vain attempt to demonstrate that plays on words such as RISC and UNIX are unfunny if the player is unaware of their historically built-in playfulness. Other puns assinorum deserving a well-earned retirement relate PARADIGM, Paradise, and ten sents in boringly obvious ways: Paradigms Lost and Regained, Brother, can you s'paradigm? and so on. Likewise, the cash/CACHE thing is surely bankrupt: Cache-only memory, no checks. Be assured, too, that every known C homophone has had its weary, C-sick day at the C-Users Journal's annual C-pun contest: C-through UNIX, C'est C Bon, Holy C, Proficient C, Vitamin C, O say can you C? e = mC^2, Variations in C, C-C Rider, Rauchen C?, The Cruel C from Cmantec, Mer-C Beaucoup... ad nau-C-am. One of Western Democracy's major flaws is that we cannot, without pettifogging legal interference, publically hang, draw, and quarter C-punsters. -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995