| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
10 Articles match "Sample","String"
| Related DevelopMentor Courses | MORE | | Understanding Map - Reduce 14: public string Book { get; set; }. 3: public string Book { get; set; }. Running the sample code produces output like this. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Basic principle The basic Map-Reduce consists of two steps. guess you are not going to be very surprised when I tell you that these steps are called Map and Reduce. Simple right? Again pretty simple right? There is one catch with the Reduce though. 10: }. 13: {. The Problem Solver - Monday, December 3, 2012 Use Common Instance Factory to Abstract Away the Dependency Injection Container public class GreetingService : IGreetingService { private readonly IGreetingRepository _greetingRepository; public GreetingService( IGreetingRepository greetingRepository) { _greetingRepository = greetingRepository; } public string Greet( string name) { string greeting = _greetingRepository.GetGreeting(); return string.Format( " {0} {1} " , greeting, name); } }. Download the Common Instance Factory from NuGet , or get the source code and samples from the CodePlex site. Download the Common Instance Factory with WCF Extensions here and is also available on NuGet. DevelopMentor Courses - Wednesday, May 23, 2012 Effective STL Programming Training The wide variety of string implementations Using vector and string with C APIs. Participants will gain: Insights into the behavior of sequence, associative, contiguous-memory, and node-based containers, including new containers specified in TR1. Knowledge of techniques to use both containers and algorithms most efficiently. An understanding of the applications and limitations of STL allocators. The STL is revolutionary, but learning to use it well is a challenge. Using "the swap trick" to perform "shrink to fit." DevelopMentor Courses - Tuesday, March 1, 2011 |
80 Articles match "Sample","String"
| The Latest from DevelopMentor | MORE | | Understanding Map - Reduce 14: public string Book { get; set; }. 3: public string Book { get; set; }. Running the sample code produces output like this. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Basic principle The basic Map-Reduce consists of two steps. guess you are not going to be very surprised when I tell you that these steps are called Map and Reduce. Simple right? Again pretty simple right? There is one catch with the Reduce though. 10: }. 13: {. The Problem Solver - Monday, December 3, 2012 Understanding Map - Reduce 14: public string Book { get; set; }. 3: public string Book { get; set; }. Running the sample code produces output like this. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Basic principle The basic Map-Reduce consists of two steps. guess you are not going to be very surprised when I tell you that these steps are called Map and Reduce. Simple right? Again pretty simple right? There is one catch with the Reduce though. 10: }. 13: {. The Problem Solver - Monday, December 3, 2012 Understanding Text Encoding in ASP.NET MVC (ASP.NET MVC Foundations Series) When you write out string contents such as below, it HTML encodes it by default when using @. In order to demonstrate these concepts, I created a working sample app here: [link]. You can download the code from the sample as well. Let’s assume it’s handed to you as a string in a variable called cmsSectionData (i.e. This article covers the various ways in which you might handle text encoding in ASP.NET MVC. For example, if you were writing a forum web app, you should absolutely be paranoid about what your users are typing into your site. data). Michael C. Kennedy's Weblog - Monday, October 15, 2012 | -
| The Best from DevelopMentor | MORE | - Using Model – View – ViewModel with Silverlight
Even thought the UI technology used doesn't change the basic MVVM pattern there are some subtle differences, like not easily being able to use ICommand in Silverlight, so I decided to create a small Silverlight sample. know it is a bit of a lame business rule but it is just a sample. 7: private string _firstName; 8: private string _lastName; 9: 10: public string FirstName. 20: public string LastName. 30: 31: 32: public string FullName. 44: 45: 46: public string FirstName. 51: public string LastName. 11: {. 13: set. 14: {. 19: }. The Problem Solver - Tuesday, April 7, 2009 - ASP.NET WebAPI Security 4: Examples for various Authentication Scenarios
The Thinktecture.IdentityModel.Http repository includes a number of samples for the various authentication scenarios. private static string GetIdentityToken(). {. private static Identity CallService( string saml). {. private static string GetServiceTokenOAuth2( string samlToken). {. private static string GetIdentityToken(). {. private static Identity CallService( string swt). {. Stay tuned for more client samples! All the clients follow a basic pattern: Acquire client credential (a single token, multiple tokens, username/password). www.leastprivilege.com - Wednesday, March 14, 2012 - Flowcharts in Workflow 4 and the Switch activity
When I ran the sample I would only get Default printed to the console. It turns out all the cases are of type string and the expression is of type Int32. Flowcharts are a nice addition to Windows Workflow Foundation 4. They allow for a lot of pretty complex behavior that is hard to do in a sequential workflow. In WF 3 we used to model these complex behaviors as state machine workflows. That worked but they weren't really state machines or event driven and things could get a bit tricky. No it is just another activity to drop in a workflow. guess you get the picture. Next (5). The Problem Solver - Tuesday, October 27, 2009 - Understanding Map - Reduce
14: public string Book { get; set; }. 3: public string Book { get; set; }. Running the sample code produces output like this. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Basic principle The basic Map-Reduce consists of two steps. guess you are not going to be very surprised when I tell you that these steps are called Map and Reduce. Simple right? Again pretty simple right? There is one catch with the Reduce though. 10: }. 13: {. The Problem Solver - Monday, December 3, 2012 - More Workflow 4 Services and duplex communications
However all the complexity with the CallbackContextMessageProperty and CorrelationHandle is only there to pass a single string, the callback address. First thing is to add a string variable “callbackAddress” and update the Receive activity to accept this as a second parameter. The code in the Main() function now looks like this: static void Main( string [] args). {. Sample project SimpleDuplexDemo.zip. Yesterday I posted a long blog post explaining how to do duplex communications in a Workflow service. So what is the problem with this? As it turns out it is! Enjoy! The Problem Solver - Tuesday, May 4, 2010 - HTML5, Google Chrome Frame and older browsers
And with a simple addition of the HTML header the sample starts working. is the version number to the User-Agent string. Consider the following problem: You might be tempted to start working with HTML5 features in your web applications but you have to support older bowsers. So for many HTML5 features there are polyfills available that will let you make older browsers like Internet Explorer 7 or 8 work with the newer API. See a possible list of HTML5 polyfills here. But how about just upgrading the complete browser? Seems to make far more sense right? simple example. Enjoy! The Problem Solver - Thursday, December 8, 2011 - WF4&WCF and message correlation
Namespaces = new XmlNamespaceManager( new NameTable()), Expression = "//sample:Person/sample:Id" }; xpath.Namespaces.AddNamespace( "sample" , "urn:WF4Sample:person" ); var messageQuerySet = new MessageQuerySet(). {. static void Main( string [] args). {. In the previous blog posts, here , here and here , I demonstrated how to use WCF from WF4. This same some more about sending multiple messages to the same workflow, AKA Workflow Correlation. Fortunately the WF4 story is much better. Much better! So the regular client has hardly any changes. The Problem Solver - Wednesday, September 2, 2009 %>
| | |