Category Archives: Apple Stuff

Use both iPhone and iPad on Keynote Presentation

I know some Apple iOS device users. When they need to do a presentation provided by Keynote, they know how to connect the projector to an iOS device by a Lightning Digital AV Adapter or a Lighting to VGA Adapter. Some advanced users even know they can connect the projector to their Mac computers and use an iOS device to do a remote controlling for Keynote presentation, if they have them both.

But they ain’t good enough. If you do it on an iOS device, you have to get close to the projector. The cable for that connection is really heavy and uncomfortable if you want to hold your device with your show. Using a Mac computer is better, but I really hate to bring such a heavy metal just for using Keynote. Yes, I have a Macbook Pro, not a Macbook Air lol.

Today, I realize it’s possible to use Keynote Remote technology from one iOS device to make a show on another iOS device. If you like me, having both iPhone and iPad, there is a better solution.

To prepare, you need to make a connection between both Keynote apps.

  1. If you want to do this by WiFi, connect your iPhone and iPad to the same WiFi network. If you prefer Bluetooth, enable Bluetooth on both devices and turn off WiFi on one device to avoid WiFi interference.
  2. Open Keynote on iPad.
  3. On iPad, in the presentation manager, press the Keynote Remote button (the second one on the title bar, next to the + button) and tap Continue.
  4. Open Keynote on iPhone.
  5. On iPhone, open a presentation, press the button with a wrench icon, select Presentation Tools – Allow Remote Control, then turn on Enable Remotes. Tap Link next to the device of your iPhone. If you see other than 1 connection, make sure the connection is set correctly as in step 1.
  6. Four digits will be displayed on both device.
  7. Press Confirm on one device to finish this step.

To make a show:

  1. Open presentation on your iPhone and connect it to the projector.
  2. Open Keynote on your iPad and press the Keynote Remote button to start.
  3. Give it a little time for syncing data from your iPhone if you don’t want to do that blindly.

Now you can hold your iPad and leave your iPhone next to the projector. I prefer to use iPad for controlling for a dual slides display. If you want to do it reversely, swap all jobs on iPad and iPhone.

Next time, when Apple TV is not provided by your client, you may want to try this. One more piece of advice: do not forget to get your iPhone back after your show.

Solved: Handoff problem with iOS 8 and OSX 10.10

As a developer, I’ve tested OSX 10.10 (Yosemite) and iOS 8 for a long time. There was a strange issue after I reset my OSX:

When I try to make a call from OSX, the calling box will be closed after 10 sec without any information in OSX 10.10 DP4. In DP5, it will say that “Your iPhone is not configu…”. Also, no SMS can be sent from OSX either. But when typing message on iOS, there will be an icon displayed on the left side of Dock in OSX.

Finally, I know the reason.

We know that the account name is one email address. And you can add more email addresses as alias. The problem of the current version of iOS 8 and OSX 10.10 is: if you used the email address for Facetime and iMessage is different from the one used in iCloud for OSX, no matter these email addresses are linked to the same iCloud account or not, the handoff function won’t work, just like the situation I mentioned above.

Before Apple fix this bug, we have to use the same email address for these place.

This issue is submitted to Apple.

Disable Safe Sleep in OSX

While OSX falling asleep, it save all memory into a local disk file, for avoiding data loss caused by batteries running out while sleeping. But it comes with some disadvantages:

  • That file is the same size as your memory. It eats your hard drive. You may not want this on a SSD solution;
  • Writing a so huge file requires more time while entering sleep mode.

And, when is the last time your mac’s battery running out while sleeping? Never, I guess.

Good news is, if you pleased, you can disable this function by running these two commands in terminal window.

sudo rm /private/var/vm/sleepimage
sudo pmset -a hibernatemode 0

These commands above will delete the existed image file and disable the further creation process of this file. Of course, after taking these steps, your computer will not able to resume from sleep while battery running out, by taking a cold boot instead. You may lost all unsaved data in that rare situation.

Time Sync between OSX and Windows

Through Boot Camp, we can install a dedicated Windows instance with OSX in the same mac computer. Due to the different time models, you may see that the time is not right while booting into another system.


  • OSX, as well as other unix-like system, setting UTC to hardware time, convert to local time dynamically while displaying;
  • Windows use LOCAL TIME as hardware time directly.

You may not realized this because one of these reasons below:

  • You are in England, or other countries in Time Zone 0 (GMT);
  • Your computer system, both OSX and Windows has a client of NTP, which will get the right time from internet server very soon after booting. Certainly, the related computer should have an active internet connection.

How to fix it:

I didn’t find a way to change the time model of OSX. But we can do that in Windows.

  1. Start Regedit;
  2. Nav to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation;
  3. Create a new DWORD named as RealTimeIsUniversal, and set it value to 1.

Fix “Open With” menu of OSX

After removing and re-installing some software, there may be some of obsoleted or duplicated item in osx “Open With” menu of right-click mouse menu. In that case, you need to run this code in terminal to rebuild that menu.

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user; killall Finder

As you seen, after rebuild menu, Finder will be killed and restart also.

Alternatively, you may want to save that code as a shortcut by this:

  1. Start Teminal;
  2. nano .bash_profile
  3. write this text below and save that file:
    alais FixOpenWithMenu = '/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user; killall Finder'

After doing that, you will only need to type FixOpenWithMenu in terminal window instead of that long command.


Fix: Boot Camp Assistant stuck on Partitioning

Yesterday, when I was removing Windows partition through Boot Camp Assistant, it got stuck on partitioning:

Status: Partitioning Disk

I’m lucky to fix it manually. There are my steps:

1 Command+Q to quit the Boot Camp Assistant.

2 Open Disk Utility, select the harddisk, go to tab Partition.

3 I see there is some free space after my osx partition. Simply, I extend my osx partition and click Apply.

4 An error message is given to me. Due to some error within my osx partition, this operation cannot be done.

5 Reboot computer with Option key down, and select Recovery.

6 Use Disk Utility to repair the osx partition.

7 Do not try to extend partition here. You cannot make it successfully.

8 Reboot to osx normally.

9 Open Disk Utility again to extend osx partition. It can be done now.

10 Start Boot Camp Assistant if you need to re-install another Windows instance.


That’s my story.


OSX 10.8

Windows to remove: Win7 with single partition, created by Boot Camp Assistant of OSX 10.8.


PS, Windows 8 works great. Except there is a bug on current version of Boot Camp. You can only back to OSX by holding Option button down while powering up, not able to do that with the menu command within Boot Camp.

OSX: Disable automount on specific partitions (disks)

We know that when a new hard drive inserted to a mac, OSX will mount all partitions in it. In some situation, we may not want to mount some partitions. In that case, we need to adjust fstab manually.

Skills need:
1 OSX simply operations, and
2 vi operations.

1 mount the partitions / disks in question. If you want to adjust more than one, do them all at the same time or make them into several batches as you wish.
2 Remember the names or Universal Unique Identifiers of partitions. You can see the names as the text of the specific tree nodes within the left panel of Disk Utility. Universal Unique Identifiers can be found in the pop-up window shown after click the Info button. You can choose to remember names or Universal Unique Identifiers. If you choose to use name, all partitions with the same name will be affected in the same way.
3 Unmount the partitions / disks.
4 Open Terminal.
5 sudo -s
6 vi /etc/fstab
add lines one by one like this (choose one format below):

LABEL=name none ntfs ro,noauto 0 0
UUID=51C9C66D-B850-3285-884E-D48B9F616809 none msdos ro,noauto 0 0

You can check for more detailed information.
Save that file.

Now these partitions will not be mounted unless you do it manually.



VPN会在屏幕锁定后自动断开,且不会自动恢复。导致一些Exchange PushMail由于连接至企业的VPN被断开而无效果。

自带的Google Maps我没有找到绑定自己Google Account的位置,无法更新自己的位置以及查看好友的位置。