Tuesday, November 25, 2008

10 Reasons The Zune Beats The iPod. Seriously.


Zune Vs iPod


ZUNE - Zoom and Use New Entertiment Device


thanks
SreenivasaRagavan

Friday, November 21, 2008

MS ? Google?

 

One of my friend asked me today what is GOOGLE means?

I told him  GOOGLE means

Game Over Once Google Loose Eye's

 

[ Since Google is Search engine].

 

MS - Mind Source , Money Source,

Just for FUN....

 

Thanks
SreenivasasRagavan

LINQ

LINQ -Langauge INtegrated Query

LINQ - It is Unified Querying Language features in C# 3.0. using LINQ you can query any Relational DB ,DataSet ,XML , Object, XML etc...

suppose if we want to get all contacts from contacts table the LINQ Query looks like this


SAMPLE LINQ Query


SreeniDatabaseDataContext dbconn = new SreeniDatabaseDataContext ();

var contactRecords = from contact in dbconn.Contacts
select contact;

foreach ( var item in contactRecords )
{
Console.WriteLine(item.Name +" "+ item.Phone);
}




List of LINQ BOOKS




Thanks
SreenivasaRagavan.

Thursday, November 20, 2008

Setting Up the Windows Azure Services Platform

Azure means Blue, this is the name for Microsoft Cloud Computing. In this post i am going to walk through how to setup or create an account in Microsoft Azure platform.

Step 1:
First Point your IE to the following URL Sign Up for MS Azure

Step 2:
Once you Sign up you get TWO Invitation Mails from Microsoft the email body looks like the following ( this is the mail i got )


[FIRST MAIL WITH INVITE CODE]

Do Not Delete! Invitation Code to Microsoft .NET Services and Microsoft SQL Services‏
From: msftconn@microsoft.com
You may not know this sender.Mark as safe|Mark as unsafe
Sent: Tue 11/18/08 3:50 PM
To: sragavan@hotmail.com


!!Do Not Delete!!

Greetings from the Azure Services Platform Team!

Thank you for applying for a Microsoft® .NET Services and Microsoft® SQL Services invitation code on Microsoft Connect Website. (http://connect.microsoft.com). Your invitation code for Microsoft .NET Services and Microsoft SQL Services will be XXX-XXX-QXW9. Please note that this invitation code is NOT activated yet and cannot be used to create a solution at the portal at this moment. We will send you another email to this account once your invitation code is activated, but we will not send you your invitation code again. Please keep this email in a safe place.

Sincerely,
Jenny Lo
Azure Services Platform Team


[SECOND MAIL]

Your Invitation Code to Microsoft .NET Services and Microsoft SQL Services is activated!‏
From: msftconn@microsoft.com
You may not know this sender.Mark as safe|Mark as unsafe
Sent: Tue 11/18/08 3:57 PM
To: sragavan@hotmail.com


Greetings from the Azure Services Platform Team!

Your invitation code for Microsoft® .NET Services and Microsoft® SQL Services is now activated! You can sign up for Microsoft .NET Services and Microsoft SQL Services at http://go.microsoft.com/fwlink/?LinkID=129428. Your invitation code is valid only for signing up one .NET Services and SQL Services solution and was sent to you previously with title "!!Do Not Delete!! Invitation Code to Microsoft .NET Services and Microsoft SQL Services".

If you encounter any on-boarding issues, please post your questions to our forum (http://go.microsoft.com/fwlink/?LinkID=129447)

Sincerely,
Jenny Lo
Azure Services Platform Team

Here is the Some of the Screenshots of Account Setup Wizard.













Stay Tuned once i setup other services and download the SDK i will show how to develop applicaitons for AZURE.


Thanks
SreenivasaRagavan

Wednesday, November 12, 2008

Visual Studio 2010 Tools for MOSS


Microsoft Share point team posted a blog which tells some details about
VS.NET 2010 and Share point.

Here is the List.

* Server Explorer for SharePoint viewing Lists and other artifacts in SharePoint directly inside of Visual Studio.

* Windows SharePoint Services Project (WSP file) Import to create a new solution

* Added a new web part project item and showed the Visual web part designer which loads a user control as a web part for SharePoint.

*Showed adding an event receiver for SharePoint and using the wizard to choose the event receiver and to just create a source file with that event receiver.

* Added an ASPX workflow initiation form to a workflow project and showed how this workflow initiation form has designer capability

* Showed the packaging explorer and the packaging editor which lets you structure the SharePoint features and WSP file that is created

for more Info Point your IE to VS.NET 2010 and MOSS Marriage Album.

Thanks
SreenivasaRagavan

Tuesday, November 11, 2008

How to Handle an Unhandled Exception in WPF?

By default Windows Presentation Foundation (WPF) catches unhandled exceptions and notifies the user. once user answer to the dialog box the application will shutsdown automatically.


Its also possible to handle this default behaviour and provide custom unhandled exception for that we need to override the DispatcherUnhandledException event. this way we can have centralized unhandled exception processing.



Namespace
System.Windows.Application.DispatcherUnhandledException Event
Occurs when an exception is thrown by an application but not handled by user.


DispatcherUnhandledException is raised by an Application for each exception that is unhandled by code running on the main UI thread. If an exception is not handled on either a background user interface (UI) thread (a thread with its own Dispatcher) or a background worker thread (athread without a Dispatcher), the exception is not forwarded to the main UI thread. Consequently, DispatcherUnhandledException is not raised.


In these circumstances, you will need to write code to do the following:


Handle exceptions on the background thread.


Dispatch those exceptions to the main UI thread.


Rethrow them on the main UI thread without handling them to allow DispatcherUnhandledException to be raised.






Once you handle the unhandled exception from DispatcherUnhandledException, you need to set the Handled property to true otherwise WPF will continue processing it,


The following example shows how to process unhandled exceptions by
handling the DispatcherUnhandledException event.





using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace ProjectExp {
///
/// Interaction logic for App.xaml
///

public partial class App : Application
{
private void App_Unhandle(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
string msg = string.Format("Expection occurs in {0}", e.Exception.Message);
MessageBox.Show(msg);
e.Handled = true;
}
}
}



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ProjectExp {
///
/// Interaction logic for Window1.xaml
///

public partial class Window1 : Window {
public Window1() {
InitializeComponent();
}

private void btnUnhandle(object sender, RoutedEventArgs e)
{
throw new NotImplementedException("Failed"); // Here i am not handling the exception .
}

private void btnhandle(object sender, RoutedEventArgs e)
{
try
{
throw new NotImplementedException();
} catch (NotImplementedException ex) // Here Exception is handled
{

MessageBox.Show(ex.Message);
}
}
}
}



XAML CODE



Thanks
SreenivasaRagavan

ASMX to WCF Mapping

WCF - Windows Communication Foundation. [Unification of Programming Models]

ASMX - ASP.NET WebService Application.
ASMX                                          WCF
________________________________________________________________
WebService ServiceContract
WebMethod OperationContract
@WebService (.asmx) @ServiceHost (.svc)
WSDL.EXE(Proxy Generation tool) Svcutil.exe
________________________________________________________________
Thanks
SreenivasaRagavan

Monday, November 10, 2008

Shall We Do TANGO?

TANGO is the project CODE name for SUN WCF And Java Interop

Sun Microsystems has launched the open source initiative called Project Tango. Windows Communications Foundation Engineers are working together with Java Web Services Engineers on the interoperability of enterprise features.

Project Tango focuses on five key functional areas of interoperability.

1)Bootstrapping Communincation

2) Optimizing Communication

3) Enabling Reliability

4)Enabling Atom Transactions

5) Securing Communications

Thanks
SreenivasaRagavan

Friday, November 7, 2008

What is new in C# 4.0?

Start seeing Sharp using C# 4.0





The major theme for C# 4.0 is dynamic programming

1) Dynamic Lookup
2) Named and Optional Arguments
3) Features for COM interop
4) Variance

C# 4.0 Futures, please download the document

Thanks
SreenivasaRagavan

SilverLight 2.0 Developer Reference


SilverLight Developer Reference



Thanks
SreenivasaRagavan

Calling JAVA Web Service from .NET 3.5 framework clients [Win-Forms, WPF, and Silver Light]

Many Enterprise companies have built their Enterprise application in Java technologies as middle tier or server side. While they want to build a compelling UI with Microsoft’s latest technologies, such as WPF 3.5 and Silver light 2.0, they still want to benefit from those existing investments instead of rewriting them. In order to do so, we have to bridge between those technologies and allow client side technologies consume Java web services. In this blog I am going to show you a step by step guide for building a Java EE Web Service, and a .Net client application that consumes it.

First of all let make sure that we have the following Software components installed on your machine.
Windows Presentation Foundation (WPF) is a next-generation presentation system for building Windows client applications with visually stunning user experiences. With WPF, you can create a wide range of both windows standalone and web browser-hosted applications.
WPF uses XAML (Zammel) Extensible Application Markup language to design the GUI.
Silver Light: This is Microsoft latest SDK for to develop RIA.

JAVA
1. Java JDK 6.1
2. Net Beans IDE 6.1

.NET :
1. VS.NET 2008
2. Silver Light 2.0 SDK


First we need to create a new java web project , for that you can use either eclipse or Netbeans. here i downloaded a free Net beans 6.1 from Net Beans download







Here i have added two WebMethods Add and Greetings . This is same as .NET ASMX web service we use [WebMethod] attribute to define a method which can invoked across the internet.












Once Java WebService Developed and Deployed successfully now we need to create WPF windows application. add Service Reference as a Java web service as shown.



Define WPF UI using XAML as shown .





same way we can use SilverLight 2.0 client to invoke Java WebService.

Thanks
Sreenivasaragavan

Wednesday, November 5, 2008

What is SaaS , PaaS , S+S ?

SaaS =Software as a Service.
PaaS =Platform as a Service.
S+S = Software Plus service.

These are different flavours of cloud computing .

S+S is Microsoft Name for Cloud Computing .

From Wikipedia,Azure is a blue Color.




Azure is Microsoft Cloud computing platform. for more details please point your IE to Azure


Thanks
SreenivasaRagavan

Tuesday, November 4, 2008

Popup in Silver Light 2.0

The SilverLight Popup control can hold a single piece of content, which can
be any Silverlight element. (This content is stored in the Popup.Child
Property, rather than the ToolTip.Content property.) Popup can be shown or hidden using the same IsOpen property.

The differences between the Popup and ToolTipare

1) The Popup is never shown automatically. You must set the IsOpen property for it to appear. The Popup does not disappear until you explicitly set its IsOpen property to false.

2) The Popup can receive focus.so you can place user-interactive controls
in it, such as a Button , CheckBox etc.,. This functionality is one of the key reasons to use the Popup instead of the ToolTip.

3) The Popup is placed at the top-left of the page. You can move it down and
to the left using the HorizontalOffset and VerticalOffset properties.



Thanks
SreenivasaRagavan