Thursday, April 18, 2013

Implement Auto Suggestions in iOS/iPhone/iPad


A tutorial to implement auto suggestion while typing in iPhone. Below is the link to download a source code. Let me know for any query.



Download Source Code : AutoSuggestion_iOS

Monday, March 4, 2013

Core Data Simple Tutorial (Step-wise)

Conquer/Control over the greatest enemy of iOS developer- app crash on iPhone


Thousands discover and download the iPhone application; very few know how to develop these logical software programs.  While trying to develop a mobile engagement platform, for the iPhone; the application crashed several times not just on the device but also on the simulator.  If reports of each crash were to be reported, around 3 pages of crash logs could be traced within a week’s effort. An application crash is the most common issue for any developer; however every developer needs to sail through it to gain control over the software development process. This article will provide a checklist and some suggestions that could help you survive any iPhone crash! How did one find that the application has stopped working? Mostly, it is the tester or the user who complains about the app not running in their iPhone X version. Here’s what a developer must do to initiate instant recovery. A complete checklist that helps every iPhone developer to recover from an application crash has been listed below:


  • Reactions that cause an application to crash- trace back program files and logs.
  • Unlike other smartphones, iPhone needs the application binary and source code execution list to trace the program logs.
  • Keep a record of every crash filed appropriately for future reference.
  • Refer search engines for past experiences of similar crashes
 Most of the time the application is inoperable due to some actions performed within the codes written for the iPhone. Though client side crashes are also not so rare. Every time the iPhone is deployed on the client platform, it runs into numerous issues. However; same application might work perfectly on iOS simulator/testing device. One could find many blogs/sites who elaborate the problems and solutions. Nevertheless, when it occurs at a remotely distant user ased location, the pros and cons are indeed a heavy expenditure. It affects product sales and thereby creates more headaches for developers. There is no perfect solution yet, certain methods enumerated below could help one avoid these types of problems using try-catch block.


This is common practice among other platform developers to use try catch block while programming but for the ios developer there is nowhere written example found on world wide web or if found then the(they) do not suggest to use this, I don’t know why!!!!!

I am using try catch blocks while programming and it is working great, if application somewhere going to crash then catch block will be called and no affect in User interface and the developer can generate/throw message to user there is some error and try again later. So iOS developers now can smile to know that there app will not crash anymore <but> they want that errors should be solved with another version release. To track those errors, we have lots of option: 


  1. when compiler goes to catch block, you can hit API or URL and can send error description and method name/class name to log on server or you can use PL crash reporter. 
Integrate crash reporter in one single line
Tutorial: http://www.youtube.com/watch?v=vf-u9U61WkI


  1. You can open mail composer on iOS app when error occurs and user will press send mail to you.
Many….many….many alternatives. Sky is the limit

Wednesday, December 12, 2012

Self-care is the secret to performing at the highest level.

Here are the six simple rituals he uses to perform at his highest, which you too can begin implementing right away:

1. Drink a glass of water when you wake up. Your body loses water while you sleep, so you’re naturally dehydrated in the morning. A glass of water when you wake helps start your day fresh. When do you drink your first glass of water each day?
2. Define your top 3. Every morning Mike asks himself, “What are the top three most important tasks that I will complete today?” He prioritizes his day accordingly and doesn’t sleep until the Top 3 are complete. What’s your "Top 3" today?
3. The 50/10 Rule. Solo-task and do more faster by working in 50/10 increments. Use a timer to work for 50 minutes on only one important task with 10 minute breaks in between. Mike spends his 10 minutes getting away from his desk, going outside, calling friends, meditating, or grabbing a glass of water. What’s your most important task for the next 50 minutes?
4. Move and sweat daily. Regular movement keeps us healthy and alert. It boosts energy and mood, and relieves stress. Most mornings you’ll find Mike in a CrossFit or a yoga class. How will you sweat today?
5. Express gratitude. Gratitude fosters happiness, which is why Mike keeps a gratitude journal. Every morning, he writes out at least five things he’s thankful for. In times of stress, he’ll pause and reflect on 10 things he’s grateful for. What are you grateful for today?
6. Reflect daily. Bring closure to your day through 10 minutes of reflection. Mike asks himself, “What went well?” and “What needs improvement?” So... what went well today? How can you do more of it?
Courtesy: Fast Company (Click here for complete article)

Monday, December 10, 2012

Much more work will get done in much less time!!

A must read EXCERPT from "The 7 Habits of Highly effective people": 
My seven-year-old son, Stephen, volunteered to take care of the yard. Before I actually gave him a job, I began a thorough training process. I wanted him to have a clear picture in his mind of what a well-cared-for yard was like, so I took him next door to our neighbor's.
"Look, son," I said. "See how our neighbor's yard is green and clean? That's what we're after: green and clean. Now come look at our yard. See the mixed colors? That's not it; that's not green. Green and clean is what we want. Now how you get it green is up to you. You're free to do it any way you want, except paint it. But I'll tell you how I'd do it if it were up to me."
"How would you do it, Dad?"
"I'd turn on the sprinklers. But you may want to use buckets or a hose. It makes no difference to me. All we care about is that the color is green. Okay?"
"Okay ."
"Now let's talk about 'clean,' Son. Clean means no messes around -- no paper, strings, bones, sticks, or anything that messes up the place. I'll tell you what let's do. Let's just clean up half of the yard right now and look at the difference."
So we got out two paper sacks and picked up one side of the yard. "Now look at this side. Look at the other side. See the difference? That's called clean."
"Wait!" he called. "I see some paper behind that bush!"
"Oh, good! I didn't notice that newspaper back there. You have good eyes, Son."
"Now before you decide whether or not you're going to take the job, let me tell you a few more
things. Because when you take the job, I don't do it anymore. It's your job. It's called a stewardship. Stewardship means 'a job with a trust.' I trust you to do the job, to get it done. Now who's going to be your boss?"
"You, Dad?"
"No, not me. You're the boss. You boss yourself. How do you like Mom and Dad nagging you all the time?"
"I don't."
"We don't like doing it either. It sometimes causes a bad feeling doesn't it? So you boss yourself. Now, guess who your helper is."
"Who?"
"I am," I said. "You boss me."
"I do?"
"That's right. But my time to help is limited. Sometimes I'm away. But when I'm here, you tell me how I can help. I'll do anything you want me to do." "Okay!"
"Now guess who judges you."
"Who?"
"You judge yourself."
"I do?"
"That's right. Twice a week the two of us will walk around the yard and you can show me how it's coming. How are you going to judge?"
"Green and clean."
"Right!"
I trained him with those two words for two weeks before I felt he was ready to take the job.
Finally, "That's the big day came.
"Is it a deal, Son?"
"It's a deal."
"What's the job?"
"Green and clean."
"What's green?"
He looked at our yard, which was beginning to look better.
the color of his yard." "What's clean?" "No messes." "Who's the boss?" "I am."
Then he pointed next door.
"Who's your helper?"
"You are, when you have time."
"Who's the judge?"
"I am. We'll walk around two times a week and I can show you how it's coming."
"And what will we look for?"
"Green and clean."
At that time I didn't mention an allowance. But I wouldn't hesitate to attach an allowance to such a stewardship.
Two weeks and two words. I thought he was ready.
It was Saturday. And he did nothing. Sunday...nothing. Monday...nothing. As I pulled out of the driveway on my way to work on Tuesday, I looked at the yellow, cluttered yard and the hot July sun on its way up. "Surely he'll do it today," I thought. I could rationalize Saturday because that was the day we made the agreement. I could rationalize Sunday; Sunday was for other things. But I couldn't rationalize Monday. And now it was Tuesday. Certainly he'd do it today. It was summertime. What else did he have to do?
All day I could hardly wait to return home to see what happened. As I rounded the corner, I was met with the same picture I left that morning. And there was my son at the park across the street playing.
This was not acceptable. I was upset and disillusioned by his performance after two weeks of training and all those commitments. We had a lot of effort, pride, and money invested in the yard and I could see it going down the drain. Besides, my neighbor's yard was manicured and beautiful, and the situation was beginning to get embarrassing.
I was ready to go back to gofer delegation. Son, you get over here and pick up this garbage right now or else! I knew I could get the golden egg that way. But what about the goose? What would happen to his internal commitment?
So I faked a smile and yelled across the street, "Hi, Son. How's it going?"
"Fine!" he returned.
"How's the yard coming?" I knew the minute I said it I had broken our agreement. That's not the way we had set up an accounting. That's not what we had agreed.
"How's the yard coming?" I knew the minute I said it I had broken our agreement. That's not the way we had set up an accounting. That's not what we had agreed.
So he felt justified in breaking it, too. "Fine, Dad."
I bit my tongue and waited until after dinner. Then I said, "Son, let's do as we agreed. Let's walk around the yard together and you can show me how it's going in your stewardship."
As we started out the door, his chin began to quiver. Tears welled up in his eyes and, by the time we got out to the middle of the yard, he was whimpering.
"It's so hard, Dad!"
What's so hard? I thought to myself. You haven't done a single thing! But I knew what was hard -- self management, self-supervision. So I said, "Is there anything I can do to help?" "Would you, Dad?" he sniffed
"What was our agreement?"
"You said you'd help me if you had time."
"I have time."
So he ran into the house and came back with two sacks. He handed me one. "Will you pick that stuff up?" He pointed to the garbage from Saturday night's barbecue. "It makes me sick!"
So I did. I did exactly what he asked me to do. And that was when he signed the agreement in his heart. It became his yard, his stewardship.
He only asked for help two or three more times that entire summer. He took care of that yard. He kept it greener and cleaner than it had ever been under my stewardship. He even reprimanded his brothers and sisters if they left so much as a gum wrapper on the lawn.
Trust is the highest form of human motivation. It brings out the very best in people. But it takes time and patience, and it doesn't preclude the necessity to train and develop people so that their competency can rise to the level of that trust.
I am convinced that if stewardship delegation is done correctly, both parties will benefit and ultimately much more work will get done in much less time.
Courtesy: The seven habits of highly effective people

Thursday, August 16, 2012

Capability Maturity Model Levels (CMMi Levels)


Software Engineering Institute at Carnegie Mellon University publishes appraisal results regularly. Click below link to view the list

http://sas.sei.cmu.edu/pars/pars.aspx


Capability Maturity Model Levels for Companies
The Capability Maturity Model defines following levels for the organizations depending upon the processes being followed by them.

CMM Level 0 - Companies:
CMM - Level 0 companies are the ones, which do not have any structured Processes, Tracking Mechanisms & Plans. It is left to the developer or any person responsible for Quality to ensure that the product meets the expectations.

CMM Level 1 - Companies: Work is Performed Informally 
CMM - Level 1 companies are the ones, where the teams put in extra hard work to achieve the results. These are primarily the startup companies. Such companies do not have any structured Tracking Mechanisms & defined Standards. The software development work is performed informally but it is not properly documented. Such companies usually have technically strong & more experienced people, hence the product churned out by them is definitely a quality product. Since the company has strong teams, they won't ask for many guidelines.

CMM Level 2 - Companies: Work is Planned and Tracked
CMM - Level 2 companies are the ones, which follow two main guidelines like 1) Defined guidelines 2) Focus on reusability. These companies have some planned processes within the teams and the teams are made to repeat them or follow these processes for all projects being handled by them. However these process are not standardized across the organization. All the teams within the organization do not follow the same standard.

CMM Level 3 - Companies: Work is Well-Defined 
CMM - Level 3 companies are the ones, where the processes are well defined and are followed throughout the organization. Such companies have strong team, well-defined guidelines, Focus on reusability & lay major focus on documentation.

CMM Level 4 - Companies: Work is Quantitatively Controlled
CMM - Level 4 companies are the ones, where the processes are well defined and are followed throughout the organization. In such companies, Goals to be achieved are well defined and the actual output is measured. Such companies have proper mechanism to collect the Metrics to measure each and every work in the organization, hence future performance can predicted.

CMM Level 5 - Companies: Work is based upon Continuous Improvement
CMM - Level 5 companies are the ones, which have well defined processes, which are properly measured. Such organizations have good understanding of IT projects which have good effect on the Organizational goals. Level - 5 organizations lay major emphasis on Research and development & are able to continuously improve their processes

Read more: http://wiki.answers.com/Q/How_to_check_CMM_level_of_an_IT_company._Is_there_any_website_to_check_the_CMMI_level_of_an_IT_company_is_this_certification_provide_by_any_unique_apex_autority_-_Kindy_guide_me_to_get_it.#ixzz23haFS5Vk