2012年2月11日土曜日

What Is Speedometer

what is speedometer

What is Speedometer

Hello..
Today, I want to learn about speedometer, one of important part at our car. We all know, that speedometer show about how fast your car run but there's more about it that we don't know… So, come on and read about it :-

Image Hosting

Finding Surveys To Do On Line For Free

finding surveys to do on line for free

Economic Freedom Together with Free Paid Online surveys

Additional income is obviously welcome whether it can be from your company, full time career or part occasion job. Everyone right now are on the particular lookout for among the better opportunities of getting additional income. As opposed to going out and dealing at a regular job, most of those would rather perform from the convenience of their homes. One of the best opportunities available inside recent times to build some side earnings are conducting the paid survey programs for free.

Reputable Companies

2012年2月10日金曜日

What Does Gynecologist Do

what does gynecologist do

Corporate Communications & Creating Your Company Brand — The 3 Things to do First

Getting Started

Your biotech is about to go public. Your company has just gone through a merger or acquisition. Your organization has experienced a major crisis. Whatever the reason, you need to create — or recreate — your company brand.

How do you create a brand with staying power that reflects who you really are and what you really offer? Like most things, it involves a lot of upfront work. The great brands are profoundly connected to their markets and stakeholders.

You want to be sure that your brand team is immersed in these three things

Your market

Your current stakeholders' beliefs and behaviors

Your company's goals

Know Your Market –

2012年2月8日水曜日

Where Did Oprah Attend College?

where did oprah attend college?

Where did Oprah Winfrey go to college

Oprah Winfrey is a name that hardly needs any introduction. The lady is an unbelievably endowed cocktail of success. A media proprietor, resourceful businesswoman, super successful talk show host, actor and producer, and a world renowned philanthropist, Oprah Winfrey is a truly multi-faceted personality. Many regard her as the most influential woman in the world, and the fact that she is always in the news for good reasons does more than underlining the claim.

What You Need To Do To Be Anamatour

what you need to do to be anamatour

How to Create Cartoon 2D Animation (part 1 of 2)

Today creating a cartoon is much easier than before the age of today's computers and software.  Here is a way to start drawing animated cartoons right away. 

To get started you need two things:  Toon Boom Studio (an animation software program that is basically THE 2d animation software now), and a Genius computer tablet and pen for drawing with. 

Once you have it all installed, here is a quick start guide to get you going:

Above: An overview of a simple Toon Boom Project.

Open Toon Boom Studio and select File -> New Project.  You'll be presented with a menu for a project name, resolution and frame rate.  Since everything is going High Definition now, type in 1920 x 1080 into the resolution boxes.  Your frame rate is how fast pictures will show one after the other. 

2012年2月7日火曜日

Where Do Models Come From

where do models come from

Going Underground: Microsoft Moles | Didactic Code

Despite having been around for several years I hadn't heard about Microsoft's Moles framework until a few months ago when one of my teammates mentioned it during the 2011 Indy GiveCamp. I was interested in learning more about it at the time but given how we were running on caffeine I'm not surprised I forgot about it until he mentioned it again a few weeks ago. This time I was much more alert and started reading about it almost immediately. After seeing what Moles offered and not finding much in the way of resources for it on the Web I knew I needed to spread the word.

Note: For this article I used version 0.94 of the Moles Framework.

What is the Moles Framework?

Microsoft Moles is a project from Microsoft Research that came about because of work being done on Pex (another MS Research initiative). The Microsoft Moles Reference Manual describes Moles this way:

The Microsoft Moles 2010 add-in for Microsoft Visual Studio 2010 is a lightweight framework for creating delegate-based test stubs and detours in .NET Framework applications.

In other words, Moles is, in a sense, Microsofts answer to other mocking frameworks like Rhino Mocks or Moq but Moles differs from the other frameworks in a few ways.  One important distinction is that the Moles Framework does not provide any validation mechanisms of its own.  In that regard Moles is not so much a testing framework as it is an isolation framework intended for use in conjunction with other testing frameworks such as MSTest or NUnit.

Note: Although Moles started as part of Pex I'm not going to discuss Pex here.

Isolation Techniques

The Moles framework provides two isolation techniques:

Both types allow us to work around dependencies in different ways and have very different use cases.

Stub Types

Stub types are much like traditional stub or mock objects in that they allow us to test code that relies on some provided contract.  Stubs are based on inheritance so they can only be used with interfaces or non-sealed classes with virtual members.  Sometimes the code we want to test relies on static or non-overridable methods that cant be stubbed.  In those scenarios we need to use mole types instead.

Mole Types

Mole types use a profiler to rewrite existing method bodies thereby allowing us to circumvent (or detour in Moles parlance) dependencies on static or non-overridable methods.  Mole types are generally most useful for isolating dependencies in third-party libraries.  Unfortunately, runtime rewriting does introduce some performance issues so moles should generally be used sparingly.

Note: At the time of this writing the Moles framework does not generate detour properties for auto-implemented properties although this could change in a future release (.

Choosing an Approach

With both stub types and mole types at our disposal it is important to understand when to use each.  In general Microsoft recommends that we favor stubs over moles whenever possible.  Stub types are much lighter than moles and operate over native language features.  Some instances where mole types are required are:

  • Private methods
  • Static methods
  • Sealed types
  • Static constructors/finalizers
  • 3rd party libraries without testable APIs

Getting Started

Installation

The Moles framework is available through the extension gallery as part of Pex (White box Unit Testing for .NET) or individually.  It can also be downloaded directly from the Microsoft Research site.  Regardless of which option you choose the functionality is made available to Visual Studio as an add-in.

Generating Stubs and Moles

As previously discussed, the Moles framework automatically generates the appropriate stub and mole types.  In order for it to generate the types though we need to first tell it which assemblies to inspect via a .moles file.

The quickest way to get started is to expand the References node in the test project, select the assembly being tested, and choose Add Moles Assembly from the context menu.  This will add a simple .moles file and automatically hook up the build action for the file.  When the project is built (or the .moles file is saved) Moles will generate an assembly with the appropriate isolation types and automatically reference it along with any other necessary assemblies.

Note: The Microsoft Moles Reference Manual describes adding the .moles file through the Add New Item dialog.  I couldn't find these templates but did find the Add Moles Assembly context menu item on individual references. It's also possible to manually add a .moles file and set the build action to Moles to achieve the same behavior.

Should it be necessary to generate isolation types for the types defined in mscorlib (i.e.: DateTime) we can add a moles assembly for it by right-clicking on the References folder in the test project and selecting the "Add Moles Assembly for mscorlib" option.

Basic Configuration

The .moles file is the heart of the Moles Framework configuration.  In its simplest form the .moles file merely identifies an assembly that will be inspected for type generation.

  	  

In this example weve instructed the system to generate the isolation types for all types defined in the Examples assembly.

In addition to identifying the assembly the .moles file can also include additional configuration information for filtering which types will be stubbed and/or moled and strong name signing.  Well take a closer look at these topics later on in the Advanced Configuration section.

Naming Conventions

Once the types have been generated they can be referenced in your tests.  The Moles framework follows some basic naming conventions to make the types easier to find and identify in your code.  The full list of conventions is available in Appendix B of the Microsoft Moles Reference Manual so Ill only note a few highlights here.

How To Grow Buddha

how to grow buddha

Global Epic on Karma to Benefit World's First Museum of Buddhism and Yoga

Buddhism – Lord Buddha

(CHAKRA) Albert Einstein famously dubbed Buddhism 'the religion of the future' and several studies show Buddhism to be the fastest growing religion among Westerners all over the world. In addition, the PEW Forum has found that a 65% majority of Americans subscribe to Dharmic practices like yoga, meditation, karma and the number continues to grow in record numbers.