Results for hot

How To Code Advanced Search In Java

December 24, 2012
In my last post, I have shown how to code for How To Find Occurrence of A Word in a String. In this post we will see how we can do an advanced Search with Java.

Say I have a string or or few names and I want to find out how many words starts with a particular pattern.

Example-

Say I have a list of names-"Animesh","Anitha","Arindam","Arijeet"
and I want to found out the count of names that starts with "Ani".

So my algorithm will be get all names in an array and check the first 3 characters of that.

 
These functions will ease the search functionality, save a lot of extra effort in terms of coding.

If it matches with "Ani"  then increment counter by one.
Well Java has come up with couple of good functions..
  • startsWith
  • endsWith 




public int startw(String String_,String Search_ ) {
String g=String_;
String str=Search_;
if(String_.startsWith(str)) {
count++;
}
return count;
}
Let me create the main method..
public static void main(String[] args) {
int val=0;
SearchinString searchinString = new SearchinString();
String[] names={"Animesh","Anitha","Arindam","Arijeet"};
String src="Ani";
for(String n:names )
{
val=searchinString.startw(n,src);

}
System.out.println(" The count "+val);
}

Lets us also do some more searching activities...Lets find out count of the names which end with "eet"


public int endw(String String_,String Search_ ) {
String g=String_;
String str=Search_;
if(String_.endsWith(str)) {
count1++;
}
return count1;
}


So the over all coding goes like-


public class SearchinString {
int count=0;
int count1=0;
public int startw(String String_,String Search_ ) {
String g=String_;
String str=Search_;
if(String_.startsWith(str)) {
count++;
}
return count;
}
public int endw(String String_,String Search_ ) {
String g=String_;
String str=Search_;
if(String_.endsWith(str)) {
count1++;
}
return count1;
}

public static void main(String[] args) {
int val=0;
int val1=0;
SearchinString searchinString = new SearchinString();
String[] names={"Animesh","Anitha","Arindam","Arijeet","Prosenjeet","Bipinjeet"};
String src="Ani";
String src1="eet";
for(String n:names )
{
val=searchinString.startw(n,src);

}
System.out.println(" The count "+val);
for(String n:names )
{
val1=searchinString.endw(n,src1);

}
System.out.println(" The count "+val1);
}
}


Now let us more customize it..
Let us take user inputs here...You can check out this tutorial how to get user input
here.

String str = null;
str = JOptionPane.showInputDialog(null, "What is your String?", "Enter your String?", JOptionPane.QUESTION_MESSAGE);

String srchstr = null;
srchstr = JOptionPane.showInputDialog(null, "What is your Search word?", "Enter your starting word to be searched?", JOptionPane.QUESTION_MESSAGE);

String srchstr1 = null;
srchstr1 = JOptionPane.showInputDialog(null, "What is your Search word?", "Enter your ending word to be searched?", JOptionPane.QUESTION_MESSAGE);

The final code goes like below ..


import javax.swing.JOptionPane;

public class SearchinString {
int count=0;
int count1=0;
public int startw(String String_,String Search_ ) {
String g=String_;
String str=Search_;
if(String_.startsWith(str)) {
count++;
}
return count;
}
public int endw(String String_,String Search_ ) {
String g=String_;
String str=Search_;
if(String_.endsWith(str)) {
count1++;
}
return count1;
}

public static void main(String[] args) {
int val=0;
int val1=0;
String str = null;
str = JOptionPane.showInputDialog(null, "What is your String?", "Enter your String?", JOptionPane.QUESTION_MESSAGE);
//String str="I am a good boy. I am a bad boy";
String srchstr = null;
srchstr = JOptionPane.showInputDialog(null, "What is your Search word?", "Enter your starting word to be searched?", JOptionPane.QUESTION_MESSAGE);

String srchstr1 = null;
srchstr1 = JOptionPane.showInputDialog(null, "What is your Search word?", "Enter your ending word to be searched?", JOptionPane.QUESTION_MESSAGE);

SearchinString searchinString = new SearchinString();
String Ori=str;
String[] splits = Ori.split(" ");


// String[] names={"Animesh","Anitha","Arindam","Arijeet","Prosenjeet","Bipinjeet"};
// String src="Ani";
//String src1="eet";
for(String n:splits )
{
val=searchinString.startw(n,srchstr);

}
System.out.println(" The count "+val);
for(String n:splits )
{
val1=searchinString.endw(n,srchstr1);

}
System.out.println(" The count "+val1);
}
}


It will empower users to get the string, the starting string and ending string . It will also find out the count of different type of search.

That it from my side. Please comment below if you likes it.:)

How To Code Advanced Search In Java How To Code Advanced Search In Java Reviewed by Animesh Chatterjee on December 24, 2012 Rating: 5

How To Find Occurrence of A Word in a String in Java

December 24, 2012
Most of the time in several discussion I have been asked this question that how to find a word inside a string.

Today I thought to write an article on how to find out a word in string.

Let us assume I have a string which is given as "I am a good boy. I am a bad boy" and I need to find the occurrence of "am"

Let me create a method that will provide me the count of "am". To make this function reusable I have taken two parameters
1. The string to be searched
2. The particular word to be searched

My algorithm is very straight
I will get the string and then split with space. This will give the words in an array. Now loop through the array to find out the particular word.if the word is found just increment the counter.




private int getCount(String str, String srchstr) {

String Ori=str;
String srt=srchstr;
int count=0;
String[] splits = Ori.split(" ");
for(int i=0 ;i<splits.length;i ) {

if(splits[i].equals(srt)) {
count ;
}
}

return count;
}

Now let me create the main function-
public static void main(String[] args) {
String str="I am a good boy. I am a bad boy";
String srchstr="am";
int val=0;
Search search = new Search();
val=search.getCount(str, srchstr);
System.out.println("The occurance of " srchstr " in the given string " val " times");
}

The main method will call the method "getCount" with specified parameters and the getCount method will provide me the results.

Now let us more customize it..
Let us take an user input here...You can check out this tutorial how to get user input
here.


String str = null;
str = JOptionPane.showInputDialog(null, "What is your String?", "Enter your String", JOptionPane.QUESTION_MESSAGE);
and What need to be searched..
String srchstr = null;
srchstr = JOptionPane.showInputDialog(null, "What is your Search word?", "Enter your word to be searched?", JOptionPane.QUESTION_MESSAGE);

This will give more power to the user to do custom search..
The full code goes like-
import javax.swing.JOptionPane;


public class Search {


public static void main(String[] args) {
String str = null;
str = JOptionPane.showInputDialog(null, "What is your String?", "Enter your String?", JOptionPane.QUESTION_MESSAGE);
//String str="I am a good boy. I am a bad boy";
String srchstr = null;
srchstr = JOptionPane.showInputDialog(null, "What is your Search word?", "Enter your word to be searched?", JOptionPane.QUESTION_MESSAGE);
//String srchstr="am";
int val=0;
Search search = new Search();
val=search.getCount(str, srchstr);
System.out.println("The occurance of " srchstr " in the given string " val " times");
}

private int getCount(String str, String srchstr) {

String Ori=str;
String srt=srchstr;
int count=0;
String[] splits = Ori.split(" ");
for(int i=0 ;i<splits.length;i ) {

if(splits[i].equals(srt)) {
count ;
}
}

return count;
}
}
You are done!!!



How To Find Occurrence of A Word in a String in Java How To Find Occurrence of A Word in a String in Java Reviewed by Animesh Chatterjee on December 24, 2012 Rating: 5

What is Circular Reference in Java

December 22, 2012
In my last post I have told already how Old Fashioned Coding Style May Help Garbage Collector to Reclaim Memory Quickly.

I have shown that how our coding style can help JVM to free up memory easily.


But Bilkis pointed out correctly about circular reference. Thanks Bilkis!!! yes you are very correct.


Setting every object to null is not correct. If proper observation is not given this may lead to circular reference.


Let us understand what is circular reference:

Circular reference is such combination of objects where one object has a reference to another and second object has a reference to the first. For this case garbage collector can not operate collection process on both the object.

The worst part of it ,if there is no external reference to either object. These object stays in the memory till program ends.

Here Class1 has a reference to Class2 and Class2 has a reference to Class1.
A call is made from Main. In this case Garbage collector program runs perfect.




Now let us cut the call from Main..
This will create a circular reference problem.
As per Wiki--
circular reference is a series of references where the last object references the first, resulting in a closed loop.A circular reference is not to be confused with the logical fallacy of a circular argument. Although a circular reference will often be unhelpful and reveal no information, such as two entries in a book index referring to each other, it is not necessarily so that a circular reference is of no use. Dictionaries, for instance, must always ultimately be a circular reference since all words in a dictionary are defined in terms of other words, but a dictionary nevertheless remains a useful reference. Sentences containing circular referents can still be meaningful;
Let me show how circular reference can be created..
This is the first class which will have a reference to second class


public class firstClass {
secondClass sc;
public firstClass() {
sc=new secondClass();
}
}
Now let us create a second class which has a reference to first class


public class secondClass {
firstClass fc;
secondClass() {
fc=new firstClass();
}
}
Now let us create the final or last class which is calling the first class..
public class CallingClass {


public static void main(String[] args) {

firstClass fc1=new firstClass();
//some code

}

}
Problem happens when we cut the connection from calling class...
public class CallingClass {


public static void main(String[] args) {

firstClass fc1=new firstClass();
//some code
fc1=null;
}
}
The last line--
fc1=null;
will create circular reference..
Be careful here.
What is Circular Reference in Java What is Circular Reference in Java Reviewed by Animesh Chatterjee on December 22, 2012 Rating: 5

How to Create Singleton,Doubleton (n ton) Class in Java??

December 11, 2012
How to Create Singleton ,Doubleton (n ton) Class in Java??

Here in this post let me explain why this n-ton class is necessary and how to implement the same.

In software engineering, the singleton pattern is a design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system. The concept is sometimes generalized to systems that operate more efficiently when only one object exists, or that restrict the instantiation to a certain number of objects. The term comes from the mathematical concept of a singleton.

There is criticism of the use of the singleton pattern, as some consider it an anti-pattern, judging that it is overused, introduces unnecessary restrictions in situations where a sole instance of a class is not actually required, and introduces global state into an application.---As per Wiki

 Now let me tell you what is the necessity of a singleton class--
  • Window managers
  • Print spoolers
  • Filesystems etc
So if you are working on the above written areas, singleton is necessary. Again say in an application you want to restrict user to create an object for twice. Then doubleton class is necessary. This way you can create n-ton class as per your requirement.



public class SingletonDemo {
private static volatile SingletonDemo instance = null;

private SingletonDemo() {       }

public static SingletonDemo getInstance() {
if (instance == null) {
synchronized (SingletonDemo .class){
if (instance == null) {
instance = new SingletonDemo ();
}
}
}
return instance;
}
}


This is as per wiki
But this approach only holds good for singleton class.If you need to implement doubleton then this code is invalid. I am going to show you some other approach by which you can create  single-double or n ton class in a single class...

class SingletonClass
{
private static int count=0;
SingletonClass() throws Exception
{  
if(count==0) 
{
System.out.println("Object Created.");
count++;
}
else throw new Exception("Singleton Class cannot have more than one Object.");
}
public static void main(String args[])
{
try{
SingletonClass s1=new SingletonClass();
SingletonClass s2=new SingletonClass();
SingletonClass s3=new SingletonClass();
}catch(Exception e)
{
System.out.println("Exception: "+e.getMessage());    
}
}
}


In this approach if you want to create n-ton class then

if(count==0)
{
System.out.println("Object Created.");
count++;
}
This is code is the driver.
for singleton-count will be 0 but for double tone the code will be
if(count<=1)
 {
 System.out.println("Object Created.");
count++;
}  

and so on ...
so for a n-ton class the code will be--
if(count<=n)
{
System.out.println("Object Created.");
count++;
}  
You are done!!!.
Let me know if you like this concept.
Author Description:
Parvez Iqbal is a Software Engineer.
He has written series of Javacode to automate applications.
and He is a regular guest blogger of AskQTP.
How to Create Singleton,Doubleton (n ton) Class in Java?? How to Create Singleton,Doubleton (n ton) Class in Java?? Reviewed by Animesh Chatterjee on December 11, 2012 Rating: 5

IBM,Oracle and Infosys Offers Six Elective Courses for Upcoming Engineers

September 26, 2012
Most of passed out engineers like me feels that they are good at core skills and programming languages but lack of communication skills. Yeah true ...most of us having this problem. Another set of students have different problem like they passed out engineering but lacks of industry experience.

I know that most of students (I must say engineers) who do not secure position though campus placement  go to private training institutes to learn more on an industry needed subjects.It helps them to become at per industry ready or you can say these training becomes handy o join IT industry.

Now there is a good news for all engineering students. IBM,Oracle and Infosys Offers Six Elective Courses for Upcoming Engineers. These are elective papers and for enthusiastic engineers who want to venture more.




CompanyCourses
IBM-
  • DB2
  • RAD
  • Tivoli
  • Cloud Computing
Oracle-
  • Oracle inventory
  • Oracle advanced
Infosys-
  • Business communication skills


However these courses are not offered to all the students but based on need.lets see when these are available in all colleges,but surely this initiative helps booming engineers at per industry need.
Cheers!!!
Image Credit:onlinelearningtips.com
IBM,Oracle and Infosys Offers Six Elective Courses for Upcoming Engineers IBM,Oracle and Infosys Offers Six Elective Courses for Upcoming Engineers Reviewed by Animesh Chatterjee on September 26, 2012 Rating: 5

How to Create User in Oracle Database?

September 25, 2012
How to Create User in Oracle Database?

In a multiusers base database ,it is necessary to create users who can access a database to certain part or whole. This is necessary from security point of view.

Now we can divide the security into two groups
  1. System security--deals with access and operational level
  2. Data security--deals with use of database.
Now let us see how a user can be created in a database-
The syntax is--


Create user 'user_name' identified by 'password';



well let's see in practical...



 Here I have created an user with username as 'xxxx'...this user's password will be 'yyyy'
Simple huh!!!!

image credit: http://webindiasolutions.com/blog/wp-content/uploads/2011/11/3D_Data_Base.jpg
How to Create User in Oracle Database? How to Create User in Oracle Database? Reviewed by Animesh Chatterjee on September 25, 2012 Rating: 5

Final Modifier Simplified in Java

June 23, 2012




Final Modifier in Java:
final is a modifier in Java. The meaning changes from context to context. The final modifier can be used before a class, method, argument, blank field or variable. And its definition changes for each of them. It is available for the below reasons:

  1. Efficiency
  2. Design
  3. Optimization

A filed can be of both static and final. It means that it has only one piece of storage that can not be changed. Final variables act like a class variable and they do not take any space on individual objects of the class.
Impact of the final keyword on the variable:
If final is used before a variable, then the value of that variable will act as a constant and thus, cannot be changed. A final data is a constant in java. Using final keyword the code convey the message to the compiler that

  1. It may be a compile-time constant that can not be changed.
  2. It may be a value initialized at runtime that we do not want to change.
In case of compile-time constant, the compiler may fold the constant value to any of the calculation where it is used. That means the calculation may be performed during compile time instead of run time which eliminates the overhead during runtime.
The constant must be primitive and are expressed using the final keyword. A value must be given at the time of definition of such constant.
Below is the example of compile-time constant:

final int PIE=3.14;
final double BONUS=.56;
Below is the example of the runtime constant:

final int SLEEPVALUE=(int)(Math.random()*60);
 

abstract class Shape{
    final static int SIZE=20;
    public void display()
    {
        System.out.println("Display method of Shape");
    }
    }

public class Rectangle extends Shape{

     public static void main(String []args){
         Rectangle obj=new Rectangle();
         obj.display();
        // obj.SIZE=30;
        System.out.println(SIZE);
        
     }
     
}
 
The output of the code:
$javac Rectangle.java
$java -Xmx128M -Xms16M Rectangle
Display method of Shape
20
Now if we omit the lines of the redefinition of SIZE

abstract class Shape{
    final static int SIZE=20;
    public void display()
    {
        System.out.println("Display method of Shape");
    }
    }

public class Rectangle extends Shape{

     public static void main(String []args){
         Rectangle obj=new Rectangle();
         obj.display();
        obj.SIZE=30;
        System.out.println(SIZE);
        
     }
     
}
 
The output of the code:
$javac Rectangle.java
Rectangle.java:14: error: cannot assign a value to final variable SIZE
obj.SIZE=30;
       ^
1 error

Impact of the final keyword on the Class:
If the final is used before a class, then that class cannot be sub-classed. we generally do not use final class but for security reason sometimes, we create the class as final. So nobody can subclass it and can change the methods of how they work. Like-String class. So we can not inherit the class.putting an entire class is final means that we don't want to inherit from this class or allow anyone else to do so. This is done if the class does not need any change.Defining the class as final simply prevents inheritance.So in other words final prevents a class being further sub classes for security reason.Any such attempt will cause compile time error.

class abc{}
final class xyz{
int i=10;
int j=20;
abc x=new abc();
void mno()
{
}
}
// not possible as xyz class is final class
class AnyClass extends xyz{}
public class MyClass{
public static void main(String args[])
{
xyz newClass=new xyz();
newClass.mno();
newClass.i=40;
newClass.j=60;
}
}
 
Impact of the final keyword on the Methods:
If the final is used before a method, then that method cannot be overridden. In this case, nobody can redefine the method. like-println().The same rule applies to final data members irrespective of the class is defined as final. Making a method final serves two important purposes.. they are as follows:

  1. It simply put a lock on the method to prevent any inheriting class from changing its meaning. Mostly we use this as design phase.It implies that the behavior of the method is retained.In other words,final methods are not overridden. Any private method of a class is implicitly final as we can not access a private method,hence they can not be overridden. However adding final modifier to a private method does not make sense as both they do the same thing.
  2.  The second reason is efficiency. It allows the compiler to turn any method call to in line calls. (when the compiler sees method call mechanism that is to push arguments on the stack,hop over the to the method code,execute it,hop back ,clean off the stack arguments and deal with the return values,it simply replaces the method call with a copy of the method code that reduces the execution overhead and increases efficiency.However if the method body is too big , this mechanism may not hold good and may not give improvement)

Defining the class as final simply prevents inheritance.This means that all methods in a final class are implicitly final.(There is no way to override them).

Impact of final on method argument:
Java allows us to make arguments final by declaring them as such in the argument list. Final argument means inside the method , we can not change what the argument handle points to.

class MyClass{
public void doSomething(){}
}
public class FinalArgumentTest{
void withFinal(final MyClass mc)
{
//mc=new MyClass();//not possible as mc is final
mc.doSomething();
}
void withoutFinal(MyClass mc)
{
mc=new MyClass();//possible as mc is not final
mc.doSomething();
}
public static void main(String args[])
{
FinalArgumentTest fat=new FinalArgumentTest();
fat.withFinal(null);
fat.withoutFinal(null);
}
}
 
We can pass or assign a null handle to an argument without compilation issue for final and non final arguments.
Impact of final on fields:
Java allows us to create final blank fields. They are not given any initialization values but we need to initialize them before we use them.Blank fields provides flexibility like a final filed inside a class can now be different for each object and yet still retains its immutable quality.

public class BlankFinalTest{
final int i=0; //initialized final
final int j; //blank final
final MyClass mc; //blank final handle
//blank final must be initialized in the constructor
BlankFinalTest()
{
    j=1; //initialized the blank field
    mc=new MyClass();
}
BlankFinalTest(int x)
{
    j=x; //initialized the blank field
     mc=new MyClass();
}
     public static void main(String []args){
        BlankFinalTest bft=new BlankFinalTest();
        
     }
     
}
class MyClass{}
 
The assignment to final either with an expression at the point of definition of the field or in every constructor.
Impact of final on objects:
When using final with object handles rather than primitives,the final makes the value constant but with an object handle,final makes the handle constant.The handle must be initialized to an object at the point of decleration and handle can never changed to any other object.

final object; //handle constant needs to be initialized.
 
Compiler has the same efficiency when we make a class or method final. But as a coder we don't know when and how the final class and method will be used. We have to be very careful before making any class or method as final. Specially for general purpose reusable class and methods.
Final Modifier Simplified in Java Final Modifier Simplified in Java Reviewed by Devopriya on June 23, 2012 Rating: 5

How to Run Java Program Without Main Function??

June 18, 2012
Hi Animesh ,
I was asked the question in my semester -"How to Run Java Program Without Main Function??" In a leading book it is said yes and they gave explanation...I did not understand the concept.
Can you please tell me why?
Regards,
Sunita

Hi Sunita,
Thank you very much for writing to me .Yes Surely we can run a Java Program without main method.
How::
In Java, a static initializer gets executed as soon as the class is
loaded, even before the main method is called!!!.

So if we create a static block  and give some command inside it. It will execute.The JVM finds and loads the class into memory when you run this code,the static initializer is executed during the loading and
initialization of the class.
But my suggestion is do not use this feature while developing your application. And even if you use this feature please make sure to incorporate
System.exit(0); After your code
System.exit(0) is called at the end of the static block to terminates the program. If not, then the JVM would have next used reflection on that class to find the main() method. If it does not find the main method, it throws an exception. if we don't write main() in the program then the compiler doesn't know
where to start the program..

public class WithoutMain {
static {
System.out.println( "Hello World" );
System.exit(0);
}
}

I have taken help from http://www.xyzws.com/Javafaq/can-a-java-application-run-without-a-main-method/63
How to Run Java Program Without Main Function?? How to Run Java Program Without Main Function?? Reviewed by Animesh Chatterjee on June 18, 2012 Rating: 5

Facebook a Necessary Tool For Our Society Today

May 16, 2012
After Orkut , It is the Facebook which is a popular and powerful social networking system. The trend Google started through orkut, Facebook took it forward. Once upon a time people use to get surprise by the number of scarps and friends one had. The definition of  popularity  has changed a bit in Facebook. The popularity is judged by the number of friends,status update and most importantly like and comments here in Facebook.The funda of scarps reformed itself here by status update,comments and likes. The simple aspects of a simple social networking system has changed our life dramatically.

When I was in hostel living with my friends , I saw that they were putting alarm for 4O'Clock in the morning so that his paddy fields remained safe.Few busy in sending friend request so that they could manage more friend in terms of mafia or neighbor.Somebody wanted paddy field,somebody wanted energy packet or somebody wanted more mafia to earn more.Off cource I agree that I also a part of such nice applications for almost one year.I used to carry a separate wireless network adapter to connect internet from even a Cab!! Crazy ideas!!!!

I read few articles that people went mad for not using Facebook,students spent number of valuable hours on Facebook, mates quarreled for accessing computer for the apps. Even some great doctor came up with some disease called - Facebook Addiction Disorder.

When Facebook started, It was simple . The idea was Connect known friends who might have lost our touch in our fast pace life. But introduction of games ,events,apps,timelines It became heavily attractive and a useful tool for everybody.

The concept of grouping helps us to explore more about our nature.Apart from dedicated photo forums Facebook really acts as a solid forum for enthusiastic photographer. Photo and media industry are also nursed by the Facebook now. A carefully created album of a photographer or any media personal becomes his/her credibility report behind camera . It helps us o share best moments. It saves a lot of rupees while creating a portfolio of  a company. Apart from the jury the world can see a fantastic work by the media person and justify the same.

Facebook is a solid friend for bloggers/site owners. Google/yahoo/bing are not the only traffic source to your beloved blog/site. Facebook has the power to send tons of traffic before the page is indexed by the crawlers. A quick response is also seen.The link sharing feature is best in terms of getting traffic and comments.

Smartphones with Facebook app pre installed made our life easier. A dedicated one touch button can land you to Facebook. It is a tool at this point of time. It can be an alarm clock. Makes you wake up at right time. Reminds you for your friends birthday,provides necessary email id or phone number.Also provide info about marriage anniversary date. The digital diary or notebook or excel for remind these are really an old idea!!. So surprisingly from china made smartphone to high end mobile,everybody made the USP as "Facebook Integrated". The smart phone selling has gone up in a heavy pace. Yes surely, for this one of the factor is Facebook.

In my view, Facebook has become an economic reformer. Sounds crazy!!??
Yes Internet penetration has gone up to 15% this year for India.From a highly educated person to old aged person,to ministers to college students even for kids ,everybody is a proud member of Facebook. Most introvert person can change status and venture his/her voice. Most of they spend significant amount of time on Facebook.Again any news ,cartoon , status update spread faster than traditional newspaper or television. Most of the techie depends on Facebook for current news.

Job market which was very much dependent on few websites is now wide open. As Facebook is more larger audience , any job news are now spread very quickly. A couple of clicks -(like/share) spread the news like fire. More and more referral drives are the sign of changing job market.

Facebook has contributed to your very personal life as well.The traditional matrimony sites are forced to accept the Facebook profile link.
Partners can judge others by status update, specially photos,albums, the liking/disliking and the group one belong to.It made people inside out.Friendship to relationship to partnership , Facebook is present everywhere.

One more aspect of Facebook could be the advertisement power. If you are a small business owner want to sale or an educational institute want to showcase themselves , an organization organizing something for mass, Facebook has an answer for you with tons of traffic with tons of likes.

With these aspect I do believe Facebook has changed our life in a very positive way. Just we need to learn how to use this powerful tool. Using this in a correct way may give us so many beautiful moments otherwise results to Facebook addiction disorder.
Over to you..let me know what do you think on this..
Image credit:
http://lush360.wordpress.com/
https://www.facebook.com/
http://technorati.com/
http://www.techinasia.com/



Facebook a Necessary Tool For Our Society Today Facebook a Necessary Tool For Our Society Today Reviewed by Animesh Chatterjee on May 16, 2012 Rating: 5

Difference Between Oracle’s Openscript and HP’s QTP

May 10, 2012
The leading functional testing tools which are raising today’s market are Oracle’ Openscript and HP’s QTP. In this post I tried to make quick comparison between them.
Topic OATS-pic
What is it? Functional regression and load testing tool Functional regression testing tool
Supports Compatibility Testing and Reliability Testing. Compatibility Testing and Reliability Testing.
Transaction point Inserting transaction point is inbuilt Can be inserted programmatically
OS Support Supports different operating Windows/Linux Supports windows Operating system No Linux support till date
Reporting Structure inbuilt XML based reporting HTML reporting can be done  through  programmatically inbuilt XML based reporting HTML reporting can be done  through  programmatically
Application type Standalone but has inbuilt database Standalone but does not have  inbuilt database
Saving structure XML and folder structure Normal file structure
Underlying technology  Eclipse and java .net technology VC++,.net
Version history
Major releases
9.0 in 2010
9.1 in 2011
9.2 in 2011
9.3 in 2012
5.6 in 2002
6.5 in 2003
8.0 in 2004
8.2, 8.3 in 2005
9.0, 9.1 in 2006
9.2 in 2007
9.5 in 2008
10.00 in 2009
11.00 in 2010
Application Supports GUI-Graphical User Interface
Web,
Oracle Forms
Oracle Fusion Application
Siebel
Adobe Flex
ADF

CUI-Command Line interface
GUI-Graphical User Interface
Web,
Activex,
Standard Windows
Visual Basic

Also supports by adding add ins
Java
SAP for GUI
SAP for Web
.NET for windows forms
.NET for Web forms
Delphi
Power Builder
Siebel
People soft
Oracle
Small talk
Web services
TE (Terminal Emulator, It is for  Main Frame Applications)
Stingray
WPF (Windows Presentation Foundation)
Silver Light (recently added, available in QTP 11.00 version only)


License can be found here
http://www.oracle.com/technetwork/licenses/standard-license-152015.html
Seat or Node Locked
Concurrent or Float
IDE and feature Direct-Record,play,Browser selection,recorder configuration,Checkpoints,Break point
Integrated tools:
Create support package
Data migration tool
Database configuration
Load testing agent authentication
Direct-
Reording,play Object Repository, Spying,checkpoints,output values,Step generator
Integrated tools:
Test Bach Runner, Password encoder, Test Results deletion tool
SQL Engine for database operation
VBSripting engine
MS Script Debugger
Browser supported Mainly Internet Explorer
Currently It is also supporting Mozilla
Internet Explorer
Firefox
Netscape
Chrome
I found these are quick difference. Let me know if you find more.



Technorati Tags: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Windows Live Tags: Difference,Oracle,Openscript,tools,comparison,Topic,Functional,regression,tool,Supports,Transaction,Support,Linux,system,Structure,HTML,Application,database,folder,Normal,technology,Eclipse,Version,history,Major,Graphical,User,Interface,Fusion,Siebel,Adobe,Flex,Command,Line,Activex,Standard,Visual,Basic,Also,Java,Delphi,Power,Builder,People,Small,services,Terminal,Emulator,Main,Frame,Stingray,Presentation,Foundation,Silver,License,Seat,Node,Concurrent,Float,Direct,Record,Browser,selection,configuration,Checkpoints,Break,Create,Data,migration,Load,agent,authentication,Object,Repository,output,Step,generator,Test,Bach,Runner,Password,Results,deletion,Engine,operation,Script,Debugger,Internet,Explorer,Firefox,Netscape,Chrome
WordPress Tags: Difference,Oracle,Openscript,tools,comparison,Topic,Functional,regression,tool,Supports,Transaction,Support,Linux,system,Structure,HTML,Application,database,folder,Normal,technology,Eclipse,Version,history,Major,Graphical,User,Interface,Fusion,Siebel,Adobe,Flex,Command,Line,Activex,Standard,Visual,Basic,Also,Java,Delphi,Power,Builder,People,Small,services,Terminal,Emulator,Main,Frame,Stingray,Presentation,Foundation,Silver,License,Seat,Node,Concurrent,Float,Direct,Record,Browser,selection,configuration,Checkpoints,Break,Create,Data,migration,Load,agent,authentication,Object,Repository,output,Step,generator,Test,Bach,Runner,Password,Results,deletion,Engine,operation,Script,Debugger,Internet,Explorer,Firefox,Netscape,Chrome
Blogger Labels: Difference,Oracle,Openscript,tools,comparison,Topic,Functional,regression,tool,Supports,Transaction,Support,Linux,system,Structure,HTML,Application,database,folder,Normal,technology,Eclipse,Version,history,Major,Graphical,User,Interface,Fusion,Siebel,Adobe,Flex,Command,Line,Activex,Standard,Visual,Basic,Also,Java,Delphi,Power,Builder,People,Small,services,Terminal,Emulator,Main,Frame,Stingray,Presentation,Foundation,Silver,License,Seat,Node,Concurrent,Float,Direct,Record,Browser,selection,configuration,Checkpoints,Break,Create,Data,migration,Load,agent,authentication,Object,Repository,output,Step,generator,Test,Bach,Runner,Password,Results,deletion,Engine,operation,Script,Debugger,Internet,Explorer,Firefox,Netscape,Chrome
Difference Between Oracle’s Openscript and HP’s QTP Difference Between Oracle’s Openscript and HP’s QTP Reviewed by Animesh Chatterjee on May 10, 2012 Rating: 5
Powered by Blogger.