Wednesday, June 30, 2010

Unit Test .NET Business Objects Using Nmock Library

Writing unit script code for your complex business objects in a test-driven development environment really gets difficult, because they may have too many external dependencies (high coupling) on other objects.
It sometimes won't be possible for limited-budget projects to set up development environments appropriately and configure them for unit testing. Developers can overcome these issues by using mock test objects.
Read my full article in devX.
http://www.devx.com/DevXNet/Article/45071?trk=DXRSS_DOTNET

Thursday, June 10, 2010

Program a Windows Mobile GPS Device using the Intermediate Driver

A couple weeks back I was highly influenced by a small-map-based GPS (Global Positioning System) application, developed using C#, targeting windows mobile devices. Embedded GPS receivers are becoming a standard for mobile devices, and all recent Windows Mobile devices feature GPS receivers. Windows mobile users can also add third-party GPS receivers to their devices if needed.

These GPS receivers collect data from satellites, specifically latitude, longitude, altitude, speed, and direction data from four different satellites. Mobile GPS receivers refresh collected data every second and display your present location on the Microsoft MapPoint, a powerful data-mapping tool. Your location is calculated using a mathematical formula called three-dimensional trilateration, which uses the positions of the satellites and their distance from Earth. Read the full article.
http://www.devx.com/wireless/Article/44971?trk=DXRSS_LATEST

Wednesday, June 09, 2010

ASP.NET 4.0: Bi-Directional Routing using Microsoft Visual Studio 2010

Routing was first introduced with ASP.NET 3.5 SP1 as an alternative to URL rewriting and query strings. Initially routing was limited to the ASP.NET MVC framework only but with release of Microsoft Visual Studio 2010, ASP.NET 4.0 developers can now use routing with web forms also. Using routing, developers can now easily eliminate long URL's and hide file extensions too (like .aspx). Another advantage of URL routing is that developers can now easily hide the physical path/location of web pages residing in the web server. Read my codeguru article.

http://www.codeguru.com/csharp/.net/net_asp/article.php/c17319

Sunday, May 30, 2010

Windows Mobile: Working with FakeGPS

Microsoft has introduced a new tool named FakeGPS for Windows Mobile application developers and testers. Testing GPS application was difficult in earlier mobile SDK versions as a GPS receiver doesn't work within closed walls, also the Emulators didn't have any GPS simulated testing tool built in. Using FakeGPS, developers and testers can now easily simulate satellite based global positioning system data and use that for testing their GPS applications. FakeGPS comes with Microsoft Windows Mobile SDK v6.0 and DTK version 6.3.5; after the SDK installation FakeGPS.cab is copied into C:\Program Files\Windows Mobile 6.5.3 DTK\Tools\GPS folder. Check my codeguru article.
http://www.codeguru.com/cpp/misc/misc/article.php/c17279

Friday, May 21, 2010

Transparent Data Encryption (TDE) in SQL Server 2008

As part of the SOX (Sarbanes-Oxley Act) regulatory compliance implementation, one of my banking customers asked me to encrypt their database for an already existing application. It was a business critical web application developed using Visual Studio 2005 (ASP.NET 2.0 framework) and SQL Server 2000 as the backend database. Like any other standard software development project, the delivery schedule for this was also very tight and the client requested that I implement database encryption as quickly as possible, with minimal impact on the existing application. I completed that assignment on time and within budget using Transparent Data Encryption (TDE), a new full database encryption technique introduced in SQL Server 2008. In this article, I will demonstrate the implementation of TDE.Read the full article in Databasejournal.com.
http://www.databasejournal.com/features/mssql/article.phpr/3883391/article.htm

Sunday, May 09, 2010

Create a Web App Using ASP.NET MVC 2.0 Framework

In this article I will show you how to create an ASP.NET Web Application using MVC 2.0 Framework. You'll recall that ASP.NET MVC 2.0 is the latest Microsoft framework for building web applications on top of the .NET framework 2.0, 3.0, 3.5 etc. To know more check my article in codeguru.
http://www.devx.com/webdev/Article/44747

Tuesday, May 04, 2010

Microsoft-Compatible APIs in Mono 2.4

Mono is an open source project led by Novell to create a .NET-compatible set of tools that include, among others, a C# compiler and a Common Language Runtime. Mono can be run on Linux, BSD, UNIX, Mac OS X, Solaris, and Windows operating systems.To Know more read the full article in Devx.
URL - http://www.devx.com/dotnet/Article/43857

Mocking API Responses in Azure API Management Portal

A mock API imitates a real API call by providing a realistic JSON or XML response to the requester. Mock APIs can be designed on a developer...