waterye

#

显示文件

head: 显示文件内容的前几行
head -n 10 readme

tail: 显示文件内容的后几行
tail -n 10 readme

通过grep查找文件内容
cat readme | grep "intro"

posted @ 2007-03-26 20:52 waterye 阅读(571) | 评论 (0)编辑 收藏

wget

后台下载wget -c url -o log &
查看下载tail -f log

posted @ 2007-03-25 15:28 waterye 阅读(596) | 评论 (0)编辑 收藏

tar

压缩文件夹:   tar -czvf docs.tag.gz docs/
显示压缩包:   tar -tvf  docs.tar.gz
解压缩: tar -xzvf docs.tar.gz
解压缩到指定的目录: tar -xzvf docs.tar.gz -C /home/tmp/
解压部分文件: tar --wildcards -zxvf docs.tar.gz "*java*"

posted @ 2007-03-24 18:56 waterye 阅读(653) | 评论 (0)编辑 收藏

cygwin中文输入和中文显示

中文输入
在~\.inputrc,设置:
set meta-flag on
set convert-meta off
set output-meta on
set input-meta on
set completion-ignore-case on

中文显示
在~\.bashrc中,设置:
alias ls='ls --show-control-chars --color=auto'

 

posted @ 2007-03-24 13:37 waterye 阅读(6468) | 评论 (0)编辑 收藏

kill某些进程

ps -ef | grep 'str' |awk '{ print "kill -9 " $2 }' | sh

posted @ 2007-03-19 23:12 waterye 阅读(555) | 评论 (0)编辑 收藏

Solr

好久没有"光明正大的"玩玩新的开源框架了,因为是leader指定的,所以可以在工作时间专心学习.

Solr is an open source enterprise search server based on the Lucene Java search library, with XML/HTTP and JSON APIs, hit highlighting, faceted search, caching, replication, and a web administration interface. It runs in a Java servlet container such as Tomcat.

Solr has graduated from the Apache Incubator, and is now a sub-project of Lucene.

posted @ 2007-03-12 20:23 waterye 阅读(696) | 评论 (0)编辑 收藏

wap

上周换了新工作,主要做wap开发.由于还是采用java技术,基本上没有什么变化,只是前端的html变成wml而已.

posted @ 2007-03-10 23:37 waterye 阅读(446) | 评论 (0)编辑 收藏

试用TopLink JPA

     摘要: EJB3 -- TopLink JPA  阅读全文

posted @ 2006-05-30 21:15 waterye 阅读(3839) | 评论 (5)编辑 收藏

AjaxTags

The AJAX Tag Library is a set of JSP tags that simplify the use of Asynchronous JavaScript and XML (AJAX) technology in JavaServer Pages.

AjaxTag是通过一个Helper class(AjaxXmlBuilder)生成一段xml, 让客户端js(ResponseXmlParser)解析.

//  Get maker from your service bean
CarService service  =   new  CarService();
List list 
=  service.getModelsByMake(make);

return   new  AjaxXmlBuilder().addItems(list,  " model " " make " ).toString();


Latest Release: 1.2 beta2

下载ajaxtags-1.2-beta2.war, 在tomcat下deploy后即可看到各种tag的用法. 官方有详细的Install, Quick Start, Usage文档.

posted @ 2006-05-27 12:23 waterye 阅读(1402) | 评论 (2)编辑 收藏

DBMS_JOB

Oracle 9i没有DBMS_SCHEDULER可用, 只能用回DBMS_JOB
declare
    v_job_num 
NUMBER;
begin
  dbms_job.submit(v_job_num,
                  
'test;',
                  to_date(to_char(sysdate, 
'yyyy-mm-dd'|| ' 23:59:00''yyyy-mm-dd hh24:mi:ss'),
                  
'to_date(to_char(sysdate, ''yyyy-mm-dd'') || '' 23:59:00''''yyyy-mm-dd hh24:mi:ss'') + 1');
  
commit;
end;
/

参考: ora92_doc/server.920/a96521/jobq.htm#750

跟dbms_scheduler比起来, dbms_job有点弱智, 怪不得10g要放弃. in 10g, The DBMS_JOB package has been superseded by the DBMS_SCHEDULER package.

posted @ 2006-05-23 19:21 waterye 阅读(1483) | 评论 (0)编辑 收藏

仅列出标题
共18页: First 上一页 2 3 4 5 6 7 8 9 10 下一页 Last