Ruby: convert int to time? - by scalalala We can do this: i = Time.now.to_i for example current: i = 1274335854 can I convert i back to time? Read the article
solr or sphinx? which is better? - by scalalala I will use it to do full text search in my ruby on rails app. which is the best choice. solr use java to do this job. or sphix in ruby? Read the article
Ruby: merge two hash as one and with value connected - by scalalala Hi guys: 2 hash: h1 = { "s1" => "2009-7-27", "s2" => "2010-3-6", "s3" => "2009-7-27" } h2 = { "s1" => "12:29:15", "s2" => "10:00:17", "s3" => "12:25:52" } I want to merge the two hash as one like this: h = { "s1" => "2009-7-27 12:29:15", "s2" => "2010-3-6 10:00:17", "s3" => "2009-7-27 2:25:52" } … Read the article