Wednesday, March 31, 2010

New Channel 9 Video : Bruno Sonnino on DiskPie Pro in WPF

New Channel 9 Video : Bruno Sonnino on DiskPie Pro in WPF


New Channel 9 Video : Bruno Sonnino on DiskPie Pro in WPF

Posted: 31 Mar 2010 10:34 AM PDT

At the 2010 MVP Summit in Redmond, I met up with the always-fun Microsoft MVP Bruno Sonnino. Bruno has developed a ton of great utilities over the years, including many for PC Mag. In this video , Bruno talks about DiskPie Pro 2 , a utility originally...( read more )...(read more)

Porting NHProf from WPF to Silverlight - Day 3

Posted: 31 Mar 2010 06:58 AM PDT

On Monday I spent a good four hours working on the port. I decided to flesh out the functionality of the Main Menu. As I mentioned before , none of the menu controls available support commanding. Fortunately, Caliburn has its own mechanism which is much...( read more )...(read more)

A RoleManager to apply roles declaratively to user interface

Posted: 30 Mar 2010 02:17 PM PDT

One of the recurrent questions people ask me in the forums is about the applying of security constraint to the applications being developed. The last releases of useful tools like WCF Ria Services added the capability of bringing the security context...( read more )...(read more)

Temporary Post Used For Theme Detection (1fcade78-c37a-45f9-b68d-329ec3a93f8c - 3bfe001a-32de-4114-a6b4-4005b770f6d7)

Posted: 31 Mar 2010 02:09 AM PDT

This is a temporary post that was not deleted. Please delete this manually. (d4d07dbe-e919-4118-957c-8de122a4efff - 3bfe001a-32de-4114-a6b4-4005b770f6d7)...( read more )...(read more)

Silverlight Cream for March 30, 2010 -- #825

Posted: 30 Mar 2010 09:40 PM PDT

In this Issue: Jeremy Likness , Tim Greenfield , Tim Heuer , ondrejsv , XAML Ninja , Nikhil Kothari , Sergey Barskiy , Shawn Oster , smartyP , Christian Schormann ( -2- ), and John Papa And Glenn Block . Shoutouts: Victor Gaudioso produced a RefCard for...( read more )...(read more)

New hard drive means re-install everything

Posted: 30 Mar 2010 09:14 PM PDT

I recently found a good deal on a 7200 RPM 500GB latpop drive and decided to upgrade myself to that. I've been operating on a 150GB drive for a long time and hadn't been cleaning up old projects, encodings, etc. so it was running thin on space. This was Read More......(read more)

New hard drive means re-install everything

Posted: 30 Mar 2010 09:14 PM PDT

I recently found a good deal on a 7200 RPM 500GB latpop drive and decided to upgrade myself to that. I've been operating on a 150GB drive for a long time and hadn't been cleaning up old projects, encodings, etc. so it was running thin on space. This was...( read more )...(read more)

Space Rocks game step 7: Moving the ship

Posted: 30 Mar 2010 08:31 PM PDT

Source code: http://www.bluerosegames.com/spacerocks/spacerocks_7_moving_ship.zip In the last step we added logic to rotate the ship based on key presses. Moving the ship isn't that different but we need to do a little trigonometry to get it moving in...( read more )...(read more)

RIA Services - Documentation Guidance and Community Samples

Posted: 30 Mar 2010 07:20 PM PDT

As the RIA Services team is wrapping up our V1 release, several team members have been diving into the forums , writing blog posts, and in general trying to connect with the community to make sure we're tying up all of our loose ends. We would also like Read More......(read more)

What tools are the minimum to get started in Silverlight?

Posted: 30 Mar 2010 05:15 PM PDT

Help me out with a bit of some research here. In your opinion…what tools (from Microsoft) are the MINIMUM needed to get started with Silverlight? I'm not talking about full-blown MVVM, MEF loading, Live Smooth Streaming applications…I'm talking about...( read more )...(read more)

Cleaner HTML Markup with ASP.NET 4 Web Forms - Client IDs (VS 2010 and .NET 4.0 Series)

Posted: 30 Mar 2010 07:02 PM PDT

This is the sixteenth in a series of blog posts I'm doing on the upcoming VS 2010 and .NET 4 release. Today's post is the first of a few blog posts I'll be doing that talk about some of the important changes we've made to make Web Forms in ASP.NET 4 generate clean, standards-compliant, CSS-friendly markup.  Today I'll cover the work we are doing to provide better control over the "ID" attributes rendered by server controls to the client. [ In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu ] Clean, Standards-Based, CSS-Friendly Markup One of the common complaints developers have often had with ASP.NET Web Forms is that when using server controls they don't have the...(read more)

What tools are the minimum to get started in Silverlight?

Posted: 30 Mar 2010 05:15 PM PDT

Help me out with a bit of some research here. In your opinion…what tools (from Microsoft) are the MINIMUM needed to get started with Silverlight? I'm not talking about full-blown MVVM, MEF loading, Live Smooth Streaming applications…I'm talking about Read More......(read more)

A C# implementation of the CallStream pattern

Posted: 30 Mar 2010 05:18 PM PDT

Dusan published this interesting post a couple of weeks ago about a novel JavaScript chaining pattern: http://dbj.org/dbj/?p=514 It's similar to many existing patterns, but the syntax is extraordinarily terse and it provides a new form of friction-free, plugin-less extensibility mechanism. Here's a JavaScript example from Dusan's post: CallStream( "#container" ) (find, "div" ) (attr, "A" , 1) (css, "color" , "#fff" ) (logger); The interesting thing here is that the functions that are being passed as the first argument are arbitrary, they don't need to be declared as plug-ins. Compare that with a rough jQuery equivalent that could look something like this: $.fn.logger = function () { /* ... *...(read more)

New Psscor2 commands – DumpAllExceptions

Posted: 30 Mar 2010 03:35 PM PDT

There have been a few places where you can see this command run, but I wanted to talk about it here officially.  This command is used to display all of the exceptions that are currently in the managed heap.  One interesting thing is that this function actually looks at what class the object derives from and if it derives from System.Exception, then it will show up in the list.  So you can have your own custom exceptions shown here regardless of what naming mechanism you use for your class. There is some helpful information about the output from this command here: ASP.NET Debugging - ASP.NET Tips- DumpAllExceptions , namely that if you run it twice, you may see different callstacks from the various exceptions. Here is the documentation...(read more)

Visual Web Developer Team is Hiring

Posted: 30 Mar 2010 11:16 AM PDT

We're looking for someone who is passionate about web technologies and the developer experience.  If you've been an avid Visual Studio developer building great web applications and longed for an even more compelling experience in Visual Studio, Now is your chance.  Visual Studio already offers the one of the most comprehensive authoring experiences for the web today supporting web standards like HTML, CSS and JavaScript and server technologies such as ASP.Net, MVC, SQL Server and IIS.  We're looking for someone with the passion and energy to help us raise the bar even further in our next generation of tooling for the web. You can learn more and apply for this position at: Program Manager II - Web Development Tools If you're curious...(read more)

10 Tips to Keep yourself Sane while Working from Home (or alone)

Posted: 30 Mar 2010 01:14 PM PDT

When I interviewed for the position on Scott Hanselman 's team, one of the questions Scott asked me was if I'd be able to handle working from home, with the isolation that usually entails. Telecommuting (I hate that word) isn't for everyone, so the question...( read more )...(read more)

Monday, March 29, 2010

YourSqlDba

YourSqlDba


YourSqlDba

Posted: 20 May 2009 03:35 PM PDT

T-Sql Database script that creates a database maintenance environnement using SQL Agent SQL Mail. Performs database optimization, integritry check, databases backups (complete and recurrent logs). Include some utilities written in T-SQL. Maintenance is highly customizable.

ASP.NET/HTML Spell Checker 2.3 is available for Visual Studio 2010

Posted: 29 Mar 2010 09:40 AM PDT

ASP.NET/HTML Spell Checker 2.3 for Visual Studio 2010 has been posted on Visual Studio Gallery (also accessible from Visual Studio Start page in 'Extending Visual Studio' section). Direct link: http://visualstudiogallery.msdn.microsoft.com/en-us/0db4814c-255e-4cc6-a2c2-a428de7f8949 What's new in version 2.3: VS 2010 version installs from gallery as Visual Studio Extension package (VSIX) In VS 2010 suggestion list is invoked via right button click (instead of double click as in earlier versions). Fixed bug: Fixing misspelled word it may also remove punctuation that immedialy follows it. For additional information please refer to readme.htm included in the download - you can find it in the extension directory, typically C:\Users\USER_NAME...(read more)

Silverlight 4 + RIA Services - Ready for Business: Exposing WCF (SOAP\WSDL) Services

Posted: 29 Mar 2010 09:31 AM PDT

Continuing in our series , I wanted to touch on how a RIA Services can be exposed as a Soap\WSDL service. This is very useful if you want to enable the exact same business logic\data access logic is available to clients other than Silverlight. For example Read More......(read more)

Silverlight 4 + RIA Services - Ready for Business: Exposing WCF (SOAP\WSDL) Services

Posted: 29 Mar 2010 09:31 AM PDT

Continuing in our series , I wanted to touch on how a RIA Services can be exposed as a Soap\WSDL service. This is very useful if you want to enable the exact same business logic\data access logic is available to clients other than Silverlight. For example Read More......(read more)

Silverlight 4 + RIA Services - Ready for Business: Exposing WCF (SOAP\WSDL) Services

Posted: 29 Mar 2010 09:31 AM PDT

Continuing in our series , I wanted to touch on how a RIA Services can be exposed as a Soap\WSDL service. This is very useful if you want to enable the exact same business logic\data access logic is available to clients other than Silverlight. For example to a WinForms application or WPF or even a console application. SOAP is a particularly good model for interop with the Java\JEE world as well. First you need to add a reference to Microsoft.ServiceModel.DomainSerivves.Hosting.EndPoints assembly from the RIA Services toolkit. Then you need to edit the endpoints section of the domainserivces config in web.config file. Below I am showing the SOAP and OData endpoints enabled. < system.serviceModel > < domainServices > < endpoints...(read more)

New Channel 9 Video: Robert Kihm on Aptify RAD

Posted: 29 Mar 2010 10:45 AM PDT

While at MIX10, I caught up with my friend Robert Kihm from Aptify. They have a great business application development platform that makes it easy to create apps that target different UIs and platforms without making code changes. In addition to the robust...( read more )...(read more)

PreEmptive Solutions Runtime Intelligence for the Microsoft Silverlight Analytics Framework

Posted: 29 Mar 2010 10:36 AM PDT

Sebastian Holst at PreEmptive Solutions just posted a walkthrough video of their Runtime Intelligence analytics component for the Microsoft Silverlight Analytics Framework . PreEmptive was one of the launch partners for the framework and has done a great...( read more )...(read more)

MSDN Radio follow-up answers: Prism for Silverlight, DomainServices and relationships

Posted: 29 Mar 2010 10:24 AM PDT

This morning I was on a weekly (new) radio show from MSDN, hosted by Mike Benkovich . The show, MSDN Radio , features live call-in questions that you can ask. It was a better format than the typical live meeting text-based QA I thought. I think hearing...( read more )...(read more)

New York Times Silverlight Kit Updated for Windows Phone 7 Series

Posted: 29 Mar 2010 09:27 AM PDT

I spent a little time adapting the New York Times Silverlight Kit this weekend to work on the Windows Phone 7 Series and created my first Silverlight application for the Windows Phone 7 Series. It was actually very easy – I just had to add a few #if statements...( read more )...(read more)

MSDN Radio follow-up answers: Prism for Silverlight, DomainServices and relationships

Posted: 29 Mar 2010 10:24 AM PDT

This morning I was on a weekly (new) radio show from MSDN, hosted by Mike Benkovich . The show, MSDN Radio , features live call-in questions that you can ask. It was a better format than the typical live meeting text-based QA I thought. I think hearing Read More......(read more)

FXG Import for Expression Blend previewed at MIX10

Posted: 29 Mar 2010 07:06 AM PDT

This is an excerpt from the day 1 keynote at MIX10, of Jon Harris building a Windows Phone application in Expression Blend. Although the demo is slick, the main thing I wanted to point out here is the preview of the FXG Import, which is shown in the first...( read more )...(read more)

The Silverlight Tour - what, where and why. Interview with one of the Tour organizers Laurent Duveau

Posted: 28 Mar 2010 05:47 PM PDT

The Silverlight Tour is one of the most intensive courses in Silverlight 4. It takes just 4 days to learn and experience the ins and outs of design, development and server-side programming with Silverlight. We talk to one of the course organizers in Canada...( read more )...(read more)

PathListBox Adventures – radial layout

Posted: 29 Mar 2010 04:13 AM PDT

The PathListBox ROCKS, if you have not heard of this control before then checkout Christians blog for more details and also his session at mix 10. The PathListBox solves some of the tricky issues related to creating custom panels for a ListBox or ItemsControl...( read more )...(read more)

Creating a Windows Phone 7 Metro Style Pivot Application [Part 1]

Posted: 28 Mar 2010 08:31 PM PDT

I just posted a screencast showing how to create a basic Windows Phone 7 application that follows the Pivot style of navigation using Blend. This first screencast should be good enough to get most people by until more official Pivot and Navigation templates...( read more )...(read more)

Windows Client Developer Roundup for 3/29/2010

Posted: 29 Mar 2010 01:13 AM PDT

This is Windows Client Developer roundup #18. Starting with this issue, I'll be combining the WPF and Silverlight sections, in recognition of the shared nature and dual applicability of many of the posts, and breaking out the topics more by topic area...( read more )...(read more)

Windows Client Developer Roundup for 3/29/2010

Posted: 29 Mar 2010 01:13 AM PDT

This is Windows Client Developer roundup #18. Starting with this issue, I'll be combining the WPF and Silverlight sections, in recognition of the shared nature and dual applicability of many of the posts, and breaking out the topics more by topic area...( read more )...(read more)

NoSQL is not about object databases

Posted: 29 Mar 2010 01:33 AM PDT

NoSQL as a movement is an interesting beast. I kinda like that it's negatively defined (I happen to belong myself to at least one other such a-community). It's not in its roots about proposing one specific new silver bullet to kill an old problem. it's about challenging the consensus. Actually, blindly and systematically replacing relational databases with object databases would just replace one set of issues with another. No, the point is to recognize that relational databases are not a universal answer -although they have been used as one for so long- and recognize instead that there's a whole spectrum of data storage solutions out there. Why is it so hard to recognize, by the way? You are already using some of those other data storage solutions...(read more)

Silverlight Cream for March 28, 2010 -- #823

Posted: 28 Mar 2010 09:10 PM PDT

In this Issue: Michael Washington , Andy Beaulieu , Bill Reiss , jocelyn , Shawn Wildermuth , Cameron Albert , Shawn Oster , Alex Yakhnin , ondrejsv , Giorgetti Alessandro , Jeff Handley , SilverLaw , deepm , and Kyle McClellan . Shoutouts: If I've listed...( read more )...(read more)

Windows Phone: Silverlight for Casual Games

Posted: 28 Mar 2010 03:58 PM PDT

Thanks to everyone who attended my session at Code Camp 13 in Waltham , "Windows Phone: Silverlight for Casual Games." It's great to see so many people sharing my excitement for Windows Phone 7 ! In this session, we talked about the new hardware, Silverlight...( read more )...(read more)

Space Rocks game step 6: Keyboard handling

Posted: 28 Mar 2010 03:22 PM PDT

Source code: http://www.bluerosegames.com/spacerocks/spacerocks_6_keyboard.zip Your Silverlight game is probably going to need some way to get input, otherwise it won't be much of a game. In web based games the two major forms of input are keyboard or...( read more )...(read more)

Sunday, March 28, 2010

Creating an OData API for StackOverflow including XML and JSON in 30 minutes

Creating an OData API for StackOverflow including XML and JSON in 30 minutes


Creating an OData API for StackOverflow including XML and JSON in 30 minutes

Posted: 28 Mar 2010 10:29 AM PDT

I emailed Jeff Atwood last night a one line email. "You should make a StackOverflow API using OData." Then I realized that, as Linus says, Talk is Cheap, Show me the Code. So I created an initial prototype of a StackOverflow API using OData on an Airplane. I allocated the whole 12 hour flight. Unfortunately it took 30 minutes so I watched movies the rest of the time. You can follow along and do this yourself if you like. Preparation Before I left for my flight, I downloaded two things. First, I got Sam Saffron's "So Slow" StackOverflow SQL Server Importer . This is a little spike of Sam's that takes the 3gigs of XML Dump Files from StackOverflow's monthly dump and imports it into SQL Server. If you care, that...(read more)

.NET 4 Web Application Startup Time

Posted: 28 Mar 2010 07:19 AM PDT

I was chatting with Jonathan Hawkins and some of the folks on the ASP.NET team about performance and Jonathan mentioned the startup time for large ASP.NET applications is improved on .NET 4. There are some improvements in the CLR and in ASP.NET itself that helped. If you have a giant app, you should do some tests. The word from the ASP.NET team is that you'll see improvements when the .NET framework (CLR) is warm in memory but the Web App is cold on disk . This is for shared hosting scenarios where the web server is loading and unloading web applications while .NET remains in memory. Web App Name NETFX3.5 SP1 NETFX4 Change Change as % of NETFX3.5 blogengine 1.959s 1.702s (0.256s) -13.08% dasblog 3.151s 2.818s (0.333s) -10.58% dotnetnuke...(read more)

Silverlight 4 : Indic Support in Silverlight

Posted: 28 Mar 2010 03:59 AM PDT

Hope you all folks doing well and enjoying every bit of Silverlight 4 RC, After hell lot of work in weekdays and over weekend, finally I managed to open my Live Writer today and hopefully will start buzzing here from coming weeks again like I use to in...( read more )...(read more)

Comparison of HTTP polling duplex and net.tcp performance in Silverlight 4 RC

Posted: 27 Mar 2010 04:44 PM PDT

One of the new features added in Silverlight 4 RC that shipped at MIX 2010 is a new mode of the HTTP polling duplex protocol which greatly improves the performance of data push scenarios compared to the previously available versions of HTTP polling duplex...( read more )...(read more)

How I use Twitter in my Job at Microsoft

Posted: 27 Mar 2010 04:52 PM PDT

As a Windows Client ( WPF , Silverlight , Windows Phone, Native, XNA, Surface) community guy on Scott Hanselman 's team at Microsoft, I am constantly on Twitter . I've found twitter to be pretty indispensible for keeping up with the community, and for...( read more )...(read more)

How I use Twitter in my Job at Microsoft

Posted: 27 Mar 2010 04:52 PM PDT

As a Windows Client ( WPF , Silverlight , Windows Phone, Native, XNA, Surface) community guy on Scott Hanselman 's team at Microsoft, I am constantly on Twitter . I've found twitter to be pretty indispensible for keeping up with the community, and for...( read more )...(read more)

Silverlight 4, Blend 4, MVVM, Binding, DependencyObject

Posted: 27 Mar 2010 04:46 PM PDT

I was thinking about an aspect of the new MVVM support that Expression Blend 4 has and how ( I think – someone can tell me if I'm wrong ) it all starts with a seemingly small change in data-binding in Silverlight. If I take a ViewModel like this into...( read more )...(read more)

My First WP7 Application

Posted: 27 Mar 2010 10:01 AM PDT

URL : http://wildermuth.com/downloads/phonexboxbrowse... I've been playing around with the new Windows Phone 7 Silverlight development. If you want to start playing with these early CTP bits, you can get them at: http://developer.windowsphone.com/ I looked...( read more )...(read more)

Saturday, March 27, 2010

Silverlight Cream for March 27, 2010 -- #822

Silverlight Cream for March 27, 2010 -- #822


Silverlight Cream for March 27, 2010 -- #822

Posted: 27 Mar 2010 12:10 PM PDT

In this Issue: MSDN , Bill Reiss , Charlie Kindel ( -2- ), SilverLaw , Scott Marlowe , Kenny Young , Andrea Boschin , Mike Taulty , Damon Payne , and Jeff Handley ( -2- ). Shoutouts: Scott Morrison has his material up for his talk at MIX 10: Silverlight...( read more )...(read more)

My talk on MIX10 (french)

Posted: 27 Mar 2010 10:58 AM PDT

This week I was invited at the Visual Studio Talk Show , a french .NET podcast, to talk about all the announcements (mainly Silverlight 4 RC, Windows Phone 7, IE9, …) made at MIX this year, so in case you need a recap... Les nouveautĂ©s de la confĂ©rence...( read more )...(read more)

Simulating accelerometer data in the Windows Phone 7 emulator

Posted: 27 Mar 2010 10:49 AM PDT

Testing a game in the Windows Phone emulator that uses the accelerometer can be tricky since that data can be hard to simulate. Peter Blois in his labyrinth sample uses mouse movement to simulate it, but this only allows for 2 directions of movement....( read more )...(read more)

iPhone SDK vs. Windows Phone 7 Series SDK Challenge, Part 2: MoveMe

Posted: 26 Mar 2010 06:42 PM PDT

In this series, I will be taking sample applications from the iPhone SDK and implementing them on Windows Phone 7 Series. My goal is to do as much of an "apples-to-apples" comparison as I can. This series will be written to not only compare and contrast how easy or difficult it is to complete tasks on either platform, how many lines of code, etc., but I'd also like it to be a way for iPhone developers to either get started on Windows Phone 7 Series development, or for developers in general to learn the platform. Here's my methodology: Run the iPhone SDK app in the iPhone Simulator to get a feel for what it does and how it works, without looking at the implementation Implement the equivalent functionality on Windows Phone 7 Series using Silverlight...(read more)

Book Excerpt: The Silverlight Layout System

Posted: 26 Mar 2010 07:51 PM PDT

I'm on the road to finishing up Silverlight in Action, Revised edition . This is really turning out to be the definitive Silverlight book. I hope you all enjoy reading it as much as I have enjoyed writing it. One interesting thing that has happened is...( read more )...(read more)

Book Excerpt: The Silverlight Layout System

Posted: 26 Mar 2010 07:51 PM PDT

I'm on the road to finishing up Silverlight in Action, Revised edition . This is really turning out to be the definitive Silverlight book. I hope you all enjoy reading it as much as I have enjoyed writing it. One interesting thing that has happened is...( read more )...(read more)

Silverlight Cream for March 26, 2010 -- #821

Posted: 26 Mar 2010 04:58 PM PDT

In this Issue: Max Paulousky , Christian Schormann , John Papa , Phani Raj , David Anson ( -2- , -3- ), Brad Abrams ( -2- ), and Jeff Wilcox ( -2- , -3- ). Shoutouts: Jeff Wilcox posted his material from mix and some preview TestFramework bits: Unit Testing...( read more )...(read more)

“Peppermint” MIX demo sources

Posted: 26 Mar 2010 02:30 PM PDT

At MIX, during my talk on unit testing Silverlight and Windows Phone applications, I demoed a simple application called 'Peppermint'. Here's the source; I'll be writing up a full tutorial on Windows Phone later, so these are just 'bleeding-edge bits' Read More......(read more)

When you have two good options, go with the easier one [Tip: Set DependencyProperty default values in a class's default style if it's more convenient]

Posted: 26 Mar 2010 09:53 AM PDT

Tip Set DependencyProperty default values in a class's default style if it's more convenient Explanation In the previous tip , I explained why it's usually wrong to assign a value to a Silverlight/WPF DependencyProperty in the constructor for a class...( read more )...(read more)