Wednesday, August 26, 2009

Linux: Unable to compile or run C or C++ program

Linux uses gcc compiler for compiling C programs and g++ for C++ programs.If you are unable to compile or run C and C++ program in Linux terminal then follow these steps.
(1) Using vi or vim editor create a C file(should be named with .c extension) and do the same for the C++ program(should be saved as .cpp)
(2) Then compile C program using following command
$gcc -o destfile sourcefile
for example if you have created a file first.c then
$gcc -o first first.c
Your compiled file will be created as first.To run this file
$./first

For C++ use g++ command with same extensions.

If you are unable to compile or run C or C++ program OR you are getting error compiling C or C++ file that means you have not installed compiler gcc and g++ in your operating system.
Follow the steps for C:
$su

$yum install gcc

For C++
$yum install g++

This will install compilers for C and C++ for linux.I hope this will help you.

Linux:Unable to install or upgrade firefox in Linux

Installing or upgrading Firefox can be done by using different commands in Linux operating system..
(1) Using yum command you can upgrade your firefox or install.Open terminal and enter su then enter password. Now you are in admin mode so that you can install or upgrade firefox.
For installing anything in linux the user should be in admin mode.
syntax:
$su

$yum update firefox

(2)There is another way of installing firefox in linux that is by using wget command.To use wget command you should have link from where you can download firefox for linux.
Syntax:
$wget link

Saturday, July 18, 2009

Application error: The memory could not be read.


This article applies to:
  • Platform(s): Windows 98 , Windows ME , Windows 2000 , Windows XP , Windows 2003
  • Browser(s): All Browsers
  • Java version(s): 1.4.2_xx

SYMPTOMS

While attempting to install Java, a message box apears with the following error:
    IKernel.exe - Application error

    The Instruction at "0x771c741a" referenced memory at
    "0x0..." (any number).

    The memory could not be read.


    Click on OK to terminate the program

CAUSE

The IKernel.exe application error may be due to one of the following reasons:
  1. The InstallShield engine (iKernel.exe) or one of its component files in \Program Files\Common Files\InstallShield\Engine folder may be damaged, corrupted, or read-only.
  2. The InstallShield engine (iKernel.exe) or one of its component files in \Program Files\Common Files\InstallShield\Engine folder was left on the system by an older version of the InstallShield installer (and is now incompatible with the version that Java Installer uses).
  3. You are trying to install Java on a Windows XP machine with service pack 1 and Windows XP Hotfix Q328310 applied.

SOLUTION

Following are the possible resolutions for this error. Choose the appropriate method for your computer.

  • Generic Solutions
    1. Rename or remove the old InstallShield engine folder
    2. Update InstallShield Engine
Generic Solution

Solution #1: Rename or remove the old InstallShield engine folder
iKernel.exe is the InstallShield program file.

Java setup program copies InstallShield engine files to the hard disk during Java installation. These files are copied to the folder "C:\Program Files\Common Files\InstallShield". Assuming your system drive is C:.
This InstallShield folder is used as a temporary folder by Java setup program. After you install the program, the contents of this folder are no longer needed or used.

The iKernel.exe application error may occur if the InstallShield engine (iKernel.exe) or one of its component files in "\Program Files\Common Files\InstallShield\Engine" folder is damaged, corrupt, or has read-only permission. This error may also occur if the InstallShield engine (iKernel.exe) or one of its component files in folder "\Program Files\Common Files\InstallShield\Engine" was left on the system by an older version of the InstallShield program. This is incompatible with the current version of InstallShield used by Java installer.
The user should either rename or delete this folder and rerun the setup. The InstallShield installer will then replace or install the correct engine files if they are not found on the computer. To rename the InstallShield engine folder perform the following steps:

  1. Launch Windows Explorer by right-clicking the Start menu on the system status bar and select Explorer. You can also invoke Windows Explorer by pressing Windows Key + E on your keyboard.
  2. Browse to C:\Program Files\Common Files\InstallShield\Engine
  3. Right-click the highlighted engine folder and select Delete.
  4. Click Yes in the Confirm Folder Delete message box.

UPDATE Ikernel
Download the latest version of the iKernel engine by clicking the link below and save it to your Desktop. iKernel Update

Source:http://www.java.com/en/download/help/ikernel.xml

Thursday, June 25, 2009

Internet Explorer-Runtime error

This document explains a workaround if you receive 'A Runtime Error has occurred. Do you wish to Debug?' when attempting to load a webpage in Internet Explorer.

Note: This workaround may not work in all cases. We do not have another reliable method to offer at this time.

When attempting to load a webpage you receive one of the following error messages:

  • A Runtime Error has occurred. Do you wish to Debug?
  • Internet Explorer Script Error. An error has occurred in the script on line 1. Do you wish to continue running scripts on this page?

To prevent this error from coming up, you will need to disable script and runtime errors. Perform the following to configure Internet Explorer to ignore these script and runtime errors:

  1. Open Internet Explorer.
  2. Click on Tools and select Options.
  3. Click on the Advanced tab.Put a check in the box next to Disable script debuggin


















5. Remove the check in the box next to Display a notification about every script error if this box is currently checked.


  1. Click OK to confirm your changes.

This does not actually fix the problem, it merely stops the window telling you about it from coming up. In order to actually fix the problem, the code of the script needs to be modified so that it does not produce errors. This cannot usually be done by an end user, and instead needs to be done by the administrator for the webpage that the error is occurring on.

Note: Some users have reported that after trying the above steps, as well as the additional steps from Microsoft below, they discovered the problem was malware related. Before attempting the additional steps below, you should run a full virus scan.

If the window is still coming up, Microsoft has some additional steps you can try to resolve the problem

http://support.microsoft.com/kb/308260







How to create an oracle Database

  • Create an Oracle Database

    By default ProblemTracker uses a Microsoft Access database, however it can also be used with Oracle. Oracle database is a separately sold product available from Oracle Corporation and is not bundled with ProblemTracker.

    To use ProblemTracker with Oracle, you must first create a database using Oracle. You can create a database of any name, although it is recommended that it matches the workgroup name. If your Oracle software is installed on a machine with a Windows-based platform, perform the following steps to create the database. If your Oracle software is installed on a Sun Solaris platform.

    Oracle 8i on Windows platform:

    1. Start the Oracle Database Configuration Assistant.
    2. Select the option "Create a Database" and click "Next".
    3. If you wish to have a standard Oracle database, select the option "Typical (recommended)" and click "Next". But, if you wish to have the Oracle database use multinationalization, then choose the option "Custom" and click "Next" and continue with the installation.
    4. Select the appropriate method (either copy existing files from the CD, or create new database files) for creating the database and click "Next".
    5. Select the environment (either OLTP, DSS, or Hybrid/Multipurpose system) in which the database will operate and click "Next". The default and the recommended one is a hybrid system.
    6. Enter the approximate number of users who will be concurrently connected to the database at any given time and then click "Next". If you are not sure, accept the default value.
    7. Select the options you want to configure for use in the database and click "Next".
    8. Enter the workgroup name (recommended) for the Global Database Name and the SID (System Identifier) or you can enter any valid database name. If you have chosen the option "Custom" in Step 3, then click the "Change Character Set..." button and choose the appropriate character set you need. Say if you wish to have "UTF8" character set, then choose "UTF8" for the options "Character Set" and "National Character Set" in the dialog and then click "Next".
    9. Select the option "Create database now" and click "Finish". Click "Yes" to the confirmation dialog.
    10. Creation of Oracle database will take few minutes depending on the options you have chosen to configure. Please wait until Oracle gives a confirmation stating that the database has been created and then note the Global Database Name, SID, SYS and SYSTEM account passwords in a safe place.

    Oracle 9i on Windows or Sun Solaris platform:

    1. Start the Oracle Database Configuration Assistant.
    2. Select the option "Create a Database" and click "Next".
    3. Select the option "General Purpose" and click "Next".
    4. Enter the Global Database Name in the form "databasename.domain" and the System Identifier (SID) in the form "databasename", then click "Next". It is advised that you select the database name to match the workgroup name that you will be using. However, using a different name is acceptable.
    5. Select the option "Dedicated Server Mode" and click "Next".
    6. Select the "Custom" option.
    7. If you do not plan to use multinationalization, skip to the next step. If you wish to have the Oracle database use multinationalization, then click on the "DB Sizing" tab. In the "Database Character Set" field, select "UTF8".
    8. Click "Next". Click "Next" once more.
    9. Check the option for the option "Create Database" and click "Finish".
    10. Click "OK" to confirm the creation of the database.
    11. Click on the button "Save as an HTML file" to save the database parameters, then click "OK" to proceed with creating the database.
    12. After the database creation operation has completed successfully, click on the "Password Management" button to change the default password and unlock the database accounts of the new database.

    Oracle 10g on Windows platform:

    1. Start the Oracle Database Configuration Assistant. Click "Next".
    2. Select the option "Create a Database" and click "Next".
    3. Select the option "General Purpose" and click "Next".
    4. Enter the Global Database Name in the form "databasename.domain" and the System Identifier (SID) in the form "databasename", then click "Next". It is advised that you select the database name to match the workgroup name that you will be using. However, using a different name is acceptable.
    5. Check the option "Configure the Database with Enterprise Manager", and accept the default selection for other options and click "Next".
    6. Enter a Password and Confirm Password for all accounts or you can enter different passwords and click "Next".
    7. Select the storage mechanism as "File System" and click "Next".
    8. Select the location of the Database files to be created. If you are not sure as what to choose, select the option "Use Database File Locations from Template" and click "Next".
    9. Choose the recovery options for the database and click "Next".
    10. Uncheck the option "Sample Schemas" and click "Next".
    11. In the "Memory" tab, select the "Custom" option.
    12. If you do not plan to use multinationalization, skip to the next step. If you wish to have the Oracle database use multinationalization, then click on the "Character Sets" tab. In the "Database Character Set" field, click "Choose from the list of character sets", and select "UTF8" from the list. Also select "UTF8" for the "National Character Set". Click "Next".
    13. If you wish, you can review (and modify) the control file, data files and redo log groups for the database. Click "Next".
    14. Select the option "Create Database" and click "Finish".
    15. Click on the button "Save as an HTML file" to save the database parameters, then click "OK" to proceed with creating the database.
    16. After the database creation operation has completed successfully, click on the "Password Management" button to change the default password and unlock the database accounts of the new database.

    Now you have successfully created an Oracle database.

  • How to check CPU speed

    Windows Vista/Windows 10/Windows 8.1

    To check the CPU speed, click Start. In the search box, enter msinfo32 .

    Or press Windows+r and type msinfo32 for full computer discription.

    Your computer's CPU speed will appear in the processor description. For instance, in "x86 Family 15 Model 1 Stepping 2 Genuine Intel ~1495 Mhz", the CPU speed is 1495MHz (i.e., 1.495GHz).
    Windows NT, Me, 2000, or XP

    To check the CPU speed, from the Start menu, select Run... , and then enter msinfo32 .

    Your computer's CPU speed will appear in the processor description. For instance, in "x86 Family 15 Model 1 Stepping 2 Genuine Intel ~1495 MHz", the CPU speed is 1495MHz (i.e., 1.495GHz).


    Thursday, June 18, 2009

    How to make lan connection and configure IP address

    First of all go to My network places And right click the mouse button then click properties then a new window display that show the your Lan card connection right click on that an click on their property option...that show a new window which have many option ......click on tcp/ip an click on their property in it if u connected with server then obtain automatic IP address if u r connected individually then fill manually ip address then click on OK.an again OK....now goes to my computer right click here and click on the property here if your computer name is same then change it if different then OK . It should be always advisable than your computer have different name but have same group name,click OK,it will ask u to restart your computer,restart this,if u check the connection is establish or not then click on start and then click on run type ping and the computers ip address u want to check for eg...ping 192.168.0.1 press enter


    go to start->control panel->network connections->local area connection->properties(Right click)->tcp/ip->use manual ip and assign address.

    If u do not get help from above details then use this link
    http://support.microsoft.com/kb/306126

    Set up gmail in outlook using app password

    You might receive an error saying, "unable to connect to your outgoing server" while setting up a gmail account in outlook even wh...