Thursday, 11 January 2007

NTLM authentication and Firefox

Firefox is great, but using it with sites that use NTLM (e.g. SharePoint) can be a right pain. Unless you have Firefox set right, you'll always be prompted for your Windows credentials.

The solution to this can be found by googling, but I've repeatedly struggled to track it down, so here it is for future reference:

  1. At the Firefox address bar, enter about:config and filter for network.automatic-ntlm-auth.trusted-uris. Select the setting and enter the domain name in question, e.g. my-sharepoint.
  2. Restart Firefox and you should not longer be prompted for your Windows credentials.

Monday, 8 January 2007

Converting a file's encoding

Handling files that are in the wrong encoding (e.g. Unicode, little-endian) can be a major pain, especially on Windows systems.

Unix comes to the rescue here with the iconv tool, which ships with Ruby.

e.g.
iconv.exe -c -s -f UCS-2LE -t UTF-8 wrong-enc.txt > correct-enc.txt