Developer humor
I literally cried this morning as I scanned these posts.
Note: Don’t have a drink in hand or mouth when reading these.
Enjoy:
- http://martinvalasek.com/blog/pictures-from-a-developers-life
- http://martinvalasek.com/blog/pictures-from-a-developers-life-part-2
- http://martinvalasek.com/blog/pictures-from-a-developers-life-part-3
If you’re a git user.
Read MoreHBase REST Interface Part 2
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 MoreRichEditBox gives UnauthorizedAccessException (Access is denied) error when SetText called.
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
HResult=-2147024891
Message=Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED))
Source=Windows.UI
StackTrace:
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:
theRichEditBox.Document.SetText(Windows.UI.Text.TextSetOptions.FormatRtf, textValue);
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.Document.SetText(Windows.UI.Text.TextSetOptions.FormatRtf, textValue);
theRichEditBox.IsReadOnly = true;
Dear Exception: you were not helpful. Sigh.
Read More





