Wordpress统计插件:FireStats
经过对比选择,决定使用FireStats做为统计插件,目前最新版本的FireStats已经支持中文,可以从官方网站http://firestats.cc下载。
安装很简单,只要将解压后的文件夹放到plugin目录下,然后在控制台的plugin菜单中激活即可。统计页面则是通过控制面板->FireStats进入。
sqlplus小窍门:生成html报告
通过设置markup html属性,可以将sqlplus的输出spool成html格式。
将如下脚本保存为html.sql
set markup HTML on
spool index.html
select * from test where rownum<11;
spool off
set markup HTML off
然后执行
NinGoo@windows>@html
sqlplus小窍门:还原session设置
sqlplus中有很多设置,可以通过set来更改,当然,更改只对当前session生效。
通过show all可以查看当前session的所有设置
sqlplus小窍门:执行操作系统命令
我们知道,在sqlplus中,可以使用!或者host来执行操作系统命令,但是在windows上,!是不能使用的。
NinGoo@windows>!hostname
SP2-0042: unknown command “!hostname” - rest of line ignored.
NinGoo@windows>host hostname
bepdg00726-xp
实际上,windows平台(还有其他如os/390,VMS)上,可以使用$来代替host
NinGoo@windows>$hostname
bepdg00726-xp
另外,host也好,$也好,命令中还可以使用变量替换
NinGoo@windows>define hostname=”time /t”
NinGoo@windows>host &&hostname
04:03 PM
NinGoo@windows>$&&hostname
04:04 PM