Craig's profileCraig Eddy's SpacePhotosBlogListsMore ![]() | Help |
|
Craig Eddy's SpaceFriends don't let friends die broke February 24 WPF Viewer for the Windows Azure Thumbnails SampleNot content with simply using the web role to view thumbnails generated by the Windows Azure “thumbnails” sample, I decided to write a WPF client. Once I got my head re-wrapped around data binding with the WPF ListView (it’s amazing how quickly we forget such things when we get old), it was a piece of cake. As usual, WPF does most of the work for you. The only drastic change I had to make was in the creation of the StorageAccountInfo instances. The storage client library uses <appSettings>-based settings, but WPF only seems to work with settings in the Project properties. So instead of using the helper methods in the storage client library (StorageAccountInfo.GetDefaultBlobStorageAccountFromConfiguration and StorageAccountInfo.GetDefaultQueueStorageAccountFromConfiguration), I just manually created instances of StorageAccountInfo: new StorageAccountInfo( new Uri(Settings.Default.BlobStorageEndpoint), true, Settings.Default.AccountName, Settings.Default.AccountSharedKey, false)
thumbnails.ItemsSource = from o in GetPhotoGalleryContainer().ListBlobs("thumbnails/", false) select o;
The source code can be found at here. February 15 Using Linq XML with the WeatherBug APIIf you have access to the WeatherBug API, you can easily use LINQ queries to get to the data. I had originally thought I’d create the necessary classes and use XML serialization to load data, but this seemed like a lot of work. Here’s some code that will load a ListView with a list of weather stations for a given latitude and longitude: string url = string.Format( December 14 Which Will You Use Today?I'm finishing up Rich DeVos' Ten Powerful Phrases for Positive People. Which of these will you use today?
On a side note, I was amazed to read a multi-billionaire make the following statement:
Maybe, just maybe, it's that attitude & mindset that helped Rich DeVos achieve what he's achieved… October 27 C# int.MaxValue OddityBe careful passing int.MaxValue to a method that may use the parameter value in a conditional expression. The following code snippet will print False when clearly 0 (zero) should be less than int.MaxValue * 2: Console.WriteLine("{0}", yep(int.MaxValue )); private bool yep( int val ) { return ( 0 < val * 2); } July 03 FriendFeed Plugin For RSS BanditI've developed an RSS Bandit plug-in that allows you to share posts on FriendFeed. To use the plugin, download the zip file and unzip it into your RSS Bandit plugins folder and start up RSS Bandit. There is a configuration dialog to enter your FF nickname and remote key (which you can find here). To share a post, just right-click and select "Share on FriendFeed". No news is good news in this case.
I'm looking into how to integrate more deeply with RSS Bandit and any suggestions would be appreciated!
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|