While coding in ruby and rails, we often requires variables to be initialized that can be usedacross application. There are many ways to define configuration variables1. Initialize variables inside environment file # This agencies can be used across application AGENCIES = ['TIMES NEWS NETWORK', 'AGENCIES', 'AFP', 'PTI'] # Configuration for html nodes Article_title_tag = "h1.heading" … Continue reading YAML file configuration in ruby & rails
Author: sandipransing
pidgin install and update pidgin messenger on ubuntu interpid
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
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
