Tuesday, October 31, 2006

Access SQL 2005 with PHP

Accessing SQL Server 2005 Databases with PHP

Wednesday, October 25, 2006

Environment Variables - Path parser

Here's a quick way to display a Windows system search path. The %PATH% environment variable contains a list of folders. When a command is issued at the CMD prompt, the operating system will first look for an executable file in the current folder, if not found it will scan %PATH% to find it.
This script iterates over the path statement, splitting out the individual folders and presents each on a single line.

Use the PATH command to display or change the list of folders stored in the %PATH% environment variable.

To use this, create a new text document and paste the following code.  Save the file as viewpath.cmd and presto!, you can list the contents of your system by doubl-clicking the file:

::viewpath.cmd
@echo off
::echo the path one line at a time
for %%G in ("%path:;=" "%") do @echo %%G
pause

Sunday, October 22, 2006

Office 2.0 Tools

Every way to operate in web 2.0 world.

http://itredux.com/blog/office-20/my-office-20-setup/

Tuesday, October 03, 2006

Microsoft Product Support throws a non-friendly exception

http://support.microsoft.com/oas/default.aspx?&c1=505&gprid=10274&f=25&MSPPError=-2147197912

Server Error in '/OAS' Application.
--------------------------------------------------------------------------------

Unhandled Execution Error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException:

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[COMException (0x8004922f)]
Microsoft.Passport.RPS.Native.IRPSHttpAuth.AuthenticateRawHttp(String siteName, String httpVerb, String path, String QS, String httpVersion, Boolean bHTTPs, String httpHeaders, String httpBody, Object pAuthResultsBag) +0
Microsoft.Passport.RPS.RPSHttpAuth.Authenticate(String siteName, HttpRequest request, RPSPropBag propBag) +478
Microsoft.MSCOM.MemberServices.Passport.PassportTicket.GetTicket(HttpRequest request, String site, TicketState& ticketState, String& responseHeaders) +100

[PassportException: The PassportTicket.GetTicket() failed to initialize Passport Ticket. [(Error=0x8004922F) Passport 'f' error (f=25, MSPPError=0x80045C28) is encountered in the query string. Check Application event log for details.]]
Microsoft.MSCOM.MemberServices.Passport.PassportTicket.GetTicket(HttpRequest request, String site, TicketState& ticketState, String& responseHeaders) +407
Microsoft.MSCOM.MemberServices.Passport.PassportTicket.GetTicket(HttpRequest request, TicketState& ticketState, String& responseHeaders) +62
Microsoft.MSCOM.MemberServices.Passport.PassportAuthenticationModule.AuthenticateRequestHandler(Object sender, EventArgs e) +219

[PassportAuthenticationModuleException: The PassportTicket.GetTicket() failed to initialize Passport Ticket. [(Error=0x8004922F) Passport 'f' error (f=25, MSPPError=0x80045C28) is encountered in the query string. Check Application event log for details.]]
Microsoft.MSCOM.MemberServices.Passport.PassportAuthenticationModule.AuthenticateRequestHandler(Object sender, EventArgs e) +1004
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42