Posts

Showing posts from October, 2017

Featured Post

Flipping Blogs

Flipping Your Blogs Purpose: In this lesson we are going to talk about flipping your blog.  We will cover the following: Definition of 'flipping' Where to flip Best practices for flipping Transferring your blog to the new owner What Is 'Flipping'? Most of you recognize the term "flipping" in context of real estate.  In that context, it is the process of purchasing a home that can be improved upon, fixing it up or "making it better", then attempting to sell the home for a premium price, always with the goal of achieving a profit or decent return on investment. 'Flipping your blog'  is exactly the same deal but in this context we're flipping virtual real estate rather than physical real estate. Where to 'Flip'? Where you flip your blog depends on the type and age of the blog.  There are a number of resources available.  Here are three simple ones you can consider: Flippa ( https://flippa.com/ ) - this service site is great f...

java8 strings

java 8 made the task easy. Now you have  String.join()  method where  first parameter is separator  and then you can pass either  multiple strings or some instance of Iterable having instances of strings as second parameter . It will return the CSV in return. package   com.seo; import   java.time.ZoneId; public   class   StringDEMO { public   static   void   main(String[] args){ String joined = String.join( "/" , "test" , "test1" , "test2" ); System.out.println(joined); String ids = String.join( ", " , ZoneId.getAvailableZoneIds()); System.out.println(ids); } } Output: test/test1/test2 Asia/Aden, America/Cuiaba, Etc/GMT+ 9 , Etc/GMT+ 8 .....

track javascript element

var element = document . getElementById ( 'elementId' ); //replace elementId with your element's Id. var rect = element . getBoundingClientRect (); var elementLeft , elementTop ; //x and y var scrollTop = document . documentElement . scrollTop ? document . documentElement . scrollTop : document . body . scrollTop ; var scrollLeft = document . documentElement . scrollLeft ? document . documentElement . scrollLeft : document . body . scrollLeft ; elementTop = rect . top + scrollTop ; elementLeft = rect . left + scrollLeft ;

jax ws implementation

Follow below steps to write jax-ws service 1)LinuxTest.java ------------------ /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */ package com.seo.testlinux; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; /**  *  * @author vpilaka  */ @WebService(name = "TestLINUX", portName = "LinuxPort", serviceName = "LinuxService", targetNamespace = "com.seo.testlinux") public class LinuxTest {     /**      * Web service operation      */     @WebMethod(operationName = "execute")     public String execute(@WebParam(name = "command") String command, @WebParam(name = "param1") String param1, @WebParam(name = "param2") String param2) {         return command;     } } 2) wsgen -keep...