Ben Wong is a Web/iOS Developer from Brisbane, Australia. When he's working he is usually coding in HTML, CSS, Javascript, ASP.NET (C#/VB.NET) or SQL. He enjoys working with Umbraco CMS. When he's not coding he's probably on a basketball court.

How to remove duplicate Open With menu items in Finder

I often find that the Open With context menu in Finder has duplicate entries for some applications. The most reliable way I’ve found of fixing it is running the following command in Terminal and relaunching Finder ( > Force Quit… then select Finder and click Relaunch button).


Spring Cleaning for iPhone 5 – Organising Apps

iPhone 5′s new 4″ Retina Display has different dimensions and resolution from the displays on its predecessors, which means it’s time to look for new wallpapers and rethink how to arrange all my apps.

You can read about my thoughts on wallpapers here.

For this post, I’m going to explain how I organise apps on iPhone 5. It’s going to be very subjective., and there are probably better ways of doing it. But here goes.

Organising Apps

If you enjoy using your iPhone as much as I do, you most likely have a huge collection of apps on your phone. When your app collection gets to the point where it spans multiple home screens, it’s time to put a little thought into where you place each app. Needing to use the search to find an app or use Siri to launch, that’s a definite hint.

The Basics

There are main three areas you can place an app:

  1. in the dock
  2. on the first page of the home screen
  3. on subsequent pages of the home screen

Where you place an app should depend on how frequently you use it and quickly you need to find it.

The dock is the prime location for an app. It’s visible across all home screens. You will see it as soon as you press the home button to exit an app. The dock is limited to four apps or folders.

The first page of the home screen is the second best location. You can jump to it by pressing the home button when you’re on any other home screen or the search screen. A page of the home screen is limited to twenty apps or folders on iPhone 5, and sixteen on older iPhones.

Apps on each subsequent home screen page after the first is a swipe more difficult to get to than an app on the previous page. The likely usage rate of the app decreases as the page number increases. By the last page, most of the apps will be ones you consider deleting from your phone.

Finding apps on subsequent pages will also be more difficult because you don’t see them as often. That is why apps on these pages will require some additional logic to determine where they are positioned. For me, I group apps by their purpose – for example, camera apps and photo editing apps are grouped together.


I decided to have a separate section for folders because I’m a bit apprehensive about using them. They are sort of a hack to allow the user to fit more apps into an area. But because they shrink or hide icons of apps they contain, and add an additional tap to open and launch a contained app – they come with a heavy penalty to usability. For that reason, I don’t use folders in the dock and on the first page of the home screen.

Positioning of Apps on Pages

For apps in the dock and on the first page of the home screen, you should position the most important apps in the easiest position for your thumb to reach when you hold the phone one-handed. For me on iPhone 5, the best positions on the dock are the two middle ones, and as I hold the phone in my left hand, the best positions on the home screen are the left most position on the third row and the second from left position on the fourth row.

For subsequent home screen pages, I focus more on findability than accessibility and I try to group my apps into rows and lay out the apps from left to right with the most important row in the middle.


Here’s are my guidelines for organising apps:

  1. If you absolutely have to be able to find and launch an app quickly, you should place it on the dock.
  2. If you frequently use an app and would like to launch it quickly, place it on the dock or on the first home screen.
  3. Apps that aren’t on the dock or first home screen, should be grouped with similar or related apps so they can be found easily.
  4. Don’t use folders on the dock or the first page of the home screen.
  5. Position apps on the screen so that the most important apps are most comfortable to reach when using one-handed.

These are not set in stone and they may not suit everyone. But at least they show my thought process and help you work out your own way of organising apps.

Spring Cleaning for iPhone 5 – Wallpapers

iPhone 5’s new 4″ Retina Display has different dimensions and resolution from the displays on its predecessors, which means it’s time to look for new wallpapers and rethink how to arrange all my apps. For this post, I’ll look at how I pick my wallpapers and list a few links to wallpapers for iPhone 5.


In iOS you can set a two different wallpapers – one for the lock screen and another for the home screen. You can do this in the Settings app under Brightness & Wallpaper.

The lock screen doesn’t appear on screen for very long. It will only be seen between the point when the display is activated by a button press, an incoming call or a new notification, and the point the phone is unlocked. But it’ll be the first thing in iOS, people will see that can be customised by the phone owner. So I like to choose a wallpaper that shows my personality, mood or interests – usually a poster, a logo or a quote in a nice typeface. It can be a good trigger for a conversation.

The home screen wallpaper is different. It appears on the screen more often, but is usually obscured by app icons. I always choose something subtle, usually darker, so that it doesn’t draw attention away from the app icons and make them difficult to identify. The wallpapers I’ve used for the home screen are normally textures, repeating patterns or images that emphasise the grid arrangement of the app icons.

Here’s a few links with wallpapers for iPhone 5 that I like:

Read my thoughts on organising apps in my other Spring Cleaning for iPhone 5 post.

JavaScript console.log and Internet Explorer

When coding in JavaScript, console.log is what I’m using for debug messages. Much better than using alert as it’s less embarrassing when you’re in an extreme rush and forget to remove before deploying. This week I discovered an issue with the way Internet Explorer 9 supports console.log.

It works in IE9, but only if you’ve displayed the Developer Tools. Until then, functions that call console.log will not execute anything after it is called. Since I rarely use IE without Developer Tools open, I was stumped for a while when people testing my work told me things didn’t work for them in IE when they worked perfectly in IE on my machine.

I’ve found a couple of simple ways of working around this issue. One is to test for window.console and the other is to wrap the console.log call in a try/catch. So if you’re going to use console.log, it should be like:


If you find that’s too long, you can always create a function. For example:

To see everything in action, view the page that demonstrates the issue and the workarounds.

Chrome Bug Workaround – Text Selection on Dragging in Selectable

I came across an interesting problem the other day. I had a page set up with some jQuery UI selectable elements and when dragging to select multiple elements the cursor changes to the text select cursor and text on the page becomes highlighted. Normally the cursor should stay as the pointer and no text should become highlighted.

I spent a lot of time debugging because the page was based on legacy code written by someone else. I worked out the problem didn’t affect Firefox or IE, only Chrome. After some research I found the following thread in the jQuery forums.

There’s no universal solution in the thread, but I managed to find enough information to fix my particular problem. I decided to go with the following line of code.

I wouldn’t recommend it for everyone because it effectively turns off text selection for the page in whichever browser the user is using. Since I only needed it on one page and not having text selection on that page would not be a problem, I just went with that.