Search This Blog

Tuesday, February 22, 2011

How to Exclude a tag from css class

form#frmBilling  label:not(.formRadio){
 width: 140px;
}


The above width will be applied to all the labels in the form except
labels with the class formRadio.

Tuesday, February 15, 2011

How to get svn diff file and apply patch file

Get as a patch file

>svn diff -r 6738:6739>mychange.diff

apply the patch file

>patch -p0 -i mychange.diff

How to get a svn diff form a specific revision

If you want to get the changed file list

>svn diff -r REVNO:HEAD --summarize

example

>svn diff -r 6738:6739 --summarize

Get as a patch file

>svn diff -r 6738:6739>mychange.diff

apply the patch file

>patch -p0 -i mychange.diff

Monday, February 7, 2011

How to Export and Import MySQL Db dump from command line

Go to the command line as root or admin user


Export the database

mysql -u UserName -p password databaseName > dbdump.sql


Import the database

mysql -u UserName -p password databaseName < dbdump.sql