Creating a simple ruby app

Note: For linux users.

1) Open your terminal.

$ rails new appname

2)Go to application directory

$ cd appname

3)If you list the content(using ” $ ls ” ),you will seea number of autogenerated files and folders which makes a basic structure of rails.

File/Folder name Purpose
app/ Contains the controllers, models, views, helpers, mailers and assets for your application.
bin/ Contains the rails script that starts your app and can contain other scripts you use to setup, deploy or run your application.
config/ Configure your application’s routes, database,e.t.c. Rack configuration for Rack based servers used to start the application.
db/ Contains your current database schema, as well as the database migrations.
These files allow you to specify what gem dependencies are needed for your Rails application. These files are used by the Bundler gem.
lib/ Extended modules for your application.
log/ Application log files.
public/  Contains static files and compiled assets.
Rakefile This file locates and loads tasks that can be run from the command line.
README.rdoc This is a brief instruction manual for your application. You should edit this file to tell others what your application does, how to set it up, and so on.
test/ Unit tests, fixtures, and other test apparatus.
tmp/ Temporary files (like cache, pid, and session files).
vendor/ A place for all third-party code.

4) Now check if your application is running correctly

$ rails s

(Open a browser window and navigate to http://localhost:3000. You should see the Rails default page)


 5) Next we,have to create a controller(A controller’s purpose is to receive specific requests for the application).Here we create a controller with name “welcome” and action “index”.

$ rails generate controller welcome index

6)You will see a number of files along with a route automatically created.

7) To display some text on your application page,open app/views/welcome/index.html.erb file in your text editor and type the text.For example,

<h1>Hello rails</h1>

8) Now that we have made the controller and view, we need to tell Rails when we want the text to show up(ie,fix routes for your homepage).

Open the file config/routes.rb in your editor.Uncomment the line beginning with ‘root’.

9) Launch rails server and navigate to http://localhost:3000 in your browser. You’ll see the text you put into app/views/welcome/index.html.erb , indicating that this new route is indeed going to WelcomeController‘s index action and is rendering the view correctly.




Ruby on Rails-Installation

Note:The following instructions are for linux users.There are other ways to install ruby ie,with rbenv ,with rvm,e.t.c.This is way too simple.

1)First update your package manager

$ sudo apt-get update

2)Make sure that ruby is installed on your system.You can install ruby by

$ sudo apt-get install ruby

and check the version by:

$ ruby -v

3)Next step is to install bundler(bundler works as ruby gem manager.gems are like ruby libraries)

$ gem install bundler

4)Next,we will install Rails(the ruby framework)

$ gem install rails

and check for version

$ rails -v




I was really shocked when i heard about the horrifying terror attacks in paris.The news scrolls and newspaper headlines are showing a terrific and chaotic  situation.Praying  for the people who lost their lives in the attack and hoping for a world where everyone stand united against



The full moon day in the month of Ashadha (july-august) is called Gurupoornima.The day of Guru Poornima is traditionally the time when seekers offer the Guru their gratitude and receive his blessings.

The word guru is derived from two words, gu and ru. The Sanskrit word gu means darkness or ignorance, and ru denotes the remover of that darkness. Therefore, a guru is one who removes the darkness of our ignorance.

This was the day, when Krishna-Dwaipayana-Vyasa , author of the Mahabharata was born to sage Parashara and a fisherman’s daughter Satyavati, thus this day is also celebrated as Vyasa Poornima.

This festival has great importance for Indian academics and scholars. Indian academics celebrate this day by thanking their teachers as well as remembering past teachers and scholars.


Git is a free and open source distributed version control system .We can push our files into git as a backup.It is an easy task.All you need is a git hub account.

step 1:install git

$sudo apt-get install git

step 2:create a repository in git hub.

step 3:specify the git configuration settings using git cnfig command.

$git config –global “username”

$git config –global “email id”

step 4: Generate ssh key


//ssh is both a program and a network protocol.Its allows a user to run commands on a machine’s command prompt without them being physically present near the machine.

Enter passphrase (empty for no passphrase): [press enter]
Enter same passphrase again: [press enter]

step 4:copy the ssh key and add it in the github repository.

step 5: Intialize empty git repository

$ git init

step 6: enter every file to added

$ git add .

step 6:

$ git commit -m ‘first commit’

$ git remote add origin

step 7:

$ git push -u origin master

// ‘git commit’ records changes made to the repository while ‘git push’ updates the remote reference along with the changes.

Net Neutrality-“SAVE THE INTERNET”

What is Net Neutrality?

It means that internet should allow everyone to communicate freely.It should allow the users to access all contents and applications regardless of source.No webpages should be blocked as long as they are not illegal.All websites should be accessible at the same speed and we don’t have to pay extra for internet speed to a particular website.

Global Communication

Global Communication

What is the role of Net Neutrality in shaping the Internet?

Users are free to access whatever web service they want.This made Internet grow into a truly global network.It allowed the users to freely express themselves.This means that one can even criticize a internet service provider(ISP) on a blog post. ISP’s wont restrict the post even though it may be against  them.

What will Happen if there is no Net Neutrality?

If there is no Net Neutrality ISP’s will be able to charge the access to some websites.Also,there will be different connection speed for different types of contents.

What is the importance of Net Neutrality?

Net Neutrality is extremely important for startup companies and  small business owners who can launch their business online and advertise their products.It helps to create job opportunities.Big companies like google have born out of Net Neutrality.

netneutrality (1)

What is the state of Net Neutrality in India?

Legally concept of Net Neutrality doesn’t exist in India. TRAI (Telecom Regulatory Authority of India) has tried to come up with several rules regarding Net Neutrality.But no formal rules have been formed yet.




I got the opportunity to prepare an IEEE paper as a part of the first year communicative course curriculum.This was the first time I got introduced into official paper presentations. I read many papers to understand the style of writing and formatting.My topic for presentation was “Database Management System”.I have pointed out the important sections of the topic.The link to the document is given below.


Hello friends

A year after, here comes another Navaraatri festival. As the name resemble, it is a festival of nine nights and ten days during which nine forms of Goddess Shakti are worshipped in India. The nine worshipped forms are Durga, Bhadrakali, Amba, Annapoorneswari, Sarvamangala, Bhairavi, Chandika, Lalita, Bhavani and Mookambika. These nine days are celebrated as the Maha Navaratri and the tenth day happens to be the most auspicious occasion and is known as Vijayadasami or Dussehra. The day is known to be the apt to start formal education known as Vidyaarambham. As a part of this tradition, Aayutha Puja and Saraswati Puja are performed on Ashtami, Navami and Dashami days of Navaratri.

There are many stories revolving around the day. It is assumed to be the victory of Goddess Durga over Mahishasura(an Asura king) in some parts of southern India. Goddess Durga, a combination of Brahma, Vishnu and Shiva, is ten handed with special power of all the Devas and rides a lion. After a long battle of nine days and nights, Mahishasura was defeated on the tenth day by Goddess Durga.

Some Indian states celebrate the day as the home coming of Durga Maata along with her children, Lord Karthikeya and Lord Ganesha and two Shaktis, Jaya and Vijaya, to visit  parents of her pre-birth as Sati – King Dhaksha and Prasuti, known as Durga Puja.

Some northern areas of India observe Vijayadashami as the day of victory of Lord Rama over Ravana along with Lakshmana to rescue Sita from Lanka. They burn effigies of Ravana, Meghanada and Kumbhakarna to mark this. The ten day celebrations include recitation of Sundarakanda of Ramayana for five days, to eliminate ten bad qualities; Kama Vasana, Krodha, Moha, Lobha, Mada, Matsara, Swartha, Anyaaya, Amanavata and Ahangara, represented by the ten heads of King Raavana, from home. People perform dramas and plays based on the Epic Ramayana (RamLeela) during this season.

Despite all the varying stories,regions and names, the season is of great festive importance and is welcomed as the time of good luck, happiness, prosperity and is celebrated with all its traditional importance and ambience in all parts of India.

Wish you all a HAPPY NAVARATHRI..