Monday, September 15, 2008

Find out mysql socket

  1. Enter mysql command line with 'mysql -u root -p'
  2. mysql> mysql status

Thursday, September 11, 2008

Duplicating a table in MySQL

CREATE TABLE duplicate_name SELECT * FROM original_table;

Thursday, August 28, 2008

GIT - Ignore uncommitted changes in already tracked files

in order to ignore uncommitted changes in already tracked files, please refer to the git update-index --assume-unchanged documentation

http://www.kernel.org/pub/software/scm/git/docs/git-update-index.html

Thursday, July 31, 2008

TextMate discoveries

Option+Apple+o = Overwrite mode

Thursday, July 17, 2008

Wednesday, June 18, 2008

Migrating in a production environment

rake db:migrate RAILS_ENV=production
or
rake db:migrate RAILS_ENV="production"

Sunday, June 8, 2008

Add localhost.localdomain to local DNS (or hosts file)

  1. Goto Start > Run
  2. Type in "system32" (without the quotations)
  3. Goto the folder called "drivers"
  4. Goto the folder called "etc"

The hosts file should be in there. Just open it up with notepad or something and add in 127.0.0.1 localhost.localdomain

Links:

http://mu.wordpress.org/forums/topic.php?id=3152