I literally cried this morning as I scanned these posts.
Note: Don’t have a drink in hand or mouth when reading these.
If you’re a git user.Read More
For anyone who wants to learn more about HBase, I wrote a series of blogs on the HBase REST interface. This post covers adding rows using JSON and XML. There are full code samples with comments. The second post in the series is up on the Cloudera blog.Read More
While working on a little WinRT app I recently spent WAY too much time trying to figure out why I was getting the following exception
System.UnauthorizedAccessException was unhandled by user code
Message=Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED))
at Windows.UI.Text.ITextDocument.SetText(TextSetOptions options, String value)
when all I was trying to do was programmatically set the text of a RichEditBox. EX:
After searching and searching and eventually taking a walk to cool down, I decided that I would play with the IsReadOnly flag. I have it set to “True” in the XAML because I don’t want users to edit the text. I then wondered if this was causing the problem.
I tweaked the code as shown below and it magically started working. Notice how I’m turning off the IsReadOnly flag off, then setting the text, and returning the read only state after the text has changed.
theRichEditBox.IsReadOnly = false;
theRichEditBox.IsReadOnly = true;
Dear Exception: you were not helpful. Sigh.Read More