HTTP Compression – A faster way to improve web site performance – At minimal cost

  HTTP compression – is a simple way to improve site performance and decrease bandwidth, with no configuration required on the client side. – is a capability built into both web servers and web browsers, to make better use of available bandwidth. – HTTP protocol data is compressed before it is sent from the server. How HTTP Compression Works When IIS receives a request, it checks whether the browser that sent the request is compression-enabled. (Recent versions of Microsoft® Internet Explorer and most other browsers typically send the following header if they are compression-enabled: Accept-Encoding: gzip, deflate.) IIS then determines

Continue reading

schema.ini file to interpret column attributres while reading a CSV using MS Text Driver

Problem – While reading a CSV file using Microsoft Text Driver, It interprets CSV file columns in it’s own way like if one the column contains data specific to a date, then it only keep data which is in proper format otherwise it put null against that. Solution – Create a schema.ini file which defines the structure of a CSV file in turn gets interpreted automatically by driver itself in a desired format. Details – Schema.ini files provide schema information about the records in a text file. If you create a DSN, the schema.ini file gets created automatically in the

Continue reading

Issue in sorting Items in a CListCtrl in MFC

MFC in Visual C++ 6.0 has a problem with header notifications for the ListView control. Although a handler can be added, in the current version it isn't called. For instance, use Class Wizard or the WizardBar to add a Windows Message Handler. If the ID for the ListView control is highlighted, a number of notification messages are available for selection. To sort the items when the header is clicked for a given column, select the notification HDN_ITEMCLICK. An ON_NOTIFY message map entry is generated, as well as a handler function. For the current example, the entry appears as follows: ON_NOTIFY(HDN_ITEMCLICK,

Continue reading

ASP.NET webdomain recycle on subfolder changes

While working on a web application, one of my team presented some weird behaviour on ASP.NET FIrst observation: Session times out randomly while working on the application. So we started observing the application closely to see what might be causing this. We came out with some more observations: Detailed observation: Session times out when any of the user participates in certain scenario. Also, not only the specific session expires, but all the use sessions are expired. Further study shown that actually the app domain itself recycles. We studied the activities in these specific scenario. We found that a certain implementation

Continue reading

Handling onPropertyChange in Firefox

IE non-standard onPropertyChange is a huge problem in most of the places. I was working on a work of moving an application designed to work on IE to a cross-browser standard. For some of the forms, there is a pop up and on the close button of the pop up, it used to update some of the fields in the opener page as:     function fnClose(rowid){         var taxHTML = document.getElementById("taxvalues").innerHTML;         window.opener.document.getElementById("taxvalues").innerHTML=taxHTML;         window.opener.document.getElementById("hdnTax").value=rowid;         //There is a event handler on this element in the opener using "onPropertyChange=fnPopClosed(this.value);"         window.close();     } There is

Continue reading

Now a new look

So now also a new look of the site. Its completely away from the standard themes available. Want to know the details? I merged one of the themes available for BlogEngine with the layout of another good looking website.  I am not a web designer. So there will be plenty of mistakes, at least I expect it to be so. Pleare report all the problems to me at [email protected] and I will update the same as soon as possible. Thats my promise. Want to have it as a standard theme? Probably I shall take some time to make it a

Continue reading

Migrated from dasBlog to BlogEngine

So, last midnight, I have shifted this site from dasBlog to BlogEngine. I started with dasBlog in the starting of this year. But after going through the features and enhancements in BlogEngine, I shifted out for the better. The specific reasons are a newer codebase, better theme support and other better features. One of the major feature that caused me to shift is the static front page capability. I wanted to have a site where I can add blogs. dasBlog let me add page to the blog and the web site converts to a blog site immediately. I am not

Continue reading

Microsoft Patterns & Practices : Guidance Explorer

Wow! Just another goodie!! Look at this. Now a guidance explorer is available from the Patterns & Practices team at codeplex.com for all the people who want to better their performance. Congratulations to the team for the good work. The guidance explorer let you explore the guidances mentioned in various patterns and practices guidelines. No more browsing through numerous web pages to find out the guidances. A neat tool with an file explorer style tree to keep the points tidy. Just loved it. I shall request you all to get it installed and most importantly READ. Have it in the

Continue reading