- Tuesday, March 9, 2010, 18:08
- JQuery
- 230 views
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
- Friday, February 19, 2010, 20:33
- How-To, Java
- 605 views
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
- Wednesday, February 17, 2010, 14:16
- Struts 2, Tutorial
- 501 views
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
- Monday, February 15, 2010, 11:00
- Java
- 1,090 views
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
- Wednesday, February 10, 2010, 15:12
- Java
- 5,056 views
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
- Thursday, February 4, 2010, 13:36
- General
- 952 views
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
- Monday, February 1, 2010, 2:50
- News
- 101 views
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
- Thursday, January 28, 2010, 3:46
- News
- 54 views
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
- Wednesday, January 27, 2010, 14:59
- JavaScript
- 620 views
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
- Tuesday, January 26, 2010, 14:24
- JQuery, Tutorial, Web 2.0
- 768 views
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