My MSN

Click OK to add this content

 
Content Preview: rss
-+Scrolling a WPF Textbox to a Particular Word
219 days ago
I need to build a concordance analysis control in WPF for a consulting project I'm working on. In order to do this, I'm using a series of WPF TextBoxes that will be scrolled to center a particular word. Unfortunately, I couldn't find any good tutorials on how to programmatically scroll a text box to a particular point. After playing around with the framework, I've finally figured out how to do this. For some reason, the TextBox's BringIntoView () method doesn't seem to actually do anything. I'm really not sure why. What does work, however, is the ScrollToHorizontalOffset (double offset) method. Unfortunately, the MSDN documentation doesn't give a lot of guidance as to what the double parameter is and how to go about correlating this with a character offset in the text of your text box. It turns out that this double parameter is a WPF Point measurement. So, how do you go about correlating this offset with a character position? The GetRectFromCharacterIndex ...
-+PDC 2008
395 days ago
I'm at PDC at the LA convention center!
-+Install RAM in the HP 2710P
425 days ago
This is a how-to guide for installing RAM in the HP 2710P Tablet PC. I purchased 4GB of RAM in 1 GB DIMMS (the sticks that RAM comes in from Crucial at http://www.crucial.com/store/mpartspecs.aspx?mtbpoid=DB47506FA5CA7304). Tools Needed: Philips head screwdriver The RAM you want to add J Steps 1. Shut down the computer and unplug it from the wall. Then, remove the battery. You must remove the battery because if there is current flowing through the motherboard when you install the RAM, you could easily electrocute yourself and/or permanently damage the laptop. 2. Lay the computer on its back. It should look like this: 3. Unscrew the 6 screws from the large panel on the bottom. 4. Gently pull the cover up and towards the hinge edge of the computer until it comes off. 5. My unit came with a 1GB DIMM installed in the slot on the right. Because I was installing 2, 2GB DIMMS and there are only 2 slots total, I had to remove this 1GB DIMM first.  If you are ...
-+Musings of a MySpace Database Designer
426 days ago
It always amazes me how different the rules of the game become when you are dealing with massively scalable data backed applications. According to ComScore, MySpace received 45.4 billion page views for the month of May 2008. That's over 17,000 page views per second . I can't imagine any database system handling that number of simultaneous queries. Granted, MySpace's Microsoft SQL Server 2005 databases don't handle that many direct queries. MySpace explained how they have used SQL Server Service Broker along with a strong middle tier caching layer to spread the load over 200 separate MSSQL database servers and many more caching servers. While the technical configuration was amazing, what surprised me more were the normal assumptions that went out the window in building this data layer. First, the one cardinal rule of any computer based system that deals with a user's data is that you can't lose/corrupt any of this data—every step should be taken to ensure that the data is in a ...
© 2009 MicrosoftMicrosoft