July 8, 2015

Stop or disable skype Auto-launching in Windows 8 on startup

We can stop/disable skype on windows startup by following steps:
Method 1: Ctrl+Shift+Esc (open Task manager) > Startup > Disable Skype

Method 2: Open Run > type msconfig > System Configuration (Disable Skype here or it will give open task manager link) >Task Manager > Startup > Disable Skype
(See Picture)

Error [solved] The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

Problem : The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path.
Faced this error while using maven integration with eclipse. 
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
First found this error on the start of JSP page with one red mark over above piece of code.

Solution : Below, I have written three solution for this problem. I guess, one will work for you.

Method 1: Add Maven dependency(pom.xml)
Include servlet-api-3.1.jar in your dependencies.

Method 2: Add a Runtimes
Properties > Project Facets > Runtimes > Check Server name > Apply > OK (As shown in Image)

Method 3: Select a Runtime to add to the classpath
Java Build Path > Libraries > Add Library > Server Runtime > Next (As shown in Image)
then select a Runtime(Apache Tomcat Server) > Finish > OK (As shown in Image)

July 6, 2015

How to Disable Text Selection on Web Page using JavaScript

This JavaScript will Disable select, copy and paste of the content. Put below given JavaScript in <script></script> tag inside <head></head>  tag of your webpage.

If you want to use this script on your blog then go-to Layout > Add a Gadget > Use HTML/JavaScript Gadget and Paste below given code inside it.

JavaScript Code:
//Script open tag 
 //form tags to omit in NS6+:  
 var omitformtags=["input", "textarea", "select"]  
 function disableselect(e){  
 if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)  
 return false  
 function reEnable(){  
 return true  
 if (typeof document.onselectstart!="undefined")  
 document.onselectstart=new Function ("return false")  
 //Script close tag  


We shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its response or damage to your system. We do not guarantee that the integrity or security of this communication has been maintained or that this communication is free of viruses, interceptions or interferences. Anyone communicating with us by email accepts the risks involved and their consequences. We accept no liability for any damage caused by any virus transmitted by this site.