Wednesday, June 08, 2011

Fix Exploded Folders on the iPhone

One feature of the Apple iPhone that I really like is the ability to group apps into 'folders'. You can put any app in any folder and rename it to whatever you like. I use this to organise apps according to their main purpose, such as 'music', 'games', 'social media', etc. It's really handy and definitely helps to cut down the clutter. The down-side is that it takes quite a while to create and populate these folders, but it should only be a one-off job. Right?

However I've had a problem that, according to online forums, appears to affect many people yet nobody seems to have described a good approach to resolving it. It involves syncing the iPhone with iTunes. Specifically syncing of Apps. Now and again (more often than not), syncing apps would cause all my carefully organised folders to 'explode'. Essentially, the folders are emptied into the main icon area, and removed. This is incredibly annoying.

There seem to be several different circumstances that lead to this 'explosion', but one circumstance is definitely reproducible - this is where you move your 'syncing' to a new computer. I just happened to have one, so I wanted to sync my iPhone with this computer, a perfectly natural thing to do. But as soon as I'd tick the 'sync apps' option, my folders would explode. Fortunately, this time, I observed that if I unticked the option immediately, my folders would be restored. If I click 'apply' or 'sync' I'm sure that would be the end of that.

Another situation involves adjusting folder contents on the device itself. The next time you sync with iTunes, there's a good chance you'll lose your folders.

So, to cut a long (8 hour) story short, this is what I did to enable app syncing and retain my beautiful folder structure.
  1. use iTunes to create a 'backup'.
  2. iTunes only keeps the last backup, so we need to ensure we 'capture' this for use later.
    1. make a copy of the backup directory (on OSX it's in ~/Library/Application Support/MobileSync/Backup) with a new timestamp. Something slightly different will be fine.
    2. edit Info.plist to change the Display Name key to something easily recognisable.
  3. Now we can restore this backup via iTunes (using the name set above) if we need to get our folders back. Unfortunately this also undoes the 'sync app' setting, so if you use this backup you will be back to square one.
  4. now we need to back up the Icon settings. There may be an easier and cheaper way to do this (such as using ssh to locate and scp to back up SpringBoard's IconState.plist file) but here's what I did:
    1. jail-broke my device (I used greenpois0n, on iOS 4.2.1)
    2. use Cydia to purchase PKGBackup (US$8)
    3. use PKGBackup to back up to Dropbox, specifically you want to back up the IconState.plist file
  5. Now I went back into iTunes and turned on 'sync apps'. Of course, my folders exploded, but I expected it this time. I synced and, yep, exploded folders. However now iTunes and the iPhone are talking to each other.
  6. (iTunes will have performed another backup before this sync, overwriting the last, which is why we made a manual backup in step 2)
  7. The last step is to use PKGBackup again to restore IconState.plist. This is the only file I restored (although a file called metadata insisted on coming along for the ride).
  8.  After the restore completed and the iPhone rebooted, I had all my folders back! Yay!

As a side-effect, I'm also using PKGBackup to back up everything else that the iTunes 'backup' omits - which is mostly everything. Useful program.

LifeHacker's guide to PKGBackup

Tuesday, March 24, 2009

The 42 Traverse

Last week our company CEO visited from the USA. He's a keen cyclist so we invited him on a mountain-biking day trip to Tongariro National Park. After an early (6am) start and a long drive, we hit the trail around midday.

The weather was fantastic. Not windy and not overly warm. There was late rain predicted but we didn't see a drop of it.

The track is over 40 kilometres of mostly down hill 4WD track. You can view a profile on the embedded map below. It's not really technical at all, except for a few little places. Of the eight of us that made the trip, only five crashed. Interestingly the three least experienced cyclists (me included) were the ones that didn't!

There's a nice spot for lunch at the 13km mark.

Riding down hills for 3+ hours is actually pretty stressful and tiring. The muscle pain doesn't show in the photographs...

Here's an embedded map of the journey. Click "view elevation" to see the height profile.

We all made it back to Wellington around 11pm, where it was raining.

I would recommend this track to anyone who is reasonably fit and experienced on a mountain bike. The up-hills are not difficult but they can be a bit long. You'll need to keep the pace up on the down-hills in order to finish the track in reasonable time. Our total time on the track was about six hours, including a number of breaks.

One thing to keep in mind - at times the track was very busy with quad bike and motorcycle traffic. This is unfortunate, because these vehicles are intimidating and rip up the trail. At one point on a big down hill, I caught up to a quad bike in front, and another appeared just a few metres behind me. Stuck in the middle. At this point, moving at around 40kph down hill on gravel, I couldn't slow or stop for fear of being taken out from behind. Fortunately, I hit a patch of mud and slid off to the side into the bushes, out of harm's way :)

And there was a motorcyclist who deliberately gunned his throttle and sprayed stones over me on his way past. Thanks for that - you're a pretty special person.

Apart from that, it was a great day out!

Friday, February 27, 2009

Off-White Noise

One of my interests is sound design & electronic music production. To give me somewhere to write about these sorts of things, I have created a new blog called Off-White Noise.

If this sort of thing is interesting to you, please feel free to visit.

Tuesday, December 23, 2008

Green Apples

On Apple's website for their new Macbook computers they state the following:
The new MacBooks. The world's greenest family of notebooks.

The highly recyclable, even more energy-efficient MacBook family has been designed with the environment in mind.

And a bit further down:

Reduced packaging.

The new MacBook packaging is up to 41 percent smaller than the previous generation. And smaller boxes are much better for the planet. Because smaller boxes mean we can fit more boxes on each shipping pallet — up to 25 percent more. Which means more products will fit on each boat and plane. Which means fewer boats and planes are used, resulting in fewer CO2 emissions. It’s just one seemingly minor change. But it has a major positive impact on our environment.

Interesting. It appears that a major selling point of the new Macbook is that it's "environmentally friendly", even before the customer purchases it.

So you can imagine my surprise to learn from a nameless source (an official Apple retailer in New Zealand) that it's standard Apple policy to ship all unsold stock back to the USA when demand exceeds supply, even if there are customers lining up here.

This is a bit troubling - I mean, the implications of this are rather unfortunate. It means that the cute little Macbook someone might buy in, say, Manhattan, thinking they are being environmentally friendly, has in fact traveled both to and from somewhere like New Zealand. Or further! Perhaps multiple times!

Fewer CO2 emissions indeed...

GST discounts and bad maths

Over the last few years, I've seen a few retailers host sales that proclaim "No GST" or "We'll pay your GST!" followed by a promise of a 12.5% discount (because, after all, GST is 12.5%, right...?).


Hopefully most people will realise the problem here. If you add 12.5% of something to itself, then taking that bit off again is only an 11.1% discount. A 12.5% discount is more than the GST component.

So what does this mean for the customer? Can we expect a full 12.5% discount? Or should we be happy with the retailer only paying the GST, an effective discount of only 11.1%? Advertising law suggests one could easily claim the full 12.5% discount in this case.

This ambiguity led me to write to a major retailer (who shall remain nameless) who responded with the following:

As you correctly point out, if we truly gave the customer just the GST component back, it would be 11.1%. We give the higher amount to make the concept very simple for the majority of people who find the GST calculation difficult. We appreciate that you are not one of those people, but hope that you enjoy the extra 1.4% anyway.

Personally I'm still not happy with this. If a retailer wants to pay your GST as a promotion, that's fine, but I don't think it should be followed by a claim of a 12.5% discount. And if they really want to give you a 12.5% discount because they think there's something magical about that number, then don't mention GST, because it's irrelevant.

Saturday, November 22, 2008

New York City

We arrived at JFK Airport and took the Subway to our hotel in Queens.

Our room had quite an interesting view.

Times Square.


One of three giant banks of coloured M&Ms...

The tallest building (NBC Tower?) in the Rockefeller Center.

The view north from the top of that building. Note Central Park and just how huge it is.

The view south east towards the Brooklyn Bridge. You can just make out the Financial District on the far right. The Empire State Building stands alone and is of course the highest building in Manhattan.

Why not take a helicopter ride over the city?

Some great views from up here.

Looking down at the USS Intrepid and another carrier (which wasn't there the next day).

Manhattan from the sky is amazing.

The Liberty statue is much smaller than I imagined it would be. However, it's still impressive to see in person.

The Brooklyn Bridge.

Looking over the East River (which isn't a river) towards Brooklyn.

Brooklyn Bridge.

Sunset from the centre of the bridge.

The next day we went for a walk in Central Park. The weather was stunning as you can see.

The American Museum of Natural History and Rose Space Center. The giant ball inside is a planetarium. At night, this whole structure is lit up and supposedly looks amazing.


The largest meteorite held in captivity. Called the Ahnighito fragment or Cape York meteorite, it weighs over 30 metric tons and is almost entirely iron.

A beautiful night time view from the top of the Empire State Building. Note the Chrystler building on the right. It is a beautiful building.

We went to see a Broadway musical - "Hair Spray". Neither of us are big fans of musicals by any stretch, but we went to see one anyway. It was extremely good. Very entertaining and the production quality was amazing.

No photos allowed inside so we had to have a special photo shoot outside afterwards.

Grand Central Station - see if you can find P.

A gloomy investor in front of The New York Stock Exchange.

Ground Zero. The gap in the skyline is very dramatic.

Here I am standing in front of the USS Intrepid. A once-operational American aircraft carrier that served in the Pacific in the 1940s as well as in the 1960s as part of the Apollo recovery missions. It is now a floating naval aeronautical museum.

The meatball - helps pilots land on the carrier by reminding them about dinner.

This is an F-16 Fighting Falcon. This is an impressive fighter, even parked on the flight deck.

A British Harrier jump-jet.

An American F-4 Phantom.

As you can see, the flight deck of the carrier holds quite a few aircraft on display.

On the wharf nearby is a Concorde.

Swish! Leather seats and plenty of leg room.

The Concorde cockpit.

While I was onboard the Intrepid, P went to visit the Museum of Modern Art (MoMA) which she really enjoyed. Then we regrouped and jumped on a train for Baltimore.

I have one last post to make, and that's our time in Baltimore and Washington D.C.

Erfurt & Berlin

Well, we've been back in New Zealand now for a little under a week. Trying to settle back into work has been difficult for both of us, but I think we're getting there now the jet lag has subsided.

Now there's a bit of time to post the last few blog entries for the last few destinations on our trip.

Well, it turned out that the surprise location was Erfurt - a charming medieval town between Munich and Berlin.

This is actually a bridge completely covered in shops and houses.

A view along the bridge. There were some lovely craft shops.

Erfurt is a small town, so when you finally stumble onto the main square, it's quite a shock to find two giant buildings forming the religious town centre. It was getting dark and the photo doesn't really do justice to the scene, but those buildings are massive.

We stayed overnight at a Augustiner monastery where Martin Luther was a monk for about seven years.

The next day we travelled on to Berlin.

The famous Brandenburg Gate. A Berlin icon.

This was the royal family's private church. Not bad for a private chapel eh?

The controversial Jewish memorial. It consists of 2711 concrete blocks of various heights arranged in a grid. You can walk amongst them. One interpretation is that the blocks represent individual stones that are placed on a grave site during a Jewish funeral.

It's an impressive monument.

Underneath there is a Jewish museum.

This is the square where the National Socialist Party (the Nazis) performed their infamous book-burning. As a memorial, there is a room built under the square with empty bookshelves, symbolising the empty space left by the books burned that day.

This is all that remains of Hitler's bunker. It is now a carpark.

One of the last remaining stretches of the Berlin Wall.

The other side of the wall. Beneath you can see an exhibition about the atrocities committed by the Gestapo, who used dungeons below this area to torture and murder people.

The German Chancellor's building, affectionately nicknamed "The Washing Machine".

The Reichstag - the German Parliament.

On top of the Reichstag is an impressive viewing dome made from glass and steel.

Here is the main power reactor that supplies the entire country. It's protected by numerous turbo turrets and fighter patrols.

Actually it's a mirrored column above viewing windows, through which you can observe the German parliament when in session.

Two spiral walkways curve up and down from the viewing platform at the top of the dome.

We visited a Nuclear Fallout Shelter beneath the city. There are many such shelters, this one is designed to house 3,500 people for two weeks. If such a thing happened, with that many people in such a small space for so long, it would be a living hell.

And that concludes our European Experience!

I have one more post lined up that covers our short stay in the United States.