Wednesday, June 15, 2011

Worried About BlackHeads And WhiteHeads

For young beautiful lady who are worried of blackheads and whiteheads and are worried about the painful extraction of affected skin area, the Skin Action Sebum Gel product from Cellnique is for you.

This is due to excessive sebum secretion leaving your skin with full of blackheads and whiteheads, making your skin less smooth and inflammatory.

Using this Skin Action Sebum Gel from Cellnique will not only reduces the formation of blackheads and whiteheads within 10 days of using on the affected skin, but also makes your skin clear, smooth, reduces skin inflammatory, reduces irritation and increases skin moistures and improves skin elasticity.

You need have to worry about side effect of using this gel, since this gel does not have any harmful chemical ingredients.

Please visit the following link to know more about the ingredients used in the Skin Action Sebum Gel:

Skin Action Sebum Gel product from Cellnique


Friday, June 10, 2011

Intelligent Google Translate

From: Suhas

 

Type 'Suresh Raina is god' in Google translate and translate to Serbian.

Copy the Serbian text and translate back to English.

http://translate.google.com/#

 

Very Gud1

From: Suchi Gupta

 

 

 

A blonde and a lawyer are seated next to each other on a flight from Los Angeles to New York.

The lawyer asks if she would like to play a fun game. The blonde, tired, just wants to take a nap, so she politely declines and rolls over to the window to catch a few winks. The lawyer persists and explains that the game is easy and a lot of fun.

He says, "I ask you a question, and if you don't know the answer, you pay me five dollars, and vice versa."

Again, she declines and tries to get some sleep.
The lawyer, now agitated, says, "Okay, if you don't know the answer, you pay me $5, and if I don't know the answer, I will pay you $500." This catches the blonde's attention and, figuring there will be no end to this torment, agrees to the game.

The lawyer asks the first question: "What's the distance from the earth to the moon?"

The blonde doesn't say a word, reaches into her purse, pulls out a $5.00 bill, and hands it to the lawyer.

"Okay," says the lawyer, "your turn."

She asks, "What goes up a hill with three legs and comes down with four legs?"

The lawyer, puzzled, takes out his laptop computer and searches all his references ... No answer. He taps into the air phone with his modem and searches the Internet and the Library of Congress ...and all sorts of elsewhere. No answer. Frustrated, he sends e-mails to all his friends and co-workers but to no avail.

After an hour, he wakes the blonde and hands her $500.

The blonde thanks him and turns back to get some more sleep.

The lawyer, who is more than a little miffed, stirs the blonde and asks, "Well, what's the answer?"

Without a word, the blonde reaches into her purse, hands the lawyer $5, and goes back to sleep.!!!!!!!!!!!

Wednesday, June 8, 2011

WCF: Fault Contract : Reporting service operation error to the client appliction

 

http://www.wcftutorial.net/Fault-Contract.aspx

 

Fault Contract

Service that we develop might get error in come case. This error should be reported to the client in proper manner. Basically when we develop managed application or service, we will handle the exception using try- catch block. But these exceptions handlings are technology specific.

In order to support interoperability and client will also be interested only, what wents wrong? not on how and where cause the error.

By default when we throw any exception from service, it will not reach the client side. WCF provides the option to handle and convey the error message to client from service using SOAP Fault contract.

Suppose the service I consumed is not working in the client application. I want to know the real cause of the problem. How I can know the error? For this we are having Fault Contract. Fault Contract provides documented view for error accorded in the service to client. This help as to easy identity the what error has accord. Let us try to understand the concept using sample example.

Step 1: I have created simple calculator service with Add operation which will throw general exception as shown below

//Service interface

[ServiceContract()]

    public interface ISimpleCalculator

    {

        [OperationContract()]

        int Add(int num1, int num2);

    }

//Service implementation

public  class SimpleCalculator : ISimpleCalculator

    {

   

        public int Add(int num1, int num2)

        {

            //Do something

            throw new Exception("Error while adding number");

           

        }

 

    }

 

Step 2: On client side code. Exceptions are handled using try-Catch block. Even though I have capture the exception when I run the application. I got the message that exceptions are not handled properly.

try

   {

      MyCalculatorServiceProxy.MyCalculatorServiceProxy proxy

       = new MyCalculatorServiceProxy.MyCalculatorServiceProxy();

      Console.WriteLine("Client is running at " + DateTime.Now.ToString());

      Console.WriteLine("Sum of two numbers... 5+5 =" + proxy.Add(5, 5));

      Console.ReadLine();

   }

   catch (Exception ex)

   {

      Console.WriteLine(ex.Message);

      Console.ReadLine();

   }

http://www.wcftutorial.net/Images/090400_FaultContractOutput.jpg

Step 3: Now if you want to send exception information form service to client, you have to use FaultException as shown below.

        public int Add(int num1, int num2)

        {

            //Do something

            throw new FaultException("Error while adding number");

           

        }

Step 4: Output window on the client side is show below.

http://www.wcftutorial.net/Images/090400_FaultContractOutputCorrect.jpg

Step 5: You can also create your own Custom type and send the error information to the client using FaultContract. These are the steps to be followed to create the fault contract.

  • Define a type using the data contract and specify the fields you want to return.
  • Decorate the service operation with the FaultContract attribute and specify the type name.
  • Raise the exception from the service by creating an instance and assigning properties of the custom exception.

Step 6: Defining the type using Data Contract

    [DataContract()]

    public class CustomException

    {

        [DataMember()]

        public string Title;

        [DataMember()]

        public string ExceptionMessage;

        [DataMember()]

        public string InnerException;

        [DataMember()]

        public string StackTrace;       

    }

Step 7: Decorate the service operation with the FaultContract

    [ServiceContract()]

    public interface ISimpleCalculator

    {

        [OperationContract()]

        [FaultContract(typeof(CustomException))]

        int Add(int num1, int num2);

    }

Step 8: Raise the exception from the service

        public int Add(int num1, int num2)

        {

            //Do something

            CustomException ex = new CustomException();

            ex.Title = "Error Funtion:Add()";

            ex.ExceptionMessage = "Error occur while doing add function.";

            ex.InnerException = "Inner exception message from serice";

            ex.StackTrace = "Stack Trace message from service.";

            throw new FaultException(ex,"Reason: Testing the Fault contract") ;

           

        }

Step 9: On client side, you can capture the service exception and process the information, as shown below.

   try

   {

      MyCalculatorServiceProxy.MyCalculatorServiceProxy proxy

      = new MyCalculatorServiceProxy.MyCalculatorServiceProxy();

       Console.WriteLine("Client is running at " + DateTime.Now.ToString());

       Console.WriteLine("Sum of two numbers... 5+5 =" + proxy.Add(5, 5));

       Console.ReadLine();

    }

    catch (FaultException<MyCalculatorService.CustomException> ex)

     {

        //Process the Exception

     }

 

Tuesday, June 7, 2011

WCF Tutorial site

Wednesday, May 11, 2011

Search Everything : Fast access tool on your drive

From: Saxena, Ritesh

 

Tool to access files,exe instantly using “Search Everything Tool” http://www.voidtools.com/faq.php

 

Here is the description of the tool:

 

"Everything" is an administrative tool that locates files and folders by filename instantly for Windows.

Unlike Windows search "Everything" initially displays every file and folder on your computer (hence the name "Everything").

You type in a search filter to limit what files and folders are displayed.

 

 

Tuesday, May 3, 2011

JOB: Keane Open Positions

 

Job Code

Position

Skills

Years of Experience

Location

May-BLR-149

Senior Software Engineer/Team Lead

SAP ABAP

3 to 5 Years

Bangalore

May-BLR-150

Senior Software Engineer/Team Lead

SAP XI/PI

3 to 5 Years

Bangalore

May-HYD-151

Senior Software Engineer

Flex Developer with Java/J2EE

2 to 5 Years

Hyderabad

May-HYD/BLR-152

Senior Software Engineer/Team Lead

Oracle DBA, Data Guard, RMAN, RAC Implementation 

4 to 8 Years 

Hyderabad/Bangalore

May-GRN-153

Senior Software Engineer

Oracle ADF and PL/SQL

2 to 4 Years

Gurgaon

May-HYD/BLR-154

Team Lead

Power Builder with SQL or Oracle.

4 to 6 Years

Hyderabad/Bangalore

May-BLR-155

Senior Software Engineer/Team Lead

Sharepoint Developer

3 to 6 Years

Bangalore

May-HYD-156       

Team Lead

Windows Admin with IIS

4 to 6 Years

Hyderabad

May-HYD-157

Senior Software Engineer

Mainframes:Documerge and Dialogue Developer

3 to 5 Years

Hyderabad

May-CHN-158

Senior Software Engineer

Synon Developer

3 to 5 Years

Chennai

May-Noida-159

Senior Software Engineer/Team Lead

Core java  with expertise in   JSP, Javascript and Ajax,EJBs, Struts and Message Beans ,and knowledge of Tuning SQL queries and JBOSS  application server

3 to 5 Years

Noida

 

 
doggy steps
doggy steps