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 .

2008/10/15

Probation Period Ended

Thank goodness, the headcount reduction did not affect the employees in China.Out of the school, the feeling becomes more and more strong and makes me confused: This is a bussness world, even though you have better idea, more efficiency solution, more attractive production, you can not change the orgnazition.

You just one part of the platform.Just one inconsequential part of the machine, there is no hero in the enterprise, especial in China.

For me, this is a better place than the school, at least we can live by us alone ;) Anyway, keep on enjoying the life!

2008/09/30

Using vim to open recent files

'd d means one digital from 0 to 9, which present the recent files.

2008/08/05

工作即将一个月有感

一转眼,工作都快一个月了! 也就是说,马上就要领到生平第一份工资咯!! 工作的这一个月感触还是很多:

  1. 宽松。不知道是自己刚来,尚被算做是0.5个员工的缘故还是之前读研期间被push的太狠了抑或是确实公司那种宽松的环境的缘故,感觉工作虽处在上手阶段,然而慢慢的有种自如的感觉,希望能够在成为正式生产力之后亦能保持这份从容的心态。
  2. 技术。已不再是以往的刨根问底,从应用的角度、从解决问题的角度想办法做工作,公司负责渠道和保障,也许这才是曾经那句“我不关心过程,只关心结果”的真正意义吧。另外,心中也不能抱着浅尝辄止的心态面对工作,要不得要不得!
  3. “赶早”。看到中科院的一位25岁的PHD作我曾经的主业做地professional,看到许多同事从喝多ODM公司摸爬滚打做到今天这个程度,自己曾经的努力真的就像灰飞烟灭一样。但是,有了那些挫折教育,现在尽管仍有不适应,但已经减小了不少的斜率了吧。
  4. 放松。非正式场合与人不妨再放松一点,拘谨会让双方都很尴尬。储备些段子也许是个比较好的办法。
  5. 时间。在这样的状态下,不利用时间好好做些什么事情是对生命的不负责!!从前可以拿忙,需要休息,需要放松作为借口去浪费时间,放弃自己的爱好,现在呢?!不能再放自己的羊了,you are so fucking special!
随便总结一下,想到了再加。

2008/06/26

bzr@iPhone/iTouch

可以说我是吃饱了撑得,总之我又这样的需求:

  1. bzr,python随处可带,portable后带一个U盘里边轻而易举,WIFI似乎马上也不是问题,北京都已经满城遍是免费网了。
  2. 更何况不论S60还是WM都有利用GPRS做wifi AP的软件出现了(对于iTouch这个没有GPRS的家伙只有多带一样设备了)。
简要过程如下:
  1. 破解iPhone(Ziphone方便快捷,3分钟完成,点击鼠标不超过10次,安逸)
  2. iphonecake安装cydia
  3. 从cydia装上Python以及GNU C Compiler
  4. SFTP传上bzr源代码
  5. python setup.py install (解压之类不说也罢)
搞定!编译好的代码在这里

以后可以抛开了itune,配合iPhone上的lighttpd,用bzr 的push pull checkout来同步电影什么的,听歌就算了吧,没有列表的概念在safari听个可不见得是个好主意(如果有空的话尽管可以自个写一个自动播放列 表的页面。。。。。再想想吧)。

让我们没事尽管穷折腾吧!

2008/06/21

2008/05/08

iPython in MacOS autoComplete and highlight configure

Using ipython in Mac OS X, finding that although the readline is already installed, but the autocompletion isn't available.Follow the instruction of this article, found that the configure file will disable the highlight. So here is the improvement version of ~/.ipython/ipy_user_conf.py P.S: Mac OS X v10.5.2; python 2.5.1; ipython 0.8.2 """ uer configuration file for IPython This is a more flexible and safe way to configure ipython than *rc files (ipythonrc, ipythonrc-pysh etc.) This file is always imported on ipython startup. You can import the ipython extensions you need here (see IPython/Extensions directory). Feel free to edit this file to customize your ipython experience. Note that as such this file does nothing, for backwards compatibility. Consult e.g. file 'ipy_profile_sh.py' for an example of the things you can do here. See http://ipython.scipy.org/moin/IpythonExtensionApi for detailed description on what you could do here. """ # Most of your config files and extensions will probably start with this import import IPython.ipapi ip = IPython.ipapi.get() # You probably want to uncomment this if you did %upgrade -nolegacy # import ipy_defaults def main(): # Handy tab-completers for %cd, %run, import etc. # Try commenting this out if you have completion problems/slowness # import ipy_stock_completers # uncomment if you want to get ipython -p sh behaviour # without having to use command line switches # import ipy_profile_sh import ipy_defaults # o = ip.options # An example on how to set options #o.autocall = 1 # o.system_verbose = 0 #added to fix readline support, temporarily import readline readline.parse_and_bind ("bind ^I rl_complete") main()

2008/01/27

抓-抓虾


不好意思,看题目似乎是结巴。

不过我现在要做的就是把抓虾里边收藏的文章逐步迁徙到本地或del.icio.us去,打算用python实现,就是所谓的“抓-抓虾”


参考文档:
抓虾页面频繁地应用了javascript操作DOM,就连login的Form都不放过,所以补习一下DOM的相关知识。


http://www.w3school.com.cn/htmldom/dom_nodes.asp