1.Shell判断文件是否存在 #!/bin/sh myPath="/var/log/httpd/" myFile="/var /log/httpd/access.log" # 这里的-x 参数判断$myPath是否存在并且是否具有可执行权限 if [ ! -x "$myPath" ]; then mkdir "$myPath" fi # 这里的-d 参数判断$myPath是否存在 if [ ! -d "$myPath" ]; then mkdir "$myPath" fi # 这里的-f参数判断$myFile是否存在 if [ ! -f "$myFile" ]; then touch "$…
2013-08-03 17:54 · OTHER · other
1.安装Opera浏览器 # cd /usr/ports/www/opera # make install clean 要安装linux版本的opera,将上面例子中的opera改为linux-opera即可。 flash插件安装 # cd /usr/ports/www/linux-f10-flashplugin11 # make install clean # cd /usr/ports/www/opera-linuxplugins # make install clean 当linux-f10-flashplugin11文件下载失败时更新完Ports后重试。 更新Ports # port…
2013-03-04 13:45 · Freebsd · FreeBSD
报Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx错误 就是少了org.springframework.transaction-3.0.0.M3.jar包; 而Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframew…
2013-02-25 19:22 · JAVA · Spring
//tabs //获取tabs的个数 var lens = $('#tests').tabs('tabs').length; //获取tabs的标题 var title = $('#tests').tabs('tabs')[lens-1].panel('options').title; //DataGrid ... ...//引用文件 <script> $(function(){ var jsdata = '{"total":239,"rows":[{"code":"101"}]}'; var data = $.parseJSON(jsdata); $('#tests').datagrid(…
2013-01-25 11:52 · Javascript · jQuery