From: ara.t.howard@... Date: 2006-09-20T06:12:28+09:00 Subject: Re: [ANN] Code Golf Challenge : 1,000 Digits Of Pi On Wed, 20 Sep 2006, Leslie Viljoen wrote: > On 9/18/06, James Edward Gray II wrote: >> On Sep 18, 2006, at 5:33 AM, Carl Drinkwater wrote: >> >> > Hi all, >> > >> > Code Golf's 12th challenge has just been added to the site. It >> > asks you to calculate the first 1,000 digits of Pi - Something I'm >> > sure most of you have thought about, but never done. You can see >> > the challenge at : >> > >> > http://codegolf.com/1000-digits-of-pi >> >> Darn it! They blocked my attempt to use open-uri. How's a guy >> suppose to cheat with these restrictions. Sheesh! >> >> James Edward Gray II >> >> require"open-uri";puts"3."+open("http://www.joyofpi.com/ >> pi.html").read.gsub(/\s/,"")[/\d{1000}/] > > Haha, ever the cheater, James Gray! i tried that too. i figure they've munged $:, but a concerted effort to use load absolute_path_to_open_uri_rb may get it. ;-) -a -- in order to be effective truth must penetrate like an arrow - and that is likely to hurt. -- wei wu wei