Dustin Horne

Developing for fun...

Windows Phone 8 (HTC 8X) First Impressions

On Thursday I headed down to a local Verizon Wireless store and picked up my HTC 8X.  I've been using and customizing it heavily for a couple of days now and I wanted to share my initial thoughts.  So far it's been a solid device and I absolutely love it.  I'll give you the lowdown from my purchase experience and use.  More...

Windows Phone 7 Marketplace - First Impressions

I have successfully published my first Windows Phone 7 application and wanted to quickly share my first impressions.  The idea for the application came from my wife.  She asked if I could create a daily reminding application to take her birth control pill, so that's what I set out to do.  I create a quick and simple application that allows the user to specify a time to receive the daily reminder.  Tapping the reminding takes you to an entry page where you can specify whether or not you took your pill for that day.  Another page with a calendar control color codes the days to show which days you've taken the pill, which you haven't, and which have nothing entered.  All colors are taken from the current selected Windows Phone 7 theme so they vary based on the user.  You can see my app here:  http://www.windowsphone.com/en-US/apps/01d893fb-59f1-40e9-af27-416080ec72ea.  And here are my first impressions of the development and the marketplace:  More...

Getting Started With My Netduino Plus

I love to get involved with a variety of technologies.  Recently I became interested in the .NET Micro Framework.  My knowledge of electronics is very basic at most but I'm interested in what types of home automation I can potentially accomplish with a micro controller.  Having a .NET background, I figured the .NET Micro Framework was a great place to start, so I picked up a Netduino Plus and dove in.  I found the basic "Turn on the built in LED" projects to be too simple for my taste so I'm going to show you my first project. More...

OmahaMTG QuadTree Demo

I've made the files availble from tonight's QuadTree presentation at the OmahaMTG .NET user group meeting.  The zip file contains the powerpoint deck as well as a Visual Studio 2010 solution with Silverlight demo app as well as a generic QuadTree.  This was a quick and dirty solution so many things can be improved.  The TreeObject could be converted to a container that holds the actual object you're storing in the tree.  This would eliminate the need for you to inherit from the TreeObject with your objects.  You would simply store them inside the tree object using a Generic List and a TreeObject.Add<T>(T object) method.

For a demo of the QuadTree in action:  http://www.dustinhorne.com/quadtreedemo.html

Download Here

 

Also, check out Brian Legg's introduction to XNA 4.

 

Asymmetric Encryption and Signing with RSA in Silverlight

While Silverlight is a powerful tool for rich client applications, it lacks the ability to perform asymmetric encryption out of the box.  In this article, I'm going to share a cryptography class library I've been working on and show you how to use it to perform standards compliant RSA Encryption in Silverlight that is cross compatible with .NET's built in RSACryptoServiceProvider, allowing you to encrypt from Silverlight using my library and decrypt on your website using the RSACryptoServiceProvider.  For brevity, only examples using my class library will be shown except for a few examples that show equivelant functionality from the RSACryptoServiceProvider (RSACSP).

Update 11/24/2010: The Scrypt library has been updated.  Key generation is now performed Asynchronously to avoid blocking the UI thread and freezing the browser.  I've updated the applicable source samples in this article to reflect the changes.

More...

UI Updates With Databinding and INotifyPropertyChanged

Today I'm going to show you how easy it is to leverage the power of property binding in Silverlight.  I'm going to provide a very simplistic example that, while not very useful in itself, I hope will spark your imagination and show you how easy it is.  In my example I'm going to show you how to capture the position of the mouse over a canvas and keep the live updated mouse position in a separate class.  In addition, I'll show you how to update your UI directly (moving a box with the mouse and using labels to show the current mouse position) without directly wiring a single event to those controls in your page codebehind!

Before the MVVM pattern folks start foaming at the mouth over this article, I'd like to point out that this is meant to be a very simple demonstration and is not meant to be an MVVM application.  However, I will introduce you to a few concepts along the way that you will leverage in the MVVM design pattern.  I'm going to briefly introduce you to the DataContext object and I'll be storing the mouse data in a separate class but I will not create a complete Model-View-ViewModel separation for this example.  I will, however be encouraging a separation of UI and logic that will serve as a good starting place when you decide to dive into the world of MVVM.  Now, on with the show...

 More...