| |
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.
|
154 Articles match "How To"
See all articles with
"How To"
| The Latest from DevelopMentor Courses | MORE | | Maurice de Beijer: Integrating the #WebAPI HttpClient and ApiController in a single test 'In the two previous blog posts I showed how to unit test and ASP.NET WebAPI controller and how to unit test the client side code depending on the HttpClient class. After all testing an ApiController by just calling the methods makes it perfectly possible to call them in such a way that would never be possible using a real HTTP request. So in order to complete out testing we should test the integration of the client and server parts using an integration test. However there we added a custom TestingDelegatingHandler to return a fake result message. The Problem Solver - Monday, May 27, 2013 Unit testing code depending on the ASP.NET #WebApi HttpClient 'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. In this case the client application contains the following class to load books from the REST WebAPI controller: 1: public class BooksClient. This class uses the HttpClient to request the data from the service and extracts the books from the body before returning them. If we want to test this class we need to pass in an HttpClient object. This HttpMessageHandler is used as the pipeline to send requests and we can completely replace this with our own implementation. 14: {. The Problem Solver - Monday, May 20, 2013 Using repeating elements in #AngularJS 'Index: Getting started with AngularJS Creating an AngularJS Controller The AngularJS $scope is not the MVC Model Using repeating elements in #AngularJS In the previous posts I showed how to get started with AngularJS and use some of the basic AngularJS directives to data bind. In these examples I uses a really simple single element to bind to. However in lots of business cases you really need to display a list of repeating elements. Fortunately this is really easy to do. Take a look at the simple list of people below. 2: 3: $scope.people = [. The Problem Solver - Friday, May 10, 2013 | | The Best from DevelopMentor Courses | MORE | | How to discover what font was used Sometimes you’re working on a website and you get some images with text in them, but no one remembers what fonts was used in the image. No fear! There is a website call “What The Font” that will take your picture and tell you what font was used: [link]. ASP.NET DevelopMentor Courses - Monday, December 26, 2011 jQuery UI and Windows 8 and Internet Explorer 10 touch screens I recently did a blog post describing how to enable the jQuery UI drag effects. In this post I showed how to get the draggable effect to work on an iPad. What we need to do is take control of the action IE10 performs on touch. Setting its value to 'none' is all we need to do. This will suppress the default IE10 behavior and pass the gestures on to the jQuery event handler. You can toggle the support for touch events using the button to try both with and without support for touch. It turns out this is rather simple. The Problem Solver - Wednesday, October 24, 2012 Brock Allen: Cookie based TempData provider Update: Added security features, how to use the Cookie-based TempData provider, link to GitHub project and info on the NuGet package. It’s basically a way to maintain some state across a TempData is a nice feature in MVC and, if I am not mistaken, was inspired by the Flash module from Ruby on Rails. DevelopMentor Courses - Monday, June 11, 2012 | - Testing Difficult Code
I recently did 3 videos in my ‘ Using ApprovalTests in.Net’ series that deal with how to test difficult code. These video actually have very little to do with either.Net or ApprovalTests, but they are common issues you run into when unit testing. Seams Testing difficult Code comes down to 2 things: Can I call the Method? Will the Method run to completion? And there are 2 techniques I use to deal with these, that individually are useful, but together are amazing. The idea behind the peel is to break the method up into easy to run pieces. DevelopMentor Courses - Wednesday, March 21, 2012 - Building Scalable and Secure WCF Services
The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. Both BasicHttpBinding and WebHttpBinding, however, are sessionless and allow you to call a service multiple times without concern for which physical server responds to the call. Here is a snapshot of 5 calls to a service with HTTP Keep-Alive enabled over SSL. This is fine and dandy when clients are talking to the same back-end server and the SSL handshake only takes place when the connection is established. allowCookies = " false ". DevelopMentor Courses - Monday, June 18, 2012 - Certificate Validation and Setting up Service Bus 1.0 Beta for Windows Server
There is a good walkthrough of the new beta in the MSDN documentation here including how to install it. Well if you install the beta on a Windows Server 2008 R2 box and you actually develop on another machine then there’s a couple of things not mentioned in the documentation that you need to do (having previously spent long hour glaring at certificate errors allowed me to resolve things pretty quickly). Certificate validation has a number of steps to it for a certificate to be considered valid: The issuer of the cert must be trusted. for Windows Server. DevelopMentor Courses - Wednesday, July 25, 2012 - Using Reporters in Approval Tests
Today I pushed new versions of ApprovalTests for both C# and Java to SourceForge. He and I pair-programmed remotely (he lives in Finland) to extend ApprovalTests per his ‘asks’. If you are using ApprovalTests and have an idea for a feature, please ping me via twitter @LlewellynFalco and I’ll pair with you to code up your idea as well. assume that you have tried out Reporters if you are reading this blog, however, just to get us started, I’ll remind you that a Reporter is called when an ApprovalTest fails. Let me know how it works for you. Why Use Reporters? DevelopMentor Courses - Saturday, December 31, 2011 - Creating an #AngularJS Controller
'In the previous blog post I showed how to get started with a really minimal AngularJS application. So far we have only seen the View part as the HTML used was the view used to render the page to the user. It gathers the data (Model) together and tells the View to render the data to the user. It also responds to events to do things. As this is used with the new keyword to create an object I have capitalized the first letter as is the convention in JavaScript. For those not used to JavaScript the (+$scope.x) operator = "?" The Problem Solver - Wednesday, April 10, 2013 - Roll Your Own REST-ful WCF Router
Recently I’ve been tasked with building a WCF routing service and faced the choice of whether to go with the built-in router that ships with WCF 4.0 , or to build one from scratch. Nevertheless, there are times when it might make sense to build a router that can talk to clients who don’t know anything about Soap, for example, an AJAX web application. While the ASP.NET MVC or the new ASP.NET Web API might seems like attractive options, WCF is the way to go if you need to accommodate both Soap-based and Rest-ful clients. FirstOrDefault(); if (region != DevelopMentor Courses - Tuesday, April 24, 2012 - Maurice de Beijer: jQuery UI and Windows 8 and Internet Explorer 10 touch screens
I recently did a blog post describing how to enable the jQuery UI drag effects. In this post I showed how to get the draggable effect to work on an iPad. What we need to do is take control of the action IE10 performs on touch. Setting its value to 'none' is all we need to do. This will suppress the default IE10 behavior and pass the gestures on to the jQuery event handler. You can toggle the support for touch events using the button to try both with and without support for touch. It turns out this is rather simple. DevelopMentor Courses - Wednesday, October 24, 2012 %>
359 Articles match "How To"
See all articles with
"How To"
| The Latest from DevelopMentor | MORE | | Integrating the #WebAPI HttpClient and ApiController in a single test 'In the two previous blog posts I showed how to unit test and ASP.NET WebAPI controller and how to unit test the client side code depending on the HttpClient class. After all testing an ApiController by just calling the methods makes it perfectly possible to call them in such a way that would never be possible using a real HTTP request. So in order to complete out testing we should test the integration of the client and server parts using an integration test. However there we added a custom TestingDelegatingHandler to return a fake result message. Maurice de Bejeir - Monday, May 27, 2013 Maurice de Beijer: Integrating the #WebAPI HttpClient and ApiController in a single test 'In the two previous blog posts I showed how to unit test and ASP.NET WebAPI controller and how to unit test the client side code depending on the HttpClient class. After all testing an ApiController by just calling the methods makes it perfectly possible to call them in such a way that would never be possible using a real HTTP request. So in order to complete out testing we should test the integration of the client and server parts using an integration test. However there we added a custom TestingDelegatingHandler to return a fake result message. The Problem Solver - Monday, May 27, 2013 Unit testing code depending on the ASP.NET WebApi HttpClient 'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. In this case the client application contains the following class to load books from the REST WebAPI controller: 1: public class BooksClient. This class uses the HttpClient to request the data from the service and extracts the books from the body before returning them. If we want to test this class we need to pass in an HttpClient object. This HttpMessageHandler is used as the pipeline to send requests and we can completely replace this with our own implementation. 14: {. Maurice de Bejeir - Monday, May 20, 2013 | -
| The Best from DevelopMentor | MORE | - How to improve a team's velocity?
By way of wrapping up my velocity mini-series ( Two ways to fill and iteration , Filling an iteration too well , and Velocity Targeting and Velocity Inflation ) I’m going to end with some advice on how to improve a team’s velocity. Over time these add up to big improvements. To use economic logic: this is about improving the supply-side. The supply-side argument (largely monetarist) suggests the way to solve unemployment is not to increase demand (Keynes style) but to loosen and liberalise the labour market. But back to software. Allan Kelly's Blog - Thursday, July 1, 2010 - How to rip audio books
So i listen to a lot of audio books, and here's how i create the mp3 of them. Overview we are going to create bite size files about 30 minutes each. link] 4) set your encoding bitrate to 64k & stereo, this is a very high quality audio book. To do this double click a track. then label them, and create the id tags. finally we'll attach a picture. Make sure the book is UNABRIDGED 1) get a ipod - i prefer the nano. link] Ripping 2) download audiograbber & install. link] 3) download lame encoder & install. select the Sectors>Last. And there you go Llewellyn Falco - Sunday, July 6, 2008 - How to build a Development/Test/Demo CA
So I ended up running Windows Cerificate Services which proved to be an easy to use, robust solution. just had to rebuild my Test CA (on Hyper-V) so I thought I'll document the important steps (for self-reference and whoever might be interested). They usually expire on the very day where you have to do an important demo. Now by default there is an entry pointing to the CA's Netbios name. better solution is to create a revocation list once, and store that at a publicly available location. Next you have to publish a CRL. Set it to e.g. five years. www.leastprivilege.com - Thursday, August 14, 2008 - How to get started with Knockout.js
Once you get into doing more client side JavaScript code with business applications and REST services you are going to run into the question of how to construct the client side HTML required to show the data to the users. Using jQuery Assuming most people are going to be using jQuery on the client you might start with some jQuery code to generate HTML. And in all likelihood the actual HTML that needs to be generated will be quite a bit more complex. The next step people tend to take is using templates. click( function () {. $.getJSON( The Problem Solver - Monday, February 6, 2012 - How to discover what font was used
Sometimes you’re working on a website and you get some images with text in them, but no one remembers what fonts was used in the image. No fear! There is a website call “What The Font” that will take your picture and tell you what font was used: [link]. ASP.NET DevelopMentor Courses - Monday, December 26, 2011 %>
| | |