Friday, 28 November 2014

Firebug remembers old / deleted breakpoints

 
  • In Firefox, go to URL about:support
  • Check the Profile Directory
  • Open containing folder
  • Go into folder firebug
  • Delete breakpoints.json



  • Tuesday, 25 November 2014

    MSMQ code sends message, doesn't error, but doesn't show

    http://stackoverflow.com/questions/9911843/message-does-not-reach-msmq-when-made-transactional

    For queue's that you have created as transanctional, you must use the version of Send() that includes the MessageQueueTransactionType parameter. The biggest frustration with this is that it doesn't throw any exceptions or errors as you have seen, but the message just doesn't ever show up.
    So, in your code, change:
    helpRequestQueue.Send(theMessage); 
    to
    helpRequestQueue.Send(theMessage, MessageQueueTransactionType.Single); 
     

    Tuesday, 4 November 2014

    FXCop and built-in rules: CA1723 and "Use preferred terms" for Canceling

    FXCop has some built-in rules for complaining about a UK spelling of "Canceled", e.g. "Cancelled".

    If you override the section

    <Term PreferredAlternate="Cancelled">canceled</Term>
    

    it doesn't work and it still complains about the word "Cancelled".

    However if you set it to

    <Term PreferredAlternate="Andy">canceled</Term>
    

    it then raises CA1723 and suggest you change it to "Andy".
    If you remove the line completely it still complains about the word "Cancelled" and suggests "Canceled".

    So the behavior is relying upon a default rule and error cannot be configured out using the PreferredAlternate section of the CustomDictionary; it looks like it can only changed to an alternative spelling.

    However there is a way! Looking at the FX Cop IL, it can be seen that if you set the US spelling as an unrecognized term

    <Unrecognized>
          <Word>canceled</Word>
    

    then it overrides the built-in rule and the error disappears!