MySQL on FreeBSD 10

# pkg install mysql56-server # echo ‘mysql_enable=”YES”‘>>/etc/rc.conf # service mysql_server start # mysql -u root mysql> SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘rootpwd’); mysql> SET PASSWORD FOR ‘root’@’host_name’ = PASSWORD(‘rootpwd’); # mysql -u root mysql> SET PASSWORD FOR ”@’localhost’ = PASSWORD(‘anonpwd’); mysql> SET PASSWORD FOR ”@’host_name’ = PASSWORD(‘anonpwd’); mysql> CREATE USER ‘colin’@’localhost’ IDENTIFIED BY ‘SuperPassword!’; mysql>[…]

Debugging Python and Ruby

Both Command Line based debuggers are very similar. Python: http://docs.python.org/2/library/pdb.html : # python -m pdb debugfile.py Once in: b (line #) – sets breakpoint s – step into n – next c – continue r – run til return Ruby: http://www.tutorialspoint.com/ruby/ruby_debugger.htm : # ruby -r debug debugfile.rb Once in: b (line #) – sets breakpoint[…]