Simple array programs in ruby
Hai friends, Last night i learned basic arrays in ruby.At the starting i was little bit struggled. Then learned something in array. The basic array program for store the input value in a array: # The...
View ArticleInstall Rails 3 on Linux Mint 10
Hai Friends, lets see “How to install Rails3 in Linux Mint 10“ First we have to install all of the necessary tools and libraries: $ sudo apt-get install curl git-core build-essential zlib1g-dev...
View ArticleDifferent between “gets” and “gets.chomp” in ruby
Hi friends, The main different between “gets” and “gets.chomp” in ruby is, when you get the input from user, using “gets” method the outputs are ‘ll come like “…/n”. i mean the output ‘ll come whatever...
View ArticleMy Simple Application using Rails :)
Hi friends, This is the simple and sample application to create using rails and heroku is here. This post mostly covers 3rd part of the “Learn Rails By Example” book. $ rails new sample app -T $ rails...
View ArticleMy sample app with new look using rails
Hi friends, Today i finished 5th chapter of Learning rails by example. Today i used some css codes also. i deployed my sample app into heroku site. here the link http://strong-sunrise-136.heroku.com/...
View ArticleFinding Character code Ruby 1.8.7 and 1.9.2
Hi friends, In Ruby 1.8.7, we can use “?” operator to find the “character code from a character.?a evaluates to the integer 97. Now we can see some examples via “irb” Ex: (ruby 1.8.7) > ?a # it...
View ArticleConstants in Ruby
Hi friends, In ruby, “Constants” holds a constant value for the life of the ruby program. Constants are variables whose names are “Capitalized” or “Upper case”. Ex: Matz = “yukihiro matsumoto” puts...
View ArticleSending SMS via “freesmsapi.com”
Hi friends, I found a site which sends sms via website and programs. http://freesmsapi.com. They provides their own API and programing codes in ruby,python.php.java,c,c#., etc., First we have to signup...
View ArticlePower of PYTHON and RUBY languages
Hi friends, Since last week i had worked with Send SMS via rails application. After long search, i found a site called “freesmsapi.com” which provides API and sends SMS. This site is very much helpful...
View ArticleInterchange characters in Ruby string
Hi friends, In ruby we can interchange characters in a string easily by using “.tr” methods this is a good useful method to perform some replace actions on strings. Returns a copy of str with the...
View Article