Dump MySQL Database without Drop Table Syntax
Output .sql file for MySQL but without the drop table syntax before table name use the –skip-add-drop-table flag
mysqldump -u root -p database_name --skip-add-drop-table --skip-lock-tables > database_name.sql
Cool Conditional Syntax in Ruby (on Rails)
Ruby is beautiful
@posts =
if true
Post.all
else
[]
end
Simply elegant!


