This week I learned something new about myself. I learned that what I’m thinking in my head, when not explicitly told to those I love, is not necessarily known to those love ones.
This seems like a very obviously point, but I often make this mistake. I think this could be that I am an introvert by nature and I like to bounce thoughts in my own head. Also I assume my love ones can feel what I am thinking because of my actions. Actions speak louder than words right?
Wrong.
Sometimes words are more powerful than simple action.
I am reminded to tell my child that I accept her no matter what path she chooses for herself.
I am reminded to tell my child that I think about her future. That as a parent, I have obvious biases. That I worry about her future. I worry that if she doesn’t choose the obvious path to success, that she will struggle in life. I tell her that I don’t know the right path for another human being to take. It is up to her to decide on her future. Success is not guaranteed, happiness is not necessarily the end goal. Fulfilling work, self expression and realization of your own talents is a worthy goal of life as well.
Sometimes random conversations with a child in a car leads to interesting learnings about myself and my child.
Kate loves watching Blue’s Clues and especially one episode, “Steve goes to college”. So tonight, instead of reading she wanting me to tell her all about college. I used this perfect timing to tell her about learning and doing well in school.
Kate: “Is there a pink college? I want to go there.”
Me: “Sure I’m sure there are pink colleges. There is a Brown college. If you study really well in school, you can go to any college you want”
Kate: “I hope I study well”
Me: “Yeah, or else you may end up going to a gray and boring college, that won’t be fun”
The original post was in 2005 when C. was 5 years old.
A few days ago, C asked “Dad, will I hate you as a teenager?”
I was a bit caught off guard. I told C that it’s possible that when kids grow into their teenage years, their hormones could change, and they will be testing the boundaries of being independent. There will be a lot more conflicts between the parent and child.
However, if we continue to communicate, if I spend quality time with her and we genuinely enjoy each other’s company, I don’t see why it has to be the case that my teenage daughter will hate me.
I did tell her that she might be embarrassed by me since I am very geeky and uncool. This she did laugh at and agreed.
Yahoo! bought a company named Associated Content, which was recently changed to Yahoo! Contributor Network. I am the software architect on the backend content management system for Yahoo! Media and actively working with the engineer trying to integrate the great tools from Associated Content into the Yahoo! infrastructure.
In order to truly understand the power of Associated Content, I thought I would be a writer in the network and try to actively participate in the ecosystem in order to understand the positives and negatives of the system.
Here is the published piece of article when I was given the assignment to write about a local gym in San Francisco that is not a chain, like 24 hour Fitness.
* I log in to contributor.yahoo.com, sign up for an account
* Browse through writing assignments
* Claim an assignment
* Write and Submit
* Wait for approval
* Got alerted in a day that it was approved
* Also got an alert that my payment for the piece of writing would arrive in my Paypal account!
This is way cool! Yahoo! Contributor Network connects websites that need content with writers who can write and have domain or local knowledge!
Positives
For someone like me, who just want to write and get interesting ideas of what to write, the assignment desk is very useful and gets me focused
I like the deadlines, which also forces me to finish up
getting paid via paypal is super easy
signing up is quick and easy
I get paid up front and also will get paid on a revenue shared basis when my content found via any search engine and gets viewed
Negatives
not a easy way to browse and get alerted on assignments unless I was targeted
hard to fix typos later
hard to refer others when I see an assignment that I’m not a good fit for
The happy face guy is in the div tag as id=”happy_home”
<center>
</div>
</center>
YUI has very simple syntax and she was intrigued with Y.one() syntax to create a node for #happy_home
YUI().use('anim', function(Y) {
var node = Y.one('#happy_home');
YUI has some sample code, at this point because I’m also learning Javascript and YUI, I experimented with the animation and finally was able to get the Yahoo! Messenger icon to bounce
var anim = new Y.Anim({
node: node,
duration: .75,
easing: Y.Easing.easeOut
});
node : is the the happy face guy with the speech bubble duration: is how long the animation goes on each iteraction easing : how you want the animation to easy into the position
var bounceCurve = function(end) {
var points = [],
X = node.getX();
Y = node.getY();
points.push([X, Y - 60]);
points.push([X, Y]);
return points;
};
X, Y: is the point where the happy guy is
points : we create a point which is 60 pixels above where the happy guy is at, how high to bounce
to : We want the animation to run so that the happy face will go to the point at 60 pixels above the guy and interactions: we want this to run for 100 times
Cate loves loves ice cream. In order to balance her craving against the saturated fats of ice cream, I make her popsicles out of strawberries, raspberries and apples.
Her favorite is lady pink apple ones.
1) Take 6 lady pinks, wash and juice them
2) Take a cheese cloth and filter the juice 3 times to remove all the pulp
3) pour into ice cube makers and freeze for 3 hours.
Very sweet and healthy ice popsicles!! I let her eat has much as she wants.
Based on Cate’s mock up, we built a real HTML page using CSS.
Step 1: Here is how we built the page
First I told her about the <div> tag which we can use to divide up different sections of the mock up.
So she did the following to divide up the screen into 4 sections.
Step 2: She picked the font Arial Rounded MT Bold using the Font Book application on the Mac
I told her the div tag needs a class name and she can choose whatever she wanted, so she chose asdf for simplicity of typing, I think she understands the concept that humans are in charge of ‘names’ and variable names.
<div>
WELCOME!
</div>
Then I talked to her about the <style> tag to change the font face for the class asdf
font-size : this is the number of ‘points’ or pixels of the height of the font she wanted to use, and we experimented with different numbers until she decided on 50
For the speech bubble, we found a site http://wigflip.com/ds/ which will allow us to type in any word and generate an image of a speech bubble with the text
<div>
<img src="ask_name.gif">
</div>
Cate wanted to use the Yahoo! Messenger happy face as the magic eight ball. I showed her how to Show Package Content for the Yahoo! Messenger app on the Mac. the file is Applications/Yahoo! Messenger/Contents/Resources/cesario.icns
We opened the file using the Mac Preview app and saved it as a .gif file so that transparency is preserved. Cate remebers how to do width and height and chose to use 125.
Cate is anxious to get her magic eight ball game working on Firefox and was excited with a lot of ideas. Little does she know that I’m a backend programmer and don’t know a whole lot about animation, Javascript and CSS. But I could learn this stuff easily if she wants to as well. So I told her like I tell the Yahoo! product managers, give me a mock up.
So she drew up a few screens for me.
First, she wanted more answered added to the magic eight ball.
Then she thought it would be good if we kept a history of your previous questions, so you should tell us your name
Follow by the magic eight ball bouncing around in a room of springs! Help YUI or Javascript gurus
I was very happy to see the mock ups and we started working on the first welcome screen after dinner of homemade avocado rolls.
Looking at the first screen, I asked her what font faces she wanted, so she opened up Font Book on the mac and she decided on the Arial Rounded MT Bold
Next lesson: using div tags, CSS to format the welcome screen!
—-
This is a series that documents my daughter’s curiosity to learn about computer programming
—-
Cate started to learn about creating lists of things and tables in HTML
<UL>
: to create an Unordered List of items
<LI>
: to start a List Item
<OL>
: to start to create an Ordered Lists and the computer will add the numbers automatically
Then if we want to create a table to remember things like the gifts that Cate got for Christmas from all her relatives from since was born, then we can use a table.
<table>
: to start creating the table
<tr>
:to create a row
<td>
: to create a column
So the following would show what Dad and Mom gave for gifts in 2001 and 2002
Cate wants to make a computer program be to be like the Magic 8 ball, in my last post, I couldn’t remember how to generate a random number. But found it here
Math is a class (not an object ), it has 2 class member functions.
random()
which will give me a random decimal between 0 and 1, like 0.11, 0.34. If we take this and multiply by 6, then we will get a number between 0 and 6, but less than 6
floor()
will round off the decimal number to an integer.
Math.floor( Math.random() * 6)
So here is the program, which will magically give you an answer to any question you have in the word
<body>
<script type="text/javascript">
var question = window.prompt("Ask a question! :)");
/* RFE: time thing change question after 5 secs, to ask the user to hurry up */
var magicAnswers = [
"Duh",
"Hazy, try again",
"No way",
"Awoooga",
"We'll see",
"Of course!",
"Yawn...",
"Yep."];
/* Math.random() the computer makes a random number between 0 and 1,
gives you answer to your question
multiply by 5 would give you a number between 0 and 4
Math.floor makes the number a round number
*/
var randAnswer = Math.floor(
Math.random()
*8)
window.alert("Q: " + question + "\n\n" + "A: "+ magicAnswers[randAnswer]);
</script>
</body>
/* the engine of the Magic 8 ball game is simple and complete, some ideas
for the UI
1) have a wizard stand behind a crystal ball, ask a question, zoom in to
the crystal ball and show the answer
2) have a bouncing black eight ball, ask a question and the eight ball
shakes a bit and shows the answer, it prompts you every 3-5 seconds.
As another enhacement, we can keep a history of all the previous
questions and answers. display the question a bubble next an avatar
of the person asking follow by the answer
almost like a comic strip
This will allow us to see the previous history of all the funny
question and answers
*/
—-
This is a series that documents my daughter’s curiosity to learn about computer programming
—-
As Cate and I were walking to 16th and Mission street Bart station at 7:30am, I talked to her about the arithmetic operators in Javascript.
There is
+ for addition
– for subtraction
* (kinda funny) for multiplication
/ (forward slash) for division
We went through some examples
var x = 12 x = x + 5
x = 12 x = x - 1
x = 12 x = x * 3
x = 12 x = x / 3
Then I talked to her about variables multiplying itself, which is a square root and she seem to understand
var x = 3 x = x * x
When we got to BART, I brought the computer out and we typed in some simple HTML
into Emacs and I showed her using CTRL-X CTRL-S to save files
<body> ninepins <b>now</b> </body>
I talked with her about balancing the tags with closing tags using ‘/’
<b> == bold
Then she tried
<i> and <u> by herself and I taught her to use Firefox and open the file and display it whenever she saved
I showed her <s> for strike-thru
We tried <font color=”#ff0000″> for red and 00ff00 for green and 0000ff for blue. And she remembers the
Lesson #1 when we talked about the RGB values.
Then as we pull into 19th street BART station and need to transfer, we built a simple Javascript program to prompt and using
if … then … to display different answers
<script type=”text/javascript”> var STRIKE=”Are we there yet?” var guru = window.confirm(STRIKE); if (guru) window.alert(“Yipee!!”) else window.alert(“Too bad :(/”) </script>
Cate thought this is pretty funny and asked me if we can build a magic eight ball program
I started to design it with her, but I had forgotten how to do random numbers in Javascript and told her
we’ll have to look it up when we have a reference book or online documentation.
It’s time to get off BART at the Ashby station as we have to pick up a Zipcar to drive to the school.
I can’t wait until the next lesson. I can understand how Cate’s brain thinks as she gets exposed to computer programming
<script type=”text/javascript”>
var magicAnswers = [“Yippe”, “Oh boy”, “hazy”, “No way”, “Outlook looks good”, “We’ll see”]; var randAnswer = rand(0,6) var answer = window.confirm(“Are we almost there?”); window.alert(magicAnswer[randAnswer]);
</script>
—-
This is a series that documents my daughter’s curiosity to learn about computer programming
—-
After dinner, Cate asked if we can continue to learn about computer programming. I told her I would love nothing more.
I told her that I will teach her HTML, Hypertext Markup Language and Javascript. HTML is what designers use to control how a page looks like in Firefox. Javascipt let the programmer add interactivity.
I show her a bit of HTML source code and open and close tags. Some sample tags like <b> and <font> and the tag to start telling the computer that we are about to start writing javascript
So we reviewed the few simple reserved words like
var
To declare a variavble
while
A loop that stops when an expression is false. 0, false or null is false, anything else is true.
for(initiator, conditional; increment)
A loop with an initiator, conditional and increment
new
To create a new object. An object has state and methods or actions.
wondow.alert
To display a message to the programmer or user
We added tonight
int
To declare an integer which is a non-decimal. So 2, 8, 66 are integers while 9.6 is not.
if ... then...
Conditionals that will only do something if an expression is true
We then talked about ++ and += and went throaugh examples like
var x=2
x ++
window.alert(x)
I found a small tutorial on the window object.
we looked at and played with an example
window.alert()
Used to display a simple message
window.prompt()
Used to ask for input from the user
wndow.confirm()
Used to ask for a yes or no type of answer.
Then at night she wanted me to review what we learned. As she was falling asleep, I talked with her about the syntax of the Javascript keywords, talked about how we can build loops using for, and 5 minutes later she was asleep.
—-
This is a series that documents my daughter’s curiosity to learn about computer programming
—-
This morning Cate and I were eating crepes with hazelnut chocolate and she asked me what this means? “10001001” I think she must have seen it somewhere on a piece of paper or an advertisement. I’ve always found it difficult to talk to her about what my job as a software engineer is, so I decided to use this a chance to get her more interested in computer science.
This is beginning of my attempt to start a series on educating kids on computer programming.
Computers are pretty simple machines, they do what humans tell them to do, no more. On the basic level, the computer has a brain, the CPU that is made of millions of transistors which has only 2 states, either on or off.
The 1 means it’s on, 0 means it’s off
Humans count using decimals 0123456789, computers count with binary. 0/1
Let’s start counting like a computer, turn on our binary brain. The numbers are all in binary.
0 is the number zero 1 is the number one 10 is the number two 11 is the number two plus the number one which is three 100is the number four 101 is the number five 110 is the number six 111 is the number seven 1000 is the number eight 10000 is the number sixteen 100000 is the number thirty two 1000000 is the number sixty four 10000000 is the number 128 100000000 is the number 256
Then I started just asking her some random numbers like what 101, 110,10001 and she seem to enjoy it, great.
We started walking to the ZipCar to drive to Berkeley for school and I was explaining to her about pixels on the computer monitor. The typical monitor is 800 pixels across and 640 and each pixel is represented by a byte for each color. A byte has 8 bits. We have 3 colors RBG. Red, Green and Blue.
To make a color dot on the screen the computer has to turn on bits. So for the red part of the pixel, if all the bits are turned on R = 1111111, the pixel would be red. If R and B are both all turned on, the dot would be purple. R=11111111, B=1111111.
Cate then asked what is a computer language. I said a computer language is a very limited set of vocabulary that allows humans to talk to the computer and tell the computer what to do. Most computer languages have only about 40 words, much simpler than the French and Chinese that Cate is learning.
Cate: “Can I tell the compute to blow dry my hair?”
Tony: “Sure, let’s try it”
While Cate was in the back of the car seat, I told her, if we were to do it in JavaScript, this would be how we will tell the computer
var purpleHairdryer = new HairDryer();
purpleHairdryer.blowDry(“Cate”);
purpleHairdryer.stop(15);
var, new are the only vocabulary words we used.
Before I left her at school, she asked me to give her at least 5 vocabularies from JavaScript.
I gave her var, new, for, do {} while, alert
Then I said goodbye and we’ll do more programming on Sunday. That was a fun morning. I drove back to San Francisco to catch my Yahoo! bus.
I usually drive Kate to school on the day I work from home. But this last time I was late by 10 minutes. I had to fill out a little tardy slip for Kate with the reason of ‘traffic’ as an excuse.
I strolled leisurely to class with Kate and as I stepped in, 5 other girls came over and said hi to Kate, showing her their morning projects, trying to get her attention. One other girl even leaned the top of her head on Kate’s back and rubbed her head up and down Kate’s back. Kate was firm and held out her arms to me, took my face and gave me a goodbye kiss and sent me on my way. I tried to not cry and not take too much time since I was disrupting the class. It was one of the sweetest moment of my life!
I’m very proud of my daughter for taking the initiative to make friends at school. I’m happy for her that she so obviously love to learn and love being school so much. From this point of her life until she is 18, school is going to be the biggest part of her life. It’s going to be where she will meet most of her friends, where she will find her place in the world, where she might fall in love for the first time. School will be the constant force in her life no matter what else happens around her.
(but when she turns 18, her father will be off to Europe, there is no doubt about that, sorry Kate)
Happy parents, happy kids, crying kids whose parents left too fast,
socializing with teachers, proud parents, excited Kate.
The first day school for Kate, I’m so proud of her. She will enjoy
learning at the French American school so much. But I think she will love
the corn meal sandbox the most
Father’s day turned out be to more than just Kate and Me at the Broadwalk. My entire family came along and I’m glad they did. My bro-in law rented a van and the 6 of us hopped in and off we went. We got there at 9:45 and Kate and headed immediately to the beach, especially when Kate saw the sand.
Kate: I want to do go the sand
(we are coming up to the broad walk)
My Mom: Should we head over to breakfast?
Kate: Now, I want sand now!
Me: Uhh, I’m not hungry, drop us off here and pick us up later. BTW, my Treo is out of batteries, please try to find us.
9:45 am, I get a pager message from Yahoo! News that we had 404’s on the site, my Treo runs out of batteries. ARGGG, my parents already drove off.
I digged 5 inches down into the dry sand and open up a 8 foot wet sand pit for Kate. She and I built sand castles for 3 hours. The sun was nice but the beach was actually quite cold. I did a 200 sand push ups to keep warm. I tried looking for Aurora playing sand volleyball, didn’t see her but she was out there today.
I get found by my parents at 12:30pm and I ran over to the car to get my Treo charged and dial into work via bluetooth. I figured out the problem was with the MYSQL database and suggested a fix to my trusted comrad Glen and told him that I trusted him and I loved him (I didn’t really say that).
After Kate had 6 turns at the Merry-go-around and a nice big ice cream cone, we head back home and had ourselves a kick ass BBQ. I let my sister play with Kate for the entire day (what a nice father’s day present) and I watched some DVD’s (Hoosiers) on my 17″ powerbook, had tons of Korean short ribs.
On a more personal note:
I also connected with a family friend who suffered from depression for several years and was reluctant to take drugs. But when she finally started taking drugs, her whole outlook on life changed. I think I’ll start taking meds for me to relieve my depression for a period of time. I’m a little sick of my mood swings.
First I would like to thank craigslist for helping us find all of our French and Japanese babysitters.
Kate is blessed with the gift of language early in her life. Angie and I both speak Mandarin at home, and so Kate’s mother tongue is Mandarin.
When she was 1 years old, we hired a babysitter from craigslist. Hind was from Morroco and one day she asked if she can speak to Kate in French, we were ok with it. Kate showed a lot of interest in French, even though she was resistent to speak it, she understood everything. Ever since that time, all of our babysitters have been foreign language speakers we found on criagslist.
When Kate was 2 1/2, Angie decided to start teaching Kate Japanese, why not right? Kate loved the simple Japanese sounds, the children’s books and children’s songs. Japanese people make the cutest things for kids.
So now Kate is blessed with English, Mandarin, French and Japanese. She understand my ramblings in Cantonese, but I didn’t commit enough time into teaching her to speak.
When we look for babysitters, we ask that they speak exclusively in their mother tongue, we ask for a commitment of at least 1 year in spirit (we don’t hold them to it, but we want a long term relationship), we ask that they read to Kate in their mother tongue when she is eating and we ask that they never test Kate on what she knows.
Looking back at the last 4 years in parenting, I’ll say again that it was damn hard. This language thing is one that I won’t regret.
Updated :2018 I suggest use http://care.com/ instead of craigslist.org
9 Comments
*
Yahoo! User Yahoo! User
commented
06/07/2005 08:06 am
Regarding rejection ratio, it’s like 50%
Also, all of our sitters have to bart in and we pick them up, so the un motivated sitters usually leave after 2 tries
Report abuseDeleteComment
*
Yahoo! User Yahoo! User
commented
06/07/2005 08:03 am
The criteria was pretty simple: all three of us had to feel comfortable. Kate is a pretty good gauge. We would have the person try out for 4 hours, and usually it’s obvious whether the person would work out. It’s a pretty intense 4 hours of teaching and playing and talking in their mother tongue.
Regarding trust, we never left them alone. So that was easy. It took us at least a year before we even left them alone for 30 mins. Now we have 2 sitters who have been with us for over 2 years and we completely trust them.
Report abuseDeleteComment
*
Yahoo! User Yahoo! User
commented
06/07/2005 07:23 am
I’m curious about how you chose a sitter from a pool of complete strangers. What was your criteria for determining if you could trust the person? And what was your reject/accept ratio?
Report abuseDeleteComment
*
Yahoo! User Yahoo! User
commented
06/06/2005 10:03 pm
English, Chinese and French she will retain forever because we are sending her to a French school until middle school or even high school.
I’m planning to live in Paris every summer, so French will definitely be in her life without a doubt.
Japanese, it really depends on whether we’ll continue to keep having sitters once a week. This will be the hardest to keep in her life, but we’ll just to have roll with it. Before she turns 6, I hope to immerse her in Japan for a few months. Maybe I can convince Y! Japan to sponsor me to work in Tokyo
The global thing is really not a big thing for us, it’s really just opening up her brain for learning, it doesn’t matter to me how long she keeps that.
She started reading the Super Baby Food book and she decided that we will be making all of Kate’s food ourselves.
I was lazy and didn’t read the book but the basic principle was that you want lots of colors in the food you give your baby. There are about 20 super foods like blueberries, leafy greens.
In the beginning we would buy batches of apples, yams, spinach, ( I don’t remember all the details now). She would cut them up into little pieces mostly with the skin on and steam them in a large pan until they are very soft. Then Angie would take a chinois/strainer with a grinding handle and grind the apples into apple sauce, the spinach into spinach mush. We might need to strain it twice to get rid of any hard to digest fiber. Then she would put these little baby food into ice cube holders and freeze them.
The next time we need to feed Kate, Angie would take out ice cubes and defrost them. One day’s color palette would be orange carrots, green spinach and yellow apple.. (something like that, I never learned the system) Kate would actually have spinach cereal for breakfast. I know, hold your horses… To this day, I’m still unsure about that diet.. But it works. Kate’s favorite meals now is vegetables with whole wheat pasta, fruity olive oil . She chows down on berries, yogurt. She did discover chocolates and ice cream recently, but as long as she gets her daily vegetables, we are ok with her having some sweets.
The decisions in Angie’s food choices for Kate did come at a price, but we have no regrets. Angie is a bit burned out with parenting and she misses adult interaction. Luckily she will be teaching this coming fall semester . There were many frowns about how extreme it was. Kate didn’t get any seasoning in her food, no candy, no sweeten yogurt until she was 4. Spinach for breakfast got the grandparents up in arms in protests. Not having simple carbs like white rice didn’t go well with our traditional Chinese parents. Kate didn’t get processed foods until she went to school at 3 1/2 when she held on to a fish cracker and didn’t think it was real food. Now she does like her crackers and cookies but still very under control
Angie and I made some very extreme choices in our parenting journey. We were first time parents and we learned along the way. The one principle that we learned which has helped us is that it’s better to do the hard work early on and we can also ease up later. Rather than asking the child to do the hard work later in life. An example would be not introducing vegetables to a baby and asking the child at 4 or 5 to start eating leafy greens. It’s so much harder at that point.
I wish new parents are given more education in raising children. Maybe a mandatory class in college or right before you have a child, you are require to take a Parenting 101 class. We’ve made many mistakes in our parenting, but also stumbled across many good ideas. I wish 5,000 years of parenting wisdom could have been passed down a little easier and made easier to find.
When someone asks me how Kate (my 4 year old) is doing, the first word that always come out of my mouth is ‘she is very happy’. It’s pretty amazing that this kid is always happy. Very little gets her down. When she and I get into our disagreements, it takes me half a day to get back into a happy mood, it takes her 10 minutes and she is back running and happy.