Monday, September 13, 2010

Firefox: Windows Authentication

Do you have an Intranet or a similar web site that requires the use of Integrated Windows Authentication? If so the default Firefox browser settings will always prompt you for a username and password first before accessing a site using Integrated Window Authentication.

Fortunately Firefox has the slick ability to easily modify it's configuration to use Integrated Windows Authentication.

Configure Firefox

To enable windows authentication on your domain.

1. Open Firefox

2. Navigate to the url about:config

3. Locate the following preference names and put as the value the comma separated values of the address roots.

network.automatic-ntlm-auth.trusted-uris

network.negotiate-auth.delegation-uris

network.negotiate-auth.trusted-uris

Your value should look something like these localhost, server1, server2, serverX.. etc.

Saturday, September 11, 2010

2010 Airtel Champions League Twenty20 Match Schedule

Cricket is back after controversies. Here is the schedule for the matches. Download full schedule from here.

What is Thumbs.db?

The default behavior for many folders in Windows Operating System is to display thumbnail images of the files in the folder. This is primarily true of folders created from digital cameras or filed under the My Videos and My Pictures folders. Thumbs.db is Microsoft's way of caching thumbnail images of any image or movie file in a folder. The idea behind creating a thumbnail cache is to improve the speed of displaying thumbnails the next time you open the folder by caching a set of thumbnails for the image and video files in the folder. If you hadn't seen this file in your folders previously it's likely you didn't have Show hidden files and folders enabled. Deleting the Thumbs.db file simply deletes that cache, which is regenerated the next time you view the folder contents. It is possible to configure Windows to never cache thumbnails.

To turn off thumbnail caching, open Tools > Options in Windows Explorer and click on the View tab. Check the box next to Do not cache thumbnails and click OK.

thumbs

Thursday, September 02, 2010

How to: Return Quarter by Month

This is how we can get specified quarter by month. Example code

private string returnQuarterPeriod(string month)
    {
        string strReturn = "";
        try
        {
            int iMonth = DateTime.Parse(month).Month;
            if (iMonth <= 3)
            { return "1"; }
            else if (iMonth >= 4 && iMonth <= 6)
            { return "2"; }
            else if (iMonth >= 7 && iMonth <= 9)
            { return "3"; }
            else if (iMonth >= 10 && iMonth <= 12)
            { return "4"; }
            else
            {
                //Something probably is wrong 
                return "0";
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
        return strReturn;
    } 

Hope this helps!