Twitter is a service for friends, family, and co–workers to communicate and stay connected through the exchange of quick, frequent answers to one simple question: What are you doing? … [Read more...]
Java: Least Recently Used (LRU) Cache
Least Recently Used or in short LRU is an performance optimizing algorithm. LRU algorithm is widely used in software programming as well as in hardware instructions (e.g. CPU). In many case, in programming, we may want to cache some data from physical disk, for example database and files, but we cannot load all the data into memory due to the memory limitation on the server o … [Read more...]
JSP: How to Declare Methods and Inner Class in JSP
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...]
Gmail: How to Search Your Email Quickly in Gmail
If your are using Gmail as you email client, how do you search all your emails from your girl friends with keywords "I love your" for a certain date range for the received emails? … [Read more...]