Author Archive

Page 1 of 2212345...Last »

Understanding jQuery animate() function

jQuery animate() function is very powerful API to manipulate html elements and add animation functionality. The use of animate function is very simple. First lets check the syntax of this function. .animate( properties, , , ) properties: A map of CSS properties that the animation will move toward. duration: A string or number determining how long the animation ... Full story

Eclipse Tip: Hide Closed Projects in Eclipse Project Explorer View

Eclipse Tip: Hide Closed Projects in Eclipse Project Explorer View
Ever wanted to hide all those closed projects in eclipse? Well, here is a simple trick that you may not know already. Imagine your Eclipse workspace is filled with many projects that you created in past just to test some small functionality. Now you are done with these projects and hence you have closed it. Eclipse by default show all the closed projects in Project ... Full story

Writing a URL Shortner in Java Struts2 & Hibernate

Writing a URL Shortner in Java Struts2 & Hibernate
This is an attempt to create a simple URL shortner service in pure JEE with Struts2 and Hibernate. Creating Base Framework I always have Basic framework ready which gives a kick start to the web app development. You don't have to hassle about different configuration issues/jar file issues etc. Let us start with creating sample base framework ... Full story

Generate Pie Chart/Bar Graph in PDF using iText & JFreeChart

Generate Pie Chart/Bar Graph in PDF using iText & JFreeChart
iText is a wonderful library if you want to generate PDFs in Java. It comes with a huge set of API to create/manage a PDF file. We already saw in our previous tutorial how to generate a pdf file in itext and also how to merge ... Full story

10 Most Useful Java Best Practice Quotes for Java Developers

10 Most Useful Java Best Practice Quotes for Java Developers
Quote 1: Avoid creating unnecessary objects and always prefer to do Lazy Initialization Object creation in Java is one of the most expensive operation in terms of memory utilization and performance impact. It is thus advisable to create or initialize an object only when it is required in the code. public class Countries { private List countries; public ... Full story

Some Useful Unix File Finding Commands

Some Useful Unix File Finding Commands
Following are some bunch of commands that might be useful if you want to find files in unix/linux. Large Files Find files larger than 10MB in the current directory downwards... find . -size +10000000c -ls Find files larger than 100MB... find . -size +100000000c -ls Old Files Find files last modified over 30days ago... find . -type f -mtime 30 -ls Find files last ... Full story

Did Twitter Forget to Update its Copyright Year?

Did Twitter Forget to Update its Copyright Year?
I noticed a strange thing today on Twitter's homepage. Its already end of the first month of 2010 and Twitter's homepage is still showing Copyright year 2009!! I don't know if they have done this purposefully or just forgot to update the year. See the below screenshot. ... Full story

Finally Apple Unveiled its Tablet, The iPad (Video)

After months of speculations and rumors its finally here. Apple has added another weapon in its arsenal, the iPad. In a grand Apple press conference at the Yerba Buena Center for the Arts in San Francisco today, Apple's very own Steve Jobs unveiled the iPad. It features multi-touch interaction with multimedia formats including newspapers, magazines, ebooks, textbooks, ... Full story

JavaScript Array Remove an Element

JavaScript Array Remove an Element
Following is an example of JavaScript where we will remove elements from an array with Index and Value. There are different methods in JavaScript that we can use to remove elements. We will use splice() method. Remove Array element by Index First we will see an example were we will remove array element by its index. For this we can define a generic function removeByIndex(). function removeByIndex(arr, ... Full story

oEmbed: An Open Format Every Developer Should Know About

oEmbed: An Open Format Every Developer Should Know About
Most of the internet users spend their online time in creating and sharing content on internet. Sharing has became one of the most popular activity of internet users. This is attributed to formats like RSS and services like Twitter, Facebook etc. that allows user to share content with each other. oEmbed addresses the important task of ... Full story
Page 1 of 2212345...Last »
Copyright © 2010 ViralPatel.net. All rights reserved.