Friday, June 24, 2011

THIS IS THE ONLY TIME WE WILL SEE AND LIVE THIS EVENT.......]

From: Naveen kumar

Hi  

It is interesting to note the dates of Fri & Sat for this JULY..

THIS IS THE ONLY TIME WE WILL SEE AND LIVE THIS EVENT
Calendar for July 2011 
 


July


Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            



Money bags

This year, July has 5 Fridays, 5 Saturdays and 5 Sundays. This happens once every 823 years. This is called money bags. So, forward this to your friends and money will arrive within 4 days. Based on Chinese Feng Shui. The one who does not forward.....will be without money!!!
 


 






Thursday, June 23, 2011

About Warren Buffet

 

From: ram.patro

 

This man lives by his philosophy and has been paid handsomely by doing so.  I love the two rules he gives to the CEO's of his 63 companies (see #7)!

 

 

 

 

 

 

 

 

  

Some valuable advice...

 

 

"I always knew I was going to be rich.

I don't think I ever doubted it for a minute" 
- Warren Buffett 
Description:
                                                          image012.jpg

Description:

                                                          image013.jpg
Description:
                                                          image014.jpg
Description:
                                                          image015.jpg
Description:
                                                          image016.jpg

Description:
                                                          image017.jpg
Description:
                                                          image018.jpg

Description:
                                                          image019.jpg

Description:
                                                          image020.jpg

Description:
                                                          image021.jpg

Description:
                                                          image022.jpg

 
PLEASE PASS THIS ON AS IT IS CLASSIC

 


 

 

 

 

0 comments

Tuesday, June 21, 2011

DUCKS IN HEAVEN !!!

From: Suchi Gupta

 


 
Three women die together in an accident And go to heaven.

When they get there, St. Peter says, 'We only have one rule here in heaven:
Don't step on the ducks!'

So they enter heaven, and sure enough, There are ducks all over the place.
It is almost impossible not to step on a duck, And although they try their best to avoid them,
The first woman accidentally steps on one.

Along comes St. Peter with the ugliest man she ever saw.
St. Peter chains them together and says, 'Your punishment for stepping on a duck is to
Spend eternity chained to this ugly man!'
The next day,
The second woman steps accidentally on a duck And along comes St. Peter,
Who doesn't miss a thing.

With him is another extremely ugly man. He chains them together
With the same admonishment as for the first woman.

The third woman has observed all this and, Not wanting to be chained
For all eternity to an ugly man, is very, VERY careful where she steps.

She manages to go months Without stepping on any ducks,
But One day St.Peter comes up to her With the most handsome man she has ever laid eyes on
.... Very tall, long eyelashes, muscular.



St. Peter chains them together without saying a word.

The happy woman says,
'I wonder what I did to deserve being Chained to you for all of eternity?'

The guy says,
 
'I don't know about you, But I stepped on a Duck.

You Must Read It...Very Very Important for us.

 

From: Ritesh

 

Sorry for those who do not understand Hindi.

In summary, this mail talks about 280 Lakhs Cr. Deposits in Swiss banks by corrupt people.

Which we want back. So do forward it.

 

 

From: Rajeev
Subject: You Must Read It...Very Very Important for us.

 

 

  Dear All,

Please do it Forward to all your known, near & dears

280 लाख करोड़ का सवाल है ...
भारतीय गरीब है लेकिन भारत देश कभी गरीब नहीं रहा"* ये कहना है स्विस बैंक के
डाइरेक्टर कास्विस बैंक के डाइरेक्टर ने यह 
भी कहा है कि भारत का लगभग 280
लाख करोड़ 
रुपये उनके स्विस 
बैंक में जमा हैये रकम
इतनी है कि भारत का आने वाले 30 सालों का बजट 
बिना टैक्स के 
बनाया जा सकता 
है.
या यूँ कहें कि 60 करोड़ 
रोजगार के अवसर 
दिए जा सकते हैया यूँ भी कह सकते है
कि भारत के किसी भी गाँव से दिल्ली तक 
लेन रोड बनाया 
जा सकता हैऐसा भी कह
सकते है कि 500 से ज्यादा सामाजिक प्रोजेक्ट पूर्ण किये जा सकते हैये 
रकम
इतनी ज्यादा है कि अगर हर भारतीय को 2000 रुपये हर महीने भी दिए जाये तो 60
साल तक ख़त्म ना होयानी भारत को किसी वर्ल्ड बैंक से लोन लेने कि कोई जरुरत
नहीं हैजरा सोचिये ... हमारे भ्रष्ट राजनेताओं 
और नोकरशाहों ने 
कैसे देश को

लूटा है और ये लूट का सिलसिला अभी तक 2011 तक जारी है
इस सिलसिले को 
अब रोकना

बहुत ज्यादा जरूरी हो गया हैअंग्रेजो ने हमारे भारत पर करीब 200 सालो तक राज
करके करीब 1 लाख
करोड़ रुपये लूटामगर आजादी के केवल 64 सालों में हमारे भ्रस्टाचार ने 280
लाख करोड़ लूटा हैएक तरफ 200 साल में 1 लाख करोड़ है और दूसरी तरफ केवल 64
सालों में 280 लाख करोड़ हैयानि हर साल लगभग 4.37लाख करोड़या हर महीने
करीब 36 हजार करोड़ भारतीय मुद्रा स्विस बैंक में इन भ्रष्ट 
लोगों द्वारा जमा
करवाई गई हैभारत को किसी वर्ल्ड बैंक के लोन की कोई दरकार नहीं हैसोचो की
कितना पैसा हमारे भ्रष्ट राजनेताओं और उच्च अधिकारीयों ने ब्लाक करके 
रखा हुआ
हैहमे भ्रस्ट राजनेताओं और भ्रष्ट अधिकारीयों के खिलाफ जाने का पूर्ण अधिकार
है.हाल ही में हुवे घोटालों का 
आप सभी को पता ही है - CWG घोटाला२ जी
स्पेक्ट्रुम घोटाला , आदर्श होउसिंग घोटाला ... और ना जाने कौन कौन 
से घोटाले
अभी उजागर होने वाले है ........आप लोग जोक्स फॉरवर्ड करते ही होइसे भी इतना
फॉरवर्ड करो की पूरा भारत 
इसे पढ़े ... और एक आन्दोलन बन जाये ...

 

 

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

Newer Posts Older Posts Home
 
doggy steps
doggy steps