September 2010 Blog Posts

  • Long DNS lookup time in Mozilla Firefox?

    Go to about:config in Firefox and change the property network.dns.disableIPv6 to true. This was the result:

  • Strings

    I went over some selenium tests today and found this code that creates a string that is used in order to test that validation is fired whenever the text entered in a text box has a greater length that allowed.  var temp = new StringBuilder(); for (var i = 0; i < 52; i++) { temp.Append('x'); } longerThan50Chars = temp.ToString();   This is all good and working code but it can all be replaced with just one line.public static string longerThan50Chars = new string('x',52);