2009/03/12

The first change of this year is comming soon

Finally, I achieve the goal I made in the student era, joining in ///.

No matter how many difficulties in front of there, we can made it.
I'm not the guy who believes destiny which you can only obey, while I believe there is one thing called faith which you can control. Anyway, it's feels great to make things done.
Not only exciting,  there is some kind of melancholy falling in my mind, for such a great team, for such an enjoyable group, for my elapsing pre-career time.
At the same time, wish  healthy comes along with us.
Keeping on enjoying life in BJ.

2009/02/16

PythonChallenge 1

Procedure
Q:
A:
s = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj."
def trans(s1, s2=""):
   for i in s1:
       if i in " .,'":
           s2 += i
       elif i is "y":
           s2 += "a"
       elif i is "z":
           s2 += "b"
       else:
           s2 += chr(ord(i) + 2 )
   return s2

print trans(s)
Conclusion
I think mine is straight, redundance, complex, and does not use the power of standard lib.
Lessons learned:
  1. DRY
  2. string module
Review
N/A

2009/01/13

Python Challenge 0

Q:

A:
My answer is staight:
print  2**38
Other Answers:
Such as using google, use cauculator in Windows.
Just using this to spent the time that I do have post to say....... don't blame me, I'm boring.

2008/12/31

Waiting on the World to Change

Mr. Obama use "Change" as the president-elect's motto, at the same time, this character "变" is declared as Japan's character of the year, though this is definitely a Chinese character.

Though, for me "Change" is exactly the topic of 2008.
  • I spent almost the coldest two winners of my life this year(both in Chengdu during the whole Jan. and in Dec. when I am here, in Beijing ).
  • We were survived in the Earthquake, facing lots of situations which reflect who you are. This changed my view of life.
  • I was finally graduated from school. However, a little bit difference from what I expected. This is the change of my role in this world.
  • There are  so many changes in this year that i can not even list all of them in this post. Change different departments, career, time management, development platform......
  • Wish in the next year, there will only be surprises, no unexpected changes, anymore.
Farewell, 2008

2008/11/16

Mac OS X Privileges reconvery tips

This tip saved my ass when I broken the privileges of Mac OS X by accident, while changing the file sharing settings:

  1. Turn on your Macbook.
  2. Press and hold the [Apple] and "S" keys when you hear a chime sound.
  3. Release the keys when you see computer code on a black and white screen.
  4. Type at the prompt: /sbin/mount -uw /
  5. Press the [Enter] key.
  6. Type next: rm /var/db/.applesetupdone(rebuild user setups) or chmod (rebuild the user privilege)
  7. Press the [Enter] key.
  8. Restart. Your Macbook will restart and you can create a new user and password by going through the installation wizard or reborn .