Steps to completely uninstall MySQL from a Mac is a lot more involved than I thought.
Here are the steps:
Stop the database server
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /private/var/db/receipts/*mysql*
I am using Twilio to do SMS/Text messaging from Python. There are 2 ways to install the package, either use easy_install or pip. Make sure you are using Python 2.7. Here is how I installed the package on Mac
- Macintosh will already have Python added in their system PATH.
- The only step you need to take is to load up the
Terminal application and type in
- If you want to install Twilio with
pip, you may need to first install
pip on your system because newer Mac may not come with
- To do that you should first install
- You can then use pip to install Twilio with
pip install twilio
To check whether Twilio was properly installed, enter the
python command to enter the Python interpreter in the
Terminal application and type in these two commands:
It should print the version like 4.5.0
Sometimes, emptying the Trash in Mac can be very challenging. For various reasons the trash bin will not empty or will take a long time to tell us why it couldn’t be done with not so good explanation. Here is an alternate way you can empty the trash.
1. Open the Terminal (Command + Space and then type Terminal and hit enter)
2. In the Terminal window after the $, type in the following and hit enter (be super careful – no extra space after the ~). Type in your super secret password
sudo rm -rf ~/.Trash
Voila… everything gone from the trash!