Quantcast
Channel: my linux world » ruby
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Install 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 Article

Image may be NSFW.
Clik here to view.

Different 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 Article

Image may be NSFW.
Clik here to view.

My 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 Article

Image may be NSFW.
Clik here to view.

My 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 Article


Image may be NSFW.
Clik here to view.

Finding 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 Article

Image may be NSFW.
Clik here to view.

Constants 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 Article

Image may be NSFW.
Clik here to view.

Sending 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 Article


Image may be NSFW.
Clik here to view.

Power 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 Article


Image may be NSFW.
Clik here to view.

Interchange 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
Browsing all 10 articles
Browse latest View live


Latest Images