Zed shaw zed shaw zed shaw

On Jan 5, 2008 5:58 AM, Giles B. [email protected] wrote:

But again the point is to do it programmatically.
Not to mention, it’s “20000 leagues under the sea”.

m.

On Jan 5, 2008 10:59 AM, Martin DeMello [email protected] wrote:

But again the point is to do it programmatically.

Not to mention, it’s “20000 leagues under the sea”.

I know we’re supposed to be inspired to write a ruby program to do this
but:

Live Nude Girls Just Want to Have Fun in Acapulco

It’s only three titles, but so what.

Rick DeNatale

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

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 B.

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

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

http://merrimerri.wordpress.com/2007/12/11/buffalo-buffalo-buffalo-buffalo-buffalo-buffalo-buffalo-buffalo/

–Jeremy

On Jan 4, 2008 12:41 PM, Rick DeNatale [email protected] wrote:

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
http://www.humblelittlerubybook.com/

My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/

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

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

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 Jan 6, 9:06 pm, Ken B. [email protected] wrote:

pstack=[cstack[-1].shift]
puts pstack[-1].join(" ")
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


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

Although, this is a little suspicious:
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

On Jan 8, 2008 7:15 AM, Ray C. [email protected] wrote:

On Jan 6, 9:06 pm, Ken B. [email protected] wrote:

size.downto 1 do |n|

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(" ")

Although, this is a little suspicious:

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

Yep, I’d think that loops shouldn’t be considered kosher.


Rick DeNatale

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

On Jan 6, 9:06 pm, Ken B. [email protected] wrote:

pstack=[cstack[-1].shift]
puts pstack[-1].join(" ")
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


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

Ken, thanks for closing this thread with a bang!

On Jan 4, 2008 8:03 AM, Giles B. [email protected] wrote:

Giles B. http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett
Portfolio: http://www.giles
Tumblelog: http://giles

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

-Adam

Giles B.
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 B.

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

Yep, I’d think that loops shouldn’t be considered kosher.

Technically loops were disallowed on the original ITA Software puzzles
page.


Giles B.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs