Fresh pidgin Installation sudo apt-get update sudo apt-get install pidginEarlier versions of pidgin has problem in connecting yahoo messenger which is solved in newer versions.In order to update old version of pidgin, simply follow instructions written below and you are done.New version provides video and voice chat, also buddy icon improvements are added.Add GPG key … Continue reading pidgin install and update pidgin messenger on ubuntu interpid
Month: November 2009
How to remove extra spaces in ruby strings
In ruby, one can write multiple codes to remove multiple blank spaces inside strings (sentenses) "Write your string here ".squeeze.strip"This is my input string ".gsub(/ +/, ' ')"Write your string … Continue reading How to remove extra spaces in ruby strings
Manual active record db connection in ruby using mysql adapter
Here is the code to make manual connection with database require 'active_record'ActiveRecord::Base.establish_connection( :adapter => "mysql", :host => "localhost", :username => "root", :password => "abcd", :database => "funonrails" )Load database configurations from yml file dbconfig = YAML::load(File.open('database.yml'))ActiveRecord::Base.establish_connection( dbconfig )
