Saturday 28 January 2017

Installing ios-webkit-debug-proxy on MacOSX

Installing ios_webkit_debug_proxy on MacOSX:

ios_webkit_debug_proxy is used to access WebViews or MobileSafari on real iOS devices while testing with Appium.


Installation steps:
Step 1: install homebrew:
> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 2: Install ios_webkit-debug_proxy
> brew update
> brew install ios-webkit-debug-proxy

Step 3: To enable testing, we also need to install ideviceinstaller

ideviceinstaller is a tool to interact with the installation_proxy of an iOS device allowing to install,
upgrade, uninstall, archive, restore and enumerate installed or archived apps.
It makes use of the fabulous libimobiledevice library that allows communication with iOS devices.

> brew install ideviceinstaller


Using ios-webkit-debug-proxy:
> ios_webkit_debug_proxy -c udid_of_device:27753 -d
example:ios_webkit_debug_proxy -c 0e4b2f612b65e98c1d07d22ee08678130d345429:27753 -d

Installing Apache Ant on MacOSX

Install Apache Ant on MacOSX:
Pre-requisite: JDK 1.7 or above

Way 1: Without using brew (preferred):
Step 1: Download "apache-ant-1.10.0-bin.tar.gz" from "https://ant.apache.org/bindownload.cgi"

Step 2: Unzip the downloaded folder to the location you want.
Step 3: Set environment variable for maven in bash_profile.
> vim ~/.bash_profile

Step 4: Set path of maven/bin folder (which contains mvn file) in bash_profile as:
> export ANT_HOME="path to apache-ant_1.10.0"
> export PATH=$PATH:$ANT_HOME/bin
Save and quit bash_profile.

Step 5: check maven version.
> ant -v

Way 2: using homebrew:
Step 1: Install homebrew using command:
> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 2: Install maven using brew:
> brew install ant

Step 3: check maven version
> ant -v

Installing Maven on MacOSX

Install maven on MacOSX:
Pre-requisite: JDK 1.7 or above

Way 1: Without using brew (preferred):
Step 1: Download "apache-maven-3.3.9-bin.tar.gz" from "https://maven.apache.org/download.cgi"

Step 2: Unzip the downloaded folder to the location you want.
Step 3: Set environment variable for maven in bash_profile.
> vim ~/.bash_profile

Step 4: Set path of maven/bin folder (which contains mvn file) in bash_profile as:
> export M2_HOME="path to apache-maven-3.3.9"
> export PATH=$PATH:$M2_HOME/bin
Save and quit bash_profile.

Step 5: check maven version.
> mvn -v

Way 2: using homebrew:
Step 1: Install homebrew using command:
> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 2: Install maven using brew:
> brew install maven

Step 3: check maven version
> mvn -v

Installing ruby environment (rbenv) on MacOSX

Pre-requisites:
- OS X 10.10 or higher
- Xcode must be installed on Mac
- If Xcode beta version is installed, the name of Xcode file in "Applications" folder must be "Xcode".
(To install Xcode, either download from apple developer account or give "xcode-select --install" command in terminal)

Installing rbenv-

Step 1:
Install Brew using below command:

> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

(This is the standard script that install homebrew to "/usr/local" folder, so that, user doesn't need to use "sudo" while using the
command "brew install ...")

Step 2:
Then install rbenv using brew command as:
terminal>> brew install rbenv

Step 3:
Export rbenv path to bash profile.
> vi ~/.bash_profile

In bash_profile, write following lines:
> export RBENV_ROOT=/usr/local/var/rbenv
> if which rbenv > /dev/null;
> then eval "$(rbenv init -)";
> fi;
save the bash_profile and quit.

Step 4:
Run the bash_profile.
> . ~/.bash_profile

Step 5:
give rbenv command and it should show the new version of rbenv (0.4.0, in this case)
> rbenv

Step 6: To install ruby-build on MacOSX
By default, rbenv doen't know how to install ruby build. Hence, for that we will use a plugin "ruby-build" by cloning a github project
from the link "https://github.com/rbenv/ruby-build" to a directory in our local drive "plugins"
For this step, first we need to create "plugins" folder in "/usr/local/var/rbenv"

//first go to home dir
> cd
> cd /usr/local/var/rbenv
> ls

If "plugins" folder is not found, create one.
> mkdir plugins
> cd plugins
Now clone the github project here.

> git clone https://github.com/rbenv/ruby-build.git

Step 7: Now check the latest version of ruby-build which can be installed using below command
> rbenv install --list

Step 8: install latest version of rbenv (2.1.2, in this case)
> rbenv install 2.1.2

Step 9: Now rbenv is installed on machine but the default version of ruby being used is still the
pre-installed ruby version in mac. Check it using command
> ruby -v

Step 10:
set our installed rbenv 2.1.2 as the global version.
>  rbenv global 2.1.2
> ruby -v

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Step 11: (To install bundler)
install bundler after rbenv is installed properly.
> gem install bundler

Step 12: (To install calabash-cucumber)
> gem install calabash-cucumber

Step 13: (To use binding.pry)
> gem install pry

Wednesday 7 January 2015

The Catcher In The Rye by J.D.Salinger

    


    Recently, I finished with reading of the book "The Catcher In The Rye" by J.D.Salinger(Jerome David Salinger) who was an American author, best known for this novel published in 1951.
    To be honest, I didn't know about this book before but one fine day while searching bestsellers on Amazon.in, I came across this book and bought it without even knowing the meaning of "The Catcher In The Rye".
    Basically, The novel is based on a story of a teenager "Holden Caulfield" who is expelled from Pencey, a private school in Agerstown, Pennsylvania.
    The book expresses the feelings of anxiety and experience of being isolated from a group of people in teenagers. The character Holden has done with people and is sort of lonesome. He has many memories of his late brother Allie, another brother D.B. who writes screenplays in hollywood and his little sister Phoebe whom he is fond of.
The time he spent with Phoebe is expressed in well terms. Brother-Sister relations is what Holden thinks of. Since Holden is suffering the trauma of being a teenager, he simply wants to save innocence of his small sister, and hence he wants to be "Catcher In The Rye" that is the person who saves children from falling into adolscence.
    Deep inside holden knows that growing up is tough task as he experiences it with his dorm mates and few girls with whom he tries to get chance with. And hence he simply wants his sister to not to suffer all this phase and be a child always and stay with him.
    The constant mixed emotions, different thoughts that might cross over a teenager are expressed very well and you can remember the times when you were young and you had also same kind of thoughts in your mind that time. You would feel the past and smile thinking how did you transform from then to now.
    One more thing I liked in the book is different type of language. I'd to visit Wikipedia Page for this book review to know the meaning of some sentences as : 
   - "Phony" –> superficial, hypocritical, and retentious
   - "That killed me" –> I found that hilarious or               astonishing
   - "Flit" –> homosexual
   - "Crumby" –> inadequate, insufficient, and/or                 disappointing
   - "Snowing" –> sweet-talking
   - "I got a bang out of that" –> I found it hilarious or 
      exciting
   - "Shoot the bull" –> have a conversation containing          false elements
   - "Give her the time" –> sexual intercourse
   - "Chew the fat" –> small-talk
Also, more to say, when I get attracted to beautiful girls some thoughts cross my mind and the best paragraph that described my thought was : 
"She was really good. All you had to do was touch her. And when she turned around, her pretty little butt twitched so nice and all. She knocked me out. I mean it. I was half in love with her by the time we sat down. That’s the thing about girls. Every time they do something pretty, even if they’re not much to look at, or even if they’re sort of stupid, you fall in love with them, and then you never know where the hell you are. Girls. Jesus Christ. They can drive you crazy. They really can." when Holden was dancing with two recently mate girls at bar.

Overall, I think this is the best book I read in many months because the thoughts and things Holden is expressing, I've felt the same in my teenager phase. All you have to get to know is the catch and the point author wants to express. Once you are through it, you will enjoy reading this book.

#GoodLuck#Smiles#GoodReads#Books :)

Tuesday 23 December 2014

2014 : Good Year With Books


Time is always running and never stops for anyone. Well, this undeniable statement is a motivation for life. Anything happening in life can only be healed and controlled with time. Well though it never stops for anyone, it has its own significance. To achieve something in life, a person has his/her timelines and so he/she works hard to achieve something in that timeline. Factor here is TIME. It doesn't stop for the person to complete his dreams in time but it continues to work with its rate and gives the reference to the person about how much time is left for him/her to achieve the goal. Similarly, some other parts of life where mostly feelings come in between, TIME is the reference. As in love or pain, we need to give the time for things to settle. It takes a time to settle for love or the pain to settle. So, as time has flew again, we have come across the end of the year 2014 now. I still am not able to understand that whether the time flew fast or I was so busy with life that I didn't find that time was running because I still have memories of last new years evening and feels like I just enjoyed it some months back. But after all, reality needs to be faced. Its really an end of the year now and now its time for me to look back and see how I had my journey of life in this 57th independent century. This year was as good as my previous years of my life. I have achieved many new things in life. I have done well in my career and life lessons. I have experienced joy, humor, feelings, pain, fear and many feelings through journey. But most importantly the thing I liked most in this year is I've crossed my reading limits this year. Every year I take challenge of reading on www.goodreads.com where I decide the limit of number of books I will read in particular year. At the start of this year, like always, I had set that limit to 12 i.e. 1 per month. But to my surprise, currently I'm reading 16th book. I've already finished with 15th Book(Fiction) 6 days ago and now reading a new one. Reading has become my hobby since I was in second year of grad and since then I've read 51 books. Well, not a great number but it is what I'm glad with right now. Here are the names of the books I've read. Blogs of few I've uploaded before and others I will write soon.

1. Complete Convenient (Fiction) by Ketan Bhagat
2. It started with a Friend Request (Fiction) by Sudeep Nagarkar
3. Hold my Hand (Fiction) by Durjoy Datta
4. Error Code :: Love (Fiction) by Suman Bhattacharya
5. Someone Like You (Fiction) by Durjoy Datta and Nikita Singh
6. Accidentally in Love, With Him? Again? (Fiction) by Nikita Singh
7. She's single, I'm taken ..and we're committed (Fiction) by Harsh Snehanshu
8. It's no longer a dream (Fiction) bySanjeev Rajan
9. A half baked love story (Fiction) by Anurag Garg and Gunjan Narang
10. How I Braved Anu Aunty and Co-Founded A Million Dollar Company (Non Fiction) by         Varun Agarwal                             
11. When Only Love Remains (Fiction) by Durjoy Datta
12. Dogfight: How Apple and Google Went to War and Started a Revolution (Business) by             Fred Vogeistein
13. Half Girlfriend (Fiction) by Chetan Bhagat
14. Diary of a Wimpy Kid (Humor) by Jeff Kinney
15. The fault in our stars (Fiction) by John Green

Precisely happy with this list. Well mostly fiction but though love has no language, I've read language of love with different sentences through each of them. Being sarcastic !!  :P  :)

Monday 14 July 2014

FIFA World Cup 2014 !!



Finally the day had come when Germany team with their hard efforts won the FIFA World Cup 2014 held in Rio de Janeiro,Brazil.
Starting from 12th June 2014, all the teams played well and teams reached up to 4th place were Brazil, Netherlands, Germany and Argentina.
This time FIFA was split into 8 groups from A to H. Total 64 matches were played between all the participant countries and the winner was decided in finals.
The final match was between Argentina(Captain Lionel Messi) and Germany(Philipp Lahm).The match was won with the score of 1 - 0 in extra 30 minutes time with the goal by Germany player Mario Gotze. Germany had 7 shots on target while Argentina had only 2. And other stats were 20 fouls, 5 corners, 2 saves, 3 off sides for Germany and 16 fouls, 3 corners, 6 saves, 2 off sides for Argentina.
Argentina were preparing for a penalty shoot-out in the Maracana, but in the 113th minute Gotze chested down Andre Schurrle's cross and volleyed home to cap a historic victory for Joachim Low's men.
Goetze was selected as Budweiser "MAN OF THE MATCH" while Leonel Messi won the "FIFA GOLDEN BALL" as the best player of World Cup 2014.
Amongst other countries, Neymar was the only candidate from Brazil on the list, which was selected by Fifa’s technical study group of coaching analysts. Arjen Robben of Holland and James Rodríguez of Colombia, winner of the Golden Boot as the tournament’s top scorer with six goals, completed the list.
The Golden Glove award for the tournament’s outstanding goalkeeper went to Germany’s Manuel Neuer. France’s Paul Pogba was named the World Cup’s best young player, while Colombia were given the fair play award.
With this, FIFA 2014 finished but FIFA fever will be everlasting as always.. :)

Tuesday 1 July 2014

My favourite quotes by Albert Einstein... :)



1. Imagination is more important than knowledge.

2. Gravitation is not responsible for people falling in love.

3. I never think of the future. It comes soon enough.
    Peace cannot be kept by force. It can only be achieved by               understanding.

4. Education is what remains after one has forgotten everything he       learned in school.

5. The release of atom power has changed everything except our         way of thinking...the solution to this problem lies in the heart of       mankind. If only I had known, I should have become a                     watchmaker.
   
6. God does not care about our mathematical difficulties. He                 integrates empirically.

7. Do not worry about your difficulties in Mathematics. I can assure     you mine are still greater.

8. Everything should be made as simple as possible, but not                   simpler.

9. Weakness of attitude becomes weakness of character.

10.Two things are infinite: the universe and human stupidity; and          I'm not sure about the the universe.

11.Not everything that counts can be counted, and not everything        that can be counted counts.

12.Technological progress is like an axe in the hands of a                      pathological criminal.

Friday 20 June 2014

Reject the opposites


This world is comprised of many elements and among those elements, living beings are the one who gives the feeling of liveliness in the world. These living beings always try to achieve something in their lives and make it best. I would like to share some opinions to you about achieving good life here.
 First of all , we all know that life is made up many things which contains emotions, attachments, trust, success and many more things. If we can handle all these things properly then we wont have any issue in making the life peaceful and healthy. My funda for this is,we have to reject the opposites related to all these things. As like say for "Friend" the opposite is "Enemy". Similarly there are opposites for other things as :  

1. Love vs Hate - 
Learn to love your life by loving all the things connected to it. No matter you are small or big, you are poor or rich, you will live your own life and lead the same. No matter people around you behaves in weird way but you shouldn't stop loving and caring for them. As opposite of love is hate, once you put the seed of hate in your life, it will grow fast and you wont be able to control its roots once it grows deep in your life. And hate has many affects in life as it may detach people from your life and at one point you may be alone too. So always search for positive love and affection as it has the capability to find best out of worst or it can also heal a mental to normal. That strength the love has. 

2. Make Vs Break - 
  Always try to make new things in life. Making may include making new friends, relations, techniques, patterns in careers etc. Whatever you do, always make something because it never goes waste. Suppose today you made some stuff which doesn't have any meaning. But don't stop making it further as it will turn out into something good. You never know, it might be some good statue of clay, or some great code for excellent application or a best friend for a life. So make it in such a way that there is no one to break it. 

3. Confidence Vs Doubt - 
Whenever you decide particular goal in life, be confident about it. But also know that while increasing confidence level, you are clearing all the doubts. Because, doubts are positive errors or problems that might come. So clear the doubts and remove errors to gain more confidence and finally you will see yourself winning the race. 

4. Act Vs Reasoning - 
Now that you have planned something for your life, Act as per plan. You will come along many difficulties in way, you might also fail at one point but don't stop trying again. Just stick to the plan and work hard. Never try to give a reason to yourself for fail, because once you start reasoning, you will continue to give them for each point and this link will go on and you may lose your aim. So always Act as per plan. 

Along with these things you should be sincere, respectful in society, caring and silent. Also you should praise others and yourself for creating positive energy. You should find happiness by saying YES to the things around you. As it is well said by Paulo Coelho that  "When you say Yes to others, make sure you are not saying No to yourself". 

Live your life and enjoy the stuff.
Thank you! :) 

Wednesday 11 June 2014

Quotes by Steve Jobs


1.Creativity is just connecting things. When you ask creative people   how they did something, they feel a little guilty because they   didn’t really do it, they just saw something. It seemed obvious to   them after a while.

2.Your work is going to fill a large part of your life, and the only   way to be truly satisfied is to do what you believe is great work.   And the only way to do great work is to love what you do. If you   haven't found it yet, keep looking. Don't settle. As with all   matters of the heart, you'll know when you find it.

3.Remembering that you are going to die is the best way I know to   avoid the trap of thinking you have something to lose. You are   already naked. There is no reason not to follow your heart.

4.I think if you do something and it turns out pretty good, then you   should go do something else wonderful, not dwell on it for too long.   Just figure out what’s next.

5.If you don’t love something, you’re not going to go the extra mile,   work the extra weekend, challenge the status quo as much.

6.That’s been one of my mantras - focus and simplicity. Simple can be   harder than complex. You have to work hard to get your thinking   clean to make it simple. But it’s worth it in the end because once   you get there, you can move mountains.

7.Your time is limited, so don’t waste it living someone else’s life.   Don’t be trapped by dogma - which is living with the results of   other people’s thinking. Don’t let the noise of others’ opinions   drown out your own inner voice. And most important, have the courage   to follow your heart and intuition.

8.I’m convinced that about half of what separates the successful   entrepreneurs from the non-successful ones is pure perseverance.

9.Here’s to the crazy ones - the misfits, the rebels, the   troublemakers, the round pegs in the square holes. The ones who see   things differently - they’re not fond of rules. You can quote them,   disagree with them, glorify or vilify them, but the only thing you   can’t do is ignore them because they change things. They push the   human race forward, and while some may see them as the crazy ones,   we see genius, because the ones who are crazy enough to think that   they can change the world, are the ones who do.

10.Remembering that I'll be dead soon is the most important tool I've   ever encountered to help me make the big choices in life. Because     almost everything - all external expectations, all pride, all fear   of embarrassment or failure - these things just fall away in the   face of death, leaving only what is truly important.

11.For the past 33 years, I have looked in the mirror every morning   and asked myself: 'If today were the last day of my life, would I   want to do what I am about to do today?' And whenever the answer has   been 'No' for too many days in a row, I know I need to change 
  something.

12.Being the richest man in the cemetery doesn't matter to me. Going   to bed at night saying we've done something wonderful, that's what   matters to me.

13.I’m as proud of many of the things we haven’t done as the things we   have done. Innovation is saying no to a thousand things.

14.Getting fired from Apple was the best thing that could have ever   happened to me. The heaviness of being successful was replaced by   the lightness of being a beginner again. It freed me to enter one of   the most creative periods of my life.

15.If you live each day as if it was your last, someday you'll most certainly be right.

Monday 26 May 2014

Fun @Adlabs Imagica

Last Sunday, I had gone to "Adlabs Imagica" situated near the city of Khopoli on Mumbai-Pune expressway with my family. It is a giant theme park with more than 25 rides consisting of Roller Coaster rides and few Entertainment rides.Due to technical problems in few of the rides, I couldn't enjoy all the rides but the few of them I went on were :

A)Roller Coaster Rides :
1.Nitro-
This is the fastest Roller Coaster ride in India up till standing at 132 feet high and nearly 0.85km of length. To go on this ride, all you need is to be brave. It is just a 150 seconds journey which can shows stars in head in a daytime too.I was watching many of the people going out-of-line when they saw the ride's close view while waiting in a queue. I was very eager to get on this ride though.But after the ride I was in no condition to talk also. It is unlike other rides where the feet do not stay firm on floor of the chair and gives flying chair effect.

2.Scream Machine-
This is the one I liked the most in all the rides.It is a round shaped seating arrangement and only the crazy ones dare to ride it. The Scream Machine first moves slowly to gather some momentum and just when you feel that you can handle the swing, it starts to move to and fro with more speed. The Scream machine, while going to and fro is also moving round at the same time. So in overall journey, at one point your face is pointing to the sky giving feeling that you would touch the sky and at one point, your face is in direction of the floor where you feel like you will enter the earth while coming down. This ride rise to up to 120 degrees and push backs to height of nearly 150feet which makes us scream our lungs out.

3.GoldRush Express-
This ride was not as danger as above two but it as great as it drops us from 66ft height ans sends us speeding through tunnels and abandoned goldmines at 65kmph. The round road was a great part in this ride though.

B) Entertainment Rides :

1.Splash Ahoy-
It is a simple water battle with water guns in a ship. All we have to do is get a boat and use water guns with circle shots to splash water on people sitting in the boat next to us. But Watch out! Here there are bystanders present too who could attack you and wet completely.

2.Mr.India-
This one is quite nice. Once again Mogambo kidnaps children of Mr.India and asks him for "Special Formula Bracelet". This ride is about saving those kids from Mogambo. All we have to do is just sit in a car rode by a Robot made by Mr.India in 3D movie playing in front of us which takes route to Magambo and in its ways, many distractions comes because of which car moves with jumps and we have to balance ourselves.
Similar to these other attractions with 3D movies are "Wrath of Gods" and "Cinema 360-Prince of The Dark Waters" which gives proper 3D effect.

3.Rajasaurus River Adventure-

    It is a boat adventure into the world of ferocious dinosaurs discovered by Dr.Roy. We have to just sit in a boat and enjoy the journey with information about various dinosaurs. Many moving objects of dinosaurs are created here and in the end the boat suddenly goes down the track and splash water allover us. This ride was actually a different experience overall.
   
C)Imagica Parade-
It is the parade organized by all the members of Imagica where all the characters from each game performs various activities like dance, bicycle stunts and more similar stuff. It is also a unique theme by Imagica which gives sheer of excitement and joy.


Well,there is so much to write but these were the places which I liked the most at Imagica.
Before some time ago, there happened an accident of a ride "Bandits Of Robinhood" because of which one family was in ICU, but they later got safe to the place. So after the incident the Imagica team has taken care of all the possible threats and have maintained the quality status. Now there are many Guest Services available as :
-Visitor Information
-Food Places
-Lost and Found
-General Park Information
-First Aid
-Safety Information at each Ride

So the safety is quite maintained properly and many visitors are getting attracted to Imagica nowadays.
Still, the water park is yet to come soon here and I am looking forward to make a next visit to Imagica quite soon and if you guys also wants to have fun then plan right now and make your weekend exciting at Imagica.. :)

Installing ios-webkit-debug-proxy on MacOSX

Installing ios_webkit_debug_proxy on MacOSX: ios_webkit_debug_proxy is used to access WebViews or MobileSafari on real iOS devices while ...