Re: The Santa Claus Golf Apocalypse

2001-12-03 Thread Yanick
On Mon, Dec 03, 2001 at 09:46:51AM -0500, Simon Drabble wrote: It might be instructive to have the lowest scores per hole published What? And loose the angst of trying to figure out on which of the courses you're beaten by a few characters? Nay, I say, nay, nay, a thousand times nay!

Re: The Santa Claus Golf Apocalypse

2001-12-05 Thread Yanick
On Wed, Dec 05, 2001 at 04:57:48PM +1100, [EMAIL PROTECTED] wrote: The programs should be sound; passing tsanta.pl is no guarantee. A program that failed on files longer than 100 lines, for instance, would certainly be disqualified. Urgh. Then you can s/2.1/2+.5/ my entries and

Re: The Twelve Days to Christmas

2001-12-17 Thread Yanick
On Tue, Dec 18, 2001 at 02:29:42PM +1100, [EMAIL PROTECTED] wrote: `/anick wrote: The following is not very clever obfuscation, and it's not the most palatable ASCII drawing ever drawn, but I suppose it's good enough to elicit a few chuckles and/or groans. Bart Lateur wrote: On day

Re: Possible fwp golf game

2002-01-08 Thread Yanick
On Tue, Jan 08, 2002 at 06:50:15PM +1100, [EMAIL PROTECTED] wrote: My proposed game would be just a minor fwp tour event. Sometime around the end of January may be a suitable time, but I want to go along with the wishes of the majority, and will happily cancel it if people feel we are being

Re: Interactive golf hole

2002-01-08 Thread Yanick
On Tue, Jan 08, 2002 at 11:50:44AM -0800, Yitzchak Scott-Thoennes wrote: -n $\=$/;$,=':';print/([^]*|[^\s#]+)\s*(?:#.*)?/g Close. I said: The surrounding quotes are themselves not part of the field, so the quotes should not get printed. Also, I said: Fields are separated by 1 or more

Re: Practical Perl Problem

2002-01-14 Thread Yanick
On Mon, Jan 14, 2002 at 07:32:15PM -0500, Aaron D. Marasco wrote: Here is my attempt, at 7 lines (need to count #! line)... #!/cygdrive/r/perl/bin/perl -n if(/[\s-]*([^:]*)\s*:/){$a[$.]=--== $1 ==--\n;next} ($a[$.],$b[$.],$c[$.])=/\s+(\w+)\s*(\w*)\s*(\d*)/; $l=length$1;$m=$l if($l$m);

Re: ^=~

2002-01-19 Thread Yanick
On Sat, Jan 19, 2002 at 02:42:11PM +, Robin Houston wrote: On London.pm we're wondering what this Perl 6 operator is called. Suggestions so far: topcat, firework, rat, squirrel. Any thoughts? Flirting duck? (well, it /is/ winking at me!) Joy, `/anick -- @sympatico =

Re: ^=~

2002-01-19 Thread Yanick
On Sat, Jan 19, 2002 at 03:36:59PM +, Simon Cozens wrote: It's semi-official name is the hypermatch operator. It's an array version of the ordinary =~ match operator. (Which used to be just for regular expressions, but is now for all sorts of matches.) @a = (foo, bar, baz); @a

Re: Regex puzzle

2002-01-19 Thread Yanick
On Sun, Jan 20, 2002 at 01:59:21AM +, Robin Houston wrote: I agree that shrinkable isn't great. Any better ideas? Slice-wise alphabetically ascendent? Joy, `/. -- $_= e nte elhce.rka rPrhoatY; @nothing = ( '', '' ); s#(.)(.*)(.)#$2#g and ($\,$,)=($1,$3) and print @nothing while

Re: ^=~

2002-01-20 Thread Yanick
On Sun, Jan 20, 2002 at 11:31:25AM -0600, Matthew Wickline wrote: (well, it /is/ winking at me!) why not call it a wink? ... or maybe a flirt? I kind of like 'flirt'. But I still don't understand what it brings more than a classic 'map', or why The Power That Is didn't

Re: FORE! Get Even Golf Game Tees Off

2002-01-24 Thread Yanick
On Thu, Jan 24, 2002 at 08:21:04AM -0500, Bill -OSX- Jones wrote: I am at 119 strokes ... and it fails... I no longer have any idea why :( Are we allowed to ask for help??? It goes against the fundamentally sadistic principle of the game, but yeah, why not? :) Joy, `/anick --

Re: FORE! Get Even Golf Game Tees Off

2002-01-24 Thread Yanick
On Thu, Jan 24, 2002 at 04:41:13PM +0100, Joerg Ziefle wrote: BTW, did anybody get below 35 (with the original test program) for gs.pl? *mad cackles* `/. -- print map { ( split '', 'P arctehYkl.no' )[ hex ] } split '', '86512cd57631063a1724963b';

Re: A present ...

2002-01-24 Thread Yanick
On Thu, Jan 24, 2002 at 12:32:14PM -0500, Jason Purdy wrote: I don't have the rules with me (I'm at work now), but I thought that there has to be an even # (or 0) of each vowel separately. Is that right? This is correct. So the code mentioned in the parent message is broken (sorry,

Re: FORE! Get Even Golf Game Tees Off

2002-01-24 Thread Yanick
On Fri, Jan 25, 2002 at 12:17:05PM +1100, [EMAIL PROTECTED] wrote: Current Leaderboard --- 1. 69 Rick Klement AAAUGH!!! (and I think I speak for the vast majority of us here...) `/anick, still stuck at the impossibly high score of 80. --

Re: Better ?

2002-01-25 Thread Yanick
On Fri, Jan 25, 2002 at 12:50:54PM -0500, Bill -OSX- Jones wrote: So, to come back, allow me to ask: $_ = a planet of Perl Fun; for $y(qw/a e f l n o p r t u/){$x||=y/$y//%2; print $y $x \n} What is $x being set to and why ? Nothing interesting, as y/// doesn't extrapolate. Try

Re: FORE! Get Even Golf Game Tees Off

2002-01-28 Thread Yanick
On Tue, Jan 29, 2002 at 09:55:29AM +0800, Anthony J. Breeds-Taurima wrote: I know many people have done it already but I'd like to thank Andrew for running this game. It was a ball (in a hair pulling, bad language kinda way). I will join my voice to the chorus. To come up with such

Re: Beginner's definition ?

2002-01-30 Thread Yanick
Jean-Pierre Vidal wrote: What is the definition of a beginner? I think anybody is a beginner the first time (s)he plays golf. Is this correct? Here, I would take the Zen approach and say that beginnership is something personal. If you turn your gaze inward (metaphorically speaking,

Re: substitution question

2002-01-31 Thread Yanick
On Thu, Jan 31, 2002 at 05:17:17PM -0800, Pradeep Sethi wrote: Hi All, I want to change date 9/9/1987 to 09/09/1973 was wondering, what is the most efficient way ? Probably not: $_ = '9/9/1987'; $=;$_= @{[(m|(\d)|g)[qw] 3 0 2 1 5 ]],$+-4]}; s| .|0$/|x ; s|(?=\D).|0$/|x ;

Re: Flog. Re: substitution question

2002-02-04 Thread Yanick
On Mon, Feb 04, 2002 at 05:09:53PM +0100, Eugene van der Pijll wrote: Or: find the RegEx, given a number of strings that match it. A kind of Perl Zendo (see http://www.wunderland.com/WTS/Kory/Games/Zendo/ for an explanation of Zendo). Or a Perlish hangman? The gamemaster

Re: Flog. Re: substitution question

2002-02-04 Thread Yanick
what the code is roughly supposed to do. Mmm, looks a lot like a hangman. Oh yeah, I can see it from here: 'Yanick, it's your turn.' I will take the dollar sign... *ding* *ding* *ding* *ding* *ding* *ding* *ding* *ding* *ding* *ding* *ding* *ding* *ding

Re: Flog. Re: substitution question

2002-02-04 Thread Yanick
On Mon, Feb 04, 2002 at 09:26:54PM +0100, Bart Lateur wrote: On Mon, 04 Feb 2002 12:01:16 -0500, Steve Lane wrote: just require that if a variable name contains a letter, then that letter must be 'z' (or whatever). $z, $zz, $, @z, etc. I take: the letter...! *ding* *ding*

Re: Flog - Golf Anagrams (was Re: Flog. Re: substitution question)

2002-02-04 Thread Yanick
On Mon, Feb 04, 2002 at 04:32:29PM -0500, Jeff 'japhy' Pinyan wrote: I have an interesting idea. Take Perl code, and jumble it around to something else (valid or not) and state the original code's purpose. # find all prime numbers $_||=(1)^(\1/~++$$)while +x._/+1;print The comment

Re: TPR0: the leaderboard...

2002-02-11 Thread Yanick
On Tue, Feb 12, 2002 at 12:56:03AM +, Matt Bernstein wrote: On Feb 11 Jerome Quelin wrote: In order to apply these rules, I slightly modified your submissions to meet the requirements (ie, add a $_=pop, or a -l flag, etc.). If the modifications were too important, your submission is

Re: The Perl Review #0 Golf tournament

2002-02-13 Thread Yanick
On Wed, Feb 13, 2002 at 06:37:56AM -0600, Dave Hoover wrote: On Tuesday 12 February 2002 07:22, Jerome Quelin wrote: Since when does a golf contest not accept one-liners? [..] Looking back just a few months in the fwp archives shows that Santa's, Ton's, and Andrew's golf tournaments all

Re: The Perl Review #0 Golf tournament

2002-02-13 Thread Yanick
On Wed, Feb 13, 2002 at 02:00:24PM -0800, John W. Krahn wrote: Yanick wrote: perl -e'codecodecode' #!perl codecodecode ? Unless I'm forgetting something major, the second option gives you a few bonus strokes and protects you of the evil that shells do

Re: TPR0 Final Results

2002-02-20 Thread Yanick
On Thu, Feb 21, 2002 at 12:21:14PM +1100, [EMAIL PROTECTED] wrote: I hope this 45 restores some credibility to the Andrew-Ton collective whose motto is: If you can't win the game, win the post-mortem. :) Might I propose an alternative motto: Beating dead (golf)

TPR(0,1) scores

2002-03-02 Thread Yanick
If anyone is interested to see a graphical representation of the scores: http://babyldyndnsorg/golf/ I quickly hacked a little page that slurp the scores off the official page and make a histogram out of it (please note the ties are not handled correctly as we speak I'll try

Re: TPR(0,1) scores

2002-03-02 Thread Yanick
On Sat, Mar 02, 2002 at 02:53:09PM -0600, Chris Dolan wrote: Dave Hoover wrote: Question: how will it scale as the number of golfers grow? Will it push off the right side of the page? It fits nicely in my browser right now, but I'm not sure how well it would scale to the 73 veteran

Re: TPR(0,1) scores

2002-03-02 Thread Yanick
On Sat, Mar 02, 2002 at 09:38:14PM +, Stephen Turner wrote: Fun-with-English question: Is a 'sandtrap' the normal US word for what we over here call a 'bunker'? Is 'bunker' also used? I think both are used But I'm probably the last guy you want to have as a reference for this kind

Re: outside competition?

2002-03-05 Thread Yanick
On Wed, Mar 06, 2002 at 01:17:26AM +0100, F Xavier Noria wrote: There is this text in BoB's leaderboard box: BoB (run by referees - outside competition) What does it mean? That he can give us ulcers, but will not get a t-shirt when the winners will be announced :)

Re: PGAS Web Service

2002-03-13 Thread Yanick
On Tue, Mar 12, 2002 at 09:58:19PM -0600, Dave Hoover wrote: Well, obviously, being able to get the score of the golfer would be kind of fun. :) OK. And having the score of previous golf courses would be neat too. And, and that would be Neat witha capital, underlined N, is to

Re: PGAS Web Service

2002-03-14 Thread Yanick
On Thu, Mar 14, 2002 at 12:29:16PM +1100, [EMAIL PROTECTED] wrote: En op 14 maart 2002 sprak `/anick: My next step is to try to create mock-baseball cards with scores and everything. Shouldn't be too hard to do... I think we should allocate earnings for each tournament, so we can

Re: PGAS Web Service

2002-03-15 Thread Yanick
On Thu, Mar 14, 2002 at 01:50:50PM +0100, Stefan `Sec` Zehl wrote: On Wed, Mar 13, 2002 at 08:21:27PM -0500, Yanick wrote: A first tentative to see what kind of stuff can be done with that can be found at http://babyl.dyndns.org/golf/golfers.epl There we have a list

Re: Golf contests and naive solutions?

2002-03-17 Thread Yanick
as a 'beginner' and get a handicap on your Y-index. But I don't really have strong opinions, and ain't a beginner anyway. So I'll let the Llamas among us speak for themselves. :) Joy, Yanick -- My fear is greater than my faith but I walk the missionary way

Re: shortest test for truth false assignment

2002-05-22 Thread Yanick
On Wed, May 22, 2002 at 10:06:39PM -0400, Josh Goldberg wrote: I came up with another one. This also works for values of true other than 1. if ($a=~tr/.[^0]+/0/c) { do_something(); } s/tr/s/, maybe ? (the transliterate operator doesn't use patterns, so the code

Re: diff between hyphenated and non-hyphenated version of a word

2002-09-05 Thread Yanick
/-//; } [yanick@gilgamesh yanick]$ perl hyphen hypo-allergeen hy-po-al-ler-geen 1 3 4 Joy, `/anick PS: as a bonus, we can play 'Where's /-\ndrew' with the script. -- My fear is greater than my faith but I walk the missionary way. - Suede, Tori Amos

Re: removing extra empty lines

2002-09-30 Thread Yanick
On Mon, Sep 30, 2002 at 08:06:55PM +0200, Aristoteles Pagaltzis wrote: perl -pe'!/\S/?($e++and$_=):($e=0)' filename perl -pe'/\S/?($e=0):($e++and$_=)' filename :) Joy, `/anick -- Comedy is an escape, not from truth but from despair; a narrow escape into faith.-- Christopher Fry

Re: removing extra empty lines

2002-09-30 Thread Yanick
On Mon, Sep 30, 2002 at 02:51:54PM -0400, Uri Guttman wrote: Y == Yanick [EMAIL PROTECTED] writes: no one seems to have seen my earlier post on this so here it is again and it is much shorter. Y perl -pe'/\S/?($e=0):($e++and$_=)' filename perl -0777pe's/^\s*\n/\n/m

Re: Converting a textfile-like string to an array and back

2003-02-07 Thread Yanick
On Fri, Feb 07, 2003 at 06:26:22PM +1100, Andrew Savige wrote: my @lines = split(/^/, $x, -1); chomp(@lines); # fastest? I'll prolly say something stupid here, but: my @lines = split \n, $x; Joy, `/. -- There are people in the world so hungry, that God cannot appear to

Re: The flaming X-wing secret operator

2007-11-29 Thread yanick
On Thu, Nov 29, 2007 at 10:00:19AM +0100, Philippe Bruhat (BooK) wrote: On Wed, Nov 28, 2007 at 07:22:54PM -0500, Yanick Champoux wrote: Somehow, I think Philippe knew that. ;-) Even better, I knew I didn't need them. I knew you knew. :-) I was more saying Philippe knows

Re: Secret operators

2005-02-04 Thread Yanick Champoux
Andrew Savige wrote: @{[]} join $, ... My better half proposes to call this one the papoose operator. Joy, `/anick

[ANNOUNCE] first release of PerlWar (and request for beta testers)

2005-10-16 Thread Yanick Champoux
After way too long in the making, I am proud to announce that a first beta of Perlwar is finally available to the public. Glad to hear that. But what is PerlWar? PerlWar is loosely inspired by the classic Corewar game. In this game, players pit snippets of Perl code (called 'agents') against

[ANNOUNCE] first release of PerlWar (and request for beta testers)

2005-10-17 Thread Yanick Champoux
After way too long in the making, I am proud to announce that a first beta of Perlwar is finally available to the public. Glad to hear that. But what is PerlWar? PerlWar is loosely inspired by the classic Corewar game. In this game, players pit snippets of Perl code (called 'agents') against

Re: [ANNOUNCE] first release of PerlWar (and request for beta testers)

2005-10-17 Thread Yanick Champoux
Well, I'll be darned. Some people actually volunteered. :-) So far, I have 7 volunteers to play in the first beta game, which should already be enough to have an unhealthy amount of fun (although it's not too late to jump on the bandwagon). If everything goes well, the game should kick off

Fwd: first release of PerlWar

2005-11-01 Thread Yanick Champoux
For the amusement of all camels and llamas present, here's a code-review of Perlwar done by Uri. For the record, he sent it my way barely a few hours after the initial release, which speaks volumes about the man's alacrity, and my weakness for procrastination. Joy, `/anick --

Re: The flaming X-wing secret operator

2007-11-29 Thread Yanick Champoux
shmem wrote: To brighten up your day - here's the winged moon, which isn't an operator, but a constant: [EMAIL PROTECTED] Georg added: Similar to the winged moon - an operator (token?) which scares the hell out of the remainder of a list: [EMAIL PROTECTED] Me likes. Lots. I

Re: The flaming X-wing secret operator

2007-11-30 Thread Yanick Champoux
shmem wrote: in fact, shmem and Georg are the same guy, though 'Georg' just slipped ;-) One would think that the same sig and style and everything would have tipped me off. But no... That was too suble for me still. :-P Me likes. Lots. I propose, as alternative names for

Re: Umlaut

2008-01-13 Thread Yanick Champoux
Georg Moritz wrote: From the keyboard of Yanick Champoux [12.01.08,18:50]: *dieresis* or *diæresis *A diacritical mark (* ¨ *) optionally used in English, oftentimes replaced by a hyphen. In English, the dieresis is used on a second identical vowel to indicate a change in pronunciation

Re: regex of the month (decade?)

2008-01-13 Thread Yanick Champoux
Michael G Schwern wrote: Yanick Champoux wrote: *dieresis* or *diæresis [..] Really they just want to be more metal. Soon it will be ¡KömpUsërV.DøøM! And to thing that, all those years, I laughed at Spinal Tap's claim to be avant-garde and visionary geniuses. They were right