February 21, 2009
February 9, 2009
June 18, 2008
February 1, 2008
January 23, 2008

Burning .dmg to disk - not enough space

I had a problem where i had a 580mb dmg and wanted to burn to 700mb CDR… For some reason, Disk Utility prevented me from burning saying that the disk size wasn’t big enough. I ran the following command on a folder with the .dmg file and it converted it to an .iso. Disk Utility then allowed me to burn to the same CD:

hdiutil makehybrid -o isofilename folderwithdmg

This should create isofilename.iso which you should be able to burn with disk utility.

January 16, 2008
January 10, 2008
January 8, 2008
January 7, 2008

Installing mysql on leopard

- download and install mysql.  do not run the preference or the startup packages.

(if you’ve already installed, right-click/remove the preference pane and run sudo rm -R /Library/StartupItems/MySQLCOM)

- put mysql in your path:

put this into your .bash_login

export PATH=”/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH” 
export ARCHFLAGS=”-arch i386″

- change root mysql password:

mysqladmin -u root password NEWPASSWORD

- If you need to access mysql through rails, install the mysql gem

sudo gem update —system

sudo gem update

sudo gem install mysql — —with-mysql-config=/usr/local/mysql/bin/mysql_config