hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Thursday

2005.12.15

Two-Hundred and Fifty-Two Ohs is Weak, Come On Now #

by why in bits

Ano… Scleepts from Japan! Second Life has a fun one that uses Yahoo’s API to hunt down gradual vowel endurance. Who can hold out the “oo” in “Google” for the longest? Here you go:

 require 'open-uri'

 appid = 'g(sustained)gle'
 uri = "http://api.search.yahoo.co.jp/WebSearchService/V1/webSearch?appid=#{appid}&query=" 
 regexp = /totalResultsAvailable="(\d+)"/
 i = 1
 while true
   query = "g#{'o' * i}gle" 
   if match = open(uri + query).read.match(regexp)
     puts "#{$1}\t#{query}" 
     if $1.to_i.zero?
       puts i
       break
     end
   end
   i += 1
 end

Mine stopped at 251. 252 looks like this:

Goooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooogle.

But now, by clearly marking the above as mine, I’ve become the new champion! I have lasting vowel power! Once I am indexed. (Seen on ~sasada.)