tag:blogger.com,1999:blog-327877082024-03-08T08:43:06.395-08:00Smart ProgrammingTips to make your programming life easieradvisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.comBlogger31125tag:blogger.com,1999:blog-32787708.post-11835463837298962642011-07-20T07:26:00.001-07:002011-07-20T07:31:55.755-07:00Adobe PDF error "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser"When using Adobe PDF to view PDF file in browser, you may encounter the following error:"The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser.Please exit Adobe Acrobat/Reader and exit your Web Browser and try again."I have visited tons of forums but am yet to find a concrete solution. However the below solution can also help.Solution 1:1. Click Start->advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com4tag:blogger.com,1999:blog-32787708.post-76814776573947061792009-10-03T21:17:00.000-07:002009-10-03T21:27:32.600-07:00Couldn't access Yahoo! Zimbra Desktop serveIf you have used Yahoo Zimbra desktop & have received the following error, then read on to get the solution:"Couldn't access Yahoo! Zimbra Desktop server. If issue persists after reinstall, please check logs for errors and report to http://www.zimbra.com/forums/zimbra-desktop."If you not know Yahoo zimbra yet, you should download this fantastic equivalent to Outlook. It configures with all advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com2tag:blogger.com,1999:blog-32787708.post-61677775544185110622009-01-29T07:05:00.000-08:002011-08-02T18:15:10.506-07:00How to Enable Remote errors on SQL reporting services.If you have been using SQL reporting services, you may have encountered few errors which just become difficult to resolve. In such cases, its advisable to enable the remote errors on your reporing services which helps you to understand the inner exceptions.The remote errors can be enabled on the reporting services in two ways:1. Using the SQL Server Management Studio Start Management Studio and advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com2tag:blogger.com,1999:blog-32787708.post-7160474309832254742009-01-18T19:41:00.000-08:002009-01-18T19:45:05.007-08:00Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled"Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled" error occurs when you try try to debug the application in Microsoft Visual Studio 2005 in Windows Vista Home Basic or in Windows Vista Home Premium using Internet Information Services (IIS) 7.0.This problem occurs because Windows Vista Home Basic and Windows Vista Home Premium advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com1tag:blogger.com,1999:blog-32787708.post-4365235285025411892009-01-02T22:59:00.000-08:002009-01-02T23:12:58.246-08:00Filezilla ECONNREFUSED Connection refused by serverIf you are a Filezilla user for all your FTP needs then you may have faced this error. When you try to connect to your web host using Filezilla, you get this error "ECONNREFUSED - Connection refused by server". When I first got this error, I ran around from my ISP to my web host to get a solution. All the suggestions from my ISP, my web host and filezilla failed.I just decided to take a step backadvisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com10tag:blogger.com,1999:blog-32787708.post-41053815883250744872008-11-06T20:26:00.000-08:002008-11-06T20:33:50.067-08:00Access violation at address 10002593 in Module 'LIBMYSQL.dll'When you install WinMySQLAdmin with MySQL and start WinMySQLAdmin you end with this error. Every time you start the control application you get a warning which is repeated until WinMySQLAdmin is shut down.Access violation at address 10002593 in Module 'LIBMYSQL.dll'Repeating the ErrorStart WinMySQLAdmin with the xampp and you should get the error again.Solution1. Open WinMySQlAdmin2. Click on theadvisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com6tag:blogger.com,1999:blog-32787708.post-20599596900863952422008-03-17T23:06:00.000-07:002008-11-06T20:00:08.286-08:00Illegal Interview questionsHere's a list of Illegal interview questions I read about on TechRepublic.#1: Where were you born?#2: What is your native language?#3: Are you married?#4: Do you have children?#5: Do you plan to get pregnant?#6: How old are you?#7: Do you observe Yom Kippur?#8: Do you have a disability or chronic illness?#9: Are you in the National Guard?#10: Do you smoke or use alcohol?Read full details on advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-8099197648913545632008-01-24T09:21:00.000-08:002008-11-06T20:00:33.310-08:00Could not create Windows user token from the credentials specified in the config fileError: "Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user... "This error usually is encountered when either the username / password is not valid for the selected user OR the selected user does not have necessary privilege.You can add the privileges by following the below steps:Run - Control Panel, advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com4tag:blogger.com,1999:blog-32787708.post-7940747917292245662008-01-24T09:17:00.000-08:002008-11-06T20:00:43.426-08:00How to use the ASP.NET utility to encrypt credentials and session state connection stringsIn your Asp.net applications, you might want to encrypt the impersonation userid & password. You can do this by using the tool provided by Microsoft and encrypt the userName and password attributes to be used with the section.1. Download aspnet_setreg.exe from this location:http://download.microsoft.com/download/2/9/8/29829651-e0f0-412e-92d0-e79da46fd7a5/aspnet_setreg.exe2. ideally you can advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com1tag:blogger.com,1999:blog-32787708.post-83206869414357801442008-01-24T09:06:00.000-08:002008-11-06T20:01:04.293-08:00Error reading configuration information from the registryYou will encounter this error if you are trying to read from the registry. This error specifies that some thing is wrong with the process account when reading the identity information from the registry.Try the below steps to resolve the issue:1. Open Regedt32.exe2. Navigate to HKLM\SOFTWARE\SECURE_APP\identity (Replace SECURE_APP with the app name that you have entered from the aspnet_setreg.exe3advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com1tag:blogger.com,1999:blog-32787708.post-52175425531620622432008-01-22T07:39:00.000-08:002008-11-06T20:01:13.444-08:00How to use the ASP.NET utility to encrypt credentials and session state connection stringsIn your Asp.net applications, you might want to encrypt the impersonation userid & password. You can do this by using the tool provided by Microsoft and encrypt the userName and password attributes to be used with the section.1. Download aspnet_setreg.exe from this location:http://download.microsoft.com/download/2/9/8/29829651-e0f0-412e-92d0-e79da46fd7a5/aspnet_setreg.exe2. ideally you can advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-60718145077153393022008-01-21T08:51:00.000-08:002008-11-06T20:01:32.918-08:00Adrotator in PHPCreating adrotaror is a simple step in PHP.You will have to create two files, the source from which you want to load the advertisements and the source which will read the ads to load on your page.You can create the ads.txt with following contents:First Ad--Second Ad--Third AdReplace the text First Ad, Second Ad, Third Ad with your Ad text. You can ad unlimited number of ads as long as you split advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com2tag:blogger.com,1999:blog-32787708.post-60801149413664125622008-01-02T06:08:00.000-08:002008-11-06T20:07:47.044-08:00SQL Server Creating User Defined FunctionsHere is the basic way to create a User defined Function in SQL Server:CREATE FUNCTION GETTRAININGSTATUS(@USERID VARCHAR(25),@TRAININGID INT)RETURNS INTASBEGINDECLARE @COUNT INTDECLARE @RETURNVALUE INTSET @COUNT = (SELECT COUNT(*) FROM TBLTRAININGSWHERE USERID = @USERID AND TRAININGID = @TRAININGID)IF(@COUNT = '')SET @RETURNVALUE = 0ELSE IF (@COUNT = 1)SET @RETURNVALUE = 1ELSE IF (@COUNT = 0)SET @advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-67813554264242570792007-12-20T00:01:00.000-08:002008-11-06T20:02:35.131-08:00SQL Server: Searching all columns in tables in a database for a keyword?Just found an interesting tip on this site about How to search all tables in SQL server for a particular keyword.You can read the article on the following link:How to Search Columns for a KeywordHere is the code listed on the site:CREATE PROC SearchAllTables(@SearchStr nvarchar(100))ASBEGIN-- Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.-- Purpose: To search all columns of all advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-43505860484487500092007-12-19T23:54:00.000-08:002008-11-06T20:02:46.022-08:00Advantages of using Stored ProceduresBelow listed are some of the advantages of using Stored Procedures. This is one of the common questions in job interviews. I have conducted lot of interviews and have heard candidates telling mostly only one answer. "Stored procedure is precompiled and hence has faster execution".Below listed are the ones which you can now talk on and show your technical expertise. :)Execution plan retention and advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-26120317678048738912007-10-01T11:48:00.000-07:002008-11-06T20:03:05.562-08:00Using Dynamic SQL Statements in Stored ProceduresSQL contains a command, EXEC (or EXECUTE), which can be used to dynamically execute a SQL statement. EXEC expects a string - the SQL statement you wish to execute. It will execute the SQL statement passed and returns the results.Example:CREATE PROCEDURE SP_GETELEMENTVALUESFORID@ELEMENT varchar(100),@EMPLOYEEID varchar(100)ASDECLARE @QUERY varchar(250)IF(@ELEMENT = 'LOCATION') SET @QUERY = 'advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-61900190956451941512007-10-01T11:43:00.000-07:002008-11-06T20:03:12.591-08:00ASP.net Error Both DataSource and DataSourceID are defined on dropdownlistThis is a very interesting Error. I had tried to find the solution using step by step approach. (Sounds funny for a user using Visual Studio.net)Anyway if I create a control and bind it to a datasource from code behind, every thing is fine. The moment I rename the control and try the code after making necessary changes in code behind, all hell breaks loose. I get the error "Both DataSource and advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-37964600135671020042007-10-01T11:37:00.000-07:002008-11-06T20:03:33.562-08:00An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that uThis is one of the errors you will get if you have used Network Library with your connection string to indicate the connection uses TCP/IP and not named pipes.advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-83014889601082211862007-10-01T11:30:00.000-07:002011-08-07T18:11:40.095-07:00SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)Lately I was working on a new ASP.net application when I had to deploy the application on one machine and the database on the other. Other machine only had SQL Server 2000 deployed. Though I had been receiving the errors:"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com15tag:blogger.com,1999:blog-32787708.post-67343632310190325462007-09-19T11:50:00.000-07:002008-11-06T20:03:59.997-08:00Installing PHP on IISInstalling PHP with IIS is perhaps the easiest thing to do.First download the PHP installer for Windows from PHP.net which should be located at http://www.php.net/downloads.phpDouble click the installer and select the path to install PHP. You can install it anywhere you want. You should take care not to install it in a path with folder name which has a space. e.g. Program Files. The installer advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-1160642083098176592006-10-12T01:34:00.000-07:002008-11-06T20:04:07.219-08:00Disable browser caching in ASP.NET - ASPdev.orgRemoving caching from the ASP.net Page.This is absolutely essential when using AJAX to retrieve time. if Cache for the AJAX page is not disabled, the page returns the same time for all requests.Disable browser caching in ASP.NET - ASPdev.org: "Add the following line on top of the Page_Load event handler and your ASP.NET page will not be cached in the users browsers:Response.Cache.SetCacheability(advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-1158761286724059632006-09-20T07:08:00.000-07:002008-11-06T20:04:32.930-08:00Using the Request.ServerVariables ObjectRequest.ServerVariables Object:The ServerVariables Object has many properties besides the 'LOGON_USER'. Here is a list of all of the properties and their uses:AUTH_TYPE: The authentication method that the server uses to validate users when they attempt to access a protected script.CONTENT_LENGTH: The length of the content as given by the client.CONTENT_TYPE: The data type of the content. Used advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-1158302580688369312006-09-14T23:43:00.000-07:002011-08-07T18:10:23.127-07:00Technology for EvilScott Swigart explains some nice things about technology. he also has managed to start a debate in my head about the changes in technology and hacks to it. Well read on....Using technology for EvilBy: Scott SwigartAsynchronous JavaScript and XML (aka AJAX) promises to make Web sites interactive in ways that simply weren’t feasible in the past. And with various AJAX frameworks, such as the Atlas advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-1158242318089269272006-09-14T06:58:00.000-07:002008-11-06T20:04:52.727-08:00PHP, ASP or ASP.NET?The following is an interesting piece of discussion I saw on the site, which is the best language PHP, ASP or ASP.net. Truly in my opinion, each one has its own unique features and advantages, I have been committed to ASP.net but lately also tried my hands on PHP. I found it excellent. What about you?PHP, ASP or ASP.NET? - Program - Web Technologies - Builder AU: "PHP – Hypertext Pre-processorPHPadvisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0tag:blogger.com,1999:blog-32787708.post-1156352416452134592006-08-23T09:57:00.001-07:002008-11-06T20:05:11.973-08:00USING ASP.net LOGIN CONTROLAsp.net 2.0 provides a good login control. Instead of the developer coding his heads out on creating the login control, he / she can directly use the login control on the page and let ASP.net take care of the logistics.To use the login control its important that you configure the database to store the credentials. On creating the website in ASP.net, you can click on the Web site menu and select advisorhttp://www.blogger.com/profile/10266899531690725754noreply@blogger.com0