Tuesday, December 29, 2009
Sunday, December 27, 2009
Friday, December 25, 2009
Sunday, December 20, 2009
Wednesday, December 16, 2009
Friday, December 11, 2009
Tuesday, December 8, 2009
Sunday, December 6, 2009
Tuesday, December 1, 2009
DJ meaning
A disc jockey (also known as DJ or deejay) is a person who selects and plays recorded music for an audience. Originally, disk referred to phonograph records, while disc referred to the Compact Disc, and has become the more common spelling. Today, the term includes all forms of music playback, no matter the source.
There are several types of disc jockeys. Radio DJs introduce and play music that is broadcast on AM, FM, shortwave, digital, or internet radio stations. Club DJs select and play music in bars, nightclubs, discothèques, at raves, or even in a stadium. Hip hop disc jockeys select and play music using multiple turntables, often to back up one or more MCs, and they may also do turntable scratching to create percussive sounds. In reggae, the disc jockey (deejay) is a vocalist who raps, "toasts", or chats over pre-recorded rhythm tracks while the individual choosing and playing them is referred to as a selector.[1] Mobile disc jockeys travel with portable sound systems and play recorded music at a variety of events.
How to Be Happy
How to Be Optimistic
How to Be Laid Back
How to Live in the Moment
Follow your gut. In one study, two groups of people were asked to pick out a poster to take home. One group was asked to analyze their decision carefully, weighing the pros and cons, and the other group was told to listen to their gut. Two weeks later, the group that followed their gut was happier with their posters than the group that analyzed their decisions.[2] Now, some of our decisions are more crucial than picking out posters, but by the time you're poring over your choice, the options you're weighing are probably very similar, and the difference will only temporarily affect your happiness. So next time you have a decision to make, and you're down to two or three options, just pick the one that feels right, and go with it.
How to Follow Your Intuition
How to Stop Hesitating
Make enough money to meet your basic needs: food, shelter, and clothing. In the US, that magic number is $40,000 a year. Any money you make beyond that will have negligible effects on your happiness. Remember the lottery winners mentioned earlier? Oodles of money didn't make them any happier, and it won't make you any happier. Once you make enough money to support your basic needs, your happiness is not significantly affected by how much money you make, but by your level of optimism.[3]
Your comfort may increase with your salary, but comfort isn't what makes people happy. It makes people bored. That's why it's important to push beyond your comfort zone to fuel your growth as a person.
Don't assume you're the exception, as in "Sure they didn't use their lottery money wisely, but if I won it, I'd spend it differently, and it would definitely make me happier." Part of the reason many people are unhappy is because they don't think research-based advice about happiness applies to them, and they continue chasing more money and achievement and material goods in vain.[4]
Stay close to friends and family. Or move to where other members are- so you can see them more. We live in a mobile society, where people follow jobs around the country and sometimes around the world. We do this because we think increases in salary will make us happier, but the fact is that our relationships with our friends and family have a far greater impact on our happiness than our jobs do. So next time you think about relocating, consider that you'd need a salary increase of over $100,000 USD to compensate for the loss of happiness you'd have from moving away from your friends and family.[5] But if your relationships with your family and friends are unhealthy or nonexistent, and you are bent on moving, choose a location where you'll be making about the same amount of money as everyone else; according to research, people feel more financially secure (and happier) when they're on similar financial footing as the people around them, regardless of what that footing is.[6]
Find happiness in the job you have now. Many people expect the right job or the right career to dramatically change their level of happiness, but happiness research makes it clear that your level of optimism and the quality of your relationships eclipse the satisfaction you gain from your job.[7] If you have a positive outlook, you'll make the best of any job, and if you have good relationships with people, you won't depend on your job to give your life a greater sense of meaning. You'll find it in your interactions with the people you care about. Now that doesn't mean you shouldn't aspire towards a job that'll make you happier; it means you should understand that the capacity of your job to make you happy is quite small in comparison to your outlook on life and your relationships with people.
Smile. Science suggests that when you smile, whether you feel happy or not, your mood will be elevated.[8] Moreover, studies show that happiness is contagious.[9] With this in mind, consider the implications for happiness that the very act of smiling at another in passing has on not only our psyche, but that of the larger good. More importantly, when we smile at another, it shouldn't be with the expectation of having a smile in return. Sometimes the people we are smiling at who don't return the gesture may be the ones who need the smile the most. Just the act of doing something positive -- sharing a smile -- might be enough to send our neurochemicals in the right direction, regardless of the response.
Don't take things to heart. Just because one person tells you something doesn't mean it's true. Even if it is try to be optimistic about it. Remember - just because one person is against you doesn't mean the whole world is. Sometimes people don't know what they are saying.
Practice Acts of Kindness. When we treat others in ways we would wish to be treated, a certain type of synergy develops. The altruistic actions on our part plays dividends in fostering positive relations and forging an upbeat mental attitude. There is an unspoken return to acts of kindness, in which they can manifest in various forms, such as a returned gesture, a happier mental state, and/or improved circumstances for one's life. It ties into the law of karma, which implies that the merit of actions or deeds come back to the individual who performs them. Given this, acts of kindness are a way to move our lives in a positive and more fulfilling direction.
Exercise, exercise, exercise. For a boost to the immunity system and for an increase in overall wellbeing, exercise provides a healthy means for relieving stress and anxiety. Studies show that people who suffer from depression and other psychiatric conditions benefit greatly from engaging in physical exercise, and those without these conditions stand to benefit just as significantly. Rigorous physical activity can help defuse any stressful thoughts, returning the individual to a healthier equilibrium. Exercise also has the double benefit of making the individual more productive in day to day tasks, and as evidence of this, employees who exercise can generally carry more value in terms of productivity than those who don't.
Take a vitamin B and vitamin D3 supplement. For a simple suggestion for increasing one's level of happiness, a vitamin B supplement can carry a huge health dividend in positively impacting the mood. In the fall and winter due to the lack of sunlight, many peoples moods are challenged. Lack of sunlight can cause depression. Vitamin D3 has become a recommended remedy.
Meditate. Meditation is a source of release from the pressures of cumulative, worrisome, and/or troublesome thoughts. Spending even as little as 5 minutes a day engaged in deep breathing exercises can help significantly to ease the pressures of the build-up of tension that happens to everyone on a daily basis. Meditation also provides the individual with a useful means to detach from negative thoughts, which prevents distressful thoughts from manifesting in the psyche.
Practice forgiveness. There is a tendency for people who are experiencing distressful circumstances to pass blame onto others. Children, for instance, may commonly blame their parents for the life challenges that they are facing. However, when we practice forgiveness, with it comes a sense of relief from burdensome thoughts in addition to the ability to forge healthier relationships with others. When forgiveness becomes a conscientious practice, anger finds a resolution and true healing can commence. Anger is counterintuitive to happiness, and any incidence of it is best resolved through positive emotions - and forgiveness helps provide this necessary release.
Love yourself. You are here on this planet for a reason. Your very presence is an act of beauty and a gift to humanity. Never undermine the good that you have given and that you stand to give. In saying and thinking positive things about one's own inner value, tremendous feelings of joy can begin to manifest in even the most depressed mind. Remember that everyone has issues -- everyone has something to contend with -- and you too have obstacles and challenges. In loving yourself sincerely and humbly you can find a great deal of comfort and joy in knowing that no matter how badly the world may treat you or how badly you may feel about yourself at any given time that you are worthwhile and intrinsically good. Your presence here on Earth signifies your value and worthiness, and your interconnectedness with everything else on this planet signifies your importance in the grand web of life. So love yourself because your love is felt by all of those around you, and your love for yourself is just as important as anyone else's, especially in times of distress and trouble.
Relax and Do What You Enjoy Whatever that may be, whether it's sitting back and listening to your favorite song, looking at stars, chatting with a friend, or watching a funny show that makes you relax, do whatever it is that you enjoy doing and relaxes you.
Monday, November 30, 2009
Sunday, November 29, 2009
Popup in asp.net 2.0
protected void btnPopup_Click(object sender, EventArgs e)
{
string sFeature = "dialogWidth: 400px; dialogHeight: 250px;";
string sUrl = "Popup.aspx?Info=No Shipping Information";
Page.ClientScript.RegisterStartupScript(this.GetType(), "ShowPopup", "");
}
in popup.aspx.cs page
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
lblPopInfo.Text = Request.QueryString["Info"].ToString();
}
}
Wednesday, November 25, 2009
Tuesday, November 24, 2009
Monday, November 23, 2009
Add Requisition
{
myReq = (Requisition)Session["MyRequisition"];
rc = new RequisitionController();
for (int i = 0; i < grid.Rows.Count; i++)
{
CheckBox chk = (CheckBox)grid.Rows[i].FindControl("CheckBox1");
TextBox txtQty = (TextBox)grid.Rows[i].Cells[2].Controls[1];
string q = txtQty.Text;
if ((chk != null) && (chk.Checked == true))
{
if (q != "")
{
if (ValidateInputQty(q))
{
int qty = int.Parse(q.ToString());
String reqItemCode = grid.Rows[i].Cells[0].Text;
String strDescription = grid.Rows[i].Cells[1].Text;
try
{
rc.addRequest(qty, reqItemCode, strDescription, myReq);
Label2.Text = "You have selected the following items:";
displayButtons(true);
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
else
{
Label2.Text = "Quantity should be number.";
}
}
else
{
Label2.Text = "Please enter quantity.";
}
}
else if ((q != ""))
{
if (ValidateInputQty(q) != true)
{ Label2.Text = "Quantity should be number, and please select."; }
else
{ Label2.Text = "Please select."; }
}
}
}
gridview codings
{
Requisition myReq3 = (Requisition)Session["MyRequisition"];
for (int i = 0; i < gridDetails.Rows.Count; i++)
{
CheckBox chk2 = (CheckBox)gridDetails.Rows[i].FindControl("CheckBox1");
if (chk2 != null && chk2.Checked == true)
{
string reqItem = gridDetails.Rows[i].Cells[0].Text;
if (myReq3 != null)
{
try
{
myReq3.DeleteItem(reqItem);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
}
Sunday, November 22, 2009
Thursday, November 19, 2009
Get Primary key on Row Command (GridView)
Wednesday, November 18, 2009
Saturday, November 14, 2009
Thursday, November 12, 2009
Checking validity of Singapore IC Number
x = 2 * D1 + 7 * D2 + 6 * D3 + 5 * D4 + 4 * D5 + 3 * D6 + 2 * D7
To get y, which is the check digit, we have
y = 11 - ( x mod 11 )
Where y is represented by: 1 = A, 2 = B, 3 = C, 4 = D, 5 = E, 6 = F, 7 = G, 8 = H, 9 = I, 10 = Z and 11 = J
The above information is obtained from one of the NUS lab exercise.
Validate Your NUS Undergraduate Matric Number
Compute the weighted sum (2 × d2) + (6 × d3) + (2 × d4) + (4 × d5) + d6
(we ignore the digit d1 as undergraduates for this decade would have it as 0 )
Divide the result in step 1 by 13 and obtain its remainder.
Subtract the remainder from 13.
Locate the check-letter using the table below:
Result from step 3 Check-Letter
1 M
2 B
3 N
4 A
5 R
6 E
7 U
8 H
9 W
10 J
11 X
12 L
13 Y
Copied from the following link:
http://www.comp.nus.edu.sg/~cs1101cl/labs_sem1_0405/lab1/part2/matric.html
displaying gridview row index number
http://bytes.com/topic/asp-net/answers/339667-how-find-column-index-name-asp-net-datagrid
http://www.asp.net/learn/data-access/tutorial-28-vb.aspx