Monthly Archive:: December 2005

Ruby: I am stuck with OS X Tiger (10.4) Ruby problem and can’t install mysql gem

I have followed the step from http://tech.rufy.com/entry/46 but I get the following error: mv /usr/local/lib/libreadline.a /usr/local/lib/libreadline.old/usr/bin/install -c -m 644 libreadline.a /usr/local/lib/libreadline.atest -n “ranlib” && ranlib /usr/local/lib/libreadline.amv /usr/local/lib/libhistory.a /usr/local/lib/libhistory.old/usr/bin/install -c -m 644 libhistory.a /usr/local/lib/libhistory.atest -n “ranlib” && ranlib /usr/local/lib/libhistory.atest -d shlib || mkdir shlib( cd ...Read More

MySQL: Display permissions on different databases

mysql> select Host, DB, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Alter_priv from db; +-----------+-------------------+-------+-------------+-------------+-------------+-------------+-------------+-----------+------------+| Host | DB | User | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Alter_priv |+-----------+-------------------+-------+-------------+-------------+-------------+-------------+-------------+-----------+------------+| % | test | | Y | Y | ...Read More

Vim: xml and html auto tag completion

Downloaded the ftplugin from here: http://tritarget.com/cgi-bin/viewcvs.cgi/xmledit/ftplugin/xml.vim (pointed to by here: http://www.vim.org/scripts/script.php?script_id=301) copied the file to ~/.vim/ftplugin/xml.vim at this point XML completion works (.xml files) but html does not. once the plugin was triggered and installed witha deleteme.xml file, I followed the instruction at did ...Read More