Monday, July 31, 2006

A Java Program for Pumping Breast Milk Feeding and Storage optimization

Ha the title like a PhD thesis ?! yes it is very serious and complicate problem!
I wrote a Java program that help breast feeding mother to organize their pump out milk and optimized the storage to ensure baby to best fresh milk to drink.
Non programming background people are able to read and understand this program.
For programmer , plave help me to complete the unfinished part and debug it.
Thanks


//it is matrix ; the milk producer
public class mother extends earth.livingcreature.human{

private double energy ;
// internal energy of mother , it will convert to milk

public double milk_produce_happy_level=32 ;
//in oz mother will feel happy if she pump out 32 oz a day

protected milk pumping(){};
//an exhaust function call for mother ,she pumping milk herself , should be protected function , only the person close to her allow stay inside the room while pumping

private energy eating(){};
// an energy input function

private energy transfer() ;
//and energy transfer function , it convert energy to milk;

}
public class Baby externed earth.livingcreature.human{
//it is a milk consumer

private double weight, length, head_circumference ;
// main index to measure a baby development
private milk_consuming_per_day=25 oz
// father and mother will feel happy if baby drink above this level

public Poopoo poo_poo(){};
// he do it very public , best time is changing diaper!

public Emergy drink(Milk milk){};
// a drink milk function ,and generate poo poo object

public Happy play(){};
//this function will generated baby sound such as "gue,ong-gu.." and a wonderful smile...., oh how come this class more like my tamaguchi program that wrote in year 1

private sleep() ; //lucas so seldom to call this function...
}

public class Milk extends earth.liningcreature.human.monther{
//it is the sub class of mother , cos mother generated fresh milk

/* below parameter as best for immune level in a milk*/
int frozen_max_allow=2 month's;
/* standard is 3 month at 0 degree*/;
int refrigerated _max_allow=48 hrs;
/* standard is 72 hr*/

int immune_degree
/* it is only provided from breast milk, it will lose 30-40% during frozen and thawed process, and decrease as time pass so we should try to give fresh milk to baby asap after
mother.pump() ,and freeze as an option while have extra milk. However frozen milk is still provide more 60% immune than formula milk
*/
int cool_min_storage= 30oz;
/*oz baby will consume around 25 oz per day, you keep extra 5 refrigerated milk;

}

public refrigerator(){
int current_storage ;/* current storage in lower part of refrigerator*/
int frozen _storage; /* current freezed milk storage, it help mother to finished the bumping more early*/

public static keep(Milk milk){
//it is a very complicate algorithm to optimize the storage fresh milk
if(current_storage>Milk.cool_min_storage){
frozen (milk);
}else {
refrigerate(milk);
}
}

public static Milk take(){
Milk milk=take_earest_milk();
while(milk.isExipred()){
milk.dump();
//What a pity function call , but we should call it to ensure baby have good quality milk
milk=take_earest_milk();
// ok it is a recursive function call, until we get a good non-expire milk in our standard
}
if(current_storage<Milk.cool_min_storage){
thawed(Milk milk);
/*thawed a frozen milk from the frozen storage to current_storage ensure have enough milk provide;
}
return(milk);

}


}

Sunday, July 30, 2006

Lucas is so sweet!!



You are my booster!

A lovely Sunday even it rains heavily outside.

My angel is still sleeping, he sleeps peacefully and sweet. He is so cute and makes me smile.

How come the rain last for a few seconds only?? It's sunny now...

Lucas is 2 months old now. I had lots of ups and downs in past 2 months. My emotion was like a roller coaster. Everytime when I was upset, I reminded myself I am a lucky person after all, I have a perfect husband and a lovely baby, but I still broke into tears many times.

Luckily, Jeff brought me to consult a Chinese medical practitioner, and he diagnosed that my health condition was extremely poor and lack of rest, this also explained why I had nightmare every night. After taking the medicine he prescribed several times, now I feel much better and am stronger.

Friday, July 28, 2006

TGI Friday!!

Have got back to my work place for a week, thanks god it's Friday!!

Adapting to a working mom life is not as harsh as I supposed, just needed some time to figure out what had happened in the project in the first half day, then everything seems smooth so far.

In addition that Jelly is out of town since this Tuesday, I could occupy the whole room, it is much easier for me to pump breast milk in office. However, I still feel it is a bit weird to run the 'dairy' production in the work place twice a day.

Everyday I should pump out the milk four times: 6 something in the morning, then twice in office, most likely around lunch time and around 4-5pm, then the last time is at 11pm, and repeat the same cycle the next day. It is very exhausted but I don't want to give up, however, it made me so tired and dehydrated.

Now I can produce 32 oz everyday, should establish 'Good harvest day' if the production exceeds this level!!

Friday, July 14, 2006

Lucas makes friends with Piglet and Bambi



Lucas loves Bambi most, his second best friend is Piglet.
See more pictures here: http://picasaweb.google.com/chiyuen/2Months

Thursday, July 13, 2006

Being a mother needs unconditional love!

Now, I know it is not easy to be a mother, you should suffer a lot once the new life develops inside your body.

And even after it comes out.

Since Lucas was born, I should wake up during midnight for breast-feeding. If I skip that round, my breast would be engorged and cause the heat and pain. My skin condition is getting worse because of the poor sleeping quality.

Today I had the final maternity check up, I told my doc about the nightmares. She said it may be caused by the lack of calcium and hormone, due to breast-feeding. She prescribed some supplements for me, and asked me to try to skip the mid-night feeding.

Breast-feeding is so difficult, but when I look at my healthy Lucas, all suffering is still worth.

Alright, I plan to breast-feed him for 6 months, I hope I could be determined enough and accomplish this mission!!

A sleepless baby

Have you ever met a baby who refuses to sleep? I have one.

Generally, infants should sleep for around 16-20 hours per day, but Lucas's schedule is much shorter than that. He wants people to carry him and walk around the house, he also knows what boring is.

Sometimes, I will bring him out and walk around in evening. He would open his eyes wide and see the world, and then fall asleep and enjoy the breeze, but wake up again when we get back to home.

Lucas is a demanding baby.

Tuesday, July 11, 2006

I start to miss Lucas

I will resume my work on July 24, there are less than 2 weeks from now on. Imagining that I will leave him from at least 10 days everyday, I start to miss him.

I will try to breast feed my baby for 6 months, now is about 2 months passed. It's time have a comprehensive planning about the logistic of pumping milk during the office hours. I know it will bring me a lot of inconvenience, but hope that I could be determined enough to face all the obstacles.

F.I.L. always 'reminds' me not to carry the baby all the time, but he doesn't understand that everytime he sees me carrying Lucas because I should bring him to change diaper. Lucas is smart but you couldn't expect him to walk by himself in his first few months, right?

Experts nowadays make people confused, especially for those so-called parenting experts. They always give parents divergent and contradicting concepts for raising babies. For example, one school of thought suggests parents not to carry babies always, otherwise they will be spoiled. Another school believes that carrying could give babies a security feeling, which will help them to build confidence and self-esteem when they grow up.

Which schools we would choose, I always prefer to be moderate in this kind of situation.

Sunday, July 09, 2006

Lucas in his 2-month


Hi, come and see how cute Lucas is in this month!! We will update the album from time to time!

http://picasaweb.google.com/chiyuen/2Months

Thursday, July 06, 2006

BB has diaper rash again

The diaper rash comes back, and also the stomachache. Today BB cries fiercely.

I just gave him the medicine, now he feels better and falls asleep. I will bathe him by myself today.

Sigh, BB also makes me worrying...