沉默的黑洞
自我介绍
切换风格
订阅我的Blog
博客日历
文章归档...
最新发表...
博客统计...
网站链接...
资源
===========================================================
又是一年春来到
===========================================================
又是一年春来到,上次写这篇文章的时候去HP面试,两年后的春天又要准备去HP了。两年间发生了太多的事情,不堪回首。
reack 发表于:2008.02.21 14:54 ::分类: ( 沉思集 ) ::阅读:(85266次) :: 评论 (0) :: 引用 (0)
===========================================================
回来看看
===========================================================
因为需要找一个olap的资料,才想到自己的blog上有,看来这里已经被遗忘的太久了。太浮躁了。
reack 发表于:2007.10.11 20:03 ::分类: ( 沉思集 ) ::阅读:(107590次) :: 评论 (10) :: 引用 (0)
===========================================================
18位身份证标准的详细规定,包括校验位的计算方法
===========================================================

我在03-8-8发布在chinaasp上的文章,真是一晃数年!

18位身份证标准在国家质量技术监督局于1999年7月1日实施
的GB11643-1999《公民身份号码》中做了明确的规定。
GB11643-1999《公民身份号码》为GB11643-1989《社会保障
号码》的修订版,其中指出将原标准名称“社会保障号码”更名
为“公民身份号码”,另外GB11643-1999《公民身份号码》从实
施之日起代替GB11643-1989。

 查看全文
reack 发表于:2006.10.13 12:51 ::分类: ( 沉思集 ) ::阅读:(97766次) :: 评论 (12) :: 引用 (0)
===========================================================
powerdesigner中去掉生成sql中的引号
===========================================================

菜单Database-> Edit Current DBMS...-> Script-> Sql-> Format-> CaseSensitivityUsingQuote 改为no

一切ok


reack 发表于:2006.08.02 16:40 ::分类: ( JAVA ) ::阅读:(195895次) :: 评论 (20) :: 引用 (0)
===========================================================
中国历史上最著名的十四次人口灭杀
===========================================================

来源:青年论坛 时间:2006-3-18

仅以战争为例,在商朝的《卜辞》中就记载了各种战争61次。而据《春秋》记载,在春秋时期242年间各种战争448次。到了战国时期,仅大规模的战争就有222次。孟子说,春秋无义战。岂止春秋!2500年来,哪一场自相残杀,谈得上正义?哪一次改朝换代,不是人口死亡过半?
秦人嗜好战争,他们左手提着人头,右胳膊下夹着俘虏,追杀自己的对手。司马迁记载:秦国攻魏杀8万人,战五国联军杀8万2千人,伐韩杀1万人,击楚杀8万人,攻韩杀6万人,伐楚杀2万人,伐韩,魏杀24万人,攻魏杀4万人,击魏杀10万人,又攻韩杀4万人,前262年击赵白起杀尽42万人,又攻韩杀4万人,又攻赵杀9万人……前207年项羽坑秦降兵20万。

战国末中国人口2千万人。可中国军队却远远超过欧洲:秦始皇守五岭用兵50万,防匈奴30万人,修长成50万,造阿房宫秦皇陵的130万人(其中受宫刑者达70多万人)。以至于“丁男被甲,丁女转输,苦不聊生,自经于道树,死者相望”(《汉书、严安传》)。

秦始皇三十六年,有一颗流星落下,有人在陨石上刻字:“始皇死土地分”。秦始皇就把陨石周围居住的人,全部杀了。

秦始皇的后宫姬妾,凡没有儿子的,全部殉葬。修造墓地的工匠,在葬礼完毕之後,20多万役卒全部封在墓里,死于非命;以后凡修皇陵的民工都是同样悲惨的下场。

到胡亥时,赋税甚至增加到超过农民收入的2/3。

 查看全文
reack 发表于:2006.03.21 09:27 ::分类: ( 沉思集 ) ::阅读:(41264次) :: 评论 (3) :: 引用 (0)
===========================================================
又是一年春来到
===========================================================

走走停停,春天又来了,虽然外面还飘着小雪,但是人来人往宣告着一个流动季节的到来。在理想与现实之间的选择,在奋斗与安逸之间的选择,又一次让我陷入了对目标的迷茫。我找不到我的位置,如同找不到我的Treo 650,其实是我从来没有拥有过。莫名其妙突如其来不知所谓的感慨。


reack 发表于:2006.02.28 10:17 ::分类: ( 沉思集 ) ::阅读:(83654次) :: 评论 (25) :: 引用 (0)
===========================================================
Eclipse插件开发-实现文件目录选择的对话框
===========================================================

/**
* Uses the standard container selection dialog to choose the new value for
* the container field.
* 通过浏览选择文件目录,并把目录名返回给输入框
*/
private void handleBrowse(Text mytext) {
ContainerSelectionDialog dialog = new ContainerSelectionDialog(
getShell(), ResourcesPlugin.getWorkspace().getRoot(), true,
"请选择文件夹");
if (dialog.open() == ContainerSelectionDialog.OK) {
Object[] result = dialog.getResult();
if (result.length == 1) {
mytext.setText(((IPath) result[0]).toOSString());

}
}
}

reack 发表于:2006.02.28 10:12 ::分类: ( Eclipse ) ::阅读:(15988次) :: 评论 (0) :: 引用 (0)
===========================================================
改变或关闭Oracle XDB的ftp和http端口
===========================================================

Oracle 9i开始,创建数据库时默认包含了XDB特性。一旦启动了数据库和Listener,Oracle XDB的http服务就占用8080端口,刚好和JBoss、Tomcat等默认端口冲突。因此,必须有一个做出更改。改Tomcat等容易,只是一时不知道怎么改XDB的配置。

在Google上搜索一下,找到了答案。原来Oracle XDB的端口设置不在配置文件中,而是在数据库里。修改XDB的http和ftp服务端口的方法有3种:

1。使用sys登录Oracle,利用dbms_xdb修改端口设置

SQL> -- Change the HTTP/WEBDAV port from 8080 to 8081
SQL> call dbms_xdb.cfg_update(updateXML(
2 dbms_xdb.cfg_get()
3 , '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()'
4 , 8081))
5 /

Call completed.


SQL> -- Change the FTP port from 2100 to 2111
SQL> call dbms_xdb.cfg_update(updateXML(
2 dbms_xdb.cfg_get()
3 , '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()'
4 , 2111))
5 /

Call completed.


SQL> COMMIT;

Commit complete.


SQL> EXEC dbms_xdb.cfg_refresh;

PL/SQL procedure successfully completed.


2。使用OEM console,选择数据库,XML Database,Configuration。更改XDB的有关设置。

3。去掉数据库的初始化参数: dispatchers='(PROTOCOL=TCP) (SERVICE=XDB)',将会禁止XDB的http和ftp服务。

这篇文档很详细解释了XDB的端口设置问题。

reack 发表于:2005.11.24 15:24 ::分类: ( JAVA ) ::阅读:(5586次) :: 评论 (1) :: 引用 (0)
===========================================================
WAS CE 初体验!
===========================================================

WebSphere免费版终于提供下载了,下载使用一下,第一感觉就是好小,只有40M,加上IBM的JRE也不过才80M。后面就不说了安装、运行都很快,尤其是server的启动速度,40S就可以起来。

WAS CE采用Apache的开源J2EE服务器Geronimo。

 查看全文
reack 发表于:2005.11.24 15:04 ::分类: ( WebSphere ) ::阅读:(4480次) :: 评论 (1) :: 引用 (0)
===========================================================
IBM将在今年发布WebSphere开源版本WAS CE
===========================================================

IBM Announces Open-Source Version of WebSphere

New open-source application server based on Gluecode technology, which IBM acquired earlier this year.

IBM announced new open source-based software and support, including an open-source version of its WebSphere Application Server. WebSphere Application Server Community Edition (WAS CE) is targeted at mid-sized businesses, departments in large enterprises and business partners with easy access to open source-based technologies with no upfront costs.

WAS CE includes technology from Gluecode Software, which IBM acquired in May. WAS CE features a small footprint, making it easier to download and manage. Based on core open source technology from the J2EE-certified Apache Geronimo application server, WAS CE and related subscription support provide a flexible and affordable alternative to traditional commercial software offerings and can help customers begin to deploy a Service Oriented Architecture (SOA).

WAS CE is intended to help Java developers reduce the complexity of application development by pre-integrating the most common services for building applications, IBM says. It offers customers the choice of a "blended" commercial offering that provides the innovation of open source as well as support from IBM.

The new software also supports Apache Tomcat, an industry standard Web server also from the Apache Software Foundation. WAS CE will also integrate IBM's Cloudscape database, based on the open-source Apache Derby Project.

There is no cost for customers to download and use WAS CE, IBM says. For those customers that desire technical support, IBM is introducing a line of WAS CE support services, starting at $900 per server for an annual subscription. Available support includes a new developer-to-developer support service that allows customers' development teams to obtain support directly from IBM developers to resolve certain business problems using WAS CE.

WAS CE will be available later this year, according to IBM.


reack 发表于:2005.10.27 13:57 ::分类: ( WebSphere ) ::阅读:(192167次) :: 评论 (711) :: 引用 (0)