July 20, 2009

Superstitions and Explanations

Half Knowing is not healthy especially in Superstitions..so here you go.

Most superstitions were born with an aim to protect and were based on sound reasoning. With time, however, much of the reasoning has been forgotten and the beliefs appear unsubstantiated. But there are also many beliefs that have no reason behind them.

Many omens relate to animals, birds and reptiles. The most auspicious omen is to see an elephant when one is on a journey, for it represents Ganesha, the god of good luck and the remover of obstacles. The cawing of a crow in one's house foretells the coming of guests. A peacock seen while on a journey is said to be good but hearing its shrill call indicates robbery by highway men. A dog howling near a sick man's chamber predicts his death. Seeing a cat or a cow's face early in the morning brings ill luck. A sparrow is encouraged to build a nest in a new house for good fortune. A yellow or white substance dropped on the threshold by a cow indicates the gain of gold or silver. To protect cats, which were useful in destroying rats and other pests, the Brahmins imposed a ban on its killing, to be redeemed expensively with an offering of a golden cat to a Brahmin.

The wall lizard boasts the most superstitions. Every movement of this reptile holds some significance, indeed, a science called the Gowli Shastra enumerates these. The colour, spots, stripes, chirping or twittering of the lizard and where it falls on a person's body are said to indicate future happenings.

Leaving on a journey is a very important occasion and precautions have to be taken depending on the importance of the journey. The astrologer is consulted to select an auspicious time to begin. There are several beliefs linked with starting on a journey. A sneeze or terms of dissuasion like "Stay, don't go", or "Where are you going?" used accidentally by someone at this crucial time are ill omens and a person must start again if this happens. It is considered auspicious to see cowdung, cereals, paddy, cotton, hay or a newly wed before starting on a journey.

There is also a strong belief in the power of dreams, as divine warnings. Dreaming of gods, demons, auspicious animals or any other auspicious thing is good. Whereas, dreaming of gold or iron, falling stars or earthquakes is bad. There are many people who claim to be able to decipher dreams and their talents are employed by believers.

Daily life is governed by do's and don'ts for each day of the week. Thus Monday is not an auspicious day for shaving or Tuesday for washing one's hair or Saturday for buying oil.

Most of these superstitions are linked to the respective planets presiding over each day (see Hindu Calendar). The kitchen is virtually the temple of a Hindu home and the highest levels of hygiene are expected to be maintained. Most Hindus do not enter a kitchen with their shoes on, as it is said to induce the wrath of the gods. This belief originated when kitchens were traditional, with mud stoves in a corner. Families sat on the floor and ate off plates or leaves placed on the ground. This required the kitchen to be absolutely clean. Another belief linked to this was that before eating their food, people sprinkled water around their plates supposedly in remembrance of their ancestors. Actually, the water around the plate acted as a barrier against the ants and insects that crept about the kitchen floor.

There are other common beliefs devised for protection. One should neither clip one's nails at night nor use scissors for fear of angering evil spirits. This diktat prevailed in the days before electricity as a deterrent to injuring one's fingers in the dark, but many mothers still enforce this rule at home, the reasoning being lost in time. A persistent belief is that one must not sweep the floor after the sunsets, otherwise Lakshmi would also be swept away. This too is a pre-electricity precaution against inadvertently losing fallen valuables.

Some other popular superstitions are if a person hiccups, it is believed that someone is talking about him or remembering him. One theory holds that this is a way of keeping alive the memory of family members who are travelling or live far away.

The falling of utensils on the floor foretells the coming of guests. Breaking a mirror is extremely inauspicious. This belief is meant to urge caution while handling something as fragile and potentially injurious as glass, as most people were barefoot inside the house.

To protect foolhardy wanderers from snakes and other lurking dangers, it is held that evil spirits infest trees and empty houses, resulting in a lively fear of going to these places at night.

There are also many superstitions related to a pregnant woman, which originated for her protection. Some of the most widespread are: A pregnant woman should not wander out alone at night or enter an empty house because evil spirits might infest her. The husband of a pregnant woman should not build a house as that might rouse the wrath of the earth spirit. He must not bathe in the sea for the seashore is thick with ghosts. All these rules were imposed on people, as ways to protect the prospective mother and father against any dangers. In addition, when a woman is pregnant, her husband's presence is important for moral support and help with the chores. Therefore unnecessary journeys or the involvement of the husband in any major tasks is postponed.

There is a superstitious belief in some parts of the country that when a child is born, its father must not see its face till it is six months old as it might lead to ill-luck. Therefore some time before the child is born, the mother is sent to her parents' home. This serves two practical purposes: the mother is pampered by her own mother, and so is the baby, as all the mother's attention is centered on her child, with no distractions of looking after her husband or doing other chores.

In the post-partum period and while menstruating, a woman is debarred from attending any ceremony. She is also not allowed to enter the kitchen or mingle with others, as she is believed to be impure and unclean at this time. The underlying idea is that a woman at this time requires complete rest and a religious edict protects her from unnecessary exertion. Personal appearance, gait, manner and speech are all said to indicate the future. The location, size and number of moles on the body brand someone as auspicious or inauspicious. It is believed that the presence of a sign resembling a wheel on any part of the body is extremely lucky. The right side of the body is considered to be more auspicious than the left. This is so because the left hand is used for all 'unclean' actions. Therefore a man ensures that he first puts his right foot into a house. All ceremonies are conducted with the right hand. Gifts are also given and accepted only with the right hand.

When the right hand itches it means good luck and the reverse applies to the left hand. This relates simply to the clean (right) and unclean (left) sides of the body. Paradoxically, twitching of the right eye is considered inauspicious and of e left eye, auspicious.

Marriage, one of the most important events in life, has many superstitions associated with it. It is believed that a new bride brings luck and prosperity with her and that her fortune is mingled with that of the groom's family. For the first one year of marriage, all happenings in the family are monitored and accordingly the bride is termed auspicious or inauspicious. Any good or bad occurrence in the family during this time is said to result from the presence of the bride. A new bride is however, generally considered to be auspicious.

On the other hand, widows were considered especially inauspicious. This belief probably stemmed from her traditional financial powerlessness. Widows were debarred from attending any auspicious ceremony, as it was believed that their presence might negatively affect its success. A new bride was protected from the glance of a widow for the same reason. Therefore widows had separate areas to live in where they cooked their own food. They were not allowed to eat meat, onions, garlic or spices for these were considered excitatory, and a widow was supposed to suppress, not inflame her passions. Most of these rules have fallen into disuse now.

A barren woman is still considered inauspicious by many, given the patriarchal social system and its emphasis on children especially sons. Such a woman, though not debarred, is avoided during all auspicious occasions by those with a rigidly traditional outlook. During the nuptial bath and other ceremonies related to marriage, which require the presence of suhagans, it is generally women with sons, pregnant women or the newly married, who participate. A barren woman is not brought near a bride or child for whom a ceremony is being performed for fear that her ill fate will rub off onto them.

People are also very superstitious about their mornings. It is believed that the whole day is affected by the morning. Seeing a bride, the statue of a deity, or a Brahmin is considered auspicious, while sighting widows, barren women and unlucky people is considered inauspicious. To avoid the risk

of seeing anything unpleasant in the morning, many people look at the palms of their hands as soon as they awaken and recite this invocation: "In the tips of the fingers resides Lakshmi; in the middle, Sarasvati; in the palm of the hand resides Parvati; looking at my hands, I begin my day."

There are also many superstitions related to death. The most important among them is that food is not cooked in a house where death has occurred. At this time, all the members of the family are considered to be unclean and do not enter the kitchen. Neighbors are expected to cook and send food for them. This belief probably results from the fact that when a death occurs in a family, the relatives of the deceased are , and have neither the desire nor the time to cook. This practice also reinforces the sense of community at times of trouble.

Hinduism - A Way of Life

Caste System/ State of Mind
1. Priests
2. Warriors/Rulers
3. Merchants/Farmers
4. Laborer
5. Sin People

According to Individual Personal Actions he will be in one of the above State's at that particular moment.

God
1. Creator
2. Preserver
3. Destroyer

Karma
1. Good Begets Good
2. Bad Begets Bad

Reincarnation
1. Good Karma - Higher Caste/State
2. Bad Karma - Lower Caste/State

Niravana
1. Tuning into the Brahma Within.

Sri Rama
1. As a Son
2. As a Brother
3. As a Husband
4. As a Priest
5. As a Warrior
6. As a Merchant/Farmer
7. As a Relative
8. As a Friend
9. As a Student
10. Elder's / Youngster's
11. Friends/Foe's
12. Small/Big

Man/Women
1. Food
2. Sleep
3. Fear
4. Sex & Pleasure
5. Dharma - Control & Discipline

Yoga Sutras
1. Maitribhavana
Be Friendly with Others
2. Karunabhavana
Be Kind to Others
3. Muditabhava
Be in Touch with others who are more knowledgeable
and respectable in this Society
4. Upekshabhava
Keep away from those who always keep expectations from you.

Sarvagamanamachara Prathamam Parikalpate
Aacharaprabhavo Dharma Dharmasya Prabhurachyutaha

To be with Correct Aachara is given first priority as per our Dharma Shastra.
Being in good achara will only give birth to Dharma.
And Being to Dharma only once can achieve Darshana to God.
Those who live according to Dharma are treated as Pavithra Atma and full of Character.
Only these kind of People are given importance in society and are liked by God.

July 16, 2009

Create an EXE file from Windows Application

Visual Studio 2005 Setup and deployment Projects provides to make a exe in .NET windows application is easy and rapidly

Visual Studio provides templates for four types of deployment projects: Merge Module Project, Setup Project, Web Setup Project, and Cab Project. In addition, a Setup wizard is provided to help step you through the process of creating deployment projects. You can see the templates and the wizard in the New Project dialog box under the Setup and Deployment Projects node.

The following are guidelines for choosing the right type of deployment project for your project.

1)Merge Module Project : Packages components that might be shared by multiple applications.

2)Setup Project : Builds an installer for a Windows-based application.

3)Web Setup Project : Builds an installer for a Web application.

4)Cab Project : Creates a cabinet file for downloading to a legacy Web browser.

5)Smart Device Cab Project : Creates a Cab project to deploy device applications.

This topic demonstrates deployment using a Setup and Deployment Project.

Setup Projects

Setup projects allow you to create installers in order to distribute an application. The resulting Windows Installer (.msi) file contains the application, any dependent files, information about the application such as registry entries, and instructions for installation. When the .msi file is distributed and run on another computer, you can be assured that everything necessary for installation is included; if for any reason the installation fails (for example, the target computer does not have the required operating system version), the installation will be rolled back and the computer returned to its preinstallation state.

After you have developed your windows apllication,now you want to make a exe.how can? These steps are gives the guidance to you…

1, Go to file menu > click Add > new project >now “Add New Project” Dialog appear.

2.Select “Other Project Types” and click “Setup and Deployment” projects,Choose “Setup Project”give name project name in name text box finally click OK.

3.New project appear in solution explorer,for example you give the name “MyEXE”..it will display with this name.

4.right click the MyEXE > go View > click “File System”

5.You can see the “File System on TargetMachine”under three folders
Application Folder
User’s Desktop
User’s Program Menu

6.Select Application Folder and right click Add>Project Output>select Primary output

7. select User’s Desktop richt click on the second window>click create new shortcut>select output file from Application folder>change the file name from primary output name to MyEXE

next >>

same procedure follows the user’s program menu also

8.If you want to change the Manufactures name for exe,just right click the project go to properties

change the properties as per you requirement

9.Finally Build the new project After successfully Build the project myEXE(Setup) will be appear in Application Debug or Release folder(depend upon the properties settings)

EXE available @ this location

When you want to install the EXE on the client machine,you should be installed .NET Framework on that mc because,Applications and controls written for the .NET Framework version 2.0 require the .NET Framework Redistributable Package version 2.0 to be installed on the computer where the application or control runs.

July 14, 2009

Fruits

EATING FRUIT - Guide

We all think eating fruits means just buying fruits, cutting it and just popping it into our mouths. It's not as easy as you think It's important to know how and when to eat..

What is the correct way of eating fruits?

IT MEANS NOT EATING FRUITS AFTER YOUR MEALS! - FRUITS SHOULD BE EATEN ON AN EMPTY STOMACH.

If you eat fruit on an empty stomach, it will play a major role to detoxify your system, supplying you with a great deal of energy for weight loss and other life activities.

FRUIT IS THE MOST IMPORTANT FOOD - Let's say you eat two slices of bread and then a slice of fruit.. The slice of fruit is ready to go straight through the stomach into the intestines, but it is prevented from doing so.

In the meantime the whole meal rots and ferments and turns to acid.. The minute the fruit comes into contact with the food in the stomach and digestive juices, the entire mass of food begins to spoil.

So please eat your fruits on an empty stomach or before your meals! You have heard people complaining - every time I eat water-melon I burp, when I eat durian (fruit from Asia with a foul smell yet delicious flavor) my stomach bloats up, when I eat a banana I feel like running to the toilet etc. - actually all this will not arise if you eat the fruit on an empty stomach. The fruit mixes with the putrefying other food and produces gas and hence you will bloat!

Graying hair, balding, nervous outburst, and dark circles under the eyes - all these will not happen if you take fruits on an empty stomach.

There is no such thing as some fruits, like orange and lemon are acidic, because all fruits become alkaline in our body, according to Dr. Herbert Shelton who did research on this matter. If you have mastered the correct way of eating fruits, you have the Secret of beauty, longevity, health, energy, happiness and normal weight.

When you need to drink fruit juice - drink only fresh fruit juice, NOT from the cans.. Don't even drink juice that has been heated up. Don't eat cooked fruits because you don't get the nutrients at all. You only get to taste.
Cooking destroys all the vitamins.

But eating a whole fruit is better than drinking the juice. If you should drink the juice, drink it mouthful by mouthful slowly, because you must let it mix with your saliva before swallowing it.

You can go on a 3-day fruit fast to cleanse your body. Just eat fruits and drink fruit juice throughout the 3 days and you will be surprised when your friends tell you how radiant you look!

KIWI: Tiny but mighty. This is a good source of potassium, magnesium, vitamin E & fiber. Its vitamin C content is twice that of an orange.

APPLE: An apple a day keeps the doctor away? Although an apple has a low vitamin C content, it has antioxidants & flavonoid which enhances the activity of vitamin C thereby helping to lower the risks of colon cancer, heart attack & stroke.

STRAWBERRY: Protective Fruit. Strawberries have the highest total antioxidant power among major fruits & protect the body from cancer-causing, blood vessel-clogging free radicals.

ORANGE: Sweetest medicine, eating 2 to 4 oranges a day may help keep colds away, lower cholesterol, prevent & dissolve kidney stones as well as lessens the risk of colon cancer.

WATERMELON: Coolest thirst quencher. Composed of 92% water, it is also packed with a giant dose of glutathione, which helps boost our immune system. They are also a key source of lycopene - the cancer fighting oxidant. Other nutrients found in watermelon are vitamin C & Potassium.

GUAVA & PAPAYA: Top awards for vitamin C. They are the clear winners for their high vitamin C content. Guava is also rich in fiber, which helps prevent constipation. Papaya is rich in carotene; this is good for your eyes.

Drinking Cold water after a meal = Cancer! Can you believe this??

For those who like to drink cold water, this article is applicable to you.

It is nice to have a cup of cold drink after a meal. However, the cold water will solidify the oily stuff that you have just consumed. It will slow down the digestion.. Once this 'sludge' reacts with the acid, it will break down and be absorbed by the intestine faster than the solid food. It will line the intestine. Very soon, this will turn into fats and lead to cancer. It is best to drink hot soup or warm water after a meal.

A cardiologist says if everyone who gets this mail sends it to 10 people, you can be sure that we'll save at least one life. Read this...It could save your life!

July 13, 2009

C# Text/Excel Export

------------------> Text Dump <-----------------------

System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
response.ClearContent();
response.Clear();
response.ContentType = "text/plain";
response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ";");
response.Flush();
response.End();

------------------> Excel Dump <----------------------

public static void ExportDataSetToExcel(DataTable ds, string filename)
{
HttpResponse response = HttpContext.Current.Response;
// first let's clean up the response.object
response.Clear();
response.Charset = "";
// set the response mime type for excel
response.ContentType = "application/vnd.ms-excel";

response.AddHeader("Content-Disposition", "attachment;filename=\"" + filename + "\"");
// create a string writer
using (StringWriter sw = new StringWriter())
{
using (HtmlTextWriter htw = new HtmlTextWriter(sw))
{
//instantiate a datagrid
DataGrid dg = new DataGrid();
dg.DataSource = ds;
dg.DataBind();
dg.RenderControl(htw);
response.Write(sw.ToString());
response.End();
}
}
}

SonarQube with Jenkins Setup using Docker Images

https://funnelgarden.com/sonarqube-jenkins-docker/  https://medium.com/@hakdogan/an-end-to-end-tutorial-to-continuous-integration-and-con...