Sunday, November 26, 2006

Rails Migrations Cheat Sheet
Ruby Dir Class
RMagick Composite Operators - How to use the powerful composite algorithms in RMagick
Emacs and Ruby
rhtml-minor-mode Allows for templates that include a file in app/views/layouts
How to use Emacs with Rails
nxhtml mode for emacs

To dump and restore a MySQL database:

Dump:

mysqldump -u USER -pPASSWORD DATABASE > filename.sql

Restore:

mysql -u USER -p DBNAME < dump.sql

Attaching a javascript function call to a form action:

>INPUT NAME="num"
onchange="if (!checkNum(this.value, 1, 10))
{this.focus();this.select();} else {thanks()}"
VALUE="0"<