Ruby On Can I remove the return sta...

by bain19.myopenid.com, July 07, 2010 00:18

lol how do i even call that ?

642d333608cc3483f64dba38cb81bdd2 Talk
def name_repair(var) 
      
   car_names1 = ["HONDA",      
...

Ruby Can I remove the return sta...

by bain19.myopenid.com, July 04, 2010 06:31, 3 refactorings, tagged with ruby, logic, fail, I

What this method does is; I...

642d333608cc3483f64dba38cb81bdd2 Talk
#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 ...

642d333608cc3483f64dba38cb81bdd2 Talk
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...

642d333608cc3483f64dba38cb81bdd2 Talk
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...

642d333608cc3483f64dba38cb81bdd2 Talk
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...

642d333608cc3483f64dba38cb81bdd2 Talk