:::: MENU ::::
Showing posts with label how-to. Show all posts
Showing posts with label how-to. Show all posts

Friday, January 24, 2014

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..!!!!

Introduction:
                                      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
Step1:
  • 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.
Step2:
  • Download Linux from its home page.
  • It will be an “iso” file.
  • Save it on your P.C.
Step3:
  • 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.

Tuesday, May 10, 2011

1. In Windows Explorer, navigate to C:\Windows\System32\imageres.dll. (see screenshot below)


2. Right click on the imageres.dll file, and click on Copy. (see screenshot above)

3. Right click on your desktop, and click on Paste.

4. If you have not already, then download and install Resource Hacker from http://www.box.net/shared/y5ctmqg3t5 (or newer version if available).

5. Unzip the "reshack.zip" and run "ResHacker.exe".

6. If prompted by UAC, then click on Yes.

7. In Resource Hacker, click on File and Open. (see screenshot below)


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.

13. Under Resource Type, type WAVE. Under Resource Name, type 5080. Under Resource Language, type 1033. Click on the Replace button. (see screenshots below)

14. Click on File and Save, then close Resource Hacker. (see screenshot below)
NOTE: You can click on the Play WAVE button first to hear and verify what the current startup sound is set as in this file.
 
15. On your desktop, Move and Save the imageres_original.dll file to a safe location.
warning   Warning
THIS IS YOUR ONLY BACKUP OF THE ORIGINAL IMAGERES.DLL FILE WITH THE DEFAULT STARTUP SOUND.

16. Check to make sure that the Play Windows Startup sound is checked in Sound so that it is turned on by right clicking on desktop --> perzonalise-->windows sound. (see screenshot below)


17.Insert Windows 7 boot Disc and  Restart the computer and boot into the System Recovery Options (WinRE) screen, then select the Command Prompt option and press enter.
NOTE: If you do not have a retail Windows 7 installation disc, then you can create a System Repair Disc to use to boot to the System Recovery Screen instead.

18. In the command prompt, type diskpart and press enter. (see screenshot below step 22)

19. In the command prompt, type list volume and press enter. (see screenshot below step 22)

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.

21. In the command prompt, type exit and press enter. (see screenshot below step 22)

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

Code:
COPY /V /Y "D:\Users\username\Desktop\imageres.dll" "D:\Windows\System32"

23. Close the command prompt, and click on the Restart button. (see screenshot above)

24. As Windows 7 restarts, you will hear your new startup sound.
 

Restore Default Windows 7 Startup Sound
1. Copy the default backup imageres_original.dll file (step 15 above) to your desktop.

2. Right click on the imageres_original.dll file and click on Rename.

3. Rename it to imageres.dll and press enter.

4. Repeat steps 17 to 24 above to restore this file.
That's it.......!!!!!!!!!!!!!!


 

Wednesday, April 27, 2011

1. Adding Adodc Control to the form: 

1.1 Open Visual Basic 6-->Click Project in the MenuBar-->Components-->Microsoft ADO Control 6.0(OLEDB)-->ok
1.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.1 Go 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.3
2.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









Monday, April 25, 2011

 1. Right Click on Desktop -->Open Microsoft Access 2007 --> New-->Blank Database and give database name with “.mdb” extension and save it on any location in your computer.
2. The design view of the table is as follows:
 3. Open Control Panel--> Administrative Tools-->Data Source (ODBC)-->select MS Access Database Microsoft Access Driver(*.mdb,*.accdb) and click add -->  Select Driver do Microsoft Access(*.mdb)-->finish
4. Now give Data Source Name (e.g. My_Company)--> Click Select button and select the database you saved in your computer in step 1
5. Now you can see that the DSN “My_Company” is getting added in the User DSN list. Following type of screen may appear and click ok
6. Tats all ….now your database is connected with DSN