Skip to main content

Posts

Showing posts from April, 2009

enso

http://www.humanized.com/enso_demo.php

disable vmware system beep

Vmware player is a neat tool to run another OS housed on your computer, with one very annoying, and very painful feature - system beep. The beep is very loud and sharp to kill your ear drum. The sound is not from your sound card, but from PC speaker, with very high frequency and volume. Most of the time, you are not appreciated with this "friendly reminder". To disable it, go to %USERPROFILE%\Application Data\VMware, add mks.noBeep = TRUE to your preferences.ini.

who's boss?

human beings in the metro? lions in the wild? shark in the ocean? those are nothing comparing to virus. virus, not bacteria. bird flu, swine flu, or human flu, is just a very mild presence of virus. virus can easily wipe out thousands of human. it happens in Europe, in North America, and in many battlefields.

shanghai botanic garden

历史那些事儿

《明朝那些事儿》的最后一部终于出来了。总共七部,一部不拉的看了下来,对那段历史总算有个些个了解。这种以网络文学的笔法白话历史,也红火了起来。除了明朝,又冒出了《原来这才是春秋》,《那是汉朝》,《隋朝那些花花事儿》,《唐史并不如烟》,《如果这是宋史》,加上 赫连勃勃大王的系列, 差不多都覆盖了,封面设计也大都沿袭《明朝那些事儿》, 竖排毛笔字,不过水平高低还是明显滴。还有一些类似的书,比如《司马迁笔下的牛人们》。

央视热播小樱桃 - 山寨樱桃小丸子

名字就不说了,人物形象,故事旁白,主题曲,靠, 有点创意好不好? 国内现在不少地方都在搞动漫基地,出发点是好的。可是水平太差了。平面动画不错,什么小鲤鱼,小宋当家,神厨小富贵,都挺精致的。三维动画水平实在是太差了,制作了大量垃圾作品。

auto show shanghai 2009

super sized combo - cars and chicks. car model can make thousands a day by average. the supermodel can make 6-figure money, hmmm....sweet.

open social

open social is about api, also about concept, or vision. you can guess what's this for based on the naming -- social on the internet in a more open way. is it really a good idea? it based on the assumption that human being has common needs for socialization.

Declassified Chairman Mao

I watched this program on History channel. The show mainly focuses on what have happened around him after 1949. Nothing is new. It is a short documentary with a couple of oversea Chinese scholars interviewed, sharing their experiences and thoughts on the Culture Revolutionary. Most of the video clip is in low quality. Here is a brief introduction of this program : "Mao was the 20th century's answer to Napoleon: a brilliant tactician, a political and economic theorist, and a statesman who ruled a billion people for three decades. In death he has become divine, worshiped as a god in a godless country. Considering who and what he ruled, Mao, with his Little Red Book, might just be the single most powerful human being who ever lived."

python help

>>> dir(string) ['Formatter', 'Template', '_TemplateMetaclass', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '_float', '_idmap', '_idmapL', '_int', '_long', '_multimap', '_re', 'ascii_letters', 'ascii_lowercase', 'ascii_uppercase', 'atof', 'atof_error', 'atoi', 'atoi_error', 'atol', 'atol_error', 'capitalize', 'capwords', 'center', 'count', 'digits', 'expandtabs', 'find', 'hexdigits', 'index', 'index_error', 'join', 'joinfields', 'letters', 'ljust', 'lower', 'lowercase', 'lstrip', 'maketrans', 'octdigits', 'printable', 'punctuation', 'replace', 'rfind', 'rindex', 'rjust',

python strings

>>> 'bbb'; "fffff"; 'bbb' 'fffff' >>> """this is a lines of lines of comments""" 'this is a\nlines of lines of\ncomments' >>> 'u\34ee', '\x3e', '\oxx' ('u\x1cee', '>', '\\oxx') >>> '\033','\o33' ('\x1b', '\\o33') >>> 'u\23ee','\x3e','\032' ('u\x13ee', '>', '\x1a') >>> u'\xf8', u'nci\u00f8de' (u'\xf8', u'nci\xf8de') >>> r"c:\path\to\files"; 'c:\\path\\to\\files' >>> str(3.14),str(44) ('3.14', '44') >>> s = 'a line of seq' >>> s.decode('utf-8'), s.encode('utf-8') (u'a line of seq', 'a line of seq') >>> chr(33), unichr(345) ('!', u'\u0159') >>> s.find('li&#

python sets

>>> s=set([1,2,3,4,5,1,2]) >>> s set([1, 2, 3, 4, 5]) >>> fs=frozenset(s) >>> fs frozenset([1, 2, 3, 4, 5]) >>> fs.issubset(s);fs.issuperset(s) True True >>> t=set([1,2,6,7,8,9]) >>> s.intersection(t), s&t (set([1, 2]), set([1, 2])) >>> s.union(t), s|t (set([1, 2, 3, 4, 5, 6, 7, 8, 9]), set([1, 2, 3, 4, 5, 6, 7, 8, 9])) >>> s.difference(t), s-t (set([3, 4, 5]), set([3, 4, 5])) >>> s.symmetric_difference >>> s.symmetric_difference(t), s^t (set([3, 4, 5, 6, 7, 8, 9]), set([3, 4, 5, 6, 7, 8, 9])) >>> s.copy() set([1, 2, 3, 4, 5]) >>> fs.copy() frozenset([1, 2, 3, 4, 5]) >>> r=s.copy() >>> r set([1, 2, 3, 4, 5]) >>> s.update(t), s|=t SyntaxError: illegal expression for augmented assignment >>> s.update(t); s|=t >>> s set([1, 2, 3, 4, 5, 6, 7, 8, 9]) >>> s.add(1) >>> s.add(44) >>> s set([1, 2, 3, 4, 5

python dictionaries

>>> d = {'x':34,'y':'fff','z':4.6} >>> d['y'], len(d), d.items(), d.keys() ('fff', 3, [('y', 'fff'), ('x', 34), ('z', 4.5999999999999996)], ['y', 'x', 'z']) >>> c = d.copy >>> c >>> d.has_key('x'), d.values() (True, ['fff', 34, 4.5999999999999996]) >>> d {'y': 'fff', 'x': 34, 'z': 4.5999999999999996} >>> i=d.iteritems();i.next() ('y', 'fff') >>> i=d.iterkeys();i.next() 'y' >>> i=d.itervalues();i.next() 'fff' >>> d.popitem() ('y', 'fff') >>> d {'x': 34, 'z': 4.5999999999999996} >>>

python squences

>>> l = [1,'b', [3,4.],5,6] >>> t = (8,9, ['a',1],4,5) >>> l = list(t); t = tuple(l) >>> type(l), type(t) >>> l, t ([8, 9, ['a', 1], 4, 5], (8, 9, ['a', 1], 4, 5)) >>> l = [1,'b', [3,4.],5,6] >>> s = range(20) >>> s [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] >>> i = iter(t); i.next() 8 >>> l[2][1],l[-3][-1] (4.0, 4.0) >>> s = 'what a nice day!' >>> '-' * 5 '-----' >>> len(s), s[2:5], s[:], s[4:], s[4], s[:-2] (16, 'at ', 'what a nice day!', ' a nice day!', ' ', 'what a nice da') >>> s[1:3:2], s[::2], s[::-1] ('h', 'wa iedy', '!yad ecin a tahw') >>> max(s), min(s), 'a' in s, 'a' not in s ('y', ' ', True, False) >>> s 'what a nice day!' >>> s.i

python numbers

>>> 42, 052, 0x2a, 42l, 052l (42, 42, 42, 42L, 42L) >>> 0.2, .8,4.,1.e3 (0.20000000000000001, 0.80000000000000004, 4.0, 1000.0) >>> z=3-2j >>> z.real, z.imag (3.0, -2.0) >>> abs(22), divmod(23,4.), hex(42), oct(42), ord('a'), round(123.456, 2) (22, (5.0, 3.0), '0x2a', '052', 97, 123.45999999999999) >>> cmp(4,3), coerce(4,3.) (1, (4.0, 3.0)) >>> float('3.14'), int('42', 16), pow(5,3,2) (3.1400000000000001, 66, 1) >>> import math;import cmath;import random >>> math.pi, random.random() (3.1415926535897931, 0.039060765533527775) >>> cmath.acos(3) -1.7627471740390861j

Skype

on 12 Sep 2005, online auction site eBay has agreed to buy internet telephone company Skype Technologies in a $2.6bn deal. on 14 Apr 2009, eBay announces the plan for 2010 Initial Public Offering (IPO) of Skype.

海瑞

中国的伦理道德标准在封建社会的不断拔高下,存天理,灭人性,只到明朝孕育出了个叫海瑞的怪胎。我们很多人听到海瑞,是关于吴晗的《海瑞罢官》。这部借古喻今的话剧,也揭开了文化大革命的序幕。通过这部戏,貌似大家都知道海瑞是个敢于直言的清官。 海瑞到底是个什么样的人呢?海瑞基本上是个嫉恶如仇,嫉富如仇的人,看着谁都不爽。不仅是对外人,对自己的家人,也是一样。他一生娶过三个老婆,纳过两个妾。第一个老婆生了两个女儿,因为和海母不合而被海瑞休了。第二个老婆进门不到一个月,又因为相同的原因被赶出家门。第三个妻子也在盛年之时十分可疑地暴死。而此前,他的一个妾也自杀身亡。儿子海中行死得不明不白,五岁女儿因为接受了别人的食物,受海瑞严罚,绝食七日后活活饿死。一家子穷的当当响,一次海瑞上街买肉,竟然成为新闻被载入史书。

bewww is banned in China

重要公告 09年3月18日,本站(域名bewww.net,包括itcompanysearch.com) 被国内工信部或通信管理总局屏蔽国内访问. 本站(速查手册bewww.net,现仅能在国外访问) 从2002年开放至今从未涉及任何政治,色情内容,一直严格遵守国内相关法律法规,也一直积极及时处理非法恶劣信息. 速查手册是一个提供给广大网友评论各个公司的场所,也给各位网友提供了真正了解公司的渠道,对于许多正在换工作或求职人士有着极大的帮助,我们的宗旨本意是促进国内企业的竞争力,尽量维护公平,同时公司能够真正了解民意,查漏补缺完善公司整体机制,在为普通网友提供服务的同时也得到了极多企业的高管等的关注; 对于信息监管,我们一直是居于中立位置,我们投入了极大的人力物力,每天坚持人工审核所有内容,Email来信必回,论坛处理48小时内必有答复,我们一直都是义务无偿的去做这件事情,了解本站历史的网友都应该知道,以前本站名为IT公司红黑榜,在国内运营,一直都是公益性的为广大网友提供服务,从无任何违法乱纪的行为;曾在07年因网友评论“侵害”某公司利益,当时被直接搬掉服务器,故而移至国外服务器;而本次整体域名被封,也是毫无任何“说法”,被直接屏蔽,以致求告无门,目前本站仍在寻求沟通解决之法(希望渺茫)。国外同类公司评论网站www.glassdoor.com创立于07年,并已成功得到风险投资,国内同类网站也大多受此启发,在07,08年间出现了多个,许多网站曾从我们速查手册抓取过数据,我们也秉持着开放的态度来面对,我们一直是想把这个事情做好,能真正为社会做有价值有意义的事,但是对于此次被封事件,我们表示非常无奈及可惜。公告各位网友,本站无限期关闭。于此我们呼吁有关部门能认真审视我们网站,本站不存在任何违规行为,并恳求众多网友能为本站呼吁相告,可以去工业和信息化部网站的"电信投诉" 投诉,写下您对速查手册的看法,并留下真实电话以备主管部门回访,以求速查手册能早日解封,我们在这对各位深表感谢!您的简单出力,能让我们更好的存在下去继续为朋友们服务。

我和春天有个约会

今年的流行就是丝袜紧身裤,满大街都是。照片是从kds转贴的。

Python

is more powerful than Tcl. has cleaner syntax and simpler design than Perl. is simpler and easier to use than Java, and C++. is more powerful and cross-platform than VB. is more mature and readable than Ruby. Has dynamic flavor of SmallTalk and Lisp. Google, YouTube, Intel, Cisco, HP, JPMorgan, NASA, JPL, IronPort, and more are using it! CPython, Jython, and IronPython.

a ps-ed fake illusion of desktop

look at the image, how neat it is. but for real, this guy is watching the soccer game with no sounds. even with wireless keyboard and mouse, it can get very messy - power cables for monitor, desktop, speakers, VGA cable between monitor and desktop, network cables to desktop and to the wall, power cable to cable modem, audio cables, ... man, it eventually ends up a net of cables around it.

关于清华出走樱桃沟的年轻副教授的转贴

我是走失这位副教授的邻居,虽然我没有和这对夫妇交谈过。但是我希望自己能作些什么来帮助这个家庭渡过难关。看到网上一些人的评论缺乏起码的人性,我感到很伤心。我想在不 足够了解情况的前提下发表评论是很不负责任的,有时会给他人造成严重的心理伤害。我只是把我知道的告诉大家,希望大家能理解这位老师和他的家人,从而不要再无端的指责他们 。我也是一名清华的副教授,我能深深感受到这位老师和他的家庭在清华工作生活的压力。这位老师的专业方向是物理,应该属于基础研究,因此他的月收入应该和我差不多,每月能那 到手的现金应该在3000-4000元,我们所住的房子是租学校里的过渡房,实用面积不超过40平米。而清华周边的房子是高于20000元每平米。因此买商品房撑死交个首付,回头都还不上月供。清华的晋升职称压力也很大,多年晋升不到一个与年龄相称的体面的职称也会使清华的很多老师郁闷,心理压力越来越大。当然有的网友会说,大学的老师应 该在名利面前超脱一些,专于研究而甘于清贫。也许我们自己可以修炼到圣人的境界,但是我们无法要求我们的家人也达到如此高尚的境界。想一想我们的爱人,当初嫁给我们时我们 是清华的博士或年轻老师,她们当时应该没有指望和我们就过上富裕的生活,但是她们多半期盼着和我们过上相对体面的生活,相对受人尊敬的生活。但是,多少年过去了,我们没钱 ,没房,没车,没有教授这样响亮的头衔,我们身边的妻子发些牢骚绝对正常。我所了解的这对夫妇是清华年轻老师里很正常的一对,都很温和而善良,我经常能听见他们小孩哭的声音,但是从来没听过他们吵架的声音。这位副教授也十分刻苦,我经常在10点 半回家时能碰到他从单位回来。清华的工作生活环境使得很多人在其中都不太开心,几年前清华就有年轻老师在家中独自喝闷酒发泄最后死于心脏病。而我所在的单位不到两年时间已有3人选择了离开清华,所以请 大家也能理解他的行为。因为兴许有一天,会有另一位年轻老师选择逃离现实(我不敢说我肯定不会),希望世人对他的议论能宽容一些。希望大家支持该帖,以使舆论对此事的关注回到一个人性化的基调上来。

ACID

■ Atomic—Transactions are made up of one or more activities bundled together as a single unit of work. Atomicity ensures that all the operations in the transaction happen or that none of them happen. If all the activities succeed, the transaction is a success. If any of the activities fail, the entire transaction fails and is rolled back. ■ Consistent—Once a transaction ends (whether successful or not), the system is left in a state that is consistent with the business that it models. The data should not be corrupted with respect to reality. ■ Isolated—Transactions should allow multiple users to work with the same data, without each user’s work getting tangled up with the others. Therefore, transactions should be isolated from each other, preventing concurrent reads and writes to the same data from occurring. (Note that isolation typically involves locking rows and/or tables in a database.) ■ Durable—Once the transaction has completed, the results of the transaction should

another shooting spree, another psycho

"I am Jiverly Wong shooting the people," the letter begins followed by an apology that "I know a little English." What follows is details of Wong's beliefs that undercover police had taunted him, tortured him and spread rumors about him wherever he went. The police, he said, forced him to leave California, where'd he'd lived from the early 1990s until 2007, and were trying to force him to leave the country. advertisement They entered his room while he slept, he said, watching him sleep, touching him while he slept. And 32 times, he said, police drove in front of him and abruptly stopped. But "I never hit the car," he said. At the end of the letter, Wong complained that he cannot "accept my poor life" and that he assume the role of judge and "cut my poor life." He demanded that an "undercover cop" be held responsible for whatever happened and ended with "You have a nice day." -- CNN

spring 2.0 bean scope

singleton Scopes the bean definition to a single instance per Spring container (default). prototype Allows a bean to be instantiated any number of times (once per use). request Scopes a bean definition to an HTTP request. Only valid when used with a web capable Spring context (such as with Spring MVC). session Scopes a bean definition to an HTTP session. Only valid when used with a webcapableSpring context (such as with Spring MVC). global-session Scopes a bean definition to a global HTTP session. Only valid when used in a portlet context.

谷歌输入法自动检测

最近谷歌的2.0测试版不停的跳出来,提示我安装新版本。结果还安装不了,非要管理员这个用户才行。公司用户谁知道用管理员密码啊。结果就是不停的提示,不停的失败。 To disable it, run regedit. find this HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google PinyinX\Autoupdate, and delete it.

a bean's life

what is spring

spring is lightweight dependency injection aspect oriented programming container framework modularized - core, aop, orm, dao, jmx(java management extension), jca(j2ee connector api), jms(java message service), web, context, mvc, portlet mvc, and remoting. core module makes spring a container, but context module makes it a framework.

the second level cache in hibernate

Why it is called the second level cache, because there is already one level of cache running. "A Hibernate Session is a transaction-level cache of persistent data. It is possible to configure a cluster or JVM-level (SessionFactory-level) cache on a class-by-class and collection-by-collection basis. You may even plug in a clustered cache. Be careful. Caches are never aware of changes made to the persistent store by another application (though they may be configured to regularly expire cached data). " Read more here .