Viral Patel

Dynamic unread count Favicon in PHP

Dynamic unread count Favicon in PHP
Gmail has just launched small but really useful feature in Gmail Labs. Dynamic Favicon showing unread email counts directly in your browser tab icon. If your browser window has lots and lots of tabs open at anytime, this might be really a wonderful feature that lets user know ...

Your first Play! – GAE – Siena application: Tutorial with Example

Your first Play! - GAE - Siena application: Tutorial with Example
Convention over configuration has became a buzz word these days. It is a software design paradigm which seeks to decrease the number of decisions that developers need to make, gaining simplicity, but not necessarily losing flexibility. More and more web frameworks are using this approach and making web development simple. Ruby on rails, DJango, Grails, CakePHP, ...

Tutorial:Saving/Retreving BLOB object in Spring 3 MVC and Hibernate

Tutorial:Saving/Retreving BLOB object in Spring 3 MVC and Hibernate
Working with BLOB / CLOB data types in database is sometime a trivial task. I found particularly when working with Hibernate 3 to store and retrieve BLOB objects we need certain things to be taken care of. Let us see a tutorial where we will using Spring 3 MVC and Hibernate 3 to store and retrieve ...

Java: Convert Exponential form to Decimal number format in Java

While working with Doubles and Long numbers in Java you will see that most of the value are displayed in Exponential form.For example : In following we are multiplying 2.35 with 10000 and the result is printed.//Division example Double a = 2.85d / 10000; System.out.println("1) " + a.doubleValue());//Multiplication example a = 2.85d * 100000000; System.out.println("2) " + a.doubleValue());Result:1) 2.85E-4 2) 2.85E8Thus you can see the result is ...
Tags: ,

Dynamically shortened Text with “Show More” link using jQuery

Dynamically shortened Text with
Facebook user updates has a great functionality. If the comment text is larger than few characters, the extra words are hide and a show more link is presented to user. This way you can keep long text out of the view to user and stop the cluttering of page. Also interested users can click on more ...
Tags: , ,

Password Protect your webpages using htaccess

Password Protect your webpages using htaccess
Recently a serious security flaw was discovered on one of my webpage where a folder which was intended to be accessed just by admin was open for access to anyone. I somehow ignored that folder as it was lying there for years.Fortunately before those sensitive information could compromised, one of the site follower sent me an email describing the serious flaw in security. I ...

jQuery Ajax – Handling unauthenticated requests via Ajax

jQuery Ajax - Handling unauthenticated requests via Ajax
Since few days I am working on a small project where I have to deal with lot of Ajax requests. The whole UI is designed such that only appropriate parts are refreshed with required information through Ajax.The application needs user authentication before accessing any part of it. Although this is easy to achieve in any MVC ...

Multiple Checkbox Select/Deselect using jQuery – Tutorial with Example

Multiple Checkbox Select/Deselect using jQuery - Tutorial with Example
Almost all the user interfaces that I have created had this functionality of selecting multiple items from a list to process them or delete them. Although its very very easy to implement this functionality in Javascript, using jQuery for this is real fun. I will show you a simple implementation of adding multiple checkbox select and ...

Tutorial:Create Spring 3 MVC Hibernate 3 Example using Maven in Eclipse

Tutorial:Create Spring 3 MVC Hibernate 3 Example using Maven in Eclipse
Let us make a complete end-to-end application using Spring 3.0 MVC as front end technology and Hibernate as backend ORM technology. For this application we will also use Maven for build and dependency management and MySQL as database to persist the data.The application will be a simple Contact Manager app which will allow user to add new contacts. The list of contacts will be ...

Convert String to Enum Instance in Java

Recently while working in one of the requirement, I had to convert String values to Enum. I didn't realize there is a simplest way of doing this. Here is the solution.Whenever an ENUM is complied in Java, two static methods are added by compiler called valueOf() and values(). We can use valueOf() method to convert any String value to ENUM. For example lets say we ...
Tags: , ,
Page 4 of 27« First...23456...1020...Last »
Copyright © 2012 ViralPatel.net. All rights reserved.