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 […]

Rice and Potato Cutlets

Ingredients: 1. 1 cup rice (cooked) 2. 1 cup potatoes (boiled, peeled, and shredded) 3. 1/2 tsp salt 4. 1/2 tsp cumin seeds (jeera) 5. 1 Tbsp green chili (chopped) 6. 1 tsp ginger (finely chopped) 7. 2 Tbsp cilantro (finely chopped, hara dhania) 8. 1/4 tsp fresh lemon juice Method 1. In a bowl […]