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 .

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!

工作即将一个月有感

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

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

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听个可不见得是个好主意(如果有空的话尽管可以自个写一个自动播放列 表的页面。。。。。再想想吧)。

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

iPython in MacOS autoComplete and highlight configure

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()

抓-抓虾


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

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


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


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

写在2007年的尾巴尖上

07就这么过去了,有不少值得高兴的事,也有些从未经历过的事,让自己成长的事。 感谢那些一直在我身边支持我的人,让我清醒、从容、坦然的面对这一切。

对于08年,有门槛、台阶等着去迈过,但,我们所珍视的生活其实还是一样的。

不是吗?

12.1

看了一下研究生答辩须知,吓了自己一跳,原来7个月之内我就要离开学校,离提交毕业论文也只有3个月的时间了。这将意味着:下3个月的ToDoList:

  1. 催到学报把录用通知搞到手
  2. 预失真在现有功放改善ACPR 10dB (12.10前)
  3. Doherty 改进(落实器件等,12.20前)、加工(1月前)、调试完成(1月底以前)
  4. 放假时完成论文初稿(2月下旬返校后提交)

回想一下,坎坷权且当作一种历练。为了破晓的曙光,先享受黎明前的黑暗。