Showing posts from 2017

Automated iOS build broken in xcode 9

Having upgraded to High Sierra, the next logical (?) step was to upgrade to Xcode 9 and get a couple of customer apps to build on that.

We use continuous integration to automate the building of our hybrid apps.  This means, we generate the platforms on the fly and build the same.

There was a new release to cordova-ios plugin to support xcode 9 and we updated config.xml/package.json to use this plugin.  So far so good.  But the build broke with the following error.

A search in Google reveals that this is due to the change Apple has made in xcode 9, whereby it expects the Provisioning Profile name in exportOptions.plist file.   This file itself is generated as part of the build, but does not include the provisioning profile.

If you hit this link in your search, it is misleading since this is handled in the 4.5.1 version of cordova-ios plugin.

A fix for this apparently has been made in cordova-ios but not released.  As per comments in this thread, this fix possibly doesn't work.

Of …

Upgrading to macOS High Sierra

Apple released the latest version of its Flagship Operating System macOS on 25th Sep 2017.  This year it is codenamed High Sierra.  (It was Sierra last year).  I guess, logically the names for the next two year's OS should be Higher Sierra and Highest Sierra!

As we had a few iOS apps being built in Sierra, I was hesitant to upgrade.  But I could hold back my urge no longer and upgraded my Macbook Pro to High Sierra yesterday night.  At 5.2 GB, the download size is quite large, but courtesy High-Speed Hathway, it took only 20 minutes.  The installation however took longer (about 45 minutes in all), especially the post-installation, which I guess involved migrating contents to the new Apple File System, introduced in High Sierra.

But the upgrade itself was quite smooth and everything that I had earlier worked!

Interestingly, Apple had already pushed Safari 11 in Sierra, so one of the release surprises was no longer a surprise.  I could be wrong, but I thought the contents looked b…

Bahubali - a violent saga

I was one of those who was not bitten by the Baahubali bug.  In fact I watched the Baahubali - the Beginning in TV (can't remember if it was Tamil or Malayalam version) - that too, in bits and pieces, fast-forwarding songs and other (to me) uninteresting pieces.

Following the hype of Baahubali 2 - allegedly the first Indian movie to do 1000 crores of business and Karnataka Chief Minister paid 1000-odd rupees to watch it (did he watch the Telugu or Hindi version? surely it can't be Tamil!)),  I wondered that there must be something I am missing.

It was a while since I had met up with two of my College-mates.  So when we discussed and decided to meet, we thought we might as well do it "over a movie" (and lunch).  Based on the languages all of us knew, Tamil was the choice (did Baahubali release in English?  that would have been fun - a fitting response to English movies being dubbed in regional languages).  It being the 3rd week,  Tamil shows of Baahubali in Bangalore…

Randamoozham - second turn

I would not have known about Randamoozham,
 the Malayalam novel by M T Vasudevan Nair, but for the news item about plans to make a Rs.1000 crore movie based on it.   A book based on Mahabharatha - so what's new, I wondered.  As for movie, I still remember the wonderful serial of B R Chopra, that used to air in Doordarshan, which kept roads free on Sunday mornings.

Though I can read Malayalam, I picked up Bhima: Lone Warrior,  English translation of the book by Gita Krishnankutty.

The book is a first person narrative by Bhima, the second of the Pandavas.  You could call it his autobiography or Mahabharatha that we know, from his view point.  The story starts with Bhima and his family coming back from the forest to Hastinapura, after their father, Pandu's death.  Hastinapura is ruled by the blind King Dhritharashtra, elder brother of Pandu.  He warmly welcomes his nephews.  Pandavas also get to meet their cousins, the Kauravas,  Duryodhana being the eldest of them.

The initi…

The Gujarat Trip - Day 4

It was Day 4 of our Gujarat trip, having mostly travelled  on Day 1, explored Dwaraka on Day 2 and Somnath and Gir on Day 3.

At 5.30 AM, we were awoken by fellow travellers alighting - we were in Ahmedabad Junction. We had read that Uber and Ola cabs were on strike in Ahmedabad.  Luckily Ola autos were plying.  We hailed two autos (from two phones) and thanks to Google map directions, reached our hotel (about 10 km away), with no issues.

We were put up in The Park Residency, a pretty good hotel in Vastrapur area of Ahmedabad. We enjoyed the buffet breakfast that came with our package, which also included extra charges for early check-in.  Like Rajkot, we had rented an Innova for the day's sight-seeing.  The driver was on time and at 9.15, we started.

Our driver mistook Hutheesing Jain Temple to be Hathi Mandir and took us to an interesting temple built atop a giant elephant statue.
We did not linger there much, and instead proceeded to Adalaj Stepwell.
This is a beautiful ancie…

The Gujarat Trip - Day 3

We had started from Bangalore on Day 1 and covered Dwaraka on Day 2.  It was now Day 3.

It was a beautiful sunny morning in Somnath .  The morning arathi was scheduled at 7 AM and we hurried to the temple (a short drive from the hotel).  As in other temples, we were immobile ("without mobile") and had to pass through Z-category Security check to get in. The arathi was on and we were lucky to be stopped before the inner sanctum and could witness this from distance undisturbed. Like Dwaraka the crowds cleared after arathi and we could go back in to have multiple darshans.

The temple itself is beautiful with breathtaking gopuram and specious interior. Evidently it has been constructed/renovated recently.  It is on the banks of Arabian Sea and offers a scenic view.  We lingered for a while and then decided to check out a few other temples nearby.

We were told that the Triveni Mahasangam Ghat was a few minutes walk. As it turned out, it is more than a kilometre away and best vis…

The Gujarat Trip - Day 2

We had started from Bangalore and reached Dwaraka on Day 1.  It was now Day 2.

All of us were up and running by 6.15 AM, being told that Dwarkadhish Temple (the flagship temple in Dwaraka) opens for darshan at 6.30 AM.  The Hotel being close to temple, it was a two minute walk.  We could see the Arabian Sea in the horizon.

Besides many other items, cell phones (read mobile cameras) are not allowed inside the temple.  So we had left this in our hotel. There is a counter to leave your belongings but I am not sure if you want to leave expensive phones there (especially when "we are not responsible for your belongings"). The Dvaraka Pitha (also called Sharada Math,) adjoins Dwarakadhish temple.  (This is one of the four mathas that Adi Sankara had established).

The 6.30 AM darshan was quite crowded and there was quite some jostling to have a darshan.  There are separate queues for ladies.  Some of us were asked to take a "short-cut" which led us to the inner sanctum…

The Gujarat Trip - Day 1

It all started when my parents talked about wanting to visit Dwaraka and Somnath- two temples they had not had a chance to cover in the several religious trips that they had done.  My brother and I thought that this was a good opportunity to do a family trip.  The planning was set in motion four to five months back. The flight tickets were the first to be booked after monitoring the rates for a week.  The hotels followed thereafter based on reviews in TripAdvisor as well as the offers available in various online portals (like ClearTrip and MakeMyTrip).  
Winter gave way to summer and schools closed.  (Did we even have winter?  The days were unusually hot).  As the day of our trip neared, we saw that the temperatures all over India were higher than normal.  Gujarat was sizzling in 40s (degree celsius).  We hoped that it would not affect our trip much, though we realized we needed to have plenty of fluids and take precautions. 
Day 1
The morning of Tuesday, 11th April saw us taking flig…

Zootopia - a delightful watch

I wasn't sure what to expect when my kid forced me to watch Zootopia.   Though I have had my fair share of good cartoon movies, sometimes they can get into your nerves.

The stage is set early in the movie when Judy, the rabbit, says she wants to become a police woman in Zootopia when she grows big.  Zootopia is the place where all animals - predators and prey co-exist.   Against all odds, Judy clears the tough selection process and takes the train to her place of posting - the first bunny to join police.  
She is assigned parking duties and has a run in with a fox (the sworn enemy of rabbits and much warned by her parents).   She helps nab a thief much to the chagrin of her Chief, who assigns her to a case of missing otter - to be solved in 48 hours.   With the help of the fox, Judy finds clues that lead her to the slow sloths, a gangster rodent, the crazy jaguar and howling wolves.
Is she able to find the missing otter?   Is the Mayor of Zootopia hiding something?   Can the anim…

Dynamic versions in build.gradle and consequence

"Raghu, I am getting this error from this morning", says our android developer, on a Thursday morning.

Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > duplicate entry: org/apache/commons/io/CopyUtils.class
"It was working yesterday", added the developer.

"Hmm! what did you change since yesterday?  Did you update Android Studio?  Or build.gradle?"

"Neither", said he.

"I also did a clean build".

"Let me try on my system", said me.  I updated the project and opened Android Studio.  I got the exact same error in my console.

"Are you sure it was working yesterday?", asked I.

"Yes, I checked in the source code.  It also built in jenkins", he said referring to our continuous integration tool, running on a linux server.

"Hmm!  is it possible that it works on linux but not Mac?", wond…