Monthly Archives: March 2014

Thunderbird Change Order of Accounts

  • Tools > Options > Tab: Advanced > Tab : General > Config editor : “I’ll be careful, I promise!”
  • search for “account”
  • edit the variable “mail.accountmanager.accounts” and change your order here
  • quit thunderbird
  • launch thunderbird, change are now effective
You find the identities when you look for “mail.identity.id<n>.useremail” and the relation between identities and accounts looking for “mail.account.account<n>.identities”. If you have several identities for an account, you can’t influence the order of these or order them separately; you can only have these identities together in a different position.

Source

Javascript – Get Querystring from Url

// Read a page's GET URL variables and return them as an associative array.
function getUrlVars()
{
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
}

This code will return:

{
    "me"    : "myValue",
    "name2" : "SomeOtherValue"
}
http://www.example.com/?me=myValue&name2=SomeOtherValue
var me = getUrlVars()["me"];
var name2 = getUrlVars()["name2"];

Source

.NET Framework: Re-registering key files for signing assemblies

After reinstalling Visual Studio and trying to resign an assembly with a key, I got the following error:

Cannot import the following key file: .pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key container name:

To fix open the directory in the Visual Studio command prompt with the pfx file and run the following command:

 sn -i pfxfilename.pfx VS_KEY_EB611118B812345

You only have to run the command once for each unique key.

Source