Search This Blog

April 26, 2017

Installing Ruby and Jekyll on Windows




How to Install Ruby on Rails on your system
Pre check
First, check if you already have Ruby installed. Open the command prompt and type ruby -v. If Ruby responds, and if it shows a version number at or above 2.2.2, then type gem --version. If you don't get an error, skip Install Ruby step.

Installing Ruby
Download latest Ruby file. (Even if you have 64 bit windows, do not install x64 version). The download size would be around 18 MB.

2)      Download corresponding development kit. Search for Development kit on the same page and you will know which version to download and install.
Development kit should be installed in same path in which you installed Ruby earlier.
3)      Link Development kit to Ruby
Type following in Command prompt
Cd c:\RubyXX

      ruby dk.rb init

     ruby dk.rb install


4)      Install most important gems
Type following in Command prompt

Gem install rails

Gem Install WDM

Gem install Jekyll
jekyll build –-watch (To track changes in your source folder)

Gem install rouge

5)      You are done installing Ruby 😊.
6)      Check any missing gem by creating demo file
Rails new demo

7)      Anything missing can be done with
Bundle install
8)      Check the installation by opening following in Browser
http://localhost:3000

9)      Updating any gem is easy on ruby with
 gem update “Gem name”

March 16, 2017

Lyrics Yashomati Nandan



(i)
yaśomatī-nandana, braja-baro-nāgar,
gokula-rañjana kānha
gopī-parāṇa-dhana, madana-manohara,
kāliya-damana-vidhāna
 Lord Krsna is the beloved son of mother Yasoda; the transcendental lover in the land of Vraja; the delight of Gokula; Kana [a nickname of Krsna]; the wealth of the lives of the gopis. He steals the mind of even Cupid and punishes the Kaliya serpent.

(2)
amala harinām amiya-vilāsā
vipina-purandara, navīna nāgara-bora,
baḿśī-badana suvāsā
 These pure, holy names of Lord Hari are full of sweet, nectarean pastimes. Krishna is the Lord of the
twelve forests of Vraja, He is ever-youthful and is the best of lovers. He is always playing on a flute, and He is an excellent dresser.

(3)
braja-jana-pālana, asura-kula-nāśana
nanda-godhana-rākhowālā
govinda mādhava, navanīta-taskara,
sundara nanda-gopālā
 Krishna is the protector of the inhabitants of Vraja; the destroyer of various demoniac dynasties; the keeper and tender of Nanda Maharaja’s cows; the giver of pleasure to the cows, land, and spiritual senses; the husband of the goddess of fortune; the butter thief; and the beautiful cowherd boy of Nanda Maharaja.

(4)
yāmuna-taṭa-cara, gopī-basana-hara,
rāsa-rasika, kṛpāmoya
śrī-rādhā-vallabha, bṛndābana-naṭabara,
bhakativinod-āśraya
 Krishna wanders along the banks of the River Yamuna. He stole the garments of the young damsels of Vraja who were bathing there. He delights in the mellows of the rasa dance; He is very merciful; the lover and beloved of Srimati Radharani; the great dancer of Vrindavana; and the shelter and only refuge of Thakura Bhaktivinoda.

January 4, 2017

Formatting Corrupted Pen Drive Memory Card

 Please note that no data will be saved/retrieved thorough this process but it can make use your pen drive/ memory card reusable.

 Step-1:
Connect the corrupted pen drive or SD card to your computer.

Step-2:
Now open Command window. You can actually do this in several ways. Press Windows Key+R and type cmd in the dialogue box and click on OK. This will let you open a command window. Also, you can click on start button and type cmd in the search box and select the command prompt program.

Step-3:
Once done with opening the command prompt window, it’s time to enter some commands into it.

Type diskpart and press Enter.

Next type list disk and press Enter. This will display a list of all the storage devices connected to your computer.

Step-4:
Now type select disk <the number of your disk> and press Enter. Here the number of your disk is the number assigned to your removable storage.                       

After selecting the disk accurately, type clean and press Enter. Next type creates partition primary and hit Enter.

Step-6:
Now type active, and press Enter.

Type select partition 1, and hit Enter.

Step-7:
Finally, type format fs=fat32 and hit Enter. You can write NTFS instead of fat32 to format drives larger than 4 GB.The format process will complete in a few minutes. Do not close the window till the process is done