码迷,mamicode.com
首页 >  
搜索关键字:bad elf interpreter    ( 6915个结果
Java 实现解释器(Interpreter)模式
/** * 声明一个抽象的解释操作 * @author stone * */ public interface Interpreter { public void interpret(Context context); //实际中,可以有个返回的类型,定义解释出的数据对象 } public class XmlSaxInterpreter implements Interpreter...
分类:编程语言   时间:2014-10-14 19:23:49    阅读次数:167
-bash: ./job.sh: /bin/sh^M: bad interpreter: 没有那个文件或目录
昨天在windows下用写字板写了个shell脚本,使用winscp上传到linux上运行的时候发现运行不了,提示-bash: ./job.sh: /bin/sh^M: bad interpreter: 没有那个文件或目录,经过查找资料发现原因如下: 1、dos格式的文本文件要转换为unix格式.....
分类:其他好文   时间:2014-10-13 09:14:39    阅读次数:175
部署 nagios nrdp 插件过程中遇到的问题总结
在ubuntu 14.04 系统探索部署 nagios nrdp 插件过程中,遇到如下问题? 测试 http: ip /nrdp/ 提交结果的页面中,总是报如下错误: -1 BAD COMMAND FILE -1 BAD CHECK RESULTS DIR “BAD COMMAND FILE” “BAD C...
分类:移动开发   时间:2014-10-13 02:03:59    阅读次数:629
Java设计模式菜鸟系列(二十)解释器模式建模与实现
解释器模式(Interpreter):它定义了对象与对象之间进行某种操作之后会得到什么值。一般主要应用在OOP开发中的编译器 的开发中,所以适用面比较窄。 解释器模式用来做各种各样的解释器,如正则表达式的解释器等等。...
分类:编程语言   时间:2014-10-12 17:41:48    阅读次数:220
bad URI(is not URI?)
网址中的汉字无法直接解析,需要先encode才行, 看报错说明irb(main):043:0> url="http://10.103.xx.xx/cms/api/module/data?name=资讯频道战略观察子频道&appkey=300&timestamp=1412997443&sign=72c...
分类:其他好文   时间:2014-10-11 15:07:55    阅读次数:306
__ext4_ext_check_block: bad header/extent in inode #8: invalid magic
FAT:Directorybread(block528150)failedFAT:Directorybread(block528151)failedEXT3-fserror(devicesda2):ext3_find_entry:readingdirectory#2offset0EXT3-fserror(devicesda2):ext3_find_entry:readingdirectory#2offset0FAT:Directorybread(block528144)failedFAT:Directoryb..
分类:其他好文   时间:2014-10-10 20:12:15    阅读次数:1730
S - Spring Security Bad Principal Exception
项目中配置了Spring Security,通过自定义的UserDetailsService实现loadUserByName方法能够查出用户的信息,在继续运行至DaoAuthorityXXX时,在UsernamePasswordToken时,报出Bad Principal异常,检查之后是因为 ...
分类:编程语言   时间:2014-10-10 15:17:24    阅读次数:177
编程获取linux的CPU使用率内存占用率
Linux下提供top、ps命令查看当前cpu、mem使用情况,简要介绍如下: 一、使用ps查看进程的资源占用 ps -aux 查看进程信息时,第三列就是CPU占用。 [root@localhost utx86]# ps -aux | grep my_process Warning: bad syntax, perhaps a bogus '-'? See /usr/sh...
分类:系统相关   时间:2014-10-09 16:54:58    阅读次数:479
google code jam -- bad horse
二分图解决这个问题的思路#include #include #include #include #include #include using namespace std;class Node{public:string name;vector adj;bool visited;int groupI...
分类:其他好文   时间:2014-10-08 01:24:14    阅读次数:298
Effective C++ 7
7.预先准备好内存不够的情况。 new在无法完成内存分配请求时,会抛出异常,异常了要怎么办,这是一个很现实且以后绝对要碰到的问题。 在c中一般使用宏来分配内存并检测分配是否成功,c++中类似以下函数: #define NEW(PTR,TYPE) try { (PTR) = new TYPE;} catch (std::bad_alloc& ){assert(0);}catc...
分类:编程语言   时间:2014-10-06 16:41:30    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!