Tuesday, October 23, 2007

hair care

Care For Dry Hair:
Dry hair tends to be thin and rough.It is susceptible to tangles, damage, breakage and split ends.The primary aim is to replenish the oil and the moisture in the hair.

Home-made Cosmetic Care For Dry Hair:
Below are given few natural recipes that are time-tested.

The Gentle Cleanser:
Beat an egg in a cup of the skimmed milk.When the foam becomes consistent, rub it into the scalp.Leave it on for 5 minutes.Rinse the hair thoroughly with water.Carry out this routine twice a week.

The Protein Conditioner:
Beat one tbsp of castor oil, one tbsp of glycerine, one tbsp of cider vinegar and a tsp of mild herbal shampoo.Apply it on scalp and leave it on for 20 minutes.Rinse with clear water.

A Special Massage Oil Toner
Buy a bottle of castor oil or coconut oil.Add a tsp of lavender essential oil in it.Heat a little and massage it gently on your scalp at night.Rinse or shampoo it out in the morning.Follow this routine at least twice a week.

Thursday, October 18, 2007

Vanilla Ice Cream that puzzled General Motors

Vanilla Ice Cream that puzzled General Motors

Many of you, unlike me, might have come across this long ago, as it is in circulation for years now. But I just received it today and was spellbound by the incident. For those who are not aware of it, it goes like this -
Never underestimate your Clients’ Complaint, no matter how funny it might seem!

This is a real story that happened between the customer of General Motors and its Customer-Care Executive. Please read on…..

A complaint was received by the Pontiac Division of General Motors:

‘This is the second time I have written to you, and I don’t blame you for not answering me, because I sounded crazy, but it is a fact that we have a tradition in our family of Ice-Cream for dessert after dinner each night, but the kind of ice cream varies so, every night, after we’ve eaten, the whole family votes on which kind of ice cream we should have and I drive down to the store to get it. It’s also a fact that I recently purchased a new Pontiac and since then my trips to the store have created a problem….

You see, every time I buy a vanilla ice-cream, when I start back from the store my car won’t start. If I get any other kind of ice cream, the car starts just fine. I want you to know I’m serious about this question, no matter how silly it sounds “What is there about a Pontiac that makes it not start when I get vanilla ice cream, and easy to start whenever I get any other kind?” The Pontiac President was understandably skeptical about the letter, but sent an Engineer to check it out anyway.

The latter was surprised to be greeted by a successful, obviously well educated man in a fine neighborhood. He had arranged to meet the man just after dinner time, so the two hopped into the car and drove to the ice cream store. It was vanilla ice cream that night and, sure enough, after they came back to the car, it wouldn’t start.

The Engineer returned for three more nights. The first night, they got chocolate. The car started. The second night, he got strawberry. The car started. The third night he ordered vanilla. The car failed to start.

Now the engineer, being a logical man, refused to believe that this man’s car was allergic to vanilla ice cream. He arranged, therefore, to continue his visits for as long as it took to solve the problem. And toward this end he began to take notes: He jotted down all sorts of data: time of day, type of gas uses, time to drive back and forth etc.

In a short time, he had a clue: the man took less time to buy vanilla than any other flavor. Why? The answer was in the layout of the store. Vanilla, being the most popular flavor, was in a separate case at the front of the store for quick pickup. All the other flavors were kept in the back of the store at a different counter where it took considerably longer to check out the flavor.

Now, the question for the Engineer was why the car wouldn’t start when it took less time. Eureka - Time was now the problem - not the vanilla ice cream!!!! The engineer quickly came up with the answer: “vapor lock”.

It was happening every night; but the extra time taken to get the other flavors allowed the engine to cool down sufficiently to start. When the man got vanilla, the engine was still too hot for the vapor lock to dissipate.

Even crazy looking problems are sometimes real and all problems seem to be simple only when we find the solution, with cool thinking.

Tuesday, October 16, 2007

Weird Illinois Laws

Weird Illinois Laws

  • You may be arrested for vagrancy if you do not have at least one dollar bill on your person.

  • You must contact the police before entering the city in an automobile.

  • The English language is not to be spoken.

  • In Carbondale - No one may stand on the sidewalk on the 500 block of Illinois Ave.

  • In Champaign - One may not pee in his neighbor's mouth.

  • In Chicago - All businesses entering into contracts with the city must sift through their records and report any business they had dealing with slaves during the era of slavery.

  • In Chicago - Law forbids eating in a place that is on fire.

  • In Chicago - It is illegal to give a dog whiskey.

  • In Chicago - It is forbidden to fish while sitting on a giraffe's neck.

  • In Chicago - Kites may not be flown within the city limits.

  • In Chicago - In the Pullman area, it is illegal to drink beer out of a bucket while sitting on the curb.

  • In Chicago - It is legal to protest naked in front of city hall as long as you are under seventeen years of age and have legal permits.

  • In Chicago, people who are diseased, maimed, mutilated, or deformed to the point of being an unsightly or disguting object are banned from going out in public.

  • In Chicago, it is illegal to fish in pajamas.

  • In Chicago, it is illegal to take a French poodle to the opera.

  • In Cicero - Humming on public streets is prohibited on Sundays.

  • In Crete - It is considered an offense to attempt to have sex with one's dog.

  • In Crete - Cars may not be driven through the town.

  • In Crystal Lake - If one wishes to plant new sod in his or her yard in the summer months, that person may not use the city's water to water it.

  • In Des Plaines - Wheelbarrows with For-Sale signs may not be chained to trees.

  • In Evanston - Bowling is forbidden.

  • In Evanston - It is unlawful to change clothes in an automobile with the curtains drawn, except in case of fire.

  • In Galesburg - No person may keep a smelly dog.

  • In Galesburg - It is illegal to burn bird feathers.

  • In Galesburg - Jostling others is illegal.

  • In Galesburg - No bicyclist may practice "fancy riding" on any city street.

  • In Galesburg - There is a $1,000 dollar fine for beating rats with baseball bats.

  • In Guernee, it is illegal for women weighing more than 200 pounds to ride horses in shorts.

  • In Horner - It is against the law to use a slingshot unless your are a law enforcement officer.

  • In Joliet - Town fathers, reflecting the pet peeve of hearing their town's name mispronounced 'Jolly-ETTE' when all local folk know it's pronounced 'Joe-lee-ETTE', made pronouncing it Jolly-ette a misdemeanor, punishable by a $5 fine.

  • In Kenilworth - A rooster must step back three hundred feet from any residence if he wishes to crow.

  • In Kirkland - Bees are not allowed to fly over the village or through any of Kriland's streets.

  • In Moline - Ice skating at the Riverside pond during the months of June and August is prohibited.

  • In Moline - There is a ban on unnecessary repetitive driving on 23rd Avenue.

  • In Morton Grove - You may not own a handgun.

  • In Normal - It is against the law to make faces at dogs.

  • In Orland Park - No pool tables are allowed in a public establishment, because it supports gambling.

  • In Ottowa - Spitting on the sidewalk is a criminal offense.

  • In Park Ridge - Trucks may only park inside closed garages.

  • In Peoria - Basketball hoops may not be instaled on a driveway.

  • In Zion - It is illegal for anyone to give lighted cigars to dogs, cats, or any other domesticated animals.

Confusing co workers...Pulling pranks...

Are you the only guy in your office with some computer skills? Do you have a co worker who spends their whole day on Myspace, Youtube or hello kitty fan club sites? If you can follow these simple steps they wont be getting any where near those sites for some time.

If you are using windows pc there is a thing called a host file. If you are a web developer or designer, chances are you are very familiar with this file. I typically use it to test new websites by giving my computer an address to associate with the website I am working on. Now that might sound difficult and confusing to people who have never used one but it is really easy.

So here is what you do. For this example we will make it so every time I go to yahoo.com what will actually pop is google.com. If you are doing this to a friend or co-worker I’m sure you can think of something far more funny.

Step one: Find your host file

Go to the start button on the bottom right click and then select Run

run.jpg

After click run depending on what version of windows you are using you will enter one of the following (will will assume you are using Xp professional)

Windows 95/98/Me c:\windows\hosts

Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts

Windows XP Home c:\windows\system32\drivers\etc\hosts

hostrun.jpg

Now hit ok.

Step 2: Editing your host file

A new window should now be open with some files inside. Select the host file by right clicking and hitting edit. I use edit plus for this but note pad will do just fine.

edit.jpg

Now this file might look a little confusing but really its very simple. On the very top it reads something like this

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.

what this is saying is that for every website you list you must list the IP address with it. In order for me to make yahoo become Google I first need to find out Google’s Ip.

So go back to the run menu, by clicking start the run.

This time just type cmd and click ok

cmd.jpg

Once you see a black and white screen you are going to go ahead and type the word ping with one space and the name of the website you want.

ping.jpg

What this does is gives you the ip associated with google.com. The IP I received was 64.233.187.99

Now write down the IP and head back to your host file. (you are almost done)

At the bottom of the host file you will typing in the following.

64.233.187.99 Yahoo.com

What this did was associate Google’s IP with yahoo’s name. To turn this off simply add a pound (#) before the IP.

Click save and you will be done. Close out all web browsers and re-open.

Now type in Yahoo.com, Google should pop up like this.

googleyahoo.jpg

Tadaaaaaa ! You can now confuse the crap out of you co-workers. The key to this hack is gaining access to their PC. I recommend having all the info ready before you start the prank, unless you have a lot of time.

Lastly you can do this for multiple sites at once. It can be very frustrating to whom ever you do it too.

Wednesday, October 3, 2007

Creating subheader in gridview


<asp:gridview id="GridView1" class="attr"> runat="server" autogeneratecolumns= class="attrv">"false" datasourceid="SqlDataSource1"
onrowdatabound="GridView1_RowDataBound">
<columns>
<asp:boundfield datafield= class="attrv">"ProductID" headertext="ProductID" />
<asp:boundfield datafield= class="attrv">"Name" headertext="Name" />
<asp:boundfield datafield= class="attrv">"Subcategory" headertext="Subcategory" />
</columns>
</asp:gridview>
<asp:sqldatasource id= class="attrv">"SqlDataSource1" runat="server" class="attr"> connectionstring="<%$
ConnectionStrings:AdventureWorksConnectionString %>"

selectcommand="SELECT P.*, PS.[Name]
AS [Subcategory] FROM [Production].[Product] AS P INNER JOIN [Production].[ProductSubcategory]
AS PS ON PS.[ProductSubcategoryID] = P.[ProductSubcategoryID] ORDER BY P.[ReorderPoint],
P.[Name]"
>
</asp:sqldatasource>


CODE-BEHIND 



private string m_subcategory = String.Empty;

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
GridViewRow gvr = e.Row;

switch (gvr.RowType)
{
case DataControlRowType.DataRow:
{
DataRowView drv = gvr.DataItem as DataRowView;

string subcategory = drv["subcategory"].ToString();

if (!subcategory.Equals(m_subcategory))
{
GridViewRow row = new GridViewRow(0, 0, DataControlRowType.DataRow, DataControlRowState.Normal);
TableCell cell = new TableCell();
cell.BackColor = Color.Red;
cell.ForeColor = Color.White;
cell.ColumnSpan = GridView1.Columns.Count;
cell.HorizontalAlign = HorizontalAlign.Center;
cell.Text = subcategory;
row.Cells.Add(cell);

GridView1.Controls[0].Controls.AddAt(GridView1.Controls[0].Controls.Count - 1, row);

m_subcategory = subcategory;
}


break;
}
}
}

Filterkeys must die

It constantly amazes me the crap that gets turned on by default in Windows XP. Have you ever held down the Right Shift key for more than 8 seconds while thinking about something? That’s the default keyboard shortcut for FilterKeys. FilterKeys is an accessibility option that ignores keyboard input unless it the key is held down for a long time.

filterkeys

It isn’t annoying enough that a dialog box pops up and interrupts you if you hold shift down for too long. It has a bug. If you hit Cancel, FilterKeys *still* runs.

Pressing both shift keys is supposed to exit from it, but I prefer a more permanent approach. Death to FilterKeys.

Control Panel >> Accessibility Options >> Remove all check-marks

filterkeys

filterkeys
But wait, there’s more! That isn’t enough to get rid of FilterKeys, you also have to go to the Settings sub-menu and remove the check-marks there.

filterkeys
Hit OK twice and you’re finally rid of the damned thing.