:::: MENU ::::

Saturday, January 25, 2014

Friday, January 24, 2014

Amith Kumar holds Engineering degree in Computer Science from Anna University.

He is a Java Dev, Open Source Contributor,Web App and Big data Enthusiast and above all a lazy guy.

facebook https://www.facebook.com/mkamithkumar
twitter https://twitter.com/Im_Amith

Since mentioned as an open source contributor, some of his contributions include TNEA Explorer a helper website for Tamil Nadu Engineering Admission.

He is good at Java, and does his hobbies in php, python, html and javascript.

Being a lazy guy , I always find difficult to wish birthday in face book. I have considerably good number of friends, and some days the birthday list will be huge. I thought to create a bookmarklet so that I can become even more lazier.

If you are one who love to experiment new things or If you are lazier like me or even more lazier then, simply drag the following link to your Bookmarks toolbar:

>>>>>>>>>>> One Click Facebook Birthday Wisher <<<<<<<<<<<

1.creating web service:

1.1 Open netbeans -->file --> new project--> in java web select “web application “-->give project name as “markwebservice” -->select server as “apache tomcat” -->finish
1.2 In the project window(if project window is no there in the right side, select the window from menu bar and click projects) right click the project we created just now (markwebservice) -->new--> web service -->give Web Service Name as (markwebservice) and give package as ( webservice.markwebservice) --> finish
1.3 Now go to the project window , in the markwebservice project (project we created just now) expand the folder Web Services and right click the markwebservice file and select add operation -->now give name as total , Return Type as int , and add the subjects(wt,pcd,nm) with int data type --> ok
1.4 Now the “markwebservice.java” file will look like shown below
Now change “return 0;” to “return (wt+pcd+nm);
Note: wt,pcd,nm are the subject name you given in step 1.3
1.5 Right click markwebservice project -->properties-->run-->In the Relative URL field type “/MarkWS?Tester”-->ok
Now your web service is created..!!!!

2. Adding Java Client to Web Service

2.1 File-->new project-->in java select “java application”-->give the project name as “markjavaclient”-->finish
2.2 Right Click the project “markjavaclinet”-->new-->WebServiceClient--> in the pop up window browse the project “markwebservice” expand it and select “markwebservice”-->ok. Type the package name as” webservice.markwebservice” as given in Step 1 --> finish
2.3 Right click “markjavaclient” source code -->insert code-->Call Web Service Operation-->now expand markjavaclient until we reach total -->ok
2.4 Now the file will look as shown below
Make changes as shown below
2.5 Right click markjavaclient project and run to get desired output..!!!!

                                      There are many reasons people are hesitant to try Linux. The biggest of these reasons is that installing Linux generally requires people to do a list of difficult and unfamiliar tasks. However, I am going to introduce “virtualization” which is a fancy term for running Linux like any other program in Windows. The following article will guide you through the process of setting up Linux so you can run it like any other program in Windows. Don’t be intimated, these directions are designed for the absolute beginner and will not require you to do anything unfamiliar, threatening, or permanent to your computer. When you are finished you will be able to run Linux like any other program in Windows and share files between Linux and Windows
  • Download VM ware player from its home site freely.
  • You need to register in the site https://www.vmware.com/account/customerRegistration.do?
  • After registration a confirmatory mail will be send to tour mail id.
  • Now login to the site with username and password.
  • Now start downloading and the size is near to 90 MB.
  • After downloading start installing it in your P.C.
  • Download Linux from its home page.
  • It will be an “iso” file.
  • Save it on your P.C.
  • Now VMware has to communicate with Linux.
  • For that you have to download an “OS.zip” file from http://web.archive.org/web/20070706060253/http://linux.wolphination.com/data/OS.zip
  • After downloading the OS.zip file just extract it in any drive for e.g. C-Drive.
  • It will be having two folders namely “OS.vmdk” and “OS.vmx”.
  • Copy the Linux “.iso” file to the OS folder.
  • Now the OS folder will be as shown below:

  • ·         Right click OS.vmx and open it with notepad.
  • ·         Just make changes as shown below:

  •   Line 3: memsize = "512 " This represents the amount of RAM you want to dedicate to running your virtual machine. I would recommend leaving at least 128 MB to run Windows XP. On a system with 1GB of RAM I think the default of 512 will work just fine. 

      Line 9: ide1:0.fileName = """c:\image.iso" This represents the location of your disk image for the virtual machine. You want to change this line to represent the location of the Ubuntu disk image. Change this line to read as follows: ide1:0.fileName = "C:\OS\Ubuntu-6.10-desktop-i386.iso" .You can specify the name of linux ".iso" for e.g. "Drive:\OS\LInux os name.iso".

                           Now when you click OS.vmx, VMware Player will launch and will prompt you to create a new identifier. This dialog is shown below. Choose " Create " and VMware start booting linux.

  Congratulations, you can now run Linux like any other program in Windows! In order to create a shortcut to put on your desktop, right click OS.VMX and choose Create Shortcut. Drag the shortcut to your desktop (or the location of your choice) and Linux will launch when you click it.