Wednesday, January 5, 2011

Stomach acid and alkaline watery

Alkaline Water and Stomach Acid

by Sang Whang

Among the people who question the validity of alkaline water, the biggest question is; "What happens to the alkaline water once it reaches the stomach, which is highly acidic?" People who have some knowledge of the human body, including medical doctors, ask this question. Let me answer that question once and for all to erase any doubts about the health benefits of alkaline water.

In order to digest food and kill the kinds of bacteria and viruses that come with the food, the inside of our stomach is acidic. The stomach pH value is maintained at around 4. When we eat food and drink water, especially alkaline water, the pH value inside the stomach goes up. When this happens, there is a feedback mechanism in our stomach to detect this and commands the stomach wall to secrete more hydrochloric acid into the stomach to bring the pH value back to 4. So the stomach becomes acidic again. When we drink more alkaline water, more hydrochloric acid is secreted to maintain the stomach pH value. It seems like a losing battle.

However, when you understand how the stomach wall makes hydrochloric acid, your concerns will disappear. A pathologist friend of mine gave me the following explanation. There is no hydrochloric acid pouch in our body. If there were, it would burn a hole in our body. The cells in our stomach wall must produce it on an instantly-as-needed basis. The ingredients in the stomach cell that make hydrochloric acid (HCl) are carbon dioxide (CO2), water (H2O), and sodium chloride (NaCl) or potassium chloride (KCl). NaCl + H2O + CO2 = HCl + NaHCO3, or

KCl + H2O + CO2 = HCl + KHCO3

As we can see, the byproduct of making hydrochloric acid is sodium bicarbonate (NaHCO3) or potassium bicarbonate (KHCO3), which goes into blood stream. These bicarbonates are the alkaline buffers that neutralize excess acids in the blood; they dissolve solid acid wastes into liquid form. As they neutralize the solid acidic wastes, extra carbon dioxide is released, which is discharged through the lungs. As our body gets old, these alkaline buffers get low; this phenomenon is called acidosis. This is a natural occurrence as our body accumulates more acidic waste products. There is, therefore, a relationship between the aging process and the accumulation of acids.

By looking at the pH value of the stomach alone, it seems that alkaline water never reaches the body. But when you look at the whole body, there is a net gain of alkalinity as we drink alkaline water. Our body cells are slightly alkaline. In order for them to produce acid, they must also produce alkaline, and vice versa;

Thursday, December 23, 2010

Grop by with multiple aggregate clauses

Multiple aggregate clauses in a group by..

select mstr_date
,sum((case when bs ='S' then -1 else 1 end )*quantity) as qty_sum
,sum((case when bs ='S' then -1 else 1 end)*orig_face) as orig_face_sum
,count(*)
from table_name
where column='xxxx'
group by mstr_date
order by mstr_date

I never tried this until now. Very interesting.

Thursday, December 2, 2010

Closing a Swing Application

Just calling toplevel.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); is not good enough.
There could be other frames still alive, esp if you are using a third party library.
So your JVM is still running. Here is how you fix it..
Get all the frames that are currently running and dispose each of them

Frame[] frames = toplevel.getFrames();

for(int i=0;i
Frame frame = frames[i];
frame.dispose();
}
-Sonu

Wednesday, October 20, 2010

Excel logical if

Compare two columns and find out whats different.

Lets say you would like to compare col A1 and F1. Here is the logical if condition in excel you would use...

=IF(A1=F1,"","***")

The column would print *** when the values in A1 and F1 are different.

-Sunny

Thursday, September 9, 2010

useful cvs commands

If you made local changes and if you like to diff the latest version in repository,
cvs -Q diff -c StormAccrual.pl

Tuesday, August 10, 2010

Unix file processing

This command is very useful to analyze data files

cut -d ' -f |

single col :
cut -d '|' -f1 uncl_sims_audit_clr_code_null.txt | sort|uniq

multiple cols
cut -d '|' -f1-2 uncl_sims_audit_clr_code_null.txt | sort|uniq


enjoy..!

Wednesday, July 7, 2010

Passing arrays to perl subroutines

Finally when we receive thes values in@_ variable then we can not recognize if we had passed one array or two value arraysbecause finally it is getting merged into one.
o

If you want to work with and identify the individual lists passed to Perl, then you need to use references:

(@listc, @listd) = simplesort(\@lista, \@listb);

The leading \ character tells Perl to supply a reference, or pointer, to the array. A reference is actually just a scalar, so we can identify each list by assigning the reference to each array within our subroutine. Now you can write your subroutineas follows:

sub simplesort
{
my ($listaref, $listbref ) = @_;

# De-reference the array list
my (@lista) = @$listaref;
my (@listb) = @$listbref;
# Now you can play with both arrays.
}