Amitkumar Jha

MySQL Different command for Backup and Restore Databases

Backup Database Making backup all databases: mysqldump -u usuario -p –all-databases > dump.sql Making backup only one database: mysqldump -u usuario -p –databases db1 > dump.sql Making backup many databases: mysqldump -u usuario -p –databases db1 db2 db… > dump.sql Making backup using gzip compresson mysqldump -u usuario -p –all-databases | gzip > dump.sql.gz Making […]

PostgreSQL create a user account and grant permission for database

Here I mentioning the steps require to Create a Postgres User and give them access to particular Database Firstly run command  “sudo su” to make a user as a super user create a new User in unix or you can use the existing one as well, You can create a new user by command # […]

Ubuntu Boot hangs on “checking battery state”

Today Morning,  I was trying to upgrade Ubuntu 13.04 to 13.10 and suddenly power get fails and my system shutdown. and after that  my when I try to own the system . it  hangs at “Checking battery state” while booting. So after that following steps was done to solve the problem press ALT + F5 […]

ExecJS::RuntimeError on Windows on Rails 3.1 and above

On the system having issues, find ExecJS’s runtimes.rb file which will present in execjs gem. Make a copy of the found file for backup. Open the original runtimes.rb for editing. Find the section that starts with the line JScript = ExternalRuntime.new( // other Options ) and replaced it with JScript = ExternalRuntime.new( :name => “JScript”, :command => […]

Simple Metaprogram to Dynamically inject Class Methods and Instance Methods from module

module DummyModule module ClassMethods def find_by_ranks() puts “Class Method Executed Successfully !!!” end end module InstanceMethods def ranks() puts “instance method Executed Successfully !!!” end end def self.included(base) base.send :include, InstanceMethods base.send :extend, ClassMethods end end class Test include DummyModule end t = Test.new t.ranks #output : instance method Executed Successfully !!! Test.find_by_ranks #output : […]

Create a new Rails App Using Specific Version

As we now Rails Community is a very active commnity and Number of rails version are get released so here is a  short command I found to create a rails application by using Specific version $ rails _3.2.13_ new appname

How scrum team Rolls

In Many Places People ask me what are the work and Processes Followed in your company. and while describing them about Agile Methodologies we follow, they Always come with a series of Questions? What is Scrum? What is Sprint?… and all So here are is a short description on it How Scrum Team Works. In […]