Showing posts from 2008

My Library

Unlock Dialog Huawei E220 HSDPA Modem

New Post: How to Unlock Any Huawei Modem

There is simple method to unlock dialog HSDPA modem. then you can use it on Mobitel network also. Because it is very easy to access Internet through Pre-Paid connection.

More Info about Mobitel 3G Daily Delight

Install following firmware and update your Mobile partner software . Then your Mobile Partner software change as Mobile Connect.
Firmware Download

After that create New Connection
Settings --> Network connection Settings --> New

Number : *99***1#
APN and Additional Settings --> APN :

Unlock Document : PDF
Software : Huawei Patch , Hex Editor , QC Mobile Analysis Tool , E220 Unlocker

help my site stand out :

Huawei E220 modem on Ubuntu with Dialog HSDPA

Type following command in terminal

$ sudo wvdialconf /etc/wvdial.conf

$ sudo gedit /etc/wvdial.conf

uncomment the ‘Phone‘ field and give the phone number as *99***1# and save the file.

*Esc ---> shift qw and Enter for save in vim edit ($ sudo vim /etc/wvdial.conf )

install the following files and add the huawei driver. Drivers

$ tar xjvf huawei.tar.bz2
$ cd huawei
$ su
$ make info
continue installation acoding to info file..

Install conection software using following .deb file Software

If you want to monitor network usage following package... Package

more info: Visit

Java Location API

Here is Example Java Location API example. But work for this want to support Java Location API in UR mobile and inbuilt GPS receiver(I only test with mobile emulator).

what is Location API:

The Java Location API for J2ME is intended to run on small client devices such as mobile phones.The Location API object model consists of 11 classes and two listener interfaces (LocationListener and ProximityListener), all in the javax.microedition.location package. Their design approach uses several standard patterns—Facade, Factory Method, Singleton, and Value Object, and standard JavaBeans-style accessors. Of the 11 classes, two are Exception classes (LocationException and LandmarkException) and another four (AddressInfo, Criteria, Orientation, and QualifiedCoordinates) are primarily value objects. Many of the properties of these objects may in practice be unavailable, depending on the location-finding technology implementing the API. Still, these properties anticipate likely future developmen…

Java interview ask question

Question: Why Java does not support multiple inheritence ?
Answer: Java DOES support multiple inheritance via interface implementation.

Question:What is the difference between final, finally and finalize?
Answer: o final - declare constant
o finally - handles exception
o finalize - helps in garbage collection

Question: Where and how can you use a private constructor.
Answer: Private constructor can be used if you do not want any other class to instanstiate the object , the instantiation is done from a static public method, this method is used when dealing with the factory method pattern when the designer wants only one controller (fatory method ) to create the object.

Question: In System.out.println(),what is System,out and println,pls explain?
Answer: System is a predefined final class,out is a PrintStream object and println is a built-in overloaded method in the out object.

Question: What is meant by "Abstract Interface"?
Answer: First, an interface is …

Netbeans Support Multi Language

Netbeans, the free, open source, software development environment from Sun Microsystems, has just reached version 6.1 (see the Netbeans 6.1 release notes for detailed info).New for version 6.1 is all-new, completely redesigned support for JavaScript (whether it’s standalone JavaScript, or embedded in other files e.g. HTML).

Java user groups and developers have contributed work to make NetBeansTM 6 IDE available in Japanese, Chinese, Brazilian Portuguese, English and Chinese. The NetBeans Translation Project provides opportunities for members of the community to localize the IDE and documentation.

We expect nearly netBeans support Sinhalese and Tamil language also.

Press Release

Netbeans challenges Other IDE's

Netbeans has a simple but powerful GUI designer. Create your application window, drag buttons onto it and then double click them to add code and events. If you’ve used the GUI builder in VBA applications, it looks and works a lot like that. And it is extremely easy to learn while at the same time providing powerful layout helpers.

Creating a State Diagram

A State diagram is a visual representation of an application's state machines. It shows the life of an object from birth to death. In this type of diagram, you see the behavior specifying the sequence of states that the object goes through in response to events over its lifetime, and you see the object's responses to those events.

You can use a State diagram when you are working on a real-time process-control application or a subsystem that involves concurrent processing, or when you want to express the behavior of a class over several use cases.

1. Create a UML Project and add a State diagram

1. Choose File New Project.

2. In the New Project wizard:
1. Select Categories UML.
2. Select Projects Platform-Independent Model.
3. Click Next.

3. In the New Platform-Independent Model panel:
1. Type a name for the UML project, such as MyUMLProject.
2. Choose a directory where the project will be stored.

4. Click Finish.

5. In…

NetBeans IDE Keyboard Shortcuts

Ctrl-Space Code completion Esc Close code completion Shift-Space Enter a space without expanding
an abbreviation Alt-F1 Display Javadoc Shift-F1 Search Javadoc Alt-Shift-I Import class Alt-U, G Append get to identifier Alt-U, S Append set to identifier Alt-U, I Append is to identifier Ctrl-Shift-F Reformat selection Ctrl-T Shift one tab to the right Ctrl-D Shift one tab to the left Ctrl-Shift-T Comment out with line comments
("//") Ctrl-Shift-D Remove line comments ("//") Ctrl-W Delete current or previous word Ctrl-E Remove the current line Ctrl-J, S Start recording macro Ctrl-J, E Stop macro recording Ctrl-[ Move insertion point to matching
bracket Ctrl-L Word match - forward Ctrl-K Word match - back Ctrl-F Find Ctrl-H Replace F3 Find next Shift-F3 Find previous Ctrl-F3 Search for word that insertion
point is on Alt-Shift-H Turn off search result highlighting Alt-Shift-O Fast Open class Alt-O Go to source Alt-G Go to declaration Ctrl-M Select next parameter Ctrl-…

Java 1.5 Language Features


This long-awaited enhancement to the type system allows a type or method to operate on objects of various types while providing compile-time type safety. It adds compile-time type safety to the Collections Framework and eliminates the drudgery of casting.

Enhanced for Loop

This new language construct eliminates the drudgery and error-proneness of iterators and index variables when iterating over collections and arrays.


This facility eliminates the drudgery of manual conversion between primitive types (such as int) and wrapper types (such as Integer).

Typesafe Enums

This flexible object-oriented enumerated type facility allows you to create enumerated types with arbitrary methods and fields. It provides all the benefits of the Typesafe Enum pattern ("Effective Java," Item 21) without the verbosity and the error-proneness.


This facility eliminates the need for manually boxing up argument lists into an array when invoking methods that accept var…

Fantastic Features In Net Bean IDE

I downloaded latest Net Bean IDE for my new project in University. There i can create GUI very easily. Yesterday I connect my project folder in to SVN server. Using this latest Net Bean IDE I can very easily connect to SVN server.

Java Bean

JavaBeans are classes written in the Java programming language conforming to a particular convention. They are used to encapsulate many objects into a single object (the bean), so that the bean can be passed around rather than the individual objects.The specification by Sun Microsystems defines them as "reusable software components that can be manipulated visually in a builder tool".

// public class PersonBean implements { private String name; private boolean deceased; // No-arg constructor (takes no arguments). public PersonBean() { } // Property "name" (note capitalization) readadble/writable public String getName() { return; } public void setName(String name) { = name; } // Property "deceased" // Different syntax for a boolean field …

What Is Hibernate

Hibernate is an object-relational mapping (ORM) library for the Java language, providing a framework for mapping an object-oriented domain model to a traditional relational database. Hibernate solves Object-Relational impedance mismatch problems by replacing direct persistence-related database accesses with high-level object handling functions.Hibernate is free as open source software that is distributed under the GNU Lesser General Public License.

Hibernate's primary feature is mapping from Java classes to database tables (and from Java data types to SQL data types). Hibernate also provides data query and retrieval facilities. Hibernate generates the SQL calls and relieves the developer from manual result set handling and object conversion, keeping the application portable to all SQL databases, with database portability delivered at very little performance overhead.

LINK: Interview with Gavin King, founder of HibernateHIBERNATE 

Video Transmit Using JMF

Here is One example for video transmit using JMF:

import java.awt.*;

public class VideoTransmit {

private MediaLocator locator;
private static MediaLocator ml;
private String ipAddress;
private String port;
private Processor processor = null;
private DataSink rtptransmitter = null;
private DataSource dataOutput = null;
public static CaptureDeviceInfo di = null;

public VideoTransmit(MediaLocator locator,
String ipAddress,
String port) {

this.locator = locator;
this.ipAddress = ipAddress;
this.port = port;

public synchronized String start() {
String result;
result = createProcessor();
if (result != null)
return result;

result = createTransmitter();
if (result != null) {
processor = null;
return result;


return null;


What Is NetBeans IDE


NetBeans began in 1997 as Xelfi, a student project under the guidance of the Faculty of Mathematics and Physics at Charles University in Prague. A company was later formed around the project and produced commercial versions of the NetBeans IDE until it was bought by Sun Microsystems in 1999. Sun open-sourced the NetBeans IDE in June of the following year.

NetBeans 6.0.1NetBeans 6 version support for developing IDE modules and rich client application. The New GIU Builder, Subversion Support, JBoss support, CVS support and many more features included.

Set JFreeChart data from database

Create Database and finish the configuration.

Consider this Example: link 

dataset.addValue(1.0, series1, category1);
There you set value for the chart.

while({ String test = resultset.toString(1); dataset.addValue(test, "series1", category1); }

Using database get the result set and devide that result set using while loop like this:

if there any problem regarding that, add ur comment here