Monthly Archives: March 2017

UI Automator Viewer

You can find it at C:\Users\asharda\Android\tools Under Android ->Tools->uiautomatorviewer Advertisements

Posted in Uncategorized | Leave a comment

Speech Recognition using Google Speech Recognition

(1)Install SpeechRecognition pip install SpeechRecognition (2)Run from command prompt as below: python -m speech_recognition Copy /paste the below code in Eclipse: import speech_recognition as sr # Record Audio r = sr.Recognizer() with sr.Microphone() as source:     print(“Say something!”)   … Continue reading

Posted in Uncategorized | Leave a comment

Lambda Expression Example 2

interface MyNumber { double getValue(); } public class Lambda { public static void main(String[] args) { MyNumber num=() -> 123.45; System.out.println(num.getValue()); } }

Posted in Java, Uncategorized | Leave a comment

UsingLambda Expressions Java

import java.util.ArrayList; import java.util.List; public class Lambda { public static void main(String[] args) { List<Integer> list1=new ArrayList<Integer>(); list1.add(10); list1.add(20); list1.forEach(System.out::println); } }

Posted in Java, Uncategorized | Leave a comment

Sets in Python

”’ Created on Mar 25, 2017 @author: asharda ”’ ‘Sets in Python’ cars={‘Toyota’,’Chevy’} print ‘Honda’ in cars print ‘Toyota’ in cars

Posted in Uncategorized | Leave a comment

Start webdriver

Start Node: C:\Users\asharda\Downloads>java -jar selenium-server-standalone-3.3.1.jar -role webdriver -hub http://localhost:4444/grid/register -port 5567 Start Hub: java -jar selenium-server-standalone-3.3.1.jar -role hub   Also need to mention below settings in grid.properties   geckodriver=C:\\Users\\asharda\\Downloads\\geckodriver.exe chromedriver=C:\\Users\\asharda\\Downloads\\chromedriver.exe

Posted in Uncategorized | Leave a comment

Arrange Numbers using numpy

”’ Created on Mar 23, 2017 @author: asharda ”’ import numpy as np a=np.arange(20).reshape(4,5) print a

Posted in Python, Uncategorized | Leave a comment