How to start Apache Axis2 Standalone Server

Axis2 is distributed in several convenient distribution packages but we’ll be taking of Apache Axis2 here as a standalone server.  Reason: you won’t need any WebServers like Apache Tomcat or Glassfish etc.

Requirement:


  •   Bin Distribution packages of the Apache Axis2.
  •  Java Development Kit (JDK). [Compatibility check with  experiment.           start with JDK 1.6.27]
  •  Tested on Windows 7 Operating System.

 Steps:

  •  Download the Apache Axis 2 bin distribution and unzip to the location of  your choice.
  •  Install your JDK kit.
  • Add the paths of Java JDK and Apache Axis2 to the path in Environment Variable as shown  in below screenshot.

      

  • Add the bin locations of the tools to the path folder. 



  •        Now go to command prompt and select till axis2 bin folder.
  •      Run axis2server.bat
  •      Verify that below should be coming in the output:







Troubleshoot:



In case your output after running axis2server.bat is like below only:





It means that there is a compatibility issue between axis2 and java version. Then try changing the java version. You might have to experiment multiple times with different java versions to make it work.

Leave your valuable comments for any new findings.

  Cheers !!.

Most Inspirational Speech

This is one of the most inspiring speech, you will ever come across. He is talking about such a basic thing and we are so shameful that we have turn a blind eye to what is happening. 

Where are we heading to exactly? May be to our doom. He is not asking much. Or rather, he is asking nothing. He is asking us to save ourselves from the time bomb which is ticking on our head and it's ticking pretty fast.

He is talking about urbanization, agriculture, farmer suicides to non-returning NRIs, plastic waste to depleting water levels. 

We need to make sure that our future generations see a better world, better life and a better tomorrow with clean food, water and air. Listen to him please.

And we need to take some serious steps to protect our future, our environment, otherwise our end is near.



Wake up before it's late.





Developing Your First Android Application with IntelliJ IDEA on Ubuntu

Developing Your First Android Application with IntelliJ IDEA on Ubuntu
Developing Your First Android Application with IntelliJ IDEA on Ubuntu
If you are a programmer or have just started learning programming and you are loving the Smart-phone technology, then you would definitely love Android Programming as Android is the Future of Mobile Technology. If you know Java than things will be lot easier to learn. Although people with knowledge of other Programming languages can also learn it easily. You just need to enjoy it, because Programming is Fun and to create something makes us feel great, no matter what it is and Android makes it more beautiful.

So lets start with developing a basic android application with IntelliJ IDEA  which is an official Android IDE. Most of the tutorials on Internet are about using the Eclipse IDE, but IDEA is better in terms of performance as Eclipse really slows down the system. But an IDE should not be a constraint for you for developing the application. So if you enjoy working on Eclipse, you keep going with it. But try to work on IDEA also, you can feel the difference.

Let start with developing our first application on Ubuntu, but before that we need to set up the environment for application development. Two basic platforms required for starting Android Application Development are:

1. Java SDK:       You can get it Here
2. Android SDK: You can get it Here

Follow the required installation instructions to get the system ready for Android Development. You can skip the Eclipse ADT plug-in part as we are Using a Different IDE. Once you are done with the Required platform setup, you need to install the IntelliJ IDEA IDE which you can get it Here. Since we are working on Ubuntu, you need to get the Linux version of the IDE. Download and Extract the requited gz file and then inside the bin folder, run the idea.sh file to start the application. You should see the page like this:

Click on Create New Project and the following should be displayed.


Click Next and you should see below Screen. Enter the Project Name as shown
 and Select Module Type as Android.

  

Click Next and you should see below screen and by default create Source directory radio button should be selected. Leave it as it is. You src directory will contain files related to the application source.


Click Next and you should see below screen or before that you could one more screen where the application will ask for JAVA SDK path. Select that path and after that you have to select path for the Android SDK path which you can see in the top in below screenshot.


You should be prompted to select the SDK path as shown below:


Also in the previous screen-shot you can see the option for selecting the Target device where you will run your application.  We will be using the Emulator to run our application. So we will create a Virtual Device to run the application. A Virtual device is same as Physical device and it will show us the behavior of the application on the physical device. Select Emulator and click on Prefer virtual Device selection box to create the Virtual Device. You should see screen like below:


Give your virtual device a name and target platform for which you are simulating the behavior. After adding the details Click Create AVD and then you can choose the created Virtual Device in the Emulator option and then click Finish. You just created your first Android Project. :). 

Under Project Explorer, you can see the Project just created. And Click under src directory, you could see that the package created has the activity file created automatically, which is the main file for your application. 


Click the Green arrow button on the top to run your application. The IDE will launch the virtual Device and will run your application and the output should look like below.



Your first Android Application is ready!!









Why We Should Thank Google

Why We Should Thank Google

Google has changed the way we search things. Now even for physical things we expect Google to search them for us. Like, If we loose keys, sleepers, clothes we ask ourselves why can't i Google it. From the time Google presence is known, its is evolving a lot faster and helping us evolve too. If Google is growing then it is helping others grow too, whether its affiliates program for earning or things related to learning, Google has always come forward in the best way it can.Can you image the situation if Google Search had been paid and you are paying them for every search they are making for you?

I believe Internet Would not have been so much fun or a knowledge repository as it is now. Before you get indebted completely to Google I would like to delineate it with some solid reasons which i hope you too would agree.

1) As of now, Google Free Translate Service can translate in 64 languages. It means your thoughts on Internet can reach to the remotest person in this Universe who has no Idea about your language, or you can put your thoughts on the net in your language and let Google take care of the travel part in any language people want to read it.

2) Google AdWords and Ad-Sense etc. kind of affiliate programs are making Millionaires out of kids in the Garage and they don't have any kind restriction on anyone, and so who ever has told you that you can't be anything in life and you are good for nothing, let your skill speak openly and if they are good, people will reach you eventually and you can make dream life out of it.

3) Every Year Google organizes Coding Competitions where minds from all over the world participate win lots of Cash Prizes. Google is helping programmers to create and innovate and and also contributing to Open Source Development at the same time.

4) Google started the whole Social Networking thing with Orkut. Although we are into Facebook world today but there was a time when Orkut was a way to meet our old lost friends and get to know the new ones.

5) Google books or Google Digital Library is another innovative concept where Idea is to Index the book contents and so that people can find the relevant books and can determine the usefulness by citations from other books. Also Google Docs and Spreadsheets are there to share you knowledge and can be accessed from any where.What else do you want..

6) With Google Maps and tools like Google Earth you can never be lost. They have data for almost every place in this world and even if you are alone in this world roaming around, you don't need much guidance to search a place because the maps are self explanatory. Also Google Earth has installed satellites which help in recovery effort for areas impacted with natural calamities like earthquakes etc. which indeed is a great help.

7) Google along with other companies started Open Handset Alliance which shares a common goal of fostering innovation on mobile devices and from that day Android has changed the Mobile Market completely and today it is giving tough competition to Apple and being and Open Source, pulling the shares slowly towards itself. Also the end user is getting the best smart-phone technology at a genuine cost.

8) Google is also investing billions in Green Energy Projects showing their concern towards greener and cleaner environment.
You might argue with many things and your opinions may be different but the way Google took everything forward with Innovation and creativity and putting effort in taking Genuine things up is commendable.
And that is just an overview what Google has given to this world. You can call it a Business or whatever you want but i would love to be a part of such Business where life is Fun and i would like to thank Google for everything they have done and hopefully will continue to do in more years to come.

Open Source: Human Knowledge is for the World


Unix,Linux,Red Hat:
Sounds like a very familiar term. Is it ? Heard about it in magazines, news and from people ? People say, I don't see and real significance of this word in my area. Well, it might mean nothing to us, but it means everything for people who are working day and night making software's to help the Open Source Community, so that the monopoly of Proprietary software can end.


So what exactly is Open Source: To understand in a layman's term, Lets understand this with a Simple example:

You have a bike or a Car and after few days you got some technical problem and the bike broke down. Now the problem is that spare parts required to repair the bike are only available with One Service Center and your bike can be repaired at that place only. You are suppose to take your bike at any service center as per your choice and get it repaired there. But the manufacturer is not giving the spare part to any other service center and hence no one can repair it. And now they can charge you what ever they like , since they are the owners of that spare part. Ain't that bad? Its a monopoly by force. How would you feel ? You want the spare part to be available to all and any person or service center can use it and repair your Vehicle.

And in software terms, its like giving the Source code along with the software that a organization is selling to the client. A bit weird for you, no? I mean, you can argue that why would someone will share it recipe along with the dish. But the Open Source Community believes that it should be shared because, you are not alone the owner of this recipe. Its an idea created by millions of software developers, which an organization use for its own business and earn from it and the real developer gets only small percent of share in the name of Salary or remuneration. They need to be given their due equally and that's why Open Source believes the Source needs to be shared.

We can take a note here that Open Source doesn't mean its free. As the saying goes: "There is Nothing Called Free Lunch". And Open Source supports it properly. You can charge whatever you want and if your stuff is good, people will pay it , but you are suppose to share the code also as if i want to upgrade it future, you can have someone else to do it or you can go back to them,if they are best in it.


And that's what organizations, which believe in Open Source Concept, do. They make a Software, either they put it for free or lets say they sell it to you or some other organization at some cost(cost of making a software for your organization) and they also give you the source code along with it , so that you can change it or enhance it or you can give it to some other vendor to enhance it , who you might fell can do better customization. So its a win-win for all. You are getting better stuff and you are free to getting it done by any Vendor whom you feel is competent enough to give you a better quality software. You can get it repaired your self also and you need not to be dependent upon the same vendor to repair it for you who are only waiting for such situation to arise.

I hope it clear it. Let me know your comments on the same.

Kill Android SDK Manager Process in Linux

Android SDK Manager is required to download the tools for the Android Application development. And its been observe that it gets hanged and even if you try to close it from GUI , you won't be able to close it. Doing the CTRL+ALT+DEL can come to the rescue but in virtual machine its not the solution. The best way for such situations is to kill the process.


And you just need to type:  kill <process id>
To know the 'Process Id', we need to know the processes which are currently running and for that we type:
                                                   ps -e

To see more details of the processes, we can use another command:
                                   ps -aux | more
Now we need to know the process id of the android sdk manager and to know that, you need to type:
                               ps -aux | grep 'android'
And it will give you the complete output which would look something like this:
pc 2424 0.4 2.6 469844 54700 ? Sl Jun16 2:52 java -Xmx256M - Dcom.android.sdkmanager.toolsdir=/home/pc/Documents/android-sdk-linux/tools -cla sspath /home/pc/Documents/android-sdk-linux/tools/lib/sdkmanager.jar:/home/pc/Do cuments/android-sdk-linux/tools/lib/swtmenubar.jar:/home/pc/Documents/android-sd k-linux/tools/lib/x86/swt.jar com.android.sdkmanager.Main root 3290 0.0 0.0 0 0 ? S 09:41 0:01 [kworker/0:3]
So here you can see the process id which is: 2424.
Note: If you try to find the process is using:
                                        ps -e | grep 'android'
You won't be able to see the output because the ps -e command doesn't have the full name.But to find the process with this command you need to type:
                                   ps -e | grep 'java'
It will give the same process id which is same as the process id returned by running the command: ps -aux | grep 'android'. So just verify the id for both processes for confirmation and go ahead..


Now, to kill the process, type in Terminal:
                                     kill 2424
If it doesn't kill the process as it might be used somewhere or by another resource, we need to kill it forcefully. So in that case we type:
                                   kill -9 2424
And we are good to go. Please change the process id as it will be different for your case. And Bingo, the process is gone. You can do the same for other processes also which are bothering you and are not going away.
Hope it helps.