Zed shaw zed shaw zed shaw

Zed Shaw zed shaw, zed; shaw. Zed shaw? Zed, zed, shaw, shaw; shaw
zed. Zed zed shaw shaw shaw? Wahs dez! Wahs dez zed shaw, zed zed shaw
shaw.

···

--
Giles Bowkett

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.

Zed Shaw Zed Shawing. Zed! >:(

--Jeremy

···

On Jan 4, 2008 11:03 AM, Giles Bowkett <gilesb@gmail.com> wrote:

Zed Shaw zed shaw, zed; shaw. Zed shaw? Zed, zed, shaw, shaw; shaw
zed. Zed zed shaw shaw shaw? Wahs dez! Wahs dez zed shaw, zed zed shaw
shaw.

--
Giles Bowkett

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

--
http://www.jeremymcanally.com/

My books:
Ruby in Practice

My free Ruby e-book

My blogs:

http://www.rubyinpractice.com/

I can't help pointing out the irony in this thread.

-Adam

···

On Jan 4, 2008 8:03 AM, Giles Bowkett <gilesb@gmail.com> wrote:

Giles Bowkett <http://hollywoodgrit.blogspot.com>
Blog: http://gilesbowkett
Portfolio: http://www.giles
Tumblelog: http://giles

Well, I don't know if Rails is really a ghetto. But ruby-talk appears
to be turning into a loony bin!

···

On Jan 4, 2008 11:52 AM, Jeremy McAnally <jeremymcanally@gmail.com> wrote:

Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.

Zed Shaw Zed Shawing. Zed! >:(
On Jan 4, 2008 11:03 AM, Giles Bowkett <gilesb@gmail.com> wrote:
> Zed Shaw zed shaw, zed; shaw. Zed shaw? Zed, zed, shaw, shaw; shaw
> zed. Zed zed shaw shaw shaw? Wahs dez! Wahs dez zed shaw, zed zed shaw
> shaw.

--
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

> Giles Bowkett
> Blog: http://gilesbowkett
> Portfolio: http://www.giles
> Tumblelog: http://giles

I can't help pointing out the irony in this thread.

Irony? What irony? That's crazy talk.

···

--
Giles Bowkett

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.

Zed Shaw Zed Shawing. Zed! >:(

> Zed Shaw zed shaw, zed; shaw. Zed shaw? Zed, zed, shaw, shaw; shaw
> zed. Zed zed shaw shaw shaw? Wahs dez! Wahs dez zed shaw, zed zed shaw
> shaw.

Well, I don't know if Rails is really a ghetto. But ruby-talk appears
to be turning into a loony bin!

require 'net/http'
_,x = Net::HTTP.new("en.wikipedia.org").get("/wiki/Fictional_races_in_South_Park")
p x.tr('Mm','Zz').gsub(/ez/,'em').gsub(/arklar/,'edhsaw').scan(/Ze\w+,\s+th.*,\s+or\s+z\w+s./m)

sorry could not resist :slight_smile:

Bill

···

From: "Rick DeNatale" <rick.denatale@gmail.com>

On Jan 4, 2008 11:52 AM, Jeremy McAnally <jeremymcanally@gmail.com> wrote:

On Jan 4, 2008 11:03 AM, Giles Bowkett <gilesb@gmail.com> wrote:

Rick DeNatale wrote:

···

On Jan 4, 2008 11:52 AM, Jeremy McAnally <jeremymcanally@gmail.com> wrote:

Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.

Zed Shaw Zed Shawing. Zed! >:(
On Jan 4, 2008 11:03 AM, Giles Bowkett <gilesb@gmail.com> wrote:

Zed Shaw zed shaw, zed; shaw. Zed shaw? Zed, zed, shaw, shaw; shaw
zed. Zed zed shaw shaw shaw? Wahs dez! Wahs dez zed shaw, zed zed shaw
shaw.

Well, I don't know if Rails is really a ghetto. But ruby-talk appears
to be turning into a loony bin!

To be more precise, it seems that Giles has blundered into a secret passageway into the brain of Z.S., and then tricked Z.S. to enter that passageway himself.[1]

It's not clear at this point exactly what kind of passageway Jeremy has entered.

[1] http://www.imdb.com/title/tt0120601/usercomments

--
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

The buffalo thing is an old linguistics thing. You can make a whole
sentence just from the word buffalo. :slight_smile:

--Jeremy

···

On Jan 4, 2008 12:41 PM, Rick DeNatale <rick.denatale@gmail.com> wrote:

On Jan 4, 2008 11:52 AM, Jeremy McAnally <jeremymcanally@gmail.com> wrote:
> Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.
>
> Zed Shaw Zed Shawing. Zed! >:(
> On Jan 4, 2008 11:03 AM, Giles Bowkett <gilesb@gmail.com> wrote:
> > Zed Shaw zed shaw, zed; shaw. Zed shaw? Zed, zed, shaw, shaw; shaw
> > zed. Zed zed shaw shaw shaw? Wahs dez! Wahs dez zed shaw, zed zed shaw
> > shaw.

Well, I don't know if Rails is really a ghetto. But ruby-talk appears
to be turning into a loony bin!

--
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

--
http://www.jeremymcanally.com/

My books:
Ruby in Practice

My free Ruby e-book

My blogs:

http://www.rubyinpractice.com/

Now, that's what the ruby community is all about! LOL

David Morton
Maia Mailguard http://www.maiamailguard.com
mortonda@dgrmm.net

···

On Jan 4, 2008, at 12:34 PM, Bill Kelly wrote:

require 'net/http'
_,x = Net::HTTP.new("en.wikipedia.org").get("/wiki/Fictional_races_in_South_Park")
p x.tr('Mm','Zz').gsub(/ez/,'em').gsub(/arklar/,'edhsaw').scan(/Ze\w+,\s+th.*,\s+or\s+z\w+s./m)

umm should that last line be:

p x.tr('Mm','Zz').gsub(/ez/,'em').gsub(/arklar/,'edshaw').scan(/Ze\w+,\s+th.*,\s+or\s+z\w+s./m)

or is there a subtlety I missed?

···

On Jan 4, 2008 1:34 PM, Bill Kelly <billk@cts.com> wrote:

From: "Rick DeNatale" <rick.denatale@gmail.com>
> On Jan 4, 2008 11:52 AM, Jeremy McAnally <jeremymcanally@gmail.com> wrote:
>>
>> Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.
>>
>> Zed Shaw Zed Shawing. Zed! >:(
>>
>> On Jan 4, 2008 11:03 AM, Giles Bowkett <gilesb@gmail.com> wrote:
>> > Zed Shaw zed shaw, zed; shaw. Zed shaw? Zed, zed, shaw, shaw; shaw
>> > zed. Zed zed shaw shaw shaw? Wahs dez! Wahs dez zed shaw, zed zed shaw
>> > shaw.
>
> Well, I don't know if Rails is really a ghetto. But ruby-talk appears
> to be turning into a loony bin!

require 'net/http'
_,x = Net::HTTP.new("en.wikipedia.org").get("/wiki/Fictional_races_in_South_Park")
p x.tr('Mm','Zz').gsub(/ez/,'em').gsub(/arklar/,'edhsaw').scan(/Ze\w+,\s+th.*,\s+or\s+z\w+s./m)

--
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

>>> Zed Shaw zed shaw, zed; shaw. Zed shaw? Zed, zed, shaw, shaw; shaw
>>> zed. Zed zed shaw shaw shaw? Wahs dez! Wahs dez zed shaw, zed zed shaw
>>> shaw.
>
> Well, I don't know if Rails is really a ghetto. But ruby-talk appears
> to be turning into a loony bin!

To be more precise, it seems that Giles has blundered into a secret
passageway into the brain of Z.S., and then tricked Z.S. to enter that
passageway himself.[1]

It's not clear at this point exactly what kind of passageway Jeremy has
entered.

[1] http://www.imdb.com/title/tt0120601/usercomments

Tangent: city ITA Software has a really cool interview question: come
up with maximum number of combinations of movie titles, e.g., "The
Unbearable Lightness Of Being John Malkovich."

···

--
Giles Bowkett

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

require 'net/http'
_,x = Net::HTTP.new("en.wikipedia.org").get("/wiki/
Fictional_races_in_South_Park")
puts x[/Marklar,.*?or marklars./].gsub(/(m)arklar/i){$1.tr('Mm','Zz')
+'edshaw'}

With word-wrap:

puts x[/Marklar,.*?or marklars./].gsub(/(m)arklar/i){$1.tr('Mm','Zz')
+'edshaw'}.
scan(/\S.{0,64}\S(?=\s|$)|\S+/)

···

On Jan 4, 12:34 pm, Bill Kelly <bi...@cts.com> wrote:

From: "Rick DeNatale" <rick.denat...@gmail.com>

> On Jan 4, 2008 11:52 AM, Jeremy McAnally <jeremymcana...@gmail.com> wrote:

>> Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.

>> Zed Shaw Zed Shawing. Zed! >:(

>> On Jan 4, 2008 11:03 AM, Giles Bowkett <gil...@gmail.com> wrote:
>> > Zed Shaw zed shaw, zed; shaw. Zed shaw? Zed, zed, shaw, shaw; shaw
>> > zed. Zed zed shaw shaw shaw? Wahs dez! Wahs dez zed shaw, zed zed shaw
>> > shaw.

> Well, I don't know if Rails is really a ghetto. But ruby-talk appears
> to be turning into a loony bin!

require 'net/http'
_,x = Net::HTTP.new("en.wikipedia.org").get("/wiki/Fictional_races_in_South_Park")
p x.tr('Mm','Zz').gsub(/ez/,'em').gsub(/arklar/,'edhsaw').scan(/Ze\w+,\s+th.*,\s+or\s+z\w+s./m)

sorry could not resist :slight_smile:

Bill

The buffalo thing is an old linguistics thing. You can make a whole
sentence just from the word buffalo. :slight_smile:

It was actually used in a blog post recently by somebody who was
pointing out that just because something conforms to a language's
technical requirements for a sentence does not actually make it a
coherent sentence, and using that to explain why confobfuscated code
is a Bad Thing.

···

--
Giles Bowkett

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

require 'net/http'
_,x = Net::HTTP.new("en.wikipedia.org").get("/wiki/Fictional_races_in_South_Park")
p x.tr('Mm','Zz').gsub(/ez/,'em').gsub(/arklar/,'edhsaw').scan(/Ze\w+,\s+th.*,\s+or\s+z\w+s./m)

umm should that last line be:

p x.tr('Mm','Zz').gsub(/ez/,'em').gsub(/arklar/,'edshaw').scan(/Ze\w+,\s+th.*,\s+or\s+z\w+s./m)

or is there a subtlety I missed?

As such things go, immediately after I posted I noticed some glitches
in the output that I had overlooked... :frowning:

Changing the last line to the following produces the intended output.

p x.tr('M','Z').gsub(/arklar/,'edhsaw').gsub(/\bme/,'ze').scan(/Ze\w+,\s+th.*,\s+or\s+z\w+s./m)

:slight_smile:

Regards,

Bill

···

From: "Rick DeNatale" <rick.denatale@gmail.com>

On Jan 4, 2008 1:34 PM, Bill Kelly <billk@cts.com> wrote:

Giles Bowkett wrote:

Tangent: city ITA Software has a really cool interview question: come
up with maximum number of combinations of movie titles, e.g., "The
Unbearable Lightness Of Being John Malkovich."

Hat trick: Gone with the Winds of War and Peace.

Can this get any more off topic?

···

--
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

> Tangent: city ITA Software has a really cool interview question: come
> up with maximum number of combinations of movie titles, e.g., "The
> Unbearable Lightness Of Being John Malkovich."

Hat trick: Gone with the Winds of War and Peace.

No, the whole point is to do it in Ruby.

Can this get any more off topic?

OK, do it in Ruby, and then tell everybody you're going to kick their ass.

···

--
Giles Bowkett

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

Giles Bowkett wrote:

Tangent: city ITA Software has a really cool interview question: come
up with maximum number of combinations of movie titles, e.g., "The
Unbearable Lightness Of Being John Malkovich."

Hat trick: Gone with the Winds of War and Peace.

Can this get any more off topic?

Yes. Unless we make it the next ruby quiz to query imdb.com :slight_smile:

It's a Mad Mad Mad Mad World Is Not Enough, The

:slight_smile:

Is there a database of movie titles readily available somewhere?

-mental

···

On Sat, 5 Jan 2008 07:58:15 +0900, "Giles Bowkett" <gilesb@gmail.com> wrote:

> Tangent: city ITA Software has a really cool interview question: come
> up with maximum number of combinations of movie titles, e.g., "The
> Unbearable Lightness Of Being John Malkovich."

Hat trick: Gone with the Winds of War and Peace.

No, the whole point is to do it in Ruby.

Well, it shouldn't be too hard in principle -- they have complete pages
of just movie titles broken up by year and initial letter.

http://www.imdb.com/TitlesByYear?year=#{year}&start=#{initial}&nav=/Sections/Years/#{year}/include-titles

(Where initial is one of 'A'..'Z' or '*')

The main difficulty is normalizing titles where initial articles have
been moved to the end, and doing so in a language-insensitive way.

However, I think the nice people at imdb.com would frown on someone (let
alone lots of someones) mining hundreds of thousands of movie titles this
way, so I was wondering if there was a reasonably large corpus of titles
precompiled somewhere which we could use instead.

Of course, we could always just write the scripts anyway and pretend
we had a more accessible database of titles to work from.

-mental

···

On Sat, 5 Jan 2008 08:09:22 +0900, Philip Hallstrom <ruby@philip.pjkh.com> wrote:

Can this get any more off topic?

Yes. Unless we make it the next ruby quiz to query imdb.com :slight_smile:

K=100 #set this to the number of movies you want in the invented title

require 'open-uri'

MOVIES=open('http://itafullsite.dev.neptuneweb.com/careers/puzzles/
MOVIES.LST'){|f| f.readlines}
MOVIES.collect!{|x| x.split}

class Array
  def shuffle!
    size.downto 1 do |n|
      push(delete_at(rand(n)))
    end
    self
  end
end

cstack=[MOVIES.dup.shuffle!]
pstack=[cstack[-1].shift]

while pstack.size<K
  cstack << MOVIES.select{|x| x[0]==pstack[-1][-1]}.shuffle!
  while cstack[-1].empty?
    cstack.pop
    pstack.pop
  end
  pstack << (pstack[-1][0...-1] rescue )+cstack[-1].shift
end

puts pstack[-1].join(" ")

HANGMANS CURSE OF THE PUPPET MASTER NINJA I LIKE IT LIKE THAT DARN CAT
PEOPLE WILL TALK RADIO DAYS OF HEAVEN AND EARTH GIRLS ARE EASY COME EASY
GO NOW YOU SEE HIM NOW YOU DONT TELL MOM THE BABYSITTERS DEAD HEAT AND
DUST TO GLORY ROAD HOUSE OF DRACULA PAGES FROM A VIRGINS DIARY OF A MAD
BLACK WOMAN ON TOP GUN CRAZY PEOPLE WILL TALK RADIO DAYS OF HEAVEN CAN
WAIT UNTIL DARK BLUE CAR 54 WHERE ARE YOU ONLY LIVE ONCE AROUND THE WORLD
IN 80 DAYS OF HEAVEN AND EARTH GIRLS ARE EASY COME EASY GO NOW YOU SEE
HIM NOW YOU DONT GO IN THE HOUSE OF DRACULA DEAD AND LOVING IT COULD
HAPPEN TO YOU CAN COUNT ON ME WITHOUT YOU LIGHT UP MY LIFE AS A HOUSE
PARTY 2 DAYS IN THE VALLEY GIRL IN THE CADILLAC MAN TROUBLE EVERY DAY FOR
NIGHT OF THE LIVING DEAD MAN OF THE HOUSE PARTY GIRL IN THE CADILLAC MAN
TROUBLE IN PARADISE ROAD HOUSE PARTY GIRL IN THE CADILLAC MAN OF THE
HOUSE PARTY 2 DAYS IN THE VALLEY GIRL IN THE CADILLAC MAN TROUBLE IN
PARADISE ROAD HOUSE PARTY 3 NINJAS KICK BACK TO THE BEACH PARTY MONSTER
IN A BOX OF MOON LIGHT OF DAY FOR NIGHT FALLS ON MANHATTAN MURDER MYSTERY
TRAIN RIDE TO HOLLYWOOD

···

On Fri, 04 Jan 2008 17:58:15 -0500, Giles Bowkett wrote:

> Tangent: city ITA Software has a really cool interview question: come
> up with maximum number of combinations of movie titles, e.g., "The
> Unbearable Lightness Of Being John Malkovich."

Hat trick: Gone with the Winds of War and Peace.

No, the whole point is to do it in Ruby.

Can this get any more off topic?

OK, do it in Ruby, and then tell everybody you're going to kick their
ass.

--
Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/