Friday, March 7, 2014

Put an Hamburger in your Terminal

Today one of the guys in my office sent me this code to include in my .bash_profile :

export PS1='\u@\w🍔  ' (That export 🍔 is actually U+1F354 HAMBURGER )

Which makes my terminal look like this: 

Find lots of images to add from unicode_fonts here:

Django Connector Woes

Installing the Python MysqlDB connector for Django on my Macbook was much harder than it should have been.
After a day of tinkering and reading, I've included the steps below (with some references) to help anyone currently trying to make MySQL work locally on their macbook.

Steps to install Mysql Driver on MacOSX
0) Install Homebrew

ruby -e "$(curl -fsSL"

1 ) Install Mysql
brew install mysql

2) export PATH=$PATH:/usr/local/mysql/bin (May be unessesary with HomwBrew install)

3) pip install MySQL-python

4) sudo /usr/local/mysql/support-files/mysql.server start
(force start mysql server 1 time )

For Good Measure:
Not entirely sure if this was needed, but I also installed the Python MysqlDB connector:
(Click no thanks on the Download page to avoid signing up for an Oracle account.)
; ;