A Quote on Life!

I couldn’t stop myself posting the following quote on my blog.

Whether you have a Maruti or a BMW, the road remains the same. Whether you travel in an economy or a business class, your destination doesn’t change. Whether you have a Titan or a Rolex, the time remains the same. Whether you have an iPhone or a Nokia, people who call you remains the same. There is nothing wrong in dreaming a luxurious life. What needs to be taken care of is to not let the NEED become GREED. Because needs can always be met, but greed can never be fulfilled.

—- Rajinikanth

I bow in respect to this great person. Big fan.

Siri’s obsession for the upcoming Apple Watch – Easter Eggs

Now-a-days, the technology companies are planting interesting easter eggs in their software applications, like the recent 007 James Bond submarine car mode in Tesla was really amazing. Apple has planted some in their personal virtual assistant AI Siri. With the date for pre-ordering the most awaited Apple Watch just around the corner, Apple has planted some easter eggs to show the Siri’s obsession for the Apple Watch. If you trigger Siri and ask “What are you doing?” you will get several interesting answers. Here are some of it’s witty answers in the following screen shots.





Try it for yourself and have fun. I loved it :)



24 H in a D puzzle! Fun IQ bits

Solve this

24 H in a D.
Ans: 24 hours in a day.

1. 12 N in C
2. 2 E in F
3. 11 P in CT
4. 9 P in U
5. 19 C in CB
6. 24 F in M
7. 3600 S in H
8. 29 S in I
9. 5 O in W
10. 3 S in W


1. 12 Numbers in a Clock.

2. 2 Eyes in a Face.

3. 11 Players in a Cricket Team.

4. 9 Planets in the Universe.

5. 19 Coins in a Carrom Board.

6. 24 Frames in a Movie.

7. 3600 Seconds in an Hour.

8. 29 States in India.

9. 5 Oceans in the World.

10. 3 States in Water.

The question looks silly but I really liked these. It’s been spreading over the WhatsApp as a forward message, and I loved solving it. Good to relate simple facts with just codes.



How to update Ruby 2.0 to the latest version of Ruby on Mac OS X Yosemite?


Mac OS X Yosemite comes included with Ruby 2.0. But when you are working with the latest version of Rails[4.2], you might be in need of the latest version of Ruby [2.2] to have better performance. So, how do you update Ruby? There is a simple solution for this is to use Ruby Version Manager (RVM), which is a standard for upgrading ruby on OSX.

To do this. Open your terminal and run

\curl -L https://get.rvm.io | bash -s stable –ruby

When this is complete, you need to restart your terminal for the rvm to work.

Now, run rvm list known 

This shows the list of versions of the ruby.

Now, run rvm install ruby-2.2.0

If you type ruby -v in the terminal, it still shows you ruby 2.0.

To use the latest installed version. Run rvm use ruby-2.2.0

Now, when you look at the version, it shows you the following:

ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]

There you go, you have the latest version of ruby now in use.



Fix to the Error installing Rails on Mac OS X !


I was trying to install Rails on my mac by using the command:

sudo gem install rails

But it threw me the following error

ERROR:  Error installing rails:

ERROR: Failed to build gem native extension.

This happens if I haven’t installed the Xcode Command Line Tools properly. To do that

Run xcode-select –install in terminal

This would install the Xcode command line tools. Thats it, you are good to go.

Re run the sudo gem install rails in the terminal and it will install the rails.

To verify if the rails is installed properly. Run rails -v in terminal.

This shows us the version of the rails installed on the machine.



Programming Style!

I was learning Ruby and I stumbled upon this short note on the programming style. I loved it. The author Huw in “The Book of Ruby” says that “A good programming style has nothing to do with the naming conventions and everything to do with good code structure and clarity.” He also says with his experience that the most important characteristics of well-written code are clarity and lack of ambiguity. Code that is easy to understand and easy to debug is also likely to be easier to maintain.

It makes perfect sense and I loved it, hence I posted it. I am thinking to do this more often as I strongly believe if I write about something I learn, it would retain in my mind for a longer time.

Installing Windows 8.1 on VMware Fusion on Mac


This post demonstrates how to install Windows on your VMware Fusion on Mac. Frankly speaking, it’s a piece of cake if you do everything right. I did good amount of research on the internet reading various posts and reviews on the performance issues one might have by installing windows on virtual machine.

I have even personally experienced the Windows 8.1 installed using the Boot Camp Assistant on a separate partition. One thing is clear, personally I felt dual booting was a pain. I didn’t like it at all. I have to install all the software applications again in the other partition. I can’t access files from Mac. I can’t utilize my trackpad to the fullest. I ran out of memory in a couple days after installing Visual Studio and I had only 7 GB of space left. I allocated 60 GB for Windows partition because I only have 256 GB Flash drive. I couldn’t update Visual Studio further and I couldn’t install SQL server on the partition because of low disk space. It was terrible. So I got rid of it. One more thing, I spent over an hour to install windows using the boot camp.  One might be thinking, why did I install windows using boot camp instead of installing it on virtual machine. Because, I thought there would be performance issues and I was trolled for doing that.

Okay coming to the configuration of my machine.

I have a MacBook Pro Retina 15 inch Mid 2014 (latest) currently running OS X Yosemite Version 10.10.2

Processor: 2.2 GHz Intel Core i7

Memory: 16 GB  1600 MHz DDR3

Graphics: Intel Iris Pro 1536 MB

Storage: 256 GB Flash

So even though you have an i5 processor with 8 GB of RAM, its good to go.

This post assumes that you have VMware Fusion already installed on your machine. If you don’t have it, download and install it. As I am a student enrolled at a university. I got it for freeeeeeeeeee!! Good stuff!! Anyways, following are the steps to be followed to install Windows 8.1 on your VMware Fusion on a Mac Machine.

Step 1: Fire up VMware Fusion and click on “+” and select “New“.

Screen 1

 Step 2: In the installation method. Select the “Install from disc or image” option and click on continue.

Screen 2

Step 3: Click on “Use another disc or disc imageScreen 3 Step 4: Select the iso image of Windows 8.1 from the file chooser. Once you select it, it appears as the following. Click on continue.

Screen 4

 Step 5: Check Easy Install and give your details and enter the Windows registration key.

Screen 5

Step 6: Select “More Seamless

Screen 6

Step 7:  Here the Virtual Machine automatically assigns the memory, to configure it, you should click on “Customize Settings” and save the virtual machine.

Screen 7

Step 8: The VMware fires up as soon as you save the virtual machine as below: Click on the “Processors and Memory” option in the System Settings.

Screen 8

Step 9: Select “processor cores” as following and allocate the memory depending on your machine’s memory. Also, 4 GB is recommended as Visual Studio and other developer tools need minimum of 4 GB RAM as a requirement. So, beware of that.

Screen 9

Step 10: After you close the settings page. Click on the play button on the screen which looks like the following. As soon as you do it, the windows setup starts.

Screen 10

Step 11: Setup screen

Screen 11

Step 12: It hardly took 4 to 5 minutes for the installation to be completed. I was really amazed at the speed of installation.

Screen 12

I skipped the McAfee antivirus installation. Now, you can simply login with the password which you have given on the easy installation screen.

Screen 13

And there you go. You have your Windows 8.1 on your VM on Mac. If you want to install Visual Studio. Just download the PowerISO on your windows VM and extract the files from its image and install. As simple as that.

I found this link very interesting on the performance of visual studio on the VMware Fusion. Do check it out.

Have fun.