Tuesday, January 27, 2009

Looking at : ADO.NET Data Services

 

These days am looking in a new component in .NET Framework.
It is a new approach of "accessing the data".
It is "ADO.NET Data Services"

It is interesting, because we are going to access the data "as service".
Started to work with this.

Just here am sharing some introduction details what I got.

- Data as a Service
- Earlier code named as ‘Astoria’
- Part of .NET Framework 3.5 SP1
- REST based approach
- So, Best Suitable for Rich Interface Applications (like ASP.NET AJAX, Silverlight)
- Accessible by all kinds of .NET Application

Main thing is, as in the client's view, we are going to access the data using URIs

Some URI examples:
http:// myserver / data.svc / Customers
By this we can get all customer details

http:// myserver / data.svc / Customers(‘userA’)
By this we can get only particular "userA" details

So, how it is working only with URI itself for Accessing the data.!!!?
Because, it is working with HTTP methods GET, POST, PUT and DELETE

As a learning workarounds, "ADO.NET Data Services" would be around the following

· ADO.NET Entity Framework

· ADO.NET Entity Data Model

· LINQ

· Web Services

· REST

· JSON

· ATOM Feed

Just working with this new approach, with sample applications.
We may interested with publically deployed any existing "ADO.NET Data services", one of the example  http://stevef.goes.com/northwindservice/NorthwindService.svc/

some useful links regarding this,

MSDN : Using ADO.NET Data Services
http://msdn.microsoft.com/en-us/library/cc907912.aspx

MSDN : Overview of ADO.NET Data Services
http://msdn.microsoft.com/en-gb/library/cc956153.aspx

Astoria Team Blog
http://blogs.msdn.com/astoriateam/

NOTE: for developing application in this, minimum we need

  • Visual Studio 2008 SP1
  • .NET Framework 3.5 SP1

 

Hope soon I will update here with more details about this.

Sunday, January 25, 2009

Windows Vista : My User Profile Corrupted

Currently am using Windows Vista SP1 with Updates.

Unfortunately, today morning my user profile got corrupted. [just before that, I was working with out problem and shut downed properly, but could in find the root for the cause].

While restarting, it was showing as “preparing your desktop” and then loaded a temporary profile :-(   Shows the below error message,

Your user profile was not loaded correctly! You have been logged on with a temporary profile.

Changes you make to this profile will be lost when you log off. Please see the event log for details or contact your administrator.

Fortunately, my “user directory” is not deleted for my turn, at least that content was saved.

Timely got resolution for this problem in “Microsoft Support Portal”

http://support.microsoft.com/kb/947242

 

The excerpt of the solution

  1. Log on to the system by using an administrative user account other than the user account that is experiencing the problem.
  2. Back up all data in the current user's profile folder if the profile folder still exists, and then delete the profile folder. By default, the profile resides in the following location:

    %SystemDrive%\Users\UserName

  3. Click Start, type regedit in the Start Search box, and then press ENTER.  Collapse this imageExpand this image User Account Control permission

    If you are prompted for an administrator password or for confirmation, type your password, or click Continue.

  4. Locate the following registry subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

  5. Under the ProfileList subkey, delete the subkey that is named SID.bak.
    Note SID is a placeholder for the security identifier (SID) of the user account that is experiencing the problem. The SID.bak subkey should contain a ProfileImagePath registry entry that points to the original profile folder of the user account that is experiencing the problem.
  6. Exit Registry Editor.
  7. Log off the system.
  8. Log on to the system again.
After you log on to the system, the profile folder is re-created.

Saturday, January 24, 2009

2-GB Size Photo : showing nearly two million people

David Bergman did a wonderful Photo Using GigaPan

He made a bird’s-eye image showing nearly two million people who watched US President Obama’s inaugural address

Image Info:

Just  1474 megapixels  !!

Almost 2 GB in Size

Use controls to zoom and pan around the photo. (and also double click to zoom)

To See in Full Screen Click Here

Wednesday, January 7, 2009

.NET Application Profiling : ANTS Profiler

ANTS Profiler

Just I heard about one of the Profiling tool. It is very useful tool for

  • - Record Each operation execution time (line-by-line measurements also)
  • - Find Memory Usage of objects
  • - Easy to find performance problems in source code
  • - Highlighting I/O  Read & write operation
  • - works with all kinds of .NET Apps
  • - Points to particular Source Code
  • - and many more…

 ANTS Profiler (Trial) Download Page

https://www.red-gate.com/dynamic/downloads/downloadform.aspx?download=antsprofiler

 

We can view the Code Caller Graph, and that can be customizable. For example,

call-graph 

Memory consumption and Memory Allocations also can be tracked.

memory-profiler