Monthly Archive: June 2016

ruby-on-rails-min 1

Ruby on Rails cheatsheet

Cre­at­ing a new rails project Using MySQL as the data­base rails new myapp –d mysql Using post­gres as the data­base rails new myapp –d post­gresql Installing Gems To man­u­ally install gems that you add,…

git 0

error: pathspec did not match any file(s) known to git

Have you encoun­tered the fol­low­ing error while check­ing out a branch. error: path­spec ‘foo’ did not match any file(s) known to git. Solu­tion: git fetch It will syn­chro­nizes your local repos­i­tory with the remote…

selenium 0

Selenium and xpath — locate an element using class attribute

Issue : Locate the fol­low­ing ele­ment using its Class. <div class=“globalContainer”> <div> … </div> </div> Res­o­lu­tion : You can write the fol­low­ing query in the browser con­sole. $x(//div[@class=“globalContainer”]) Fur­ther Read­ing xPath loca­tor Prac­ti­cal Examples

selenium 0

Selenium and xpath — locate an element using id attribute

Issue : Locate the fol­low­ing ele­ment using its ID. <div id=“globalContainer”> <div> … </div> </div> Res­o­lu­tion : You can write the fol­low­ing query in the browser con­sole. $x(//div[@id=“globalContainer”]) Fur­ther Read­ing xPath loca­tor Prac­ti­cal Examples

ubuntu-icon 0

How to check whether your ubuntu is 64 bit

I recently started play­ing with docker and their pre­req­ui­site states that your ubuntu must be 64 bits. Here’s the com­mand that helps you find the num­ber of bits for your ubuntu uname –a On my…