ye kyaa ke sab se bayaa.N dil kii haalate.n karanii

 

ye kyaa ke sab se bayaa.N dil kii haalate.n karanii

ye kyaa ke sab se bayaa.N dil kii haalate.n karanii
‘Faraz’ tujh ko na aa_ii.n muhabbate.n karanii

ye qurb kyaa hai ke tuu saamane hai aur hame.n
shumaar abhii se judaa_ii kii sa’ate.n karanii

ko_ii Khudaa ho ke patthar jise bhii ham chaahe.n
tamaam umr usii kii ibaadate.n karanii

sab apane apanee qariine se muntazir us ke
kisii ko shukr kisii ko shikaayate.n karanii

ham apane dil se hai.n majabuur aur logon ko
zaraa sii baat pe barpaa qayaamate.n karanii

mile.n jab un se to mubaham sii guftaguu karanaa
phir apane aap se sau-sau vazaahate.n karanii

ye log kaise magar dushmanii nibhaate.n hai.n
hamii.n ko raas na aa_ii.n muhabbate.n karanii

kabhii ‘Faraz’ naye mausamo.n me.n ro denaa
kabhii talaash puraanii raqaabate.n karanii

That is Called Mind Set

 

As my friend was passing the elephants, he suddenly stopped, confused by the fact that these huge creatures were being held by only a small rope tied to their front leg. No chains, no cages. It was obvious that the elephants could, at anytime, break away from the ropes they were tied to but for some reason, they did not. My friend saw a trainer nearby and asked why these beautiful, magnificent animals just stood there and made no attempt to get away.

 

 

“Well,” he said, “when they are very young and much smaller we use the same size rope to tie them and, at that age, it’s enough to hold them. As they grow up, they are conditioned to believe they cannot break away. They believe the rope can still hold them, so they never try to break free.” My friend was amazed. These animals could at any time break free from their bonds but because they believed they couldn’t, they were stuck right where they were.

 

Like the elephants, how many of us go through life hanging onto a belief that we cannot do something, simply because we failed at it once before? So make an attempt to grow further…. Why shouldn’t we try it again?

 

“YOUR ATTEMPT MAY FAIL, BUT NEVER FAIL TO MAKE AN ATTEMPT.”

How to get month date view between two dates in c#

I required month and year view in drop down list between contract starting and ending date. Like “March 2009” “April 2009” until march 2011 so on.

I handled it as follow

DateTime _LoopDate = “1/1/2009”;
string month = string.Empty;
DateTime _EndDate = “1/1/2011”;

while (_LoopDate <= _EndDate)
{
System.Globalization.DateTimeFormatInfo d = new System.Globalization.DateTimeFormatInfo();
month = d.MonthNames[_LoopDate.Month - 1];

drpDate.Items.Add(new ListItem(month + ” ” + _LoopDate.Year.ToString(), _LoopDate.Month.ToString() + ” ” + _LoopDate.Year.ToString()));
//drpdate is dropdownlist
_LoopDate= _LoopDate.AddMonths(1);
}

How to get Month name from current date using c#

Hi i found two methods to do so. 

Using Globliziation 

System.Globalization.DateTimeFormatInfo d = new System.Globalization.DateTimeFormatInfo();
 string month = d.MonthNames[DateTime.Now.Month-1];
 

Using new date object as follow

string MonthName = GetMonthName(DateTime.Now.Month);
static string GetMonthName(int monthNum)
{
return GetMonthName(monthNum, false);
}
static string GetMonthName(int monthNum, bool abbreviate)
{
if (monthNum < 1 || monthNum > 12)
throw new ArgumentOutOfRangeException(”monthNum”);
DateTime date = new DateTime(1, monthNum, 1);
if (abbreviate)
return date.ToString(”MMM”);
else
return date.ToString(”MMMM”);
}

Chears

How to get year from date in pl sql.

pl Sql has function “Extract” this functions works wonders. I used it at many places in my application , i write some samples here

Years

select EXTRACT(YEAR FROM DATE ‘2008-3-17′)YEAR from dual;

Months

select EXTRACT(Month FROM DATE ‘2009-3-17′)Months from dual;

Day

select EXTRACT(day FROM DATE ‘2009-3-17′)Days from dual;

and how i used it my query

select * from tblSales_V where salesId in (select SalesId from OUTLET_SALE_V where  outlet_Id =’001198′)
and EXTRACT(YEAR FROM issue_Date)   = 2005

chears

Koie to Baat hai uss main!!.

Aab Kay Yoon Dil Ko Saza Di Hum Nay

Us Ki Her Baat Bhula Di Hum Nay

Eik , Eik Phool Bohat Yaad Aaya

Shakh-E-Gul Jab Woh Jala Di Hum Nay

Aaj Tak Jis Pay Woh Shermatay Hain

Baat Woh Kab Ki Bhula Di Hum Nay

Sheher-E-Jahan Rakh Say Abad Hua

Aag Jab Dil Ki Bujha Di Hum Nay

Aaj Phir Yaad Bohat Aaya Woh

Aaj Phir Us Ko Dua Di Hum Nay

Koi To Baat Hia Us Main Faiz

Her Khushi Jis Pay Luta Di Hum Nay

By Faiz Ahamd Faiz

poem of the day

Khud ba khud chor gaye hen tu chalo thek huwa
itne ehbab kahan hmse sambhale jate,

hum bhi Ghalib ki tarha kocha_e_jana se Mohsin
Na nikalte tu ksi roz nikale jate.

Nice Regular expression for text input

i found a use full regular expression vaildating input string, you can use it to filter sql injection attacks while taking input for username, title ect.

^[a-zA-Z]+(([\.\- ][a-zA-Z0-9 ])?[a-zA-Z0-9]*)*$

Aaj Bazaar meiN pabajaulaN chalo

Nice poem
 

 

Chashm-e-nam,Jaan-e-Shorida kaafi nahiN
Tohmat-e-Ishq posheeda kaafi nahiN
Aaj Bazaar meiN pabajaulaN chalo
Dast afshaaN chalo, mast-o-raqsaaN chalo
Khaak barsar chalo,khuN badamaaN chalo
raah takta hai sab shehr-e-jaanaN chalo
Aaj bazaar meiN pabajaulaN chalo
haakim-e-sheher bhi majama�e aam bhi
subh-e-nashad bhi,roz-e-nakaam bhi
teer-e-ilzam bhi sange dushnam bhi
pa ba jaulaaN chalo, aaj bazaar meiN
inka damsaaz apne siwa kon hai
shehr-e-jaanaN mein ab basifa kon hai
dast-e-qaatil ke shaayaN raha kon hai
rakht-e-dil bandh lo, dilfigaaro chalo
phir humiN qatal ho aayeN yaaro chalo
Faiz Ahmed Faiz

Personal Perception

Different people have different perception. One man’s meat could be another man’s poison.

A couple bought a donkey from the market.. On the way home, a boy commented, “Very stupid. Why neither of them rides on the donkey? “Upon hearing that, the husband let the wife ride on the donkey. He walked besides them.

Later, an old man saw it and commented, “The husband is the head of family. How can the wife ride on the donkey while the husband is on foot?” Hearing this, the wife quickly got down and let the husband ride on the donkey.

Further on the way home, they met an old Lady. She commented, “How can the man ride on the donkey but let the wife walk. He is no gentleman.”The husband thus quickly asked the wife to join him on the donkey. Then, they met a young man. He commented, “Poor donkey, how can you hold up the weight of two persons. They are cruel to you.” Hearing that, the husband and wife immediately climbed down from the donkey and carried it on their shoulders.

It seems to be the only choice left. Later, on a narrow bridge, the donkey was frightened and struggled. They lost their balance and fell into the river.

 

You can never have everyone praise you, nor will everyone condemn you. Never in the past, not at present, and never will be in the future.

Thus, do not be too bothered by others words if our conscience is clear. Do what you think is right, not what others think. 

 


reference : http://pravstalk.com/personal-perception/