Thursday, August 20, 2015

One-liners

Most Positive One-liners


1. Look people in their eye.


2.  Have a firm handshake


3. Sing in the shower.


4. Own a incredible stereo system.


5. In an event of fight, hit first and hit hard.


6. Keep secrets and lets others wonder.


7. Never give-up on anyone. Wonders happen everyday.


8. Continuously acknowledge an outstretched hand.


9. Be brave. Regardless of possibility that you’re not, but pretend to be. Noone can see the difference.


10. Whistle.


11. Avoid sarcastic remarks.


12. Choose your life’s partner carefully. From this one choice will come 90% of all your happiness or misery.


13. Make it a habit to do nice things for individuals in a way that they never figure it out.


14. Lend only those books you never care to see again.


15. Never deprive someone of hope; it might be all that they have.


16. When playing games with youngsters, let them win.


17. Give people a second chance, always.


18. Be romantic.


19. Become the most positive and enthusiastic person you know.


20. Loosen up. Relax. Except for rare life-and-death matters, nothing is as important as it first seems.


21. Don’t allow the phone to hinder essential moments. It’s there for our comfort, not the caller’s.


22. Be a good loser for your  loved ones.


23. Be a good winner of Hearts.


24. Think twice before burdening a friend with a secret.


25. When someone hugs you, let them be the first to let go.


26. Be modest. A lot was accomplished before you were born.


27. Keep it sweet n simple.


28. Beware of the person who has nothing to lose.


29. Don’t burn bridges. You’ll be surprised how frequently you need to cross the same river.


30. Live your life so that your epitaph could read, No Regrets


31. Be bold and gutsy. When you look back on life, you’ll regret the things you didn’t do more than the ones you did.


32. Never waste an opportunity to tell someone you love them.


33. Remember no one makes it alone. Have a grateful heart and be quick to acknowledge those who helped you.


34. Take charge of your attitude. Don’t let someone else choose it for you.


35. Visit friends and relatives when they are in hospital; you need only stay a few minutes.


36. Start each and everyday with some of your favourite music.


37. Once in a while, take the scenic route.


38. Forgive quickly. Life is short.


39. Answer the phone with enthusiasm and energy in your voice.


40. Keep a note pad and pencil on your bed-side table. Million-dollar ideas sometimes strike at 3 a.m.


41. Show respect for everyone who works for a living, regardless of how trivial their job.


42. Send your loved ones flowers. Think of a reason later.


43. Make someone’s day by encouraging them.


44. Become someone’s hero.


45. Marry only for love.


46. Count your blessings.


47. Compliment the meal when you’re a guest in someone’s home.


48. Wave at the children on a school bus.


49. Remember that 80 per cent of the success in any job is based on your ability to deal with people.


50. Don’t expect life to be fair….



One-liners

Wednesday, August 19, 2015

Man changes himself because he loves

A woman can’t change a man because she loves him,

a man changes himself because he loves her!


Many women fall into the trap of trying to change a man. The reality is that beginning a relationship with a man she tacitly accepts him, “as he is.” Hoping to change him is foolish and misguided. Most men, at some point, realize the decisions they must make in order to be a good partner or husband material. But they do so in their own time, or because they’ve met someone who holds them to a higher standard and they want to change.



The beauty of a woman must be seen from in her eyes,

because that is the doorway to her heart,

the place where love resides.
~ Audrey Hepburn


I believe marriage is between a man and a woman.

I am not in favor of gay marriage.

But when you start playing around with constitutions,

just to prohibit somebody who cares about another person,

it just seems to me that’s not what America’s about.

Usually, our constitutions expand liberties, they don’t contract them.
~ Barack Obama


As usual, there is a great woman behind every idiot.
~ John Lennon


When it comes to men,

deal with them as they are,

not how you’d like them to be.
~ Greg Behrendt



Man changes himself because he loves

Sending E-mail in Sharepoint using CSOM(Client Side Object Model)

E-mail in Sharepoint using CSOM


Using SharePoint Client Object Model (CSOM) has been a most famous method for a sending email. You can use SharePoint Utility class to send a Email. But you can not send to external users. If you are sending to external users they should be added to your mail exchange but it will take some time to reflect the change.


function sendEmail(from, to, body, subject) 

var siteurl = _spPageContextInfo.webServerRelativeUrl;

var urlTemplate = siteurl + "/_api/SP.Utilities.Utility.SendEmail";
$.ajax(
contentType: 'application/json',
url: urlTemplate,
type: "POST",
data: JSON.stringify(
'properties':
'__metadata': 'type': 'SP.Utilities.EmailProperties' ,
'From': from,
'To': 'results': [to] ,
'Body': body,
'Subject': subject


),
headers:
"Accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val()
,
success: function (data)
alert("Eposten ble sendt");
,
error: function (err)
alert(err.responseText);
debugger;

);

The other way to send an E-mail in sharepoint is using javascript model (JSOM)


Using SharePoint JavaScript Model (JSOM) is very similar to the CSOM but it will use only JavaScript for sending emails.


var mail = 
properties:
__metadata: 'type': 'SP.Utilities.EmailProperties' ,
From: 'from@mail.com',
To: 'results': ['one@mail.com','two@mail.com'] ,
Body: 'some body',
Subject: 'subject'

;

var getAppWebUrlUrl = decodeURIComponent(utils.getQueryStringParameter("SPAppWebUrl").replace("#", ""));
var urlTemplate = getAppWebUrlUrl + "/_api/SP.Utilities.Utility.SendEmail";

$.ajax(
contentType: 'application/json',
url: urlTemplate,
type: "POST",
data: JSON.stringify(mail),
headers:
"Accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val()
,
success: function (data)
// code
,
error: function (err)
// code

);


Sending E-mail in Sharepoint using CSOM(Client Side Object Model)

Poem - देखा है

सुन्दर कविता जिसके अर्थ काफी गहरे हैं……..


मैंने .. हर रोज .. जमाने को .. रंग बदलते देखा है ….

उम्र के साथ .. जिंदगी को .. ढंग बदलते देखा है .. !!


वो .. जो चलते थे .. तो शेर के चलने का .. होता था गुमान..

उनको भी .. पाँव उठाने के लिए .. सहारे को तरसते देखा है !!


जिनकी .. नजरों की .. चमक देख .. सहम जाते थे लोग ..

उन्ही .. नजरों को .. बरसात .. की तरह ~~ रोते देखा है .. !!


जिनके .. हाथों के .. जरा से .. इशारे से .. टूट जाते थे ..पत्थर ..

उन्ही .. हाथों को .. पत्तों की तरह .. थर थर काँपते देखा है .. !!


जिनकी आवाज़ से कभी .. बिजली के कड़कने का .. होता था भरम ..

उनके .. होठों पर भी .. जबरन .. चुप्पी का ताला .. लगा देखा है .. !!


ये जवानी .. ये ताकत .. ये दौलत ~~ सब कुदरत की .. इनायत है ..

इनके .. रहते हुए भी .. इंसान को ~~ बेजान हुआ देखा है … !!


अपने .. आज पर .. इतना ना .. इतराना ~~ मेरे .. यारों ..

वक्त की धारा में .. अच्छे अच्छों को ~~ मजबूर हुआ देखा है .. !!!


कर सको……तो किसी को खुश करो……दुःख देते ……..तो हजारों को देखा है..



Poem - देखा है

Poem - देखा है

सुन्दर कविता जिसके अर्थ काफी गहरे हैं……..


मैंने .. हर रोज .. जमाने को .. रंग बदलते देखा है ….

उम्र के साथ .. जिंदगी को .. ढंग बदलते देखा है .. !!


वो .. जो चलते थे .. तो शेर के चलने का .. होता था गुमान..

उनको भी .. पाँव उठाने के लिए .. सहारे को तरसते देखा है !!


जिनकी .. नजरों की .. चमक देख .. सहम जाते थे लोग ..

उन्ही .. नजरों को .. बरसात .. की तरह ~~ रोते देखा है .. !!


जिनके .. हाथों के .. जरा से .. इशारे से .. टूट जाते थे ..पत्थर ..

उन्ही .. हाथों को .. पत्तों की तरह .. थर थर काँपते देखा है .. !!


जिनकी आवाज़ से कभी .. बिजली के कड़कने का .. होता था भरम ..

उनके .. होठों पर भी .. जबरन .. चुप्पी का ताला .. लगा देखा है .. !!


ये जवानी .. ये ताकत .. ये दौलत ~~ सब कुदरत की .. इनायत है ..

इनके .. रहते हुए भी .. इंसान को ~~ बेजान हुआ देखा है … !!


अपने .. आज पर .. इतना ना .. इतराना ~~ मेरे .. यारों ..

वक्त की धारा में .. अच्छे अच्छों को ~~ मजबूर हुआ देखा है .. !!!


कर सको……तो किसी को खुश करो……दुःख देते ……..तो हजारों को देखा है..



Poem - देखा है

Test Post from Zappmania.in

Test Post from Zappmania.in http://www.zappmania.in