Content Preview: rss
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 ...
425 days ago
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 ...



