Wednesday
Feb152012

Load Testing with windows Azure

I started about a year ago delving into a project where I was using Azure to test an Azure web site and determine the loads and how much load a particular instance could take and the value of how we planned to grow based on those loads. It was interesting and had no support. I got a lot of what I was doing from a microsoft blog post found here. His insight was a great concept, from there I started to play with the different variables and understand why it was done as it was.

I later did a similar project where I needed to test a non-azure web site but found that the tests were hitting a bandwidth capacity internally that was jeapordizing the tests. So I moved the agents to Azure and found the solution to not only work well, but was very scalable, and cost effective.

So after a year of using it, I thought I would share my findings and this knowledge with the community, and thus my first talk on Load testing and using Azure in your test rig will be my topic tonight at Chicago .NET User Group.

Like all talks I wanted to provide my demo materials and power point for reference. See below.

Power Point Presentation (1.2 MB)

Azure Agent (Worker Role Project) ( 480 KB )

Monday
Jul252011

Windows Phone 7: Pivot Page Indicator Control

One of the first applications I did with Windows Phone 7, utilized the pivot control. I imagine that type of control to be very popular in future development as it works perfectly with a lot of different application themes.

While I won't get into any misgivings or opinions on the use of the control, I will say that I wanted to provide a better experience for my application and wanted to provide the user with some sense of how many pages were in the particular series of "pivots" and exactly what page in that series they were on.

It is a simple concept really, we see these types of UI like experiences in other popular phone and web applications including Apple and Android. So with that said I created a control that is fully skinnable that mirrors those typical devices and works great with the pivot control.

So if you were looking for a solution to make your paging look like that of an apple or android paging indicator, look no further.You can simply enter the following xaml with the dll reference as follows or check out the sample to see a full sample use case:

<cl:PivotPageIndicator PageCount="{Binding Path=Items.Count,ElementName=PivotControlName}"SelectedIndex="{Binding Path=SelectedIndex,ElementName=PivotControlName}" />

Below is the source, so feel free to use at your liesure. I provided 2 things:

The DLL Only: PivotPageIndicatorDLL.zip 4Kb

The VS Source Project (with Sample): PivotSample.zip 98Kb

And please let me know if you enjoyed this solution and found it useful.

Thursday
May262011

Silverlight 5 Talk & Demo Materials

I will be presenting at CNUG tonight at 5/26/2011 in Downer's Grove, IL to talk about Silverlight 5's new features as announced at MIX'11. Dave Bost will be covering the Windows Phone Mango announcements and I will follow up with Silverlight 5, specifically going into details of how these features work, how we can start to use them and what these features mean for you, the developer.

If you miss that talk, since I didn't give much heads up notice. I will also be doing this talk at the Silverlight User Group in Chicago on 6/1/2011 downtown at the ITA building. So if you are interested in Silverlight or want to know what's new, I encourage you to check it out.

For those who went to one of these talks or for those who just want to see code, I am attaching my demo below. Understand you will need Silverlight 5 beta 1 installed in order for this to work, but its yours to check out.

 Silverlight 5 Demo.zip 3.5mb

Friday
Aug132010

Debugging Silverlight in Firefox

Just a little tip I learned recently but if you are an avid firefox user and you want to debug Silverlight 4 applications in the firefox browser, then here are a few steps you need to take to make that happen, since it doesn't work right out of the gate.

Step 1
In firefox, at the address bar type "about:config" without the quotes. If done correctly you will see a little warning.

Step 2
Accept the warning. Tell it you will be careful, you promise.

Step 3
In the filter field, type "dom.ipc.plugins.enabled.npctrl.dll" and you should see only 1 entry.

Step 4
Change the value from "true" to "false". You can do this by just double-clicking the entry.

Step 5
Restart the browser and you should be good to go.

Of course you could ignore all that and manually attach the visual studio debugger to "plugin-container.exe" but that would be painful and the above way is much easier.

Thursday
Aug052010

Talk - XAML: Things you should know

I gave my "XAML: Things you should know" talk at Chicago's Silverlight User Group last night. For those who missed it, I will be giving the same talk at CNUG: Chicago .Net User Group on August 18th. You can find out more here.

The talk focuses on subjects that are usually overlooked on your typical Silverlight or WPF presentations. I will focus on all things XAML. Specifically, I will be talking about Layout, Animation, Visual States, and Styling. So, if you are in Chicago, check it out.

As promised I uploaded the demo samples: XamlDemo.zip (570 KB)