Analytics


Google

Monday, January 19, 2009

Top 25 Programming Errors

I found the following article in my mail and thought it was important to be aware of this as a programmer.

Original Article

Article that referred me to that article

Thursday, January 15, 2009

Free DVD Burner software

I am currently working on a HP Compaq notebook which comes with a DVD drive and is running on Windows XP. However, the software that comes with the computer does not seem to work.

I know Windows XP itself is able to burn data to disk however, when I tried to do that apparently it only knows how to burn on CD only and not DVD. Which got me searching - since I wanted to stay legal but did not want to pay any money.

I came across the following article which refers to some very nice DVD burning freeware together with a review. Basically it recommended two software after reviewing a few:
  • infrarecorder from sourceforge which was pretty need because it has a distribution where you just unzip and use - no installation required.
  • imgburn which has some very nice reviews on a few other sites I visited.

Saturday, January 10, 2009

ASP and ASP.Net can't find Oracle

This is from Microsoft Q225084, link also to the following post. Copied here to simplify my reference and not meant to plagiarize. No offense intended.


This article outlines some of the common steps to take when you troubleshoot a problem with a connection to an Oracle Database from an Active Server Pages (ASP) application. Some of the more common error messages are:


Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Oracle][ODBC][Ora]ORA-12154: TNS:Could not resolve service name /vdir/filename.asp, line xxx.


-and-


The Oracle(tm) client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3 (or greater) client software installation.

You will be unable to use this driver until these components have been installed.

=============================


The following is a list of general steps to take when you investigate a connectivity problem between ASP and an Oracle database.
  • First verify that you can connect to Oracle and retrieve data using Oracle's SQL Plus utility (a command line-based query utility). If you cannot connect from this tool, then you either have a bad installation or configuration of the Oracle client components or you did not correctly use the SQL Net Easy Config or Oracle Net8 Easy Config utility to create an alias for the Oracle server. You must work with your Oracle database administrator to make sure that the necessary Oracle components have been installed and are configured correctly.
  • If the Oracle client was recently installed on the Internet Information Server (IIS) computer, make sure that the computer has been rebooted at least once. In some cases after installation, the Oracle component SQL Plus works fine, but connectivity from IIS does not work until you reboot the computer.
  • Look for multiple copies of the OCIW32.dll file on the IIS server. There should only be one copy of this .dll file on the computer, and it should be in the \Bin subfolder of the Oracle home folder. If you find other copies, rename these with a .bak extension and then retest connectivity. You may want to restart the IIS services after renaming any additional copies of the .dll file that you found.
  • Make sure that you are running the recommended versions of the Oracle components.
  • For more information on how to obtain and install these patches, work with your database administrator or contact Oracle Technical Support. (Microsoft Technical Support does not support the configuration of these Oracle components.
  • Check to make sure that the Oracle client components are installed locally on the IIS server. While it is possible to get other applications to work without the Oracle components installed locally, this causes problems when you work with ASP applications. Microsoft recommends that these components be installed on the IIS server; other custom configurations are not supported.
  • Look at the system environment variables on the IIS computer and check the PATH variable. If there are any remote share names or mapped drives that point to locations that contain Oracle components, remove them. You must reboot the computer in order for any changes that you make to take effect.
  • Look again at the system environment variables on the IIS computer and check the PATH variable. Make sure that the \Bin folder in the Oracle home directory is included as part of the PATH environment variable. With a default installation, this is the Orant\Bin folder. Again, you must reboot the computer for the changes that you make to take effect.
  • Try to connect with both the Microsoft ODBC for Oracle driver and the Microsoft OLEDB Provider for Oracle. Here are sample connection string syntax for each of these:
'Microsoft OLEDB Provider for Oracle
"Provider=MSDAORA.1;Data Source=Your_TNSNames_Alias;User ID=User;Password=Password"

'Microsoft ODBC for Oracle DSN-Less
"Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=User;PWD=Password;Server=Your_TNSNames_Alias"

'Microsoft ODBC for Oracle using a DSN
"DSN=Your_DSN_Name;UID=User;PWD=Password"

  • Disable SQL*Net Authentication. To do this, edit the SQLNET.ora file. This configuration file is usually stored in the Network\Admin subfolder of the Oracle home folder. Add the following lines to this file:
SQLNET.AUTHENTICATION_SERVICES = (none)
SQLNET.AUTHENTICATION = (none)

Restart the IIS service after you make these changes.
  • Add the IUSR_machine name account and the IWAM_machine name account to the Oracle home folder. Give both accounts full control.

To do this, right-click on the Oracle home folder in Windows Explorer. Click Properties, and then click the Security tab. Add the appropriate accounts and then give them full control. Restart your computer.
The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.

Tuesday, January 6, 2009

Captcha

Captcha are images that are used to deter automated registration and is a way to check to see if it is a person or a program submitting the comment/registration.

It is not really necessary to perform the programming yourself since there are a lot of free tools/components that you can use.

Some of my favorites are:
  1. CodeProject
  2. Free Captcha - but not sure how it will impact the performance since it needs to talk to the provider.
One thing to be aware is how the captcha images appear. The following website shows some of those to avoid.

Other things to be aware of captcha are:
  1. There are now more sophisticated tools to defeat the captchas.
  2. More and more users are getting upset and turn off by captchas so it may cause you to lose your main customers.