def name_repair(var)
car_names1 = ["HONDA",
...
Ruby Can I remove the return sta...
What this method does is; I...
#insert new record if it dosent already exist
if !dbh.select_one('SELECT Salenm FROM Auctions Where Salenm LIKE "%' + c.attributes["href"][/....$/] + '%"')
dbh.do("INSERT INTO Auctions (Salenm, Date, Location) VALUES (?, ?, 1)",
...
Ruby Insert new record if it dos...
by bain19.myopenid.com,
June 24, 2010 04:33,
1 refactoring, tagged with mysql, if, select, bain19, sql injection
Is there a safer way to-do ...
require 'rubygems' require 'hpricot' require 'open-uri' ...
Ruby Can I do this while loop in...
by bain19.myopenid.com,
April 26, 2010 05:12,
5 refactorings, tagged with while ruby hpricot hash array
Is there a better way for m...
doc.css('file').each do |file|
file.css('segment').each do |seg|
nzb << [file.css('group').first.content, seg.content.strip]
...
Ruby On help with processing nzb/xm...
by bain19.myopenid.com,
January 11, 2010 03:41
Awesome work Jose, i had to...
require 'net/http' require 'rexml/document' require 'download.rb' ...
Ruby help with processing nzb/xm...
by bain19.myopenid.com,
January 09, 2010 23:51,
4 refactorings, tagged with download, ruby, xml, parse, nzb, usenet, slow
I was bored during ruby cla...
lol how do i even call that ?