Replacing a Macbook Battery. Charging it for First Time

My macbook battery showed “Service Battery”, it’s time to replace that old battery. Replacing an old Macbook battery is very straightforward. Shut down your MacBook, place a coin in the slot, do a quarter clockwise turn, and the old battery pops out. The new battery had a piece of clear plastic on both sides that needs to be peeled off. Place the battery in position and then give the slot a quarter counter-clockwise turn to lock it into place.

When you replace an old battery with a new battery, you will need to charge it for first time. I’ve written an article about Calibrating a Macbook battery, the steps similar with Calibration. There are a lot of thread in various Mac forums in the internet about how long it takes to first charge new battery. However, I couldn’t find a good answer until I read the following

This post from said : “At the Mac store I was told charge it until the light turns green (takes about an hour out of the box) then let it charge for a couple more hours. Remove AC power cord and let run on battery for 5 hours. This calibrates the battery to allow longest use.”

It sounds like Calibration. Then I found this post from webomatica, which I rewrite into this article.

1. Plug in the power adapter and fully charge your battery. Same with Webomatica, I left the MacBook off while doing this first charge so it would go quicker.

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.


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

How to Create ePub ebooks and transfer it to Stanza

ePub is the Open eBook standard from the International Digital Publishing Forum. Files have the extension “.epub”
Stanza is electronic book reader and book sharing software for iPhone/iPod Touch and iPad.

Here’s how you can convert nearly any eBook format to ePub on Windows or Mac OS. We’re using free tools we could find.

1. Calibre

Calibre is free and cross-platform eBook software available for Windows, Mac OS and Linux. It supports a variety of formats including PDF.

– Start Calibre, Select Default as your device type. I found going with Default worked fine.

– Drag and Drop the eBook to convert to ePub into Calibre.
If you want to edit Meta Data, right-click the eBook in Calibre and select Edit Meta Information > Edit Metadata Individually, then click the Convert E-books button in toolbar.

– Verify that we’ve got the correct Input/Output formats
The Input Format is on the far left of the Convert window
The Ouput Format is on the far right of the Convert window

The Input Format should Default to the format the eBook is already in.
The Output Format should ePub. If it’s not, choose ePub from drop down menu of the Output Format

– Final stage, Convert
Click OK.

2. ePub2Go

ePub2Go is a free website allows you to convert a PDF to an ePub e-book.

– Visit ePub2Go with any browser

– Click the PDF is on My Computer

Transfer ePub ebooks from computer to iPhone or iPod Touch

1. iTunes

– Open iTunes and add your ePub in iTunes Books. Choose File> Add File to Library

– Connect your iPhone or iPod Touch to your PC or Mac. You can see your device is in the source list under Devices.

– Sync eBooks to your iPhone or iPod Touch
Click on the device in the source list under Devices. Then click the Books tab at the top of the window.
Here you can choose whether to sync all ePubs or selected ePub.
After choosing the ePub, click Sync button.


Stanza 3.0 and higher allows dragging files into the “Stanza Documents” as part of the File Sharing section at the bottom of the “Apps” tab that appears when you select the device

2. Email

You must have two email accounts to allow you to send the ePub from one to another email where you download it to Stanza

– Set a Mail Account in iPhone or iPod Touch, preferably a account

– Send the ePub as attachment to that account

– Open Mail app in iPhone or iPod Touch to check newest emails.
You should now see the mail that you sent yourself
Open the email with ePub as attachment.
Tap the link corresponding to the attachment you sent.
The book should then be automatically downloaded and installed into Stanza.

3. Download
– Upload the ePub files to your personal website via FTP
– Launch Stanza on your iPhone, and go to the “Get Books” tab.
– Select the “Downloads” segment.
– Tap the plus sign at the bottom of the screen.
– Enter the URL for the ePub, then tap Download in the upper right corner.
– You’ll now see your file in Direct Downloads. Tap your book to read it. It will also appear in the categories in the main Library page.