Archive for 2009

Convert ArrayList to Arrays in Java

A lot of time I have to convert ArrayList to Arrays in my Java program. Although this is a simple task, many people don't know how to do this and end up in iterating the java.util.ArrayList to convert it into arrays. I saw such code in one of my friends work and I thought to share this so that people don't end up writing easy ...

Double Brace Initialization in Java!

Double Brace Initialization in Java!
Few days back I came to know about a different way of initializing collections and objects in Java. Although this method of initialization has been there in Java since quite a few years now, very few people actually knows about it or have used it in their code. The technique is called Double Brace Initialization technique ...

How to Choose a Hosting Provider

How to Choose a Hosting Provider
Everyone looking to get quality web hosting will quickly notice that it is somewhat of a jungle out there. The web hosting market is literally crammed with different web hosting providers promising this and that. As it is extremely important for you get along with your provider it is crucial that you do some research before settling upon one. Finding out what features and ...

China blocks Google Search, Apps, GMail etc

China blocks Google Search, Apps, GMail etc
As I am writing this post, new tweets are popping every second confirming the news "China blocks Google's main product, Google Search, Apps, GMail and more". Notable thing here is that this is the second round of Censorship being imposed by China. Just few weeks back China had blocked Youtube and Google News ...

RESTful Web Service tutorial: An Introduction for beginners

RESTful Web Service tutorial: An Introduction for beginners
REST is a term coined by Roy Fielding in his Ph.D. dissertation to describe an architecture style of networked systems. REST is an acronym standing for Representational State Transfer. Representational State Transfer(REST), a software architecture style used in developing stateless web services. While this style may be used to describe any distributed framework that uses ...

21 very useful htaccess tips & tricks

21 very useful htaccess tips & tricks
Apache web servers have a great way to manipulate information using .htaccess files. .htaccess (hypertext access) is the default name of a directory-level configuration file that allows for decentralized management of web server configuration. The .htaccess file is placed inside the web tree, and is able to override a subset of the server's global configuration; the ...

Textarea Resize JavaScript: Resize textarea using jQuery plugin

Textarea Resize JavaScript: Resize textarea using jQuery plugin
Have you ever used textarea in your UI design to get text from user? (Ofcourse you must) :) You must have specified rows and cols attribute to define the height and width of the textarea, or by using CSS. By whatever mean you create your textarea, the width and height of the textarea is fixed. What ...

Listbox options javascript select all,move left-right, move up-down

Listbox options javascript select all,move left-right, move up-down
While working with Listboxes I had to write few small JavaScript snippets to perform certain tasks like selecting all options / seselecting all options or moving options up and down or swapping the options between two listboxes. I thought of sharing the JavaScript functions with you so that you can bookmark the article and use the ...

Creating a dynamic menu-planning page and shopping list

Creating a dynamic menu-planning page and shopping list
I have a page on my site that allows users to create a shopping list from seven dinner recipes and one dessert, Users can deselect ingredients that are already onhand so that these items are not included on the shopping list.  You can see the page as it currently functions here:...

iText tutorial: Merge & Split PDF files using iText JAR

iText tutorial: Merge & Split PDF files using iText JAR
In previous article about Generating PDF files using iText JAR, Kiran Hegde had described a nice and basic way of generating PDF files in Java using iTest JAR. It is a great starter tutorial for those who wants to start working with iText. In one of the requirement, I had to merge two or ...
Page 10 of 20« First...89101112...20...Last »