How To : Uninstall Apps from Mac App Store

I installed Mactracker from Mac App Store. It’s a good app, but I don’t need it anymore.

How to uninstall it? OS X doesn’t have a Remove Program tool, the answer is simpler than that.

You uninstall it the way you uninstall most Mac programs. navigate to [Your User Name]/Applications, locate the app you want to remove, and drag it to the Trash icon on your dock.You may need to type in your administrator password to do so. Then go to the Finder menu and choose the Empty Trash option.

While some apps may be completely removed this way, some may leave behind fragments like cache, preference or other supporting files.You could hunt around and manually delete those files, but it would be very time-consuming. Luckily, there are some third-party apps that will handle this for you. Some of these include AppCleaner (free), AppDelete ($7), AppZapper ($13) or Spring Cleaning (prices start at $20).

I’m using AppCleaner to remove  Mac App Store’s apps. navigate to [Your User Name]/Applications, locate the app you want to remove, and drag it to the AppCleaner Uninstall window. You may need to type in your administrator password when you click Delete. AppCleaner could search for your application via its Applications tab

Git lesson : Branch

What is GIT?
Git is…

Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching and merging are fast and easy to do.

Git is used for version control of files, much like tools such as Mercurial, Subversion, CVS, Perforce, and Visual SourceSafe.

A single git repository can maintain multiple branches of development.

Get a list of all existing branches

git branch

Result :

 * master 

Create a new branch (named test)

git branch test

Switch from default “master” to the test branch

git checkout test

Force to switch branch from “master” to the test branch

git checkout -f test

Merge test branch with “master” because two branches have diverged, different changes made in each

git merge test

If there are conflicts with the changes, show markers

git diff

Push the “test” branch to remote repo

git push origin test

Pull the remote “test” branch to local repo

git pull origin test

Delete remote “test” branch

git push origin :test

Delete local “test” branch

git branch -d test

>> Use it when changes in the test branch are already in “master” branch

git branch -D test

>> force delete test branch

Calibrating a Macbook battery

Calibrating a Macbook battery ensures we get the longest possible running time for it.

We should calibrate the battery during the first week we own it or whenever we purchase new batteries. We then calibrate it every two months

If we use our macbook infrequently, it’s best to recalibrate it at least once a month. You can use iCal for Calibration reminder

Calibrating also help fixes this issue with Snow Leopard.
MacBook users upgrading to Snow Leopard are being encouraged to replace flagging batteries via a new feature, an improved battery menu bar. The battery menu bar provides information about the condition of the battery, as well the amout of time remaining on the current charge, the current active power source and any current charge status details.

  • If the condition is “Normal”, the battery is functioning normally.
  • If the condition is “Replace Soon”, it is still working but may be starting to lose its ability to hold a charge.
  • If the condition is “Replace Now” or “Service Battery”, the battery likely needs to be replaced.

Apple’s instructions are

1. Plug in the MagSafe Power Adapter and fully charge the battery.

2. When the battery is fully charged, the light on the MagSafe Power Adapter connector changes to green and the Battery icon in the menu bar indicates that the battery is charged.

3. Allow the battery to rest in the fully charged state for two hours or longer.

4. You can use your computer during this time as long as the power adapter is plugged in.

5. With the computer still on, disconnect the power adapter and continue to use your computer.

6. When you see the low battery warning, save your work and close all applications. Keep your computer turned on until it goes to sleep.

7. After your computer goes to sleep, turn it off or allow it to sleep for five hours or longer.

8. Connect the power adapter and leave it connected until the battery is fully charged.

9. You can use your computer during this time.

If you still get the “Service Battery” warning, wait for Power Adaptor connected until the battery is fully charged.

Change MAMP MySQL password

MAMP creates a local server environment on Mac OS X by installing Apache, PHP and MySQL right out of the box.

The default username/password for MySQL install is root/root. That’s not safe. For security purposes, in our case we want sync between our WAMP and MAMP , it’s best to change that.

Open the Mac OS Terminal Application (located in “/Applications/Utilities”) and enter the following line

/Applications/MAMP/Library/bin/mysqladmin -u root -p password [NewPassword]

>> replace [NewPassword] with new password.
It will ask for the current password after you hit enter. Once you’ve entered that, the MySQL password is changed

Not over yet, open a text editor and change the password in the following files:


There’s the line that reads

$cfg['Servers'][$i]['password'] = 'root'

>> change the value ‘roor’ to the new password, retaining the quotes


There’s the line that reads

$link= @mysql_connect('/Applications/MAMP/tmp/mysql/mysql.sock','root','root'); ;

>> change the last parameter to the new password


>> replace the -proot with the new password.
Note: if we don’t change this one, we can have zombie mysqld’s running after you thought you stopped the server.