JSP itself is just a plaint text and will be translated into Java source file (actually a servlet), compiled into class file and only interpreted at the end during runtime. All these happen at the backend. When the whole JSP is translated into Java source file, all the HTML codes will be translated and source lines in <% %> tag will be included in a function of the t … [Read more...]
WordPress Theme: How to Enable Gravatar in WordPress Theme
Gravatars are Globally Recognized Avatars. An avatar or gravatar is an icon, or representation, of a user in a shared virtual reality, such as a forum, chat, website, or any other form of online community in which the user(s) wish to have something to distinguish themselves from other users. … [Read more...]
Java: Static Variables, Static Methods and Static Constructor
Java's static variables are variables or fields that are common to all object of a class. Unlike instance variables, objects of the same class have their own distinct copies of the variables and values. In other words, a static variable is shared among objects of the same class. You can declare static variables (or static fields or class variables) by adding static modifier to … [Read more...]
PHP: How to Protect Password in Database – Password Hashing
If you are a programmer, you may have developed applications that store users or your customers' information in database. How to store users' or customers' sensitive data (especially password) might be an issues for most programmer. How do you ensure and convience that your users or customers' password are actually secured? … [Read more...]
PHP: Format integer into number of decimal places
Previous I have written an article about formating interger into number of decimal places in Java. The main reason to store money value in integer in to prevent loss in precision. For example the actual value for 12.33 in float could be 12.3333333333...; while 1233 in integer is always 1233. Today I will be showing you the same code but in PHP language. I know you can do the … [Read more...]