Feeds:
Posts
Comments

Switch On/Off the background compilation in Visual Studio 2010

A new feature in the Visual Studio 2010 is background compilation of code to check if any errors when written.

This will notify the developer if he wrongly type the syntax or program function.

We can switch on or off the background compilation in Visual Studio 2010

To do this In Visual Studio 2010 go to Tools and then Options. In the Options dialog select the Text Editor node, then C# and go the Advanced node. Remove the check in "Show live semantic errors" to disable background compilation, or in reverse

In Visual Studio 2010 we can use this feature according to our need.

The errors are corrected as sooner in order to avoid lot of errors at the end of program compilation.

LINQPAD

LINQPAD

In Visual Studio 2010 and 2008 there is no editor and designer for LINQ query for execution but there is a support for Intellisense.

LINQPad lets you interactively query SQL databases in a modern query language

LINQPad is Integrated with C# (or VB), thereby eliminating the impedance mismatch between programming languages and databases. LINQ is, in general, a significantly more productive querying language than SQL.

There are lot of sample examples are available in LINQPAD for LINQ we can execute them in lINQPAD.

Auto complete feature is available.

LINQPad supports C# 3.0 and Framework 3.5 and higher versions

•LINQ to Objects

•LINQ to SQL

•Entity Framework

•LINQ to XML

•ADO.NET Data Services & SQL Azure

•SQL Azure cloud databases

LINQ is currently available for free. The total size of the executable is 3MB.

For more information on LINQ.

http://www.linqpad.net

Microsoft StreamInsight

Microsoft StreamInsight

Microsoft StreamInsight is a event flow debugging tool that helps application developer to debug and troubleshoot streaming queries.

Microsoft StreamInsight is a powerful platform use to develop and deploy complex event processing (CEP) applications. It is purposeful for stream processing architecture .NET Framework-based development platform enable us to quickly implement robust and highly efficient event processing applications. Event stream applications are manufacturing applications, financial trading applications, Web analytics, and operational analytics. By using StreamInsight, we can develop CEP applications that derive immediate business value from this raw data by reducing the cost of extracting, analyzing, and correlating the data and by allowing user to monitor, manage, and mine the data for conditions, opportunities, and defects almost instantly.

Move toward a predictive business model by mining historical data to continuously refine and improve key performance indicators definitions.

Manage the business by performing low-latency analytics on the events and triggering response actions that are defined on then business key performance indicators.

Respond quickly to areas of opportunity or threat by incorporating the performance indicators definitions into the logic of the CEP application, thereby improving operational efficiency.

* Monitor data from multiple sources for meaningful patterns, trends, exceptions, and opportunities.

* Analyze and correlate data incrementally while the data is in-flight — that is, without first storing it–yielding very low latency.

* CEP can process large volumes of events across multiple data streams in less than a second

* Provides built-in support for out of order event handling and rich query semantics

* Reduce development cost by utilizing existing skill sets and investments in Microsoft development platform

* Flexible deployment options and Easy to manage and support

For more information http://msdn.microsoft.com/en-us/library/ee362541(SQL.105).aspx

Fluent.NET

Fluent.NET

The Fluent.NET library introduces extension methods to make .NET code easier to read and more simple to write.

We can use fluent interfaces simply by adding a reference to the desired assembly then using the Fluent namespace.

Interfaces compartmentalized like fluent.dll and for web it is fluent.web.dll

Execute an action over a sequence using the Execute method like this using lambda expression.

E.g. clients. Execute(c => c.Persist());

Easily create a sequence of numbers using the To method: 1.To(5);.

It even counts down: 1.To(-5);

For Example

File.WriteAllLines("new.txt", File.ReadAllLines("old.txt"));

Fluent.NET adds extension methods to give the functionality where it truly belongs. This fits in with a design principle, Strive for Functional Cohesion. In the above example, the WriteAllLines method logically belongs to File, but functionally it belongs to is IEnumerable<String>. In the Fluent.NET framework, IEnumerable<String> was extended so it now has the method Write.

This is simply using lambda expression and extension methods.

PEX

Pex is an automated white box testing for .NET

Pex Program Exploration produces a unit test suite with high code coverage.

Pex a parameterized unit test is simply a method that takes parameters, calls the code under test, and states assertions. The parameterized unit test written in a .NET language, Pex automatically produces a small unit test suite with high code and assertion coverage. Here Pex performs a systematic white box program analysis.

Pex learns the program behavior by monitoring execution traces, and uses a constraint solver to produce new test cases with different behavior.

Pex finds interesting input-output values of our methods, which we can save as a small test suite with high code coverage. Pex performs a systematic analysis, hunting for boundary conditions, exceptions and assertion failures, which we can debug right away. Pex an extension of Unit Testing that reduces test maintenance costs. Pex also comes with Moles, a lightweight framework for test stubs and detours.

For more Pex information

http://msdn.microsoft.com/en-us/devlabs/cc950525.aspx

Server core profile in .NET Framework.

Server core profile is a subset of the .NET Framework for the server applications. Normally we will deploy ASP.NET,WCF and

web services application in server.

Server core profile is used to give a production server the minimal feature set to run ASP.NET, WCF and Power shell

applications.

Server core profile is intended to reduce the size of the framework and give a smaller surface which reduces servicing

requirements. It is only available on Windows 7 Server Core installations. The Full Framework is required for development but

for server core installation we need the appropriate framework installations.

The size of the framework installation is very less in the server.

We can try this server core profile for small applications not for big applications.

The subset of assemblies is the same as in the full installation of the .NET Framework. The

Server core profile is deployed and installed in much the same way that the full .NET Framework is deployed and installed.

The upgrade from server profile to full framework is very easy and there is no change in the deployment.

The applications will work in server core profile if it is targeted for server core profile in deployment

.NET Framework Client Profile

.NET Framework Client Profile is a smaller framework specifically for Client Applications. The Client Profile is a subset of assemblies already contained within .NET Framework 3.5 Service Pack 1.The size of Client Profile .Net Framework is very less (for .NET 3.5 around 28 Mb and .NET 4.0 around 34 Mb)

The .NET Framework Client Profile should help significantly improve the experience of deploying .NET client applications on machines that do not already have the .NET Framework installed.

The subset of assemblies is the same as in the full installation of the .NET Framework. The Client Profile is deployed and installed in much the same way that the full .NET Framework is deployed and installed.

The Client Profile is deployed in the same versioned layer system as the full framework. This allows for the end-user computer to be easily upgraded to the full framework if an application requires the full framework.

The Client Profile contains.

1.Smaller framework deployment.

2. Smaller, faster client deployment boot strapper

3.Client Application targeted for WPF,WCF, CLR.

We can use .NET Framework Client Profile for small applications which use less Microsoft Framework libraries.

The application should be targeted for .NET Client Profile.

CAT.NET

CAT.NET

CAT.NET is a static code analysis tool that helps identify some of the most common security flaws found within web applications: SQL injection, cross-scripting and other data injection bugs. It is able to scan compiled managed assemblies (C#, Visual Basic .NET, J#) and then analyze dataflow paths from sources of user-controlled input to vulnerable outputs. It also detects whether proper encoding or filtering has been applied to the data.

CAT.NET tool can be used as VS 2008 addin or from command prompt.

Vulnerabilities that CAT.NET look for?

• Process Command Execution

• File Canonicalization

• Exception Information

• LDAP Injection

• XPATH Injection

• SQL Injection

• Redirection to User Controlled Site

• Cross-Site scripting

How to use CAT.NET?

1.Have your Asp.NET application and build the application.

2. The open the command prompt in administrator mode.

Type the following command

catnetcmd /file:"dll location" /configdir: "dir location" :/report:"simple.xml"

3. Open the output xml file.

From this we can get the information about the vulnerabilities.

We can use the following command line options

/file:<target>

Required. The path of an assembly file to analyze. Multiple file paths and wildcards are not supported. This is a required parameter.

/configdir:<target directory>

Required. The path to a directory which contains .NET configuration files for analysis.

/rules:<directory>

Optional. The path to a file or directory that contains analysis rule(s). The engine will use the default rules included with the product by default.

/report:<file>

Optional. The file to store the analysis report in. By default, the report will be saved in ‘MicrosoftCodeAnalysisReport.xml’ in the current working directory.

/reportxsl:<file>

Optional. The XSL file to use to transform the report. By default, the packaged XSL transform included in the product will be used.

/reportxsloutput:<file>

Optional. The output file to store the XSLT transform output in. By default, the HTML report will be saved in ‘report.html’ in the current working directory.

/verbose

Optional. Enables flag to display verbose message when displaying results

Open source software directory

I am amazed after seeing site. Ohloh an Open source software directory. Ohloh is new public

directory of open source software and people. Ohloh is wiki and anyone can contribute the software

can join the community and participate in the reviews and feedbacks. This public review makes

Ohloh one of the largest, most accurate, and up-to-date software directories available.”

Ohloh gives you the means to track the progress of your projects in an exciting and easy way

Please go here for Ohloh

http://www.ohloh.net/p

I have downloaded word press and Mozilla from here. Both are pointed to the appropriate location.

This Ohloh provides the list of all the available software’s and directories.

Here we can add our own project and anyone from open source community can use this.

Just like Microsoft codeplex or source forge

Azure Calculator

Azure Calculator

Earlier small and large organization used Hosting provider or their own dedicated server.

Now they are going for Cloud Computing because of Cheap cost and high scalability.

Here we can see the Total cost of Organization(TCO) and Return of Investment.

Microsoft provides a separate tool for TCO and ROI analysis

Check out the Windows Azure Platform TCO and ROI Calculator: http://www.microsoft.com/windowsazure/tco/ , now available in

both online and offline versions.

TCO and ROI calculator helps to analyze the cost, usage from migration from local to Cloud. This calculator will ask for

detailed information about the needs of your organization, its size and other information. After all providing all information

Calculator will provide us with a customized report that will detail the estimated line item costs for a TCO and a 1 to 3 year

ROI analysis for the organization.

The TCO calculator is available in Online and Offline mode. After the analysis the tool the calculator will provide the

output in the form of report.(word document)

I have attached the sample report here which is customized one for simple website. Sample Report

Login here to TCO calculator https://roianalyst.alinean.com/msft/AutoLogin.do?d=176318219048082115

Microsoft Windows Azure TCO Analysis.DOC

Older Posts »