Tag | Geekswithblogs.net Posts

This post is about using the AsyncOperationService with .NET Asynchronous Pattern. Warning: this is another article that is likely to give you a headache. Its designed to provide full details of how things work. If you don’t want the headache then, skim the article and copy’n’paste the code from the “FromAsyncPattern” box below (it assumes you already have AsyncOperationService code). Subsequent articles will outline more real world uses which may (and I say “may” very tentatively) not be so headache ...
Let’s define what this should mean and be about. How can I as an IT Pro be able to use TFS for the tasks and activities I normally do. Whether it is controlling a project or creating scripts and such. The vision while it goes into execution with TFS, will include a process with SharePoint somewhere in there too. Scenario #1: Change Control, Change Management or Specific no-code Project Control. As an IT Pro, what do I do? Change Control, Change Management, Project Management. The problem? Yes, we ...
It’s been quite a while since I’ve done a GeeksWithBlogs.net Influencers review. This time, I had the opportunity to check out Red Gate’s SmartAssembly 6.1, which is a integrated collection of tools for modifying and manipulating assemblies. Now that phrase, while accurate, is quite a mouthful. So what all does it actually do? SmartAssembly has the ability to: Do strong name signing; Add automated error reporting; Add feature usage reporting; Merge dependencies (e.g. libraries) into the main assembly ...
Apologies in advance for any problems caused as I move over to http://ericnelson.wordpress... over the next few days. I will blog again on here when the move is fully complete. I have had a superb time on http://geekswithblogs.net which I moved to back in January 2009 – but it doesn’t quite match what I am after in a blogging platform right now where as wordpress.com broadly does. This will be my second change of platform in 7 years – it was back in July 2004 I created my first technology blog over ...
In my previous post I have shown how we can use a C# function in the XSLT. Now I want to go one step further and use in the transformation the ASP.NET controls along with their events. Let's start from the sample xml data: <files> <file Id="F58C2962-AC0D-4C55-80A8... Name="file 1" Path="D:\Temp\" Extension="iso"/> <file Id="FDC1358E-D9C8-4A70-ABE0... Name="file 2" Path="D:\Temp\" Extension="jpg"/> </files> I want to create a table from it and for each ...
Introduction: One of the concerns that I keep hearing from customers is, “We can’t deploy Silverlight because it won’t run on a tablet.” I usually reply to that question stating, “What do you mean it can’t run on a tablet?” They usually looked puzzled and say, “You mean Silverlight *CAN* run on a tablet?” Yes, there are many devices that Silverlight can run on. Today we are going to take a look at the Motion CL900 Tablet. FYI: I have no affiliation with Motion Computing. Why this tablet? When I first ...
Here is the screenshot of final output. Here is what PoC is doing 1. There is Silverlight application hosted in CRM on custom area-subarea. This in-turn needs two web resources 2. There is Custom button added in Ribbon 3. Third web resource is hosting JavaScript function 4. On click of Custom Button on CRM Ribbon function in JavaScript web resource is called which in-turn calls the method in C# code of Silverlight application. String input is passed to this method 5. C# method is converting the input ...
I’ve had a lot of bad things happen to me in my life. The past few weeks I believe have been a huge test I’ve had some problems with my personal life and some natural disasters. I was thinking during this entire experience what doesn’t kill me makes me stronger. I am going through something traumatic, but you know what I can survive it. I am an incredibly durable person. When things suck I go into crisis mode when I’m on my own. I believe that what made this possible is all the traumas in my life. ...
Guy who runs the excellent DotNetDevNet user group out of Bristol posted back in June on the top speakers from the first 50 meetings and let me know I made the top 10 for knowledge (Cough! ) and presentation skills (I have skills! Wow ) Well, I’ve finally revisited his post to have a proper look and … what a great line up to be in. Above me are the likes of Steve Sanderson, Richard Campbell and Mike Taulty. I’ll take that. Sweet. Thanks Guy ...
I was recently asked to review Studio for Wijmo MVC by Component One and, overall, I am impressed. There are 2 major components of this. The first is Wijmo Complete which is a collection of over 30 UI widgets (very similar to jQuery UI). The second is Wijmo Scaffolding for MVC which builds upon the scaffolding that was released as part of the MVC 3 Tools Update (note: is does *not* build on top of powershell-based MVC Scaffolding which Microsoft released earlier this year). Some of the Wijmo widgets ...
On August 19th 2011 I gave a presentation at devLINK titled, “Producing and Consuming OData in an Silverlight and Windows Phone 7 Application”. As promised, here is the Slides / Code / Resources to my talk. Slides – The query slide in this deck was taken from a slide in Mike Taulty’s talk. This is the first time that I used Prezi in a talk and it worked out wonderful! I want to apologize in advance for embedding a flash player in my blog. It is all that Prezi supports at this time. =( Producing and ...
So, it took a bit of time to arrive, but 2 weeks ago I received my GWB Influencers shirt in the mail. Perfect timing for my talk at Dev4Devs at Microsoft ...
I had added some code behind to a SharePoint 2010 master page and it worked beautifully! I followed Andrew Connell’s blog and article on MSDN. I had actually created two more master pages with an identical code behind as they each needed the same bits. I had each inherit from the same code behind file. Everything worked great until we were having some problems with one of our developers opening a css file form the VPN. So I thought I would just change the master page in SPD temporarily to use a css ...
The August ‘11 TFS Power Tools are ready for download. Brian Harry has a good summary of the update here. The big visible changes are: 1. The ability to use the shell extensions against a TFS not on the same domain as your PC. You now get a credentials prompt. 2. Work Item Search!! The Work Item Tracking toolbar now contains a search box. I know my friend and fellow MVP Etienne Tremblay has been asking for this for about 5 years! 3. Rollback IN THE UI!! TFS 2010 introduced rollback. However, you ...
Ok… it doesn’t really but this still cheered my Thursday eve. Whilst perusing the blog of BF3 I spotted that publisher behemoth EA were doing an “innocent poll” on mobile devices. As background, BF3 is arguably the game of 2011 which puts PC gaming back on the map for mainstream FPS fans, easily outshining what will be available for Consoles. It is also worth pointing out that the poll isn’t so innocent in the sense that EA are making a massive push into mobile gaming – which also happens to include ...
Last time we did have a look into the issues you get if you create many class instances. The more class instances you have the more complex is your object graph which means more work for the GC. If the GC has more work there is less CPU time for your application left which does make it slower. An easy way to fix this issue is to create a struct which is a value type which is copied by value and does not add complexity to your object graph. Common wisdom suggests that your structs should not get bigger ...
Part of the fun of being a consultant is that the technology you use changes from day to day. Recently it is WCF which, while knowing the concepts of since it came out I haven’t used up until now. The nice thing is that it really isn’t any harder to develop for than a normal ASP.NET web service. A couple of the attributes change and which project type you start with is different, but it is still message based services. Just like the method of a web service needs a Webmethod attribute a method in ...
I originally started looking for how to make a TextBox have autocomplete capability. Strangely all the articles said that it couldn’t be done. The last thing you want is for your applications to make your users struggle entering information when every other application gives them a quicker entry method. So what is the solution? The TextBox tag has an InputScope property which if you set it to Text it builds a dictionary list as the user types. For the other InputScope types it mainly changes the ...

I recently discovered this post which shows how you can programmatically update queries in TFS, which is great for…

Read more at http://blog.danskingdom.com/using-tfs-programmatically/

So I've read "Singleton I love you, but you're bringing me down" at http://www.codingwithoutcom... and the articles it refers to. And it makes sense, basically. In my latest code, I created one Singleton (see http://geekswithblogs.net/A... ) and had it hold the reference to my global factory, which, I guess, makes it a service locator. The factory itself uses (and hides from the rest of the code) Ninject 2.0. ...
I’ve just published three webcasts looking at AppFabric Messaging, Introduction to Azure AppFabric Queues, AppFabric Duplicate Message Detection and AppFabric Messaging Message Expiration. There are more webcasts on the AppFabric June CTP here. This article will take a look at the code used in the duplicate detection webcast and explain the concepts involved. Bear in mind that this code is based on the AppFabric June CTP, things may change when the production version is released. AppFabric Duplicate ...
I often get asked about how we are using Windows Azure internally and under NDA I can share some of the details – but its great to be able to point publicly at some of the excellent work that has been going on. And they are genuine technical case studies … hurrah! :-) How Microsoft IT Deployed a Customer Facing Application to Windows Azure in Six Weeks Learn how the Microsoft IT Volume Licensing team gained experience with Windows Azure by focusing on a straightforward, isolated customer-facing application ...
Several Outlook 2010 users with Exchange 2010 mailboxes reported the following issues. When creating a new message and adding a Universal distribution list to the To: field, they attempt to expand the membership of the DL and they get an “Cannot perform the requested operation. The command selected is not valid for the recipient. The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action.” error message. In addition, if they tried to look at the ...
I have a client that desired to have the MOSS 2007 capability of My Links but in no way wanted My Sites in SharePoint 2010. I took some steps that gave them the capability of My Links by creating a personalized web part that could be linked to in a modal. It worked, However, in addition, they didn’t want users without web admin rights to see the SharePoint ribbon. The result was that admins could use the web part and the personalization data would be kept by SQL in the personalization database. Members ...
In this Issue: Michael Washington, Andrej Tozon, András Velvárt, Michael Crump, Nigel Sampson, Ben Gracewood, Jeremy Likness, Den Delimarsky, Austin Andrews, Morten Nielsen(-2-), and Alex Sorokoletov. Above the Fold: Silverlight: "Using Attribute Validation in Silverlight with WCF RIA Services Example" Jeremy Likness WP7: "SurfCube on Mango Part 3–Share on Facebook, Twitter, LinkedIn" András Velvárt LightSwitch: "How To Create a Simple Control Extension (Or How To Make LightSwitch Controls You Can ...
So, you grabbed the latest Mango Build and installed it on your phone. Now your probably thinking, Why should I update to the latest Mango Beta 2 Refresh? Well, I will give you two good reasons. New Screen Shot Tool built into the Emulator Marketplace Test Kit Screen Shot Tool You may be thinking, there are a hundred ways to take a screen shot. I personally used SnagIt, but this involved a lot of steps. Load up SnagIt. Make sure my Emulator was visible. Click the “Capture Button” in SnagIt. Resize ...
Yesterday I presented at SPSTC, had an absolute blast, and I truly hope the attendees to my session did as well! That was my requirement! We discussed the reasons for failed requirements management, scope creep and other pitfalls. But the main goal behind this is how to enable an effective Requirements Management Engine by using SharePoint Technologies and Team Foundation Server. Keep posted as there is much more to come in this space about that thought process. In the meantime, here is the deck ...
Microsoft isn’t the only one who seems to be pushing native computing once again. We’re now seeing Google at the same table with the current beta release of Chrome. Yes, Chrome now supports native applications to be embedded in a web site and it’s just like embedding JavaScript. More information can be found in here: http://chrome.blogspot.com/... The native client SDK runs a sandbox environment which means Chrome handles security of the module just like ...
Further to comments on this post, I realised my HttpModule which gives a user a friendly error message if they upload a file which is too big only dealt with half of the problem. The maximum size a request can be is specified in the machine.config and web.config in the maximumRequestLength attribute on the httpRuntime element; if a user uploads a file which is larger than that, the part of the HttpModule which checks the request size is by-passed, and the user gets a not-very-friendly 'Maximum Request ...
Recently, several enabled Remote call control (RCC) users reported that they were having issues making phone calls from Communicator. When they attempted to call a number, they got a “Cannot locate <user>” error message and when they clicked on Retry, they got another error message, “There may be an error in the address. Check the address and then try again.” After some troubleshooting, we found out our CSTA Gateway server was using an expired certificate. For communication to take place, the ...
The new version of Windows Azure Tools for Visual Studio 2010 i.e. the August 2011 release just got out. You can read and download it from http://blogs.msdn.com/b/win... My favorite pick is the ability to add MVC3 Web Roles. In the past we had to do certain work-around for running MVC3 Applications. Now, there is an ability to add MVC 3 Web Role There is now support for Universal ...
The TFS 2010 Power Tools, August 11 release shortly on its way, read more about the teaser here at Brian Harrys blog http://blogs.msdn.com/b/bha... What feature would you have liked to be included? Share this post : ...
Its been a while since I played with Web forms, AJAX stuff. I was curious in checking out, particularly how the AJAX Control Toolkit which used to be my favorite in the past is evolving. There is a new release of AJAX Control Toolkit, just hot off the oven. You can download the binaries from http://ajaxcontroltoolkit.c... Now, while the regular way we have downloaded and used AJAX Control Toolkit is by visiting the above codeplex page and download the latest version, there is also a newer ...
In this Issue: Kunal Chowdhury(-2-), Mike Talbot, Michael Washington, Davide Zordan, Pontus Wittenmark(-2-), WindowsPhoneGeek, Pete Brown, Dhananjay Kumar, Erno de Weerd, Jesse Liberty(-2-), Peter Torr, Derik Whittaker, and MIchael Crump. Above the Fold: Silverlight: "Creating a Silverlight 5 Helper for ASP.NET MVC3 Razor" Pete Brown WP7: "Page State–Step by Step" Jesse Liberty LightSwitch: "Using the Telerik Rich Text Editor In Visual Studio LightSwitch" Michael Washington Shoutouts: Laurent Bugnion ...
For a very (too) long time, the installation procedure for MVVM Light sucked. It involved downloading and unzipping files in various locations. Unfortunately, creating an automated installer is not completely trivial because of the variety of files that are getting installed: Binaries, Code Snippets, Project and Item Templates, all require different locations, and all that for VS2008, VS2010, Blend 4 and Silverlight 3, Silverlight 4, WPF3.5 SP1, WPF4, WP7.0 and now WP7.1 “Mango”. Read the rest of ...
I had some really great responses to my last post regarding some bad code I've shown to interviewees - pretty much everything I intended to be bad was spotted, as well as some interesting points I hadn't considered. Here's the code again along with the bad bits as I saw them, and then I'll go over the extra points raised in the comments. The bad code: namespace MyNamespace { using System; public class Customer { public void PlaceOrder(string orderReference, OrderedProductData[] orderedProductData) ...
If you plan to use Silverlight for Windows Embedded on an i.MX53 from Freescale, give a look at: http://www.adeneo-embedded.... Adeneo Embedded developed an OpenGL rendering plugin that will offload most of the rendering to the dedicate hardware and will provide a more responsive UI leaving plenty of CPU cycles for your own code. This will lead to a better user experience for the end-users of your devices ...
Introduction One of the things that I recently had someone show me was using the “Copy Xaml” feature in Expression Design to create HTML5 SVG Path Data. I later found out that this was demoed at MIX11 in a session called HTML5 for Silverlight Developers. So with that said, I don’t take credit for discovering this, just documenting it for others to use. If you want to see the final product then click here. Go ahead and right click on the page and you will see it’s just path data (no image – just straight ...
This is very cool Just found this fab, tool to generate all the insert statements you need from a SQL database. If you have SQL Server 2008 R2 Installed - Run "C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Publishing\... This lets you select individual tables, views, stored procedures and script out both data and schema structures. Perfect for populating SQL Azure, when migrating from on-Premise databases ...
This blog has been relocated to http://blachniet.com. See this post at it's new home: http://blachniet.com/2011/0... is post is meant to be a more straightforward overview of my previous post. The previous post got a little long and turned into a walthrough. If you need a walkthrough of this, check out that post at http://geekswithblogs.net/b... So in my new exploration ...
This morning I got the information that the Windows Azure Tools for Visual Studio 2010 - August 2011 Upgrade had been released. The version of this new upgrade is 1.4.40727.1601 with the Windows Azure SDK v1.4.20407.2049. This upgrade includes some awesome features that I was looking forward for a long time, which are: Profiling the application running in Windows Azure. New ASP.NET MVC 3 web role template. Multi-configuration files in one cloud project. More validation in the service package and ...
Desde que escribí mi primer post sobre como utilizar JqGrid con asp.net (http://geekswithblogs.net/... he recibido varias consultas sobre como realizar un maestro detalle utilizando este control de jquery. Antes de comenzar debo mencionar que para mostrar un maestro detalle con JqGrid tenemos dos opciones: 1. Realizarlo con un subgrid 2. Utilizar dos JqGrid separados Así que, teniendo esto en cuenta, el objetivo de este post será ...
NB: This post is followed up here. You can learn a lot about good code from reading bad code, and at least something about how well someone codes from what they can tell you about bad code. With this in mind I handed a print out of some bad code to the latest prospective developers I've interviewed, to see what they made of it. The bad code is below; I'll write another blog with the things I think is wrong with it soon (there's quite a lot of it), but it'd be very interesting to hear what people ...
Keeping things short and simple, here I am will demonstrate on how to setup synchronization between Microsoft Dynamics NAV 2009 R2 and Microsoft Dynamics CRM 2011 using the Connector for Microsoft Dynamics. Configuring Connector for MS Dynamics (Microsoft Dynamics CRM Adapter) Assuming that you had a smooth installation of the Connector, let’s start by configuring the CRM Adapter. For the CRM Online, make the following settings: Domain crm.dynamics.com User Name Windows Live ID for your CRM Online ...
I am all set, have my presentation ready. Excited, can hardly wait!! Don’t miss the early bird special for SharePoint Saturday The Conference in DC! Ends Aug 7! http://bit.ly/nXVwgm ...
Ever since I started working with SharePoint, I have always felt the “standard” grouping most training organizations make for people are the same old three: Admins, Devs and Users. True it fits most molds, but not as effective as truly understanding the value of roles. Now, the title of the post is in fact Lync Training Plans. The Lync Team has put together some guidance in the form of (drumroll!) Training Plans based on roles that go beyond your “User” grouping. You can download it here It is an ...
I’ve been slowly creating a new WP7 game over these past few months. In the process, I began experimenting with Dxt compression. It’s a very nice feature, especially on the phone where high DPIs make Dxt’s artifacts less visible. One thing I didn’t like, though, was the way that XNA’s default Texture Processor handles resizing to power of two. When using Dxt compression with the Reach graphics profile, you need to use textures that are power of two sized (e.g. 32x64). Dxt itself requires that the ...
l will show you what I am doing lately with jquery. I started out using the suckerfish menu for a customer app. All went fine for awhile but suddenly the menu started acting weird with problems indenting and such. I finally figured it must be interacting with other css stuff. So, I thought how the heck do I fix this? What if I could just use jquery and keep all of the action in jquery and put the style in in the menu class and just spit it out. Most of the properties would get put into attributes ...
Its been quite some time since I last post on the subject of the AsyncOperationService (in fact quite some since I posted period). In real world use I found some common patterns emerge that has lead me to make a few small adjustments to eliminate some common duplication I was seeing in code consuming the service. Here is the new code file for my ever so slightly improved AsyncOperationService in its entirety. AsyncOperationService using System; using System.Windows; using System.Collections.Generic; ...
Introduction I’m proud to announce my first eBook and update to my article series on OData for Silverlight and Windows Phone 7 is complete. I have worked very hard on this series and am pleased with the work. I may be a little biased, but I believe this is the best step-by-step guide ever created for OData and Silverlight/WP7 Mango. In the series, I walk you through every step with detailed screenshot and code snippets. From creating the OData data service to consuming it in an Silverlight application ...