ann
冰是没有未来的,因为它的永恒
posts - 107,comments - 34,trackbacks - 0
     摘要: 1. 安装vnc
rpm -ivh vnc-server-4.1.2-14.el5_3.1.i386.rpm
rpm -ivh vnc-4.1.2-14.el5_3.1.i386.rpm


3. 设置vnc server的访问密码
[ann@ecdev1 ~]# vncpasswd

3. 执行vncserver,第一次执行后会生产一些配置文件

4. 修改/home/ann/.vnc/xstart(如果无此文件,就运行vncserver)
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xsta  阅读全文
posted @ 2010-05-19 09:49 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要: I tried the Build and Deployment tool in Commerce version 7. I followed the tutorial for the same found here:
http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.developer.doc/concepts/cdewcbdbuild.htm

When I start the build process it extracts the projects from the CVS successfully, but while buildingarchiving the ejb jar the build fails with the following error:
java.io.IOException: Cannot run program "D:\Programs\RAD75\SDP\runtimes\base_v7\java\jre\b  阅读全文
posted @ 2010-05-17 10:56 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要:

SQL like子句的另一种实现方法,速度比like快


一般来说使用模糊查询,大家都会想到LIKE
select * from table where a like '%字符%'

如果一个SQL语句中用多个 like模糊查询,并且记录条数很大,那速度一定会很慢。
下面两种方法也可实现模糊查询:
select * from table where patindex('%字符%',a)>0
select * from table where charindex('字符',a)>0
经测试这两种方法比LIKE速度要快。

  阅读全文
posted @ 2010-05-04 12:58 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要: #!/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#################################
# application: test
# DFILE : pid file
# GDIR : application webapp
# LOGDIR : logs dir
######################
NAME=et-play
TestDIR="/data/webapps/play/test"
GDIR="${TestDIR}/test"
PIDFILE="${TestDIR}/${NAME}.pid"
LOGDIR="${GDIR}/logs"
APP_USER=test
# Timeout in seconds for the shutdown of webapps
APP_SHUTDOWN=30 <  阅读全文
posted @ 2010-03-19 13:22 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要: 1.备份表中的数据


D:\Program Files\PostgreSQL-8.3.7\bin\pg_dump.exe -h *.*.*.* -p 5432 -U username -F c -v -f "D:\Program Files\PostgreSQL-8.3.7\bin\sss.backup" -t "\"public\".\"tablename\"" databasename

2. 创建表

CREATE TABLE tablename
(
id bigint,
createtime timestamp without time zone,
modifyname character varying(255),
modify_date timestamp without time zone,
modify_detail character varying(100000),
"name" character varying(255  阅读全文
posted @ 2010-03-11 10:02 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要: 一.linux 监控数据库活动
$ ps auxww | grep ^postgres

postgres 3424 0.0 1.2 42708 26588 ? Ss Jan29 0:00 postgres: writer process
postgres 3425 0.0 0.0 42576 1284 ? Ss Jan29 0:00 postgres: wal writer process
postgres 3426 0.0 0.0 43364 1972 ? Ss J  阅读全文
posted @ 2010-02-09 15:30 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要: 1、对于第一种重复,比较容易解决,使用

select distinct * from tableName

  就可以得到无重复记录的结果集。

   如果该表需要删除重复的记录(重复记录保留1条),可以按以下方法删除

select distinct * into #Tmp from tableName
drop table tableName
select * into tableName from #Tmp
drop table #Tmp


  阅读全文
posted @ 2010-02-08 16:22 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要: Well, there's second places I set the proxy on a new Linux install.
1) in /etc/profile:
code:


export http_proxy="http://user:pass@xxx.xxx.xxx.xxx:port/"
export ftp_proxy="http://user:pass@xxx.xxx.xxx.xxx:port/"

2) in /etc/apt/apt.conf
code:

Acquire::http::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";
Acquire::ftp::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";


  阅读全文
posted @ 2010-02-02 15:16 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要: Add the following line to either /etc/apt/apt.conf or /etc/apt/apt.conf.d/70debconf
code:

APT::Cache-Limit 50000000;
  阅读全文
posted @ 2010-02-02 15:13 冰是没有未来的,因为它的永恒| 编辑 收藏
     摘要:
1. 用命令行创建新的project
#>: play new test

输入 test(会有What is the application name?提示)
注:一定要输入test 否则在导入到eclipse中就要手动改配置文件

2. 导入eclipse
>play eclipsify test
打开eclipse 在import 就ok了.

如果在创建project时候未输入test。
就要手动修改test.launch文件,也就是查找,得出 E:"project"eclipse"play1 ,然后把文件中所有的E:"project"eclipse"play1替换为test
修改前:

posted @ 2010-02-01 13:38 冰是没有未来的,因为它的永恒| 编辑 收藏

当下,把心放下 放下如果是可能的,那一定是在当下,
不在过去,也不在未来。
当下放下。唯有活在当下,你的问题才能放下。