Wednesday, December 12, 2012

CollectionViewCell - Custom Cell implementation error

When i try to create custom view for collection view i got the following error, even though i connected all controls properly inside the collection viewcell.

2012-12-12 19:14:50.121 sMatcher[13647:11303] porutham cell <NSIndexPath 0x903aab0> 2 indexes [0, 0]

2012-12-12 19:14:50.123 sMatcher[13647:11303] -[UICollectionViewCell lblTitel]: unrecognized selector sent to instance 0x903ca50

2012-12-12 19:14:50.123 sMatcher[13647:11303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UICollectionViewCell lblTitel]: unrecognized 

Later i have created seperate class file with xib specifically for cell.

I have designed the cell in xib, but still i get the same error above.

Then with reference to this thread

I have changed my code in viewDidLoad of the main controlller like below

Instead of this

 [self.collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"poruthamCellV"];

I have changed to this

[self.collectionView registerNib:[UINib nibWithNibName:@"poruthamCell" bundle:[NSBundle mainBundle]] forCellWithReuseIdentifier:@"poruthamCellV"];


All started working as i expected, what ever i have designed in xib started appearing in the collection view. So seems like we have to register the cell xib file before we use in collection view which is something different from custom table view cell implementation where we no need to do this.

Monday, December 10, 2012

Bannerghatta Zoo - A week end visit in bangalore

This week we decided to spend some time on sunday in Bannerghatta Zoo, bangalore.

From Basavanagudi(From where i live) it is nearly 18 KM.

The day before, I started googling on facilities available in that place and is there anything which i need to know to avoid last minute hitches.

I got fair amount of information, but still it is not upto-date. So just want to update those gaps in my blog.

We started around 9 AM in the morning (After breakfast), the road was not that great, lot of humps and speed breakers. Some how we managed to reach there within 1 Hr 10 mins.

There is no proper sign board to tell you anything about Zoo. You have to ask people.

There was a parking area specific to this zoo, Even though they mentioned Rs.30/- for four wheeler parking,  nobody asked for it. We did not even seen anybody paying for that, So this time it is free of cost for us.

The place is very hot. We almost drank nearly 10 ltrs of water on that day. So take  water as much as you can.

There are lot of shops and restaurants available, but i would suggest to carry your foods to avoid health problem.

Make sure you are at ticket counter before 11AM to avoid delay and crowds.


As soon as you land,  take ticket for safari + zoo which is Rs.210/- per person.

They are offering another package called "Special Safari" which is cost of Rs.500/- per person.

All are same except the vehicle,  Special safar is a AC coach with bigger size seats and windows.

Both safaris are same, no difference with respect to site seeing. So its upto you.

The safari was really good and thrilling. It was a 40mins trip (It depends on safari driver, some people took one hour).


Once you done with safari, directly goto butterfly park(Rs.25/- for entrance)

Do not expect much here, this is a very simple park with a small butterfly tent, where you get to see some butterflies which you already know them well. Nothing spl in it.

But good place to take photos with full of flowers and shades.

Lunch & Zoo

After butterfly park, you can have your lunch and then goto park. Otherwise if you have people to carry things, then you can get into park and eat there. It is upto you.

If you are planing to take food inside zoo, you ended up carrying that food bags all the way inside zoo.

There are very nice shadows inside the zoo where you can relax and eat food.

There is a shop inside zoo where you can get samosa, tea , milk etc.

WIth respective to zoo, most of the animals are very old,  I did not impressed much actually, but kids can enjoy it.  Few places are stinky.


If you really want to do more workout , you go for boating. ;).
Yes, by the time you finish everything and reach this place, you are almost done for the day. 

Boating is not that good, very boring, probably kids and couples can enjoy.

So over all it was a nice time with family and friends. You will get nice sleep in the night for sure.

Things you can carry:
1. Water (as much as you can)
2. Cap (if you want new one you can buy over there )
3. Camera (With good zoom options)
4. Food (If you don't want to try outside)
5. kids trolly (if you have kids)
6. Sun glasses and cream for UV protection

Be in casuals, probably T-Shirts and shorts is a good choice.

Friday, December 7, 2012

sMatcher - My First App for iOS

Hi All,

I am very happy to inform you that, my first iOS app is Live in AppStore now.

I have developed a app namely "sMatcher"(Star Matcher) which is basically a tool which will help Bride and Groom to identify the match(Porutham) based on their Birth Star and Rasi.

Normally in south india, this will be the first step in each and every marriage before even considering the profile.

I Had som experience on this during my marriage.
we used check with astrologer almost every week to find out whether the profile is matches or not.
Most of the time he used to tell that birth star is not matching so no need to look into this further.

So i was curious to know the logic like how he is determining that, then ended up googling it.

I have spend nearly 2 months on this research and got the algorithm to calculate it. I have applied all those algorithm into my program and developer this "sMatcher" app.

Every astrologer having their own logic for this, but most of them are common, only few things which will differ depends on their believes.
So in this tool i have implemented the algorithm which is commonly used across the india. You may see difference on the result if you check this with astrologer, please bare with me.

But definitely it will give you a high level result and view on your match(porutham).

Please let me know if you have any suggestions on this.

For reference:

Friday, November 30, 2012

First experience on my first app in App Store

Last night i was trying to submit my first App in App Store. The steps to upload the app is not that easy , I have google multiple thing to get it right . Xcode version, my deployment certificate everything is hard to understand. But at last I submitted my app.

Initially I have named my app as "iMatcher", but while uploading, App Store did not allowed me to create with this name, so I ended up changing the name to "sMatcher"( ie star marcher) which I would say perfect name for my app.

I think before we create any app , first we have register the app name to reserve it, because last minute changing the app name will lead to many confusion. I ended up changing my app name in multiple places as I have referred the app name in FAQ and about pages.

(Sorry if there is any error as this post sent from my iPhone)

Technical issue in appstore

When I was searching for some app in my iphone5 suddenly I saw some issue in the app listing and app information page. I tried to capture those but did not get second time. But consistently I saw one error which shows some hint on the coding what they have used. Have a look at the picture, you will come to know what I am talking about.

Saturday, October 13, 2012

JellyBean for HTC desire

I have tried jelly been ROM for my HTC Desire from the following URL
CM10 based Android 4.1.1 Jelly Bean update for HTC Desire

Everything works great except SD card mounting problem
After installing the ROM, SD card is not mounting, even i have trying multiple things like reinstalling, partitian, etc.
But nothing worked out.
Even i have tried fixing fastboot command also. But did not worked.

Later i decided to install JellyTime from google code repo
Seems like this room specific to HTC desire HD.
Because when i flash this, it says "assertion error".
And i can see some code they are checking for device model as "ace".
So this one failed to install in my HTC Desire.

I have tried this MIUI ROM with Jelly bean

Not working with HTC desire, not able to install 

Trying for another ROM soon probably MIUI ICS room

How to change HTC flash screen in HTC Desire

I have tried the steps described here to change the flash screen on my HTC desire.

It really works. I have changed my HTC desire flash screen to my own screen ;)

awesome. Android ROCKS!!

Tuesday, October 9, 2012

Can't mount SD Card in HTC Desire , Android - USB Brick

I been trying multiple ROMs available for my HTC Desire.
But yesterday suddenly when i  boot by phone in recovery mode to install new ROM, it is not able to mount the sdcard.
It keep on says "Can't mount /sdcard".
I have tried by clearing "dalvik cash".
But did not worked out. When i connect to my PC , my phone is not detected at all.

After some hours of google i figured out that my phone is in "USB Brick" state.
I have tried multiple things to fix this. At last i got it fixed by simple 4 steps.

 Bring your phone in HBoot (Hard Boot) mode, by pressing power button and volume down key.
  If your device not detected by windows use this step, otherwise skip it
  Download latest android USB driver
  1) Goto Device manager
   2) Search for your android in "other devices" category
  3) Right click on that, and select "Update Driver"
  4) Point to the folder which you downloaded from the above link
  5) And update it, now you will see your phone in the device manager list
  Download Android SDK tools for windows or Mac.
  Goto its "Tools" folder from the command prompt  

    Now , in your phone from HBOOT mode, switch to "Fastboot" mode, by selecting the menu from the HBOOT list.
  Once you are in the "Fast boot" mode, now execute the command from windows command prompt "fastboot oem enableqxdm 0" 
  And restart your phone.

Device Details:
HTC Desire, rooted, S-Off, 4 gig SD card

can't mount /sdcard in htc desire