Friday, January 24, 2014

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:

1.1 Open netbeans -->file --> new project--> in javaweb select “web application “-->give project name as “markwebservice” -->select server as “apache tomcat” -->finish1.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) --> finish1.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 --> ok1.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.31.5 Right click markwebservice project -->properties-->run-->In the Relative URL field type “/MarkWS?Tester”-->okNow 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”-->finish2.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 --> finish2.3 Right click “markjavaclient” source code -->insert code-->Call Web Service Operation-->now expand markjavaclient until we reach total -->ok2.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

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.

8. Navigate to and select the imageres.dll file copy on your desktop, and click on Open. (see screenshot below)

9. In the left pane of Resource Hacker, expand WAVE, and 5080, to 1033. (see screenshot below)

NOTE: If 5080 and 1033 is named something else, then that is fine as long as they are still under WAVE. Just substitute what you have instead in the steps below. You can click on the Play WAVE button to hear what the current startup sound is.

10. Right click on 1033 and click on Replace Resource. (see screenshot below)

11. Click on Open file with new resource. (see screenshot below)

12. Navigate to and select the .wav file that you want for the startup sound, and click on Open. (see screenshot below)

NOTE:This .wav file must be unblocked and remain at this same location. For example, move or copy the .wav into the C:\Windows\Media. If you move or delete this .wav file, the startup sound will no longer play it.

20. Make note of what the drive letter is for your Windows 7 partition or drive. (see screenshot below step 22)NOTE:For example, mine is listed as D here. Look at the volume name and size to help you determine which letter is the one that you have Windows 7 installed on.

22. In the command prompt, type the command below and press enter. (see screenshot below)NOTE:Substitute D in the command below with the drive letter you have listed in step 20 for your Windows 7, and substitute username in the command below with your user account name.

Wednesday, April 27, 2011

1.1 Open Visual Basic 6-->Click Project in the MenuBar-->Components-->Microsoft ADO Control 6.0(OLEDB)-->ok1.2 Now the control is added to the tool box. from the tool box drag it to the form

2. Creating Database in VB6:

2.1Go to Menu bar-->Add-Ins-->Visual Data Manager.2.2 In Visual Data Manager Menu Bar-->File-->New-->Microsoft Access-->Version 7.0 MDB--> Give File Name -->Save.2.3 Now a Properties tab is created in the same window, right click it-->new table-->give table name-->add fields by giving name and type, continue it for 3or 4 datas-->ok-->now build the table.2.4 Now the file is show in the same window, right click it-->open-->now add the value for the fields you created in step 2.32.5 Tats it ...Database is created..!!!!!!

3. Connecting Database with ADODC Control in VB Form:

3.1 In the Form Right Click Adodc1 Control-->Properties-->Use Connection String-->Select the Database from the location in your computer-->Test Connection.
3.2 Select the Record Source tab in the same Adodc Property Window-->In Command Type select 2-adCmdTable-->Select your Table name in the below drop down list-->ok