模块的搜索路径:When a module namedspamis imported, the
interpreter searches for a file namedspam.pyin the current directory, and then
in the list of director...
分类:
编程语言 时间:
2014-05-26 15:09:11
阅读次数:
367
getActiveWorkbenchWindow 有如下声明
/**
* Returns the currently active window for this workbench (if any). Returns
* null if there is no active workbench window. Returns
* null if called from a non-...
建立ssh无验证连接
Check for SSH keys、
cd ~/.ssh
ls
Check the directory listing to see if you have a file named either id_rsa.pub or id_dsa.pub
检查有无产生过的key,一台机器只能创建一个。如果重新创建则前一个会被覆盖。
Generate a new SSH ...
分类:
其他好文 时间:
2014-05-22 18:33:48
阅读次数:
261
问题: 在Hadoop中,新建一个目录,报错了,提示mkdir: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory,该如何解决呢?...
分类:
其他好文 时间:
2014-05-22 11:31:11
阅读次数:
304
UTL_FILE 的用法UTL_FILE
是用来进行文件IO处理的专用包,使用这外包的注意事项如下:1. 生成的文件好象只能放置在DATABASE所在的服务器路径中.2.
生成的文件如何DOWNLOAD到本地来,还有待研究.Coding步骤:1. 注册文件输出路径 Create directory ...
分类:
其他好文 时间:
2014-05-22 04:41:00
阅读次数:
206
How to recursively count files in a linux
directory?find DIR_NAME -type f | wc -lfind DIR_NAME -type f -print | wc
-l查找包含alias字符串的*.conf的文件find / -nam...
分类:
系统相关 时间:
2014-05-22 03:52:45
阅读次数:
422
最近在帮用户做报表参考了很多Cognos Mobile上面的布局,但是有一些还是不知道怎么做出来的。后来发现这些Sample以及Report Spec都是可以找到的。
下载路径:IBMCognos Mobile Samples
因为Report Sepc保存的是报表的定义,所以我们可以用Cognos打开定义文件(xml格式)直接还原出报表,步骤如下:
1. 打开R...
分类:
其他好文 时间:
2014-05-21 12:21:27
阅读次数:
210
nagios监控设置monitor告警的用户名和密码默认在commands.cfg文件中定义:其中参数解释:Vimcommands.cfg文件:/usr/local/bin/sendEmail–fnagios@test.com–tyahoon@test.com–smail.test.com–u“fromnagios”–xunagios–xpp#3isoda–mhappy解释:-f表示发送者的邮箱-t表示?.
分类:
移动开发 时间:
2014-05-21 00:36:54
阅读次数:
333
yuminstallbind*一、修改下面配置文件vi/etc/named.confoptions{listen-onport53{192.168.100.210;};listen-on-v6port53{::1;};directory"/var/named";dump-file"/var/named/data/cache_dump.db";statistics-file"/var/named/data/named_stats.txt";memstatistics-file"/var/na..
分类:
其他好文 时间:
2014-05-20 22:07:44
阅读次数:
341
Nagios自定义报警时间遇到需要自定义检查和报警时间的,总结一下。大家集思广益,不断完善。常调用的模板配置文件:efineservice{namegeneric-service;定义一个服务名称active_checks_enabled1;Activeservicechecksareenabledpassive_checks_enabled1;Passiveservicechecksaree..
分类:
移动开发 时间:
2014-05-20 21:43:17
阅读次数:
496