项目框架 SpringMVC+Hibernate 开发工具 Myeclipse10 报错代码(下图): 检查项目发现出现问题的原因:配置文件有问题,少配置了一个字段,下面红色注释部分。 <fields> a.id,a.title,a.author,a.content,a.source,...
分类:
编程语言 时间:
2014-07-22 08:28:36
阅读次数:
295
\* _你也可以去[Github](https://github.com/android-cn/android-open-project-analysis/tree/master/dagger)查看这片文章_ #### 简介 在开发程序的时候,会用到各种对象,很多对象在使用之前都需要进行初始化。例...
分类:
移动开发 时间:
2014-07-21 10:36:12
阅读次数:
309
时间: 2014-7-20 11:30地点: andon问题: 研究xu库文件的创建,编译-链接通过后,执行文件时./ProjectC ./ProjectC: error while loading shared libraries: libProjectC.so: cannot open s...
分类:
其他好文 时间:
2014-07-21 10:26:43
阅读次数:
167
windows使用gbx(gb2312,gbk,gb18030我也不知道是哪个)对文件名及文件路径进行编码保存。打开文件的函数中使用诸如open(filename.encode(‘gbk‘))可以很好的解决。 #coding:utf8
if __name__ == ‘__main__‘:
...
分类:
编程语言 时间:
2014-07-21 10:16:35
阅读次数:
285
CREATE TRIGGER open_all_pdbs AFTER STARTUP ON DATABASEBEGIN EXECUTE IMMEDIATE 'alter pluggable database all open';END open_all_pdbs;/alter plugg...
分类:
数据库 时间:
2014-07-21 10:01:55
阅读次数:
206
在Eclipse中开发android的应用程序时,有时想查看函数的内部实现,但是当在函数上点击ctrl和鼠标左键的时候,往往出现如下提示: Class File EditorSource not foundThe JAR of this class file belongs to container 'Android' which does not allow modifications to ...
分类:
移动开发 时间:
2014-07-20 11:42:00
阅读次数:
217
问题1:假设我们知道汉字编码范围是0x4E00到0x9FA5,怎么从十六进制的编码转成人类可读的字呢?
问题2:怎么把unicode编码的字写入文件呢,如果直接用open()的话,会提示UnicodeEncodeError: 'ascii' codec can't encode character u'\u4e00' in position 0: ordinal not in range(128...
分类:
编程语言 时间:
2014-07-20 10:46:08
阅读次数:
732
目的:利用shell脚本每小时检测数据库是否在运行,当检测到库宕掉时发邮件告警。
1.检查sendmail是否在运行
servicesendmailstatus
没有在运行则启动或安装。
如果是linux6,则检查postfix是否在运行servicepostfixstatus
2.pmon是oracle五大关键进程之一,如果pmon进..
分类:
其他好文 时间:
2014-07-20 10:36:28
阅读次数:
234
#!/bin/bash#初始化环境变量source.bash_profile#日志名中的固有日期格式f_name=`date+%Y%m%d`#日志的路径及名称log_file=/backup/db/rman/log/rman$f_name-0401.logecho$log_file#统计日志文件行数#line_num=`wc-l$log_file|awk‘{print$1}‘`#echo$line_num#如果日志文件不存在..
分类:
其他好文 时间:
2014-07-20 10:18:28
阅读次数:
304
---------------loop循环定义变量--------------------declare cursor c1 is select * from emp;# rec emp%rowtype;# i numeber:=1; # v_count number;begin# select count(*) into v_count from emp;#(1) open c1; loop...
分类:
数据库 时间:
2014-07-20 00:33:20
阅读次数:
334