Wirelessly Debugging of your Android App on Smartphone

First Set Path for adb command through system environment variable : F:\adt-bundle-windows-x86_64-20140702\sdk\platform-toolsNow type following commands on command prompt : Connect device via USB and make sure debugging is working. adb tcpip 5555 adb connect <DEVICE_IP_ADDRESS>:5555 Disconnect USB and proceed with wireless debugging. adb -s <DEVICE_IP_ADDRESS>:5555 usb to switch back when done. <DEVICE_IP_ADDRESS> : type following command […]

CSS Image Sprites

An image sprite is a collection of images put into a single image. A web page with many images can take a long time to load and generates multiple server requests. Using image sprites will reduce the number of server requests and save bandwidth.   Ref : https://www.w3schools.com/css/css_image_sprites.asp

How to sort list by two fields in Java?

private static void order(List persons) { Collections.sort(persons, new Comparator() { public int compare(Object o1, Object o2) { String x1 = ((Person) o1).getName(); String x2 = ((Person) o2).getName(); int sComp = x1.compareTo(x2); if (sComp != 0) { return sComp; } Integer x1 = ((Person) o1).getAge(); Integer x2 = ((Person) o2).getAge(); return x1.compareTo(x2); } }); }

Form Tag

The Element The HTML element defines a form that is used to collect user input: . form elements . An HTML form contains form elements. Form elements are different types of input elements, like text fields, checkboxes ,radio buttons, submit buttons, and more. The Element The element is the most important form element. The element […]

Line Break Tag

Whenever you use the element, anything following it starts from the next line. This tag is an example of an empty element, where you do not need opening and closing tags, as there is nothing to go in between them. The tag has a space between the characters br and the forward slash. If you […]

Paragraph Tag

The tag offers a way to structure your text into different paragraphs. Each paragraph of text should go in between an opening and a closing tag as shown below in the example − Example: Paragraph Example Here is a first paragraph of text. Here is a second paragraph of text. Here is a third paragraph […]

Heading Tags

You can use different sizes for your headings. HTML has six levels of headings, which use the elements , , , , , and . While displaying any heading, browser adds one line before and one line after that heading. Heading Example This is heading 1 This is heading 2 This is heading 3 This […]

How to install node JS

For installing node and NPM follow below steps: 1. Download the appropriate installer from below link Download 2. Run the installer (the .msi file you downloaded in the previous step.) 3. Test node JS is installed or not. (i) check node version by node -v (ii) check NPM version npm -v