convert data type to integer in jquery. Some times need to convert type into integer for doing different kinds of numerical operations. syntax: parseInt(value); Eg : var smarterthanyou = parseInt($(“#yourname”).val());
Category: Web Tips
web tips,ticks
How to add some font to a website
<style type=”text/css”> @font-face { font-family: “Smart Tips”; src: url(https://www.smarttips.in/smarttips.ttf) format(“truetype”); } h1.customfont { font-family: “Smart Tips”, Verdana, Tahoma; } </style> add some google fonts to your website <link href=” http://fonts.googleapis.com/css?family=Smart+Tips” rel=”stylesheet” type=”text/css” /> p1 { font-family: ‘Smart Tips’, arial, serif; }
How to Recover deleted files on netbeans IDE
NetBeans IDE 7.3 is a super tool for development and it supports several programming languages.We are now using NetBeans IDE 7.3 for different different types of software development environments. In NetBeans IDE 7.3 recovering options are also available. Right click on the folder/directory of NetBeans IDE 7.3 that the files had been deleted. Then Choose Local History…
How to Give All File Permission / folder permission recursively in ubuntu(chmod command)
Ubuntu operating system(OS) gives more importance to security. So all types operations need root permissions. Two ways give permissions in Ubuntu. To do this, you need root access. one ways is to right click on on file/folder and edit permissions. The second way is through terminal(CMD). command: sudo chmod 777 pathtofile/folder Eg : sudo chmod…
Password protection with htaccess
On developing stage of website developers can protect their website access with .htaccess password. Steps: First create a .htaccess file then at the end of file add the following lines AuthName “Restricted Area” AuthType Basic AuthUserFile /home/smartips/.htpasswd AuthGroupFile /dev/null require valid-user 2. create a .htpasswd file and give username and password smarttips:XsP89zmAUibSw Now user Website…