#
head: 显示文件内容的前几行
head -n 10 readme
tail: 显示文件内容的后几行
tail -n 10 readme
通过grep查找文件内容
cat readme | grep "intro"
后台下载wget -c url -o log &
查看下载tail -f log
压缩文件夹: 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*"
中文输入
在~\.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'
ps -ef | grep 'str' |awk '{ print "kill -9 " $2 }' | sh
好久没有"光明正大的"玩玩新的开源框架了,因为是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.
上周换了新工作,主要做wap开发.由于还是采用java技术,基本上没有什么变化,只是前端的html变成wml而已.
摘要: EJB3 -- TopLink JPA
阅读全文
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文档.
Oracle 9i没有
DBMS_SCHEDULER可用, 只能用回
DBMS_JOBdeclare
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.