- Programming, Life an... In my previous post I talked about Silverlight 2 unit testing, and I decided the next natural step was to figure out how to integrate Silverlight testing in a continuous integration process. Personally I’m a big fan of this development practice, and have practiced it with great success on several projects. One of the challenges of integrating Silverlight tests into a CI process is the fact that the Silverlight test framework runs inside the browser and you cannot write Silverlight tests using your favorite test framework like NUnit or MSTEST. The power of CI is to build your software as new code is added to the source control, run automated tests, package the software and deploy it to a testing environment. If the tests fail you stop the deployment and alert the development team. There are several tools you can use to set up a CI server. As you can see the WatiN API is straight forward, you can grab hold of form elements and interact with them.
Threading in C# - Free E-book Threading in C# Joseph Albahari Last updated: 2011-4-27 Translations: Chinese | Czech | Persian | Russian | Japanese Download PDF Part 1: Getting Started C# supports parallel execution of code through multithreading. A C# client program (Console, WPF, or Windows Forms) starts in a single thread created automatically by the CLR and operating system (the “main” thread), and is made multithreaded by creating additional threads. All examples assume the following namespaces are imported: using System; using System.Threading; class ThreadTest{ static void Main() { Thread t = new Thread (WriteY); t.Start(); for (int i = 0; i < 1000; i++) Console.Write ("x"); } static void WriteY() { for (int i = 0; i < 1000; i++) Console.Write ("y"); }} The main thread creates a new thread t on which it runs a method that repeatedly prints the character “y”. Once started, a thread’s IsAlive property returns true, until the point where the thread ends. Done static void Go(){ if (! Done Done (usually!) Join and Sleep
API Monitor: Spy on API Calls and COM Interfaces (New 32-bit and 64-bit Versions!) :: rohitab.com API Monitor API Monitor v2 is currently in Alpha. Installers for both 32-bit and 64-bit versions are now available. Download Now. Save Capture and Monitor Metro apps using the latest release, which includes 2500 new API’s. API Monitor is a free software that lets you monitor and control API calls made by applications and services. 64-bit Support API Monitor supports monitoring of 64-bit applications and services. Main Window Summary View Capture Filter Parameters Structures Breakpoints Breakpoint/Structure Unions Arrays Threads Display Filter Normal Decoded Buffer View Structure/Buffer Dynamic Arrays Pointer-to-Array GUID Decoding Memory Editor External DLL Filter Call Stack Decode API Error COM Monitoring Process View Services Hook Service Hook Process Options: Monitoring Options: Memory Options: Dll's API Loader Custom DLL Windows 2000, Windows XP 32-bit, Windows XP 64-bit x64, Windows Vista 32-bit, Windows Vista 64-bit x64, Windows 7 32-bit, Windows 7 64-bit x64, Windows 8 32-bit, Windows 8 64-bit x64
.NET Column: Safe Thread Synchronization Safe Thread Synchronization Jeffrey Richter By far, the most common use of thread synchronization is to ensure mutually exclusive access to a shared resource by multiple threads. In the Win32® API, the CRITICAL_SECTION structure and associated functions offers the fastest and most efficient way to synchronize threads for mutually exclusive access when the threads are all running in a single process. In this column, I'm going to explain how this common use of thread synchronization is exposed via the .NET Framework. The Great Idea The .NET Framework employs an object-oriented programming structure. Here's the basic idea: every object in the heap has a data structure associated with it (very similar to a Win32 CRITICAL_SECTION structure) that can be used for thread synchronization. In Win32, an unmanaged C++ class with this design would look like the one in Figure 1. Implementing the Great Idea When the common language runtime (CLR) initializes, it allocates a cache of SyncBlocks.
John Howard - Hyper-V and virtualization blog : How-to use MakeCert for trusted root certification I wasn't originally going to blog this, but my colleague, Mat, and I were discussing encryption late last night. Mat was specifically interested in its use for security traffic in the context of SQL Reporting Service, but we got massively sidetracked and ended up talking about IPSec, MAPI and all sorts of other things along the way. Interesting, none-the-less. One thing Mat wanted to demonstrate was the use of a certificate for encrypting traffic between a SQL Reporting Server and a back-end database. Why not install a certificate server, he said. MakeCert.exe allows you to (for test/dev purposes) generate both a trusted root certificate and a certificate signed by that trusted root certificate for encryption purposes (also for signature purposes, but that wasn't relevant in this context). From the command prompt, in the directory where you downloaded makecert.exe, enter all the green bits below on a single line (ie exclude my comments in the right-most column).
Hate Add-Member? (PowerShell's Adaptive Type System to the Rescue) - Windows PowerShell Blog Do you hate Add-Member as much as I do? Wait - maybe you aren't familiar with Add-Member or the glory of PowerShell's Adaptive Type System. (ATS). When I looked at the .NET type system, my reaction was "....almost". There are 4 main components of ATS: Type Adapters. A lot of technologies implement their own type systems within .NET. We adapt that object so it looks like this: ExitCode : 0 Name : AeLookupSvc ProcessId : 1068 StartMode : Auto State : Running Status : OK Extended Metadata System .NET gives you a meat-and-potatoes type system giving you properties, fields, methods, interfaces and events. Type MashUps One of the most powerful and least used aspects of PowerShell is it's type mashup system. Dynamic Types In addition to extending a TYPE, you can dynamically extend any instance of a type. Adds a user-defined custom member to an instance of a Windows PowerShell object. Here is an example of it in use: SOOOO - why do I hate Add-Member? <? Lessons learned/relearned: Enjoy!
Chickenfoot Click the link below to install Chickenfoot. If this is the first time you've installed Chickenfoot, Firefox will display a yellow warning bar asking whether you want to install it. Install Chickenfoot 1.0.7 (for Firefox 3 only; released December 18, 2009) Chickenfoot is copyright © Copyright (c) 2004-2008 Massachusetts Institute of Technology. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Old Versions Chickenfoot 1.0.6 (released October 19, 2009)
ASP.NET Application and Page Life Cycle - CodeProject - Мозила фајерфокс Download source code - 4.03 KB Table of Contents Introduction In this article, we will try to understand what the different events are which take place right from the time the user sends a request, until the time the request is rendered on the browser. This is a small Ebook for all my .NET friends which covers topics like WCF, WPF, WWF, Ajax, Core .NET, SQL, etc. The Two Step Process From 30,000 feet level, ASP.NET request processing is a 2 step process as shown below. ASP.NET creates an environment which can process the request. In the coming sections, we will understand both these main steps in more detail. Creation of ASP.NET Environment Step 1: The user sends a request to IIS. Step 2: If this is the first request to the website, then a class called as ‘ApplicationManager’ creates an application domain where the website can run. Step 3: The newly created application domain creates hosting environment, i.e. the ‘HttpRuntime’ object. Process Request using MHPM Events Fired References
Understanding WCF Services in Silverlight 2 If you like this document, please consider writing a recommendation for me on my LinkedIn account. Contents Introduction Regardless of what platform you are working with, you need some mechanism for dealing with errors. If you haven't done so already, you should read the first part of this document entitled Understanding WCF Services in Silverlight (here after "previous document"). SOAP Review Before we take a look at error management over SOAP services, we will take a moment to review SOAP messaging. <s:Envelope xmlns:s=" xmlns=" Essentially, this message is calling the "GetPersonData" operation on the service, sending "personGuid" as a parameter. Here is a message the service could possibly send back to the client: Handling Errors Faults don't rely on the detail element.