征服自己_百度空间
百度空间 | 百度首页 
 
文章列表
 
2010年01月08日 11:09
oracle 10g官方的快速版本,服务端才200多M
服务端:http://download.oracle.com/otn/nt/oracle10g/xe/10201/OracleXEUniv.exe
客户端:http://download.oracle.com/otn/nt/oracle10g/xe/10201/OracleXEClient.exe

系统管理员账号为system, 客户端为sqlplus

 
2010年01月04日 15:06

1。插件实现原理
所有的插件相关函数在wp-includes/plugin.php中。add_action只是add_filter的简单调用。
第一个参数tag并不是指具体的函数或者方法名,而是一些特定的脚本。
例如:
add_action('admin_head','test'); 将在wp-admin/admin-header.php中调用do_action('admin_head')
add_action('admin_footer','test'); 将在wp-admin/admin-footer.php中调用do_action('admin_footer')

do_action/apply_filters都是通过调用call_user_func_array函数来实现的。

 
2010年01月03日 13:29

转换unix timestamp 到一般的date format
date -d '1970-01-01 UTC xxxxxxxxxx seconds' +"%F %T"
显示当前的unix timestamp的时间
date +%s
例如:
# date
Thu Sep 20 18:02:28 CST 2007
# date
Thu Sep 20 18:02:40 CST 2007
# date +%s
1190282563
# date -d '1970-01-01 UTC 1190282563 seconds' +"%F %T"
2007-09-20 18:02:43

今天的2.14,正好是1234567890
date -d @1234567890
perl -e 'print scalar localtime(1234567890),"

 
2010年01月03日 12:05

The Subversion Command-Line Client: svn

To use the command-line client, type svn, the subcommand you wish to use, [58] and any options or targets that you wish to operate on—the subcommand and the opti

 
2010年01月03日 12:04

Versioned Properties

These are the versioned properties that Subversion reserves for its own use:

svn:executable

If present on a file, the client will make the file executable in Unix-hosted working copies. See

 
2010年01月03日 11:30

http://www.diybl.com/course/4_webprogram/jsp/jsp_js/20090410/164795.html

6.2 新增文件的属性设置?

Whodo SVN 的 Hooks 脚本会检查新增文件的属性,没有设置 svn:mime-type 和/或 svn:eol-style 属性,禁止提交。

但是每次添加文件后,还要执行类似“svn ps svn:eol-style ...”的命令,实在太繁琐了!不过幸好,SVN 客户端(命令行或者 TortoiseSVN),支持自动属性的功能。即会为新增文件自动

 
2010年01月03日 04:45

1。所有人都使用开发服务器的数据库而不是自己另起炉灶弄一个库,这样可以避免配置文件的差异引发更新混乱,另一个好处是数据库结构变动时大家能都知道,SVN不能管理数据库结构的变化。

2。配置好svn忽略文件,以免提交一些不必要的非版本化文件,主要是程序运行时生成文件:临时文件,日志文件,缓存文件。查看的时候更清楚,不必列出一大堆的问号。
当需要保持一些目录结构而忽略其下的所有文件和目录时,设置忽略*即可,这个包括子目录也被忽略。
例如:缓存目录,临时目录
svn ps svn:ignore * cache

 
2010年01月01日 09:52
 
2009年12月31日 15:18

服务器为redhat企业版,但是当成centos来使用。所以需要下载redhat的yum文件,而centos的则不行。http://yum.pgsqlrpms.org/reporpms/repoview/letter_p.group.html

yum install postgresql-server postgresql
安装完成后还有一个必须的步骤: 初始化数据目录。由于postgresql是以postgres用户运行的,目录的属主必须指定为postgres。默认的数据目录是/var/lib/pgsql/data,如果不是则需要用-D参数指定。

首先

 
2009年12月31日 05:26

postgresql的自增列和mysql不一样。不同于mysql,如果手动插入不连续的值,则不会从最大的值自增。

insert into test values (1) ,(3)
mysql将不会有2, 后面的自增值将从4开始,而postgresql则从2开始自增,遇到3时报错如果是非唯一索引列的话。

自增列类型为serial
id serial

 
     
 
 
文章分类
 
 
 
Php(47)
 
Mysql(40)
 
 
Css(10)
 
 
 
 
Vim(19)
 
Sed(4)
 
Awk(6)
 
 
 
Svn(9)
 
 
生活(12)
 
 
 
Ooad(2)
 
 
 
 
 
 
 
 
 
Lua(1)
 
 
 
 
 
 
Linux(18)
 
 
 
Gis(1)
 
 
 
Ruby(1)
 
 
 
 
     
 
编程语言
 
 
 
 
 
 
 
 
 
 
     
 
freebsd
 
     
 
sql
 
     
 
shell
 
     
 
收藏网址
 
     


©2010 Baidu