Tag | .NET Posts

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 ...
This is a very through book about Dot Net that I have completed reviewing. I commend it to all C# development teams and to individual developers with at least a year's worth of C# experiance. The only drawback is that there should be a VB.NET equivalent book for the benefit of the many programming shops that have chosen VB.NET. For further details about the book see: http://oreilly.com/catalog/... One very interesting thing I found (on page 835) was that the C# lock keyword can give rise ...
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 ...
What is Common Service Locator?Today we have many Inversion of Control/Dependency Injection Containers like NInject,StructureMap,Unity,.. etc in the .NET world.Most of these vary quite widely in terms of configuration and initialization/registration of the instances.But they provide more or less similar interface while resolving the dependencies and returning object instances.Common Service Locator framework extracts these commonalities out and provides an abstraction on top of these IoC/DI containers.This ...
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 ...
In this Issue: Kunal Chowdhury(-2-), XAMLNinja, Jonathan Marbutt, Rob Eisenberg, Jeremy Likness, Jesse Liberty(-2-), and Derik Whittaker. Above the Fold: Silverlight: "Reflection, Lambda, and Expression Magic" Jeremy Likness WP7: "Working with Live Tiles in WP7 Mango–Creating, Updating and Deleting them" Derik Whittaker LightSwitch: "Visual Studio LightSwitch 2011 Released - Download the Final Version Now" Kunal Chowdhury Shoutouts: Beth Massi has a link post up for lots of good LightSwitch resources: ...
Java has a handy class that retains the order in which map (dictionary in .NET) values can be iterated in the same order they were added called LinkedHashMap. Ways to iterate (*Coding from memory without compiler = chance for syntax errors: high): LinkedHashMap<String,Str... states = new LinkedHashMap<String,Str... states.put("AL", "Alabama"); states.put("AK", "Alaska"); for(Map.Entry<String,Str... state : states.entrySet()){ System.out.print("state: " + state.getValue()); ...
Let me state the obvious, for any application you develop you need to log information, errors, exceptions etc that can help you and others know what’s going on with your application When you create a new Windows Azure application using Visual Studio you will find the following snippet in your configuration file <system.diagnostics> <trace> <listeners> <addtype="Microsoft.Wind... Microsoft.WindowsAzure.Diag... Version=1.0.0.0, ...
Though software fundamentals, patterns, and anti-patterns are by far more important and intellectually stimulating to discuss, sometimes it's difficult to move to a new set of terms. When I first learned to program, .NET was pre v1.1 and the java community was getting ready for v1.4. Naturally, I preferred java because of its price, stability, and all my college classes were java. When I got work developing .NET (a few years later) I had to interpret some of the key words from java to .NET. For instance, ...
Technorati Tags: Scala,C# to Scala Introduction This post gives an overview of Scala from a C# developer’s perspective in light of efforts for a current .Net port coming closer to fruition. By closer I mean they have the compiler done but not the Visual Studio or SharpDevelop plug-in. From what I could find there is also no CLR based REPL available. You are also unable to call CLR code with generic signatures. While all of these issues are being worked on, to have a play I suggest using the JVM implementation ...
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; ...
Normal 0 false false false EN-GB X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Calibri","sans... mso-bidi-font-family:"Times New Roman";} There remains a lot of complacency concerning ...
In this Issue: Mike Talbot, Michael Crump, Kunal Chowdhury, Cheryl Simmons, Joost van Schaik(-2-), Shantimohan Elchuri, Jesse Liberty(-2-), Peter Torr, Pete Vickers, Derik Whittaker, and Den Delimarsky. Above the Fold: Silverlight: "Wordle Like Tag Cloud for Silverlight" Mike Talbot WP7: "Speed and distance calculation extension methods for Windows Phone 7" Joost van Schaik Shoutouts: Check out Pete Brown's interview on .NET Rocks: My .NET Rocks Interview Koen Zwikstra announced a July update: Silverlight ...
ASP.NET Detect and alert forms authentication timeout With help from & thanks to PsychoCoder at http://www.dreamincode.net/... 1. Add sessionState to web.config <system.web> <sessionStatetimeout="1"... /> <!--minutes e.g. 120 = 2 hours--> 2. Add FormsAuthentication to web.config <authenticationmode="For... <!--timeout minutes (needs to be the same as in sessionState above) e.g. 120 = 2 ...
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 ...
In this Issue: Max Paulousky, Ollie Riches, Derik Whittaker, John Garland, WindowsPhoneGeek, Manas Patnaik, Xianzhong Zhu, John Papa, Dhananjay Kumar, Jesse Liberty, Peter Torr, Gill Cleeren, and Jonas Follesø. Above the Fold: Silverlight: "Multiple MonthView DatePicker Control in Silverlight" Manas Patnaik WP7: "Silverlight TV 79: Data Binding Debugging" John Papa From SilverlightCream.com: Windows Phone (Mango) DB Engines Performance Testing Max Paulousky's latest post is on performance testing ...
Shervin Shakibi, Microsoft Regional Director, was our speaker at the West Palm Beach .Net User Group July 2011 meeting. Shervin’s talk was demo-centric where he showcased the power of HTML 5 by example. Issues discussed at the meeting included suggestions on mitigating security concerns with HTML 5 source code accessibility as well as the status and timeline for HTML 5 readiness. Shervin’s much anticipated talk brought us over 25 members who filled our CompTec meeting room. We appreciate Shervin’s ...
In this Issue: XamlNinja(-2-), Ollie Riches(-2-), Michael Washington, Bart Czernicki, Chris Craft, Colin Eberhardt, Kunal Chowdhury, Jasim Schluter, Pete Vickers, Samuel Jack, and Mike Ormond. Above the Fold: Silverlight: "Creating Inner Shadow Effects for WPF and Silverlight" Samuel Jack WP7: "WP7Contrib: Transient caching with In Memory Cache Provider" Ollie Riches LightSwitch: "Using OLAP for LightSwitchUsing OLAP for LightSwitch" Michael Washington Shoutouts: The folks at SilverlightShow have ...
To prepare a bootable CE disk for PC based system, you need to create the partition, format it and transfer the booting files. CE provides a tool CESYS.EXE to transfer boot sector and copy bootloader to target volume for BIOSLOADER. The tool is created since CE 4 and unfortunately, it is out dated and only support FAT12 or FAT16. Modern storage devices have larger capacity and prefer or require to use FAT32/ExFAT. For CE7, there is a new CESYS platform\CEPC\src\boot\tool... that ...
Check out the Top Five most popular news at SilverlightShow for SilverlightShow Top 5 News for July 18 - 24, 2011. Here are the top 5 news on SilverlightShow for last week: Silverlight 5 for Line of Business Applications – Jeremy Likness 100+ articles in SilverlightShow new "Getting Ready for Microsoft Silverlight Exam 70-506" eBook Microsoft has 3 months to make or break Windows Phone – Part 1 Building Cross-Platform Mobile Applications with HTML5 and Mango LINQ Pad vs. Visual Studio for Learning ...
It’s official!! Microsoft released Visual Studio LightSwitch 2011 today. Here are a few places to read more about today’s release and for more information about LightSwitch 2011. Jason Zander’s blog The LightSwitch Team blog Beth Massi’s blog I’m excited about the release. Today’s timing is perfect since we have a project we’re about start and we’re going to be using LightSwitch in order to quickly get a functioning application in front of our users. Based on the initial prototyping work we’ve done ...
As of today, the official release of Lightswitch is now available. Visit: http://www.microsoft.com/vi... or you can download from your MSDN subscription. What is Lightswitch? It is basically a simple to use application generator that can be used to build applications within minutes in many cases. If you have an existing, well structured (primary keys, relationships) SQL Server database you are just a few clicks away from an administration tool and well on the way to a full ...
I have to admit that I’m a basic user when it comes to JSON serialization/deserialization. I’ve used JSON.NET and the DataContractJsonSerializer. I’ve read that JSON.NET is faster and more efficient than the built-in .NET serializer, but I haven’t had to build a system that is dependent on squeezing microseconds out of my serialization routines. That said, I do prefer JSON.NET because it is more flexible when it comes to using DataContractAttribute and DataMemberAttribute for customizing your JSON ...
So, I wanted to build a simple display for the foyer of our building that would display in real-time the zeitgeist of the nation. What better way of testing the pulse of the UK, than pulling down the latest list of Twitter Trends. Twitter exposes this as a nice bit of JSON XML If you call - http://api.twitter.com/1/tr... You get a nice JSON response explained fully here https://dev.twitter.com/doc... .Net 4.0 has a great JSON deseriliser that can quickly read inbound ...
Further to the discussions at http://stylecop.codeplex.co... and http://devnet.jetbrains.net... please will everybody who values the Stylecop/Resharper integration, post at http://devnet.jetbrains.net... a request to the Jetbrains team that they expedite the production of the updated API for ReSharper 6. Passionate aboutAutomated C# & VB.NET code formatting and sharing code styles in your team ...
Oliver Ogg Oliver Ogg, occasional salsa dancer, blogged the other day about a problem he was having installing MSMQ. The root cause was an invalid registry entry for the Event Log Service. MSMQ needed to write an event during setup but would fail as this service was not working. Once the Event Log service was fixed, MSMQ would install successfully. The problem was specifically the ServiceDll registry value referring to an empty string so the event log service could not find the service DLL file to ...
Article Source: http://geekswithblogs.net/c... What is the best approach for developing a WCF client application that sends messages to the WCF on-ramps exposed by the BizTalk ESB Toolkit? I had considered various approaches: Generate an xml message from a string template using string replacements. Then submit the message to the ESB endpoint using code similar to the Itinerary Test Client provided with the ESB Toolkit. Then for the response use XPath to get the required data. - This is obviously ...
Continuing my “From Soup to Nuts” series or sometimes referred to as “The Busy Developers Guide” series, I will take a look at the Surface 2.0 SDK recently released by Microsoft. Before you read ahead, here are the other articles in this series: The Busy Developers Guide to the Kinect SDK Beta. The Busy Developers Guide to Mango. What is it? With the Microsoft® Surface® 2.0 SDK, you can easily create applications to take advantage of the next generation Surface computing device or any Windows touch-enables ...
Lately i have seen the below remarks coming through in the communities, Get Latest does not work in TFS I always have to use Get Specific version to get the server changes on my local Why get latest misses updating some files while get specific works I’ll be using the TFS API to show you how the “Get Latest” is suppose to work and show you how you can avoid getting in a situation where you might have to use “Get Specific” to get the latest version of your workspace. I would assume that you know the ...
Over 6 months ago we released SharpBox 1.0.3 our last bugfix and service release. In the last few months we were focused on reworking our library core to achieve a couple of simplicity and feature goals. The importants goals from my personal perspective were: Clear and stable service provider API which allows 3rd part vendors to implement new cloud storage protocols Adding a well working WebDAV client in our API core to support all the webdav base storage providers by default Bringing our different ...
We have two services, that can be called independently, but also can be used together. They have some common types, and if they called together, default Visual Studio proxy generation will create the same types in different namespaces. There are multiple articles, that recommend to use command line SvcUtil instead of Visual Studio IDE. The article How to reuse types across service endpoints suggests on client side manually update Reference.svcmap to include multiple <MetadataSources> and NamespaceMappings ...
This blog will help you prepare for an upcoming release of SQL Azure that will offer support for Data Federation. While no date has been provided for this feature, I was able to test an early preview and compiled a few lessons learned that can be shared publicly. Note however that certain items could not be shared in this blog because they are considered NDA material; as a result, you should expect additional guidance in future posts when the public Beta will be made available. What is Data Federation? ...
Technorati Tags: Team Foundation Server 2010 Would you like to use your favourite comparison and merging tool such as KDiff3 or WinMerge in TFS. With little effort you can configure a different diff/merge tool in Team Foundation Server. In this blog post I'll be covering How to change the default compare/merge tool List of available compare/merge tools and the list of arguments Follow the steps below, Open Visual Studio 2010 and go to Tools => Options Select Source Control => Visual Studio ...
As part of my series of Windows Phone Developer Webinars (hosted by DevExpress) I decided to give away an HTC Surround to one randomly chosen listener, picked from everyone who left comments on this (http://blogusmaximus.net/a... blog post. That winner has been chosen, and it's Nicolas St-Amour! Congratulations Nick! Nick will also be receiving a free signed copy of Professional Windows Phone 7 Game Development! I'm taking a short break now that the series ...
Microsoft Expression Blend is a design tool that allows you to create fantastic user interfaces for such Windows based applications and Web applications. You can use Expression Blend with .NET Framework 3.0, 3.5, and 4.0 applications. What Blend can do for you One of the prime advantages of Expression Blend is its ability to separate code from design. Using Blend, designers can work independently on one set of deliverables for a project while developers can work on another. But this doesn’t mean ...
While this blog is primarily about Silverlight, ocassionally this blog will also contain posts about other .NET technologies. Including Windows Forms. Did you just gasp? Wait. There are still many developers in various corners of the world working with Windows Forms even today. So I thought to cater to them for a change and share any little useful information that I come across on Windows Forms. Tips: 1. When using the BackgroundWorker component, if you get an exception from a code statement similar ...
I was working on a MVC3 project using jQuery to populate a text input in an iframe element from the parent. The catch is that the iframe source is on a different domain. When I first tried to do it, the javascript gave me the Permission Denied error for trying to access the iframe document in a different domain. If the domain of the parent and iframe child are the same this Permission Denied error will not be encountered. To get the iframe domain the same as the parent I needed to use a proxy to ...

Evansville .NET Users Group

On August 23rd, 2011, I will be presenting an Introduction to Visual Studio LightSwitch at the Evansville, Indiana .NET Users Group.

Apparatus is sponsoring and hosting the Windows Azure boot camp in Indianapolis. This will take place on September 24th, 2011. I will be one of the presenters for the event. Join us! Details are here: http://www.windowsazureboot... ...
In about 3 weeks, specifically August 11-13 we will be already going strong with SharePoint Saturday The Conference in Washington, DC. Are you registered? Have you made your plans? This is a great opportunity to get together with many of the SharePoint names that produce outstanding solutions, amazing books and overall give great guidance. Join us! Are you a Student or an Educator? Check this out … http://www.spstc.org/blog/L... Hotel Info: http://www.spstc.org/blog/L... ...
I recently obtained a Samsung Omnia 7 with the WP7 OS. Straight off the bat - let me say how impressed I am with this phone and how easy it is to use. It took about 3 minutes to have all my Gmail and Facebook contacts loaded and merged and be connected to the Wifi. Another huge plus is the Zune software.This absolutely beats the ITunes for Windows software hands down when it comes to podcasts. Other pluses included the screen being so bright and the physical size of the phone which is comfortable ...
Motivation Wie gehen Sie in dieser Situation vor: Eine von Ihnen verwendete .NET-Drittbibliothek liegt in einer neuen Version vor und Sie müssen die Abhängigkeiten in all Ihren Projekte aktualisieren. Je nach Projekt und Notwendigkeit hatten wir bei ESRI Deutschland dafür bisher u.a. folgende Lösungs-Szenarien: Policy-Files Sie dienen zum „Umbiegen“ der von den eigenen Projekten verwendeten Version auf die aktuelle. Das geht allerdings nur bei GAC-basierenden Assemblies und die sollte man aus diversen ...
I recently implemented Domain Events as a way of organising domain logic in our application. To summarise how they work: Every event in your application is modelled as a class which implements the empty IDomainEvent interface IDomainEvents are raised by a domain object calling a static DomainEvents.Raise<T>(T domainEvent) where T : IDomainEvent method The DomainEvents class passes raised IDomainEvent objects to the Handle<T>(T domainEvent) method of classes which implement the IDomainEventHandler<T> ...
I have a need for a highly responsive web page that must at least appear to be "pushed" information from the server as it happens, much like you'd see with an HTTP protocol based chat window. The client will utilize JavaScript, and will use JQuery and its UI plugins, and will use its AJAX support to call the requests that will only return when there is data to be "pushed". I know HTML 5 includes support for WebSockets, but I feel it is too soon to rely on them, as the spec is not yet finished and ...
*Make sure you read Don't Use Singleton before using a Singleton at all...Go read the whole post at http://geekswithblogs.net/B... 1: public class LazySingleton3 2: { 3: // static holder for instance, need to use lambda to construct since constructor private 4: private static readonly Lazy<LazySingleton3> _instance 5: = new Lazy<LazySingleton3>(() => new LazySingleton3()); 6: 7: // private to prevent ...
In this Issue: Gill Cleeren, Adam Kinney, Peter Torr, John Garland, Kunal Chowdhury, Telerik, WindowsPhoneGeek, Xianzhong Zhu, Jesse Liberty(-2-), and Michael Washington. Above the Fold: Silverlight: "Showing the Onscreen Keyboard in Silverlight OOB Applications" John Garland WP7: "Check if your WP7 app is a Bing Instant Answer" Adam Kinney LightSwitch: "The Visual Studio LightSwitch Economy" Michael Washington Shoutouts: Pete Brown announced a sweet deal on his next book: My Next Book: Silverlight ...
I purchased Office 365 subscription recently, and wanted to bind my own domain, because wanted to use e-mail address like alias@some_custom_domain.com If you want to use custom domains, manual page suggest to change name server records for your domain to ns1.bdm.microsoftonline.com and ns2.bdm.microsoftonline.com. After doing this you can use aliases with your domain for Exchange mail and Lync. If you don’t want to change by any reasons name servers for your domain, just go through steps: 1) open ...