• February 11th, 2007 • 18 comments
Ruby auto emo generator
From Edward Ocampo Gooding, member of RubyMtl Group:
SOLICITATION FOR AUTO-EMO POETRY GENERATORS : Your Ruby script culls raw emo passion from Myspace, Livejournal and the
like to auto-generate “emo” poetry.
I used the “technorati API”:http://technorati.com/developers/api/ and the Rails framework, which was an error because it was overkill for something like this. “Camping”:http://code.whytheluckystiff.net/camping would have been more suitable. The code is here:
query = params[:emo][:theme1] + ‘+’ + params[:emo][:theme2]
url = “http://api.technorati.com/search?key=1fa5c5362121cf4eb7d70be06c8692cd&query=#{query}”
xml_data = Net::HTTP.get_response(URI.parse(url)).body
@results = Array.new()
if xml_data
xml = XmlSimple.xml_in(xml_data, { ‘ForceArray’ => false })
if xml['document'] and !xml['document'].empty?
xml['document']['item'].each do |post|
@results << post['title']
end
end
end
@results.sort{|x, y| y.length <=> x.length }
Took me a couple of hours to get the “Auto Emo Generator”:http://eumyang.com working. Ironically, the hardest part was deploying. I got the code running locally in 15 minutes but, as usual, it displayed the sandard _rails application 500 error_ on the web server.










July 9th, 2007 at 11:39 pm
@results = Array.new()
if xml_data
xml = XmlSimple.xml_in(xml_data, { ‘ForceArray’ => false })
if xml['document'] and !xml['document'].empty?
xml['document']['item'].each do |post|
@results < < post['title']
end
end
end
@results.sort{|x, y| y.length <=> x.length }
December 27th, 2009 at 1:33 pm
cute website,
take a look at this freaky emo hair
http://emo-boy.punkboy.info
December 27th, 2009 at 7:26 pm
dzigkrofxqmpjbcy bacteriasqzu boys performers young stem professors asteroids coins lapwings managers wagers gypsies pearls thieves curs women monitors geologists husbands trucks beans falcons jugglers harpers cormorants builders tests referees sailors misers hammers stairs bacteria goths fairies information hoodlums bastards idiots weapons submarines girls corgis mountains islands monks guillemots pages tennis students riches colts bankers onlookers
December 27th, 2009 at 8:38 pm
nutritional health supplements vitamins online nourish hair vitamins reviews ginkgo biloba JPlymENvbYKXh whole food vitamins coq10 review antioxidant vitamins nitric oxide supplements pycnogenol slimquick green tea reviews ginkgo vitamin b5 flavanols weight loss supplements for men vitamin e vitamin b12 shots vitamins online canada vitamin shop hair vitamins reviews orac units gnc multi vitamins reviews
January 10th, 2010 at 1:06 am
The blog was precisely fantastic! Lots of nice information and afflatus, both of which we all need!
January 13th, 2010 at 3:34 am
Are all your info right? I am not trying to be a jerk, but I don’t notice how this makes complete sense! Well Wishes!
January 21st, 2010 at 11:48 am
Really nice article. I really have to agree mostly but there are still some stuff i don’t agree with you on this sorry.
January 24th, 2010 at 3:16 pm
While I wasdoing some browsing and noticed your blog looks a bit confusedin my IE6internet browser. I think I’m the only one still using it….
January 28th, 2010 at 9:15 am
How do you do! I sumbled upon this post by accident, I was flipping through the worldwide web for grean tea when I came upon your webpage. I
January 29th, 2010 at 12:47 pm
I have acquired the product but my checking account closed how can I ensure I continue to recieve the supply with opening my new account?
February 2nd, 2010 at 3:40 pm
Can I get identical results as the dentist would give me?
February 7th, 2010 at 3:49 pm
It seems that you’ve put a good amount of effort into your article and I want a lot more of these on the web these days. I truly got a kick out of your post. I do not have a bunch to to say in response, I only wanted to register to say special work.
February 17th, 2010 at 11:49 pm
Hey man I just wanted to say thanks for taking the time to write something worth my time to read. I am all over the internet and I see so much pointless content that is just written for the sake of putting something new on their page. It takes devotion to make good stuff, thanks for caring.
February 23rd, 2010 at 6:37 pm
Hi, nice blog and informative entry… Thanks!
February 26th, 2010 at 1:24 am
Hey your website is cute
Check at that crazy emo song:
http://tinyurl.com/8lxnsg
February 26th, 2010 at 2:16 am
How are you? your website is cool
Check out at this funny emo video:
http://tinyurl.com/8b9p65
March 12th, 2010 at 9:15 pm
Will be credit card be charged more then once?
March 15th, 2010 at 9:59 pm
Found a great wee tool for a great weight loss it’s called the flex belt.