Monthly Archives: March 2014

Device Native App Automation using WebDriver and Appium

Setup Android SDK/ADT and create your first app https://developer.android.com/sdk/index.html?hl=sk http://developer.android.com/sdk/installing/bundle.html http://developer.android.com/training/basics/firstapp/creating-project.html#Eclipse http://developer.android.com/training/basics/firstapp/running-app.html Install and start Appium Server http://automatium.blogspot.in/2013/08/appium-android-example-program-for.html Launch your first app on Android Emulator using WebDriver and Appium Launch android emulator through Android Virtual Device Manager in Eclipse toolbar … Continue reading

Posted in Information Technology | Leave a comment

Device Web Automation using Android WebDriver

Step by step instructions: Install and Setup Android SDK/ADT Download “android-server-2.21.0.apk” from https://code.google.com/p/selenium/downloads/detail?name=android-server-2.21.0.apk to Android SDK “platform-tools” folder. (Note that the latest version “android-server-2.32.0.apk” might throw an exception “org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.”) Launch … Continue reading

Posted in Information Technology | Leave a comment

Minimum number of moves for a knight to hop from a given source square to destination on the chess board

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ConsoleApplication1 { class Point { public int x, y; public Point() { x = 0; y = 0; } public Point(int x, int y) { this.x = x; this.y … Continue reading

Posted in Information Technology | Leave a comment

Attribute combinations of a typical product under apparels category

Print all the attribute combinations of a typical product under apparels category using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[][] jaggedArray = { new … Continue reading

Posted in Information Technology | Leave a comment

One of the best shots from my recent Seattle trip

Image | Posted on by | Leave a comment

Magic array

Problem Given an array of +ve as well as -ve numbers, find out whether it is possible or not to convert it to 0 by adding/subtracting operations on all the elements. Examples arr[]={1,2,3} 1+2-3 = 0 Hence ans = YES … Continue reading

Posted in Information Technology | Leave a comment