Failed to instantiate the default view controller ?

One might run into this error when you delete your default View Controller (which has been automatically created by Xcode when you create a project) and create your own View Controller with new settings.

The following is complete error:

2016-02-03 15:31:24.954 VintageStore[8141:1258879] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?
Message from debugger: Terminated due to signal 15

This error has a very simple fix:

Select the ViewController Scene. Now, select the inspector panel from the sidebar options. Check the “Is Initial View Controller” attribute option, save the project and build the project again.




How to install Android on VMware Fusion Mac OS X

It’s very interesting that you can actually boot Android on your machine just like any other OS. No kidding, as Android is kind of an another Linux Distro. Is it? No not really, it is based on Linux kernel but it cannot be called as a Linux distribution. Anyways, this is not our topic of blogpost right now, if you want more information on it, look at this Quora question and their answers.

Coming to our topic of interest, one need to have VMware Fusion or a Virtual Box installed on your Mac to install and run Android. We are not going to deal with the Virtual Box this time, it would be a good standalone post for future. So, if you don’t have VMware Fusion, download and install it by going here. It is paid, if you are a student, you can get it for free. If not, you have to purchase it or you can try the trial version or maybe you could torrent it, haha. No, please don’t do that. Who am I kidding, LOL.

Once you got it on your machine. I would like you to visit this amazing site called as, where you can download any version of Android iso images. Hats off for their amazing effort. Very recently, they even added the Android 5.1 too. I haven’t tested that one yet, but I tried playing around with the other latest versions.

Click on the Download page from the side menu, and you can download any of those images from the list. In this post, I am going to show the installation of android-x864.4-r2.iso. 

android-x864.4-r2.iso Download Link

Download the image from the highlighted link as shown in the above picture.

Now, fire up the VMware Fusion on your machine,

Step 1: Click on the “+” button and select New from the drop down menu.


Step 2: Select the Installation Method as “Install from disc or image” and hit continue

Installation Method

Step 3: Now, click on the “Use another disc or disc image button” and choose the downloaded android iso file.

File Chooser

Step 4: After choosing the image, it should show up in the screen like the following: Hit Continue.

File Image

Step 5: You should see the following screen:

Finish Screen

Step 6: Click on the “Customize Settings” button and Save the Virtual Machine image to any desired location on your machine:

Save VM Image

Step 7: Once you save it, there will be two screens which will pop up, a black screen with a play button, and the other with settings:

Play Screen


Step 8: On, the settings screen, select Hard Disk and set it to how much space you wanna allocate: [I chose the default 20 GB space]

Hard Disk Space

Step 9: Select the processors and memory. It will allow you to allocate the RAM for the OS. I gave something above 4 GB, you can set it to 1 or 2 or 3 based on your RAM.


Step 10: After setting the memory, close the window and click on the huge play button on the black screen. That should show you the following screen:

Main Screen

Step 11: Select the last option – “Installation – Install Android-x86 to harddisk” from the boot menu and hit enter.

Screen - boot menu

Step 12: Now, we have to create a partition. You might see only two options. Don’t worry about it. Choose the “Create/Modify Partition“.

Create/Modify Partition

Step 13: We don’t want any GUID Partition Table. So, select the default choice which is “NO” and move on.


Step 14: Now, choose the “New” from the bottom menu. You can navigate through those options by using right and left keyboard keys. Press Enter.

New Partition

Step 15: Select “Primary” and hit enter.


Step 16: Now, you will see the size of the primary partition as 21,467.68 as I have selected 20 GB at the start of our installation. If you have chosen different size, the value would be different. Just hit enter and proceed.


Step 17: Now, choose the “Bootable” which is the default option and hit Enter.


Step 18: Now, you should see “Boot” under the Flags  as shown in the below picture.

Boot Flag

Step 19: As we have made the disk bootable, we have to write these settings to the partition. So, choose Write by navigating with the keys and hit Enter.


Step 20: Now, last step is to confirm and to create a new partition. Type “yes” and hit Enter.


Step 21: Now, navigate to the Quit option in the menu and hit Enter.


Step 22: Its time to select our created partition from the menu and hit enter.

Partition select

Step 23: Now, select the filesystem for the created partition. Choose ext3 and hit Enter. You can even choose other options too if you need.


Step 24: Select “yes” from the menu and hit enter to confirm that you want to choose ext3 and format the partition. sda1 format

Step 25: Now, choose “Yes” to install GRUB boot loader and hit “Enter”.


Step 26: Choose “Yes” to install EFI GRUB2 and hit Enter.


Step 27: Select “Yes” and hit Enter to confirm the format of boot partition.

confirm boot

Step 28: Choose “Yes” to install the /system directory and hit Enter.

/system directory

Step 29: You should see the installation progress bar like the following:

Progress bar

Step 30: You should see the Congratulations screen. Choose “Run Android-X86“.

Run Android

Now, you should see the Android booting up and the “ANDROID” splash screen. Your mouse or trackpad can be used to navigate through the whole user interface. The following are the screens after the android has been booted up on the machine. You have to also, enter your google email id and go through the step by step process of setting up your device.

Screen Shot 2015-10-12 at 1.25.08 PM Screen Shot 2015-10-12 at 1.25.38 PM Screen Shot 2015-10-12 at 1.27.23 PM Screen Shot 2015-10-12 at 1.27.43 PM Screen Shot 2015-10-12 at 1.29.26 PM Screen Shot 2015-10-12 at 1.30.19 PM Screen Shot 2015-10-12 at 1.30.40 PM



Remembering Steve

It’s been 4 years since Steve Jobs’s demise. But, he still remains in our hearts.


I am a huge fan of Steve. He is my model person. It was my dream to see him live, to attend his keynote, but it has been left behind as a dream forever.


His work and his vision will be remembered forever.


I always watch his commencement speech to get inspired. I always watch his keynotes to learn and mimic his presentation skills. I always remember him.


Whenever I visit a beach, I never forget to write down Steve’s name remembering him.

At SantaMonica Pier

At SantaMonica Pier

At Atlantic City Beach

At Atlantic City Beach

At SantaMonica

At SantaMonica


At Lake Michigan

I wish he was there, so I could tell him how big a fan I am.




10 Essential Lessons for Young Entrepreneurs

A fantastic talk has been delivered by Heidi Roizen recently. Today, In the morning I was reading the blogpost shared by the Stanford Business school and I duplicated it here in my post. In her talk for the Stanford Entrepreneurial Thought Leaders Series, Draper Fisher Jurvetson Operating Partner Heidi Roizen (MBA ’83) shared advice for young entrepreneurs on topics ranging from ethics to hiring.

1. Look for hard projects and problems to tackle.
“If you’re not doing something hard, you’re wasting your time,” believes Roizen. She encourages entrepreneurs to challenge themselves by looking for something difficult to take on each day or week. “I can tell you from my entire history of my career, there is nothing that has being as rewarding as being an entrepreneur and coming through the other side of that really, really hard stuff.”

2. Don’t compromise your ethics. Ever.
If you cheat, you will end up regretting it. How you act when you’re faced with ethical decisions sets the tone and culture for the entire company that you’re building.

3. Trust your gut.
Our intuition is built from months and years of observing human nature and interactions; it has been informed sometimes in ways we don’t even understand – so trust in it. Roizen shared the regret she felt when she didn’t go with her gut on some hiring and firing decisions.

4. Strive to NOT be the smartest person in the room.
The most important thing that you’re going to do as an entrepreneur is pick your team. “My goal truly is to be the dumbest person in the room,” said Roizen. You have to take the risk to find people who are so much better at you in certain areas. Your job is to manage and empower your team – not to know more than them.

5. Every time you meet someone, think relationship – not transaction.
“I believe everything is about relationships,” stated Roizen. Strive to build a connection with the people you meet so that when you actually need to ask them for something, you will have a deeper relationship as a foundation and will be able to collaboratively help each other.

6. Expect that life is going to be messy.
“Life actually is really, really random. Bad things will happen to you. You will fail, things outside of your control will happen.” Expect the messiness.

7. Get back up when you fall down.
“It’s not how many times you fall down, it’s how many times you get back up,” Roizen emphasized. “If you fall down and stay down, you will be down for the rest of your life.”

8. Allow randomness into your life.
Go to a meeting without an agenda. Meet somebody new. Allow yourself to be open to random opportunities.

9. Follow the 20-40-60 Rule.
Remember this rule: “At 20, you are constantly worrying about what other people think of you. At 40, you wake up and you say I’m not going to give a damn what other people think of me anymore. And at 60 you come to realize that no one is actually thinking of you.”

The takeaway, says Roizen, is “when you make mistakes, don’t worry about it. Because no one is thinking about you as hard as you’re thinking about yourself.”

10. Be your own advocate.
“If you are in a job you don’t like, you need to think about changing it. You cannot sit in your office and wait for someone to come and bring you an answer.” And if you are involved in something you don’t like, you need to empower yourself to go do something else because no one is going to do it for you.


How to install Apache Spark on Mac OS X Yosemite

Hello data scientists,

This is a quick installation guide to install the Apache Spark on your local machine. I found the documentation on the website little confusing.

1. Download the Apache Spark tar file from the [Choose any version you would like from the dropdown menu. I recommend anything 1.3.1 or above]

2. Unzip the file into your home directory.

3. Open your terminal and go to the spark directory by doing cd spark-1.3.1 [Assuming you are in your home directory]

4. Now, simply run

build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean package

5. It takes at least 10 minutes to complete the whole build.

6. After the build’s completed. It should look something like the following:

Build Success

7. Now run

./bin/run-example SparkPi 10

8. You should see something like this:

Screen Shot 2015-07-24 at 1.29.07 PM

As you can see here, it says the Job has been finished which means you have successfully made it running🙂

Note: I am assuming you have Java installed properly on your machine. This is very important.

How to make a background image fit the whole window using CSS?

The following piece of code will solve the problem:

background: url(‘../images/black_bg.png’) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
-ms-background-size: cover;
background-size: cover;



Adding a placeholder to the select tag in HTML5

There is no placeholder attribute for the select tag. But there is a way around it. The following piece of code will help you solve the issue.

HTML Snippet:

<select name=”browsers” required>

<option value=”” disabled selected>Choose a Browser</option>
<option value=”chrome”>CHROME</option>
<option value=”safari”>SAFARI</option>
<option value=”opera”>OPERA</option>



select:required:invalid {
color: #999;
option[value=””][disabled] {
display: none;
option {
color: #000;