一个有趣的现象
最近发现一个有趣的现象,诸位不烦回去做一个实验拿一本书,随意翻一次,记住页码,过一段时间以后再拿起这本书随意翻,是不是还是同样的页?或者总是翻在以前翻过的页码?[@more@]延伸这个话题,诸位回想一下,把以前遇到的问题,或者对某些事情的处理方法,都总结一下,是不是都是相似或类同的方法?。。。。最后,既然能给总结出来,就可以有针对性的改进了!
Spirit Songs
Here I amHere I am - this is meThere's no where else on Earth I'd rather beHere I am - it's just me and youAnd tonight we make our dreams come trueIt's a new world - it's a new startIt's alive with the beating of - young heartsIt's a new day - it 's a new planI've been waiting for youHere I amHere we are - we've just begunAnd after all this time - our time has comeYa here we are - still goin' strongRight here in the place where we belongIt's a new world - it's a new startIt's alive with the beat
Regex evolution
how to evolute the regex for word parsing. but not clean up[@more@][code]String testStr = "user input some text but havn't don't didn't i'm she's slslslkdfj we're"; System.out.println(testStr); String sub1 = testStr.replaceAll("(w+'t)|(w+'s)|(w+'m)|(w+'re)|(w+')", "----"); String sub2 = testStr.replaceAll("['t|'re|'m|'s]", "----"); String[] sub3 = testStr.split("(w+'t)|(w+'s)|(w+'m)|(w+'re)
Indexing Mixed-Character Set Columns
Gist: must idicate the charset for different charset document[@more@]A mixed character set column is one that stores documents of different character sets. For example, a text table might store some documents in WE8ISO8859P1 and others in UTF8.To index a table of documents in different character sets, you must create your base table with a character set column. In this column, you specify the document character set on a per-row basis. To index the documents, Oracle converts the documents into th
Apple CEO 斯蒂夫·乔布斯斯坦福大学毕业典礼上的演讲
杜然/译 (斯坦福)是世界上最好的大学之一,今天能参加各位的毕业典礼,我备感荣幸。(尖叫声)我从来没有从大学毕业,说句实话,此时算是我离大学毕业最近的一刻。(笑声)今天,我想告诉你们我生命中的三个故事,并非什么了不得的大事件,只是三个小故事而已。(希望能找到英文原版)[@more@]第一个故事,是关于串起生命中的点点滴滴。 (原文为“connecting the dots”指一种小游戏:把标有序列号的点连起来,就构成一幅图画——译注) 我在里德大学呆了6个月就退学了,但之后仍作为旁听生混了18个月后才最终离开。我为什么要退学呢? 故
三步搞定JPA
Eclipse open source刚刚发布的最新Java集成开发工具Ganymede在开发JPA类型的应用上,比上一个eclipse发行版E增强了一项重要功能--创建Entity向导,利用向导可以很容易的创建Entity类,并且向导可以检查所创建的Entity。[@more@]Cat.java开发JPA,首先需要一个JPA的实现,这里我们选用OPEN JPA,它是apache上一个开源项目,open jpa实现了在非容器下使用jpa的规范。下载最新的open jpa版本后,把所有的jar包配置到Ganymede的user lib中,并取名OPEN_JPA在data source explorer 试图下创建一个新的mysql连接, new MySql创建一个JPA工程,并
读任正非鞭策文有感
任正非第三次在华为发表冬天要来了的文章,要求华为全体员工要继续努力,挺过这个冬天。竟然招致了不可理解的言论。这里是我个人的看法。[@more@]华为能在中国IT整体落后的局面下把产品做的这么好,把公司做的这么大,靠的不光光是聪明,靠的是全体华为员工的努力,对于华为取得这样的成功,我同作为一个IT人非常尊重。如果有一天,你做的比华为好,比Cisco好,说明你付出的比他们多。如果中国的通讯供应产品还是外国厂商的天下,目前中国的通讯行业不会有这么的繁荣,也许GSM我们还有用10年,也许作为消费者,我们还要继续为一分钟的通话
Oracle Text算法模型
Oracle Text scoring Algorithm,Salton‘s Formula[@more@]Scoring Algorithm for Word QueriesTo calculate a relevance score for a returned document in a word query, Oracle uses an inverse frequency algorithm based on Salton's formula.Inverse frequency scoring assumes that frequently occurring terms in a document set are noise terms, and so these terms are scored lower. For a document to score high, the query term must occur frequently in the document but infrequently in the document set as a whole.
HAL daemon doesn't work
HAL daemon doesn't work after I compile the new linux kernel version 2.6.25.4 on my FC8 box.Without haldaemon I must mount any portal media or disk (like USB disk, CD, MMC) manually. I hate to do it. I like my FC8 box shows the portal media and let me access it automatically.I google the haldaemon, here is the key messages and hints.HAL requires the Linux kernel 2.6, D-BUS, glib (this dep will be dropped soon) and a recent version of linux-hotplug and udev. Okay. the key facts are db-bus, linux-
A supernatrual and amazing travel on FC8
I have allocated 30G disk spcace at the new installation of FC8. however, I want to setup oracle database on it and create a several large size of datafiles. I need a large / file system because the disk has 4 main partition, ( 1 NTFS partition, 1 windows extention partition, 1 ext3 partition, 1 swap partition) and with about 40G free space disk that not belong any partition.Neither I think I re-create the / partition nor format the / filesystem or waste 2 hour to install a lots packages of FC8.