Wednesday, October 29, 2008

Unlock Your T-Mobile G1 Phone

I think a log of people who bought their G1 phone from EBay would love to unlock their new baby so that they can use G1 phone in different network. Here is the Unlock T-Mobile G1 Phone Site that provides you the unlock code based on your phone's serial number. Unfortunately, you have to pay $24 for the service, but it worths a try.
Read more!

Lessons Learnt from Recent Bugfix Release

Last week, I was working on a SCORM export bug. It came in pretty late and I barely have time to check into the Perforce before the branch is locked. I was also busy working on other stuffs so I didn't verify it carefully and thought my QA colleagues could help me out. However, my colleagues assigned to test this bug fix is not quite sure about the software we are using for testing SCORM course packages, and he didn't test it and the bugfix went out. The next day, we got complaint and I was yelled by this mistake. So here is the lesson I learned from this:

  • RULE NO 1: Verify it as a QA before resolving the TT and send it to QA team.

  • RULE NO 2: Sit with another developer and do some peer review. It doesn't matter whether the other developer is familiar with the component you are working on. Sometimes, when you are explaining your fix, you will find the issue. At the same time, the other developer gets to know the component better.

  • RULE NO 3: Create unit test.

  • RULE NO 4: Make sure QA team is aware of your fix and know how to test it.

  • RULE NO 5: Stop blaming your colleagues and start to figure out the approach to avoid the same sh*t happens again.



Read more!

Sunday, October 26, 2008

盟盟和妈妈单独相处的一天

10月25日,也就是盟盟满100天的前一天,盟盟和妈妈度过了出生以来单独相处的第一天。因为爸爸要带外公外婆去环球影 城,妈妈不忍心让盟盟出去受苦,所以决定留在家里陪伴盟盟。因为之前一直有外公外婆和爸爸帮忙,所以爸爸走之前妈妈还是有点担心的,生怕一个人搞不定盟 盟。事实证明盟盟基本上还是一个乖宝宝,吃饭和玩耍都可以打10分,只有睡觉的时候还是喜欢哭闹,害得妈妈每次都要把盟盟抱在怀里哄着了才敢放下去。这一 天里盟盟最开心的时候就是被妈妈抱起来学走路的时候,虽然摇摇晃晃歪歪倒倒,盟盟还是很执着的一步一步往前迈,甚至把妈妈的腿当楼梯上。妈妈最开心的时候 就是盟盟睡觉的时候,特别是看着盟盟在妈妈怀里睡得很香甜的样子,妈妈都觉得这一天的bonding还是卓有成效的。
附:今天是盟盟百天,活动安排如下:上午去公园外公给照相相,中午全家吃长寿面(盟盟旁观),下午去照相馆照相相,之后在AppleBee's晚餐(盟盟旁观)。
Read more!

Saturday, October 18, 2008

儿子学会侧着睡了

今天突然就学会了,即使把他给掰回来平躺着,他身子马上就往右侧过去睡了,总算解决了扁头和偏头的问题。但是侧着睡得问题就是安慰奶嘴老掉,所以儿子好像睡的也不踏实。旧问题没了,又来新问题了。
Read more!

Tuesday, October 14, 2008

儿子越来越矫情了

特别是想睡觉的时候,就得抱着,一放下立马就开始扯着嗓子哭,虽然光打雷不下雨(还不会下雨呢?),但是也够惊天动地的,反正是不安抚兔崽子睡着大家都没得安宁,看来自己还不是特别有耐心,一到这个时候按就要跟兔崽子杠上,每次都想把他往哪一丢,爱哭就哭呗。老婆和岳父岳母要耐心一点,会哄儿子睡着,睡着后就没事了。有的时候刚睡醒,那个哭的也跟马景涛有的一拼了,以后琼瑶奶奶的戏让俺们演得了。

其他的时候都还好,特别是下午吃完饭洗完澡后,丫的特别有兴致和你互动。现在发的音都开始迎扬顿挫了,大声的很。特别容易笑,还会笑出声来,特别尖的那种,小公公一名...

体育方面,就是还不会爬,就像走了,典型的急性子性格啊...让他趴在那,就会脚乱蹬,不会用手,每次蹬了半天,没劲了,就开始哭闹了,哎。

来几张儿子开心笑的照片




和狗保姆在一起


Read more!

Safari Fails to Include the Successful Controls in the Form Data Set

Another bug (you might need to have a Apple ID for accessing the link) for Safari!

<form action="fake_action" method="POST">
<button name="disable" value="Deactivate Account" type="submit" onclick="click();">Deactivate Account</button>
</form>

For the above form, the name/value pair for the submit button should be included in the data set when the form is submitted (i.e., the submit button is clicked). When I run the above form in Safari, the server app doesn't get
NAME         VALUE
disable   Deactivate Account

in the form data. However, if I remove the onclick event in the submit button control, the server app get the data I expect.

UPDATE:
Here is the link to the standalone test


it is a simple form with 4 different kinds of submit buttons, and here is the source code for the html page
<html>
<head>
<title>A simple form</title>
<script type='text/javascript'>
  function test(){
    document.forms[0].submit();
  }
</script>
</head>
<body>
<form action="formsubmit.php" method="POST">
<input name="disable1" value="Deactivate Account(submit button with onclick)" type="submit" onclick="test()">
<input name="disable2" value="Deactivate Account(submit button w/o onclick)" type="submit">
<button name="enable1" value="Activate Account(submit push button with onclick)" type="submit" onclick="test();">Activate Account(submit push button with onclick)</button>
<button name="enable" value="Activate Account(submit push button w/o onclick)" type="submit">Activate Account(submit push button w/o onclick)</button>
</form>
</body>
</html>


here is the source code for formsubmit.php, which simply print out the successful control sent to the server (any one of those submit buttons)
<html>
<head>
<title>Submit Form</title>
</head>
<body>
<?php

foreach ($_POST as $item) {
print $item;
}
?>
</body>
</html>


basically, I only get successful control for those submit buttons without onclick event handler, which does nothing, but call the form submit method in this test case, while I got all submit buttons in Firefox.

Read more!

Monday, October 6, 2008

小人最新进展

两个多月过去了,小人长得不错,多亏岳父岳母在这照顾Bryant. 现在小人和人沟通的欲望越来越强了,会不停的跟你说话,如果你愿意用他的语言和他沟通的话。如果你和他笑,他笑的比你开心。总算大家幸苦没白费,能看到小人笑,开心顿时幸苦觉得都值得了。

GSD姐姐Ally很好奇弟弟,经常有机会就像和弟弟亲热一下,这不又舔起弟弟的脚了。
再show一下小人最近的玩具,这个还是一个月前(9.11)参加另一个小朋友生日party的时候拿的。可惜气球昨天气没了,看看那天去给买个新的。小人左手特别灵活,比右手玩的好。不知道和他头经常偏有有关联?

Read more!