码迷,mamicode.com
首页 >  
搜索关键字:fail    ( 3112个结果
java中的枚举类型
publicclassEnumTest02{ //入口 publicstaticvoidmain(String[]args){ inta=10; intb=0; ResultretValue=divide(a,b); if(retValue==Result.SUCCESS){ System.out.println("成功"); }elseif(retValue==Result.FAIL){ System.out.println("失败");..
分类:编程语言   时间:2015-06-17 01:58:53    阅读次数:125
Nginx 负载均衡
负载均衡vim /etc/nginx/nginx.conf 添加:upstream webservers { ip_hash; server 192.168.1.201 weight=1 max_fails=2 fail_timeout=2; server ...
分类:其他好文   时间:2015-06-12 00:37:15    阅读次数:171
Android CTS测试Fail项修改总结(四)
Android5.1上的测试 1、android.security.cts.SELinuxDomainTest# testInitDomain fail 打印的log junit.framework.AssertionFailedError: Expected 1 process in SELinux domain "u:r:init:s0" Found "[ pid: "1" pro...
分类:移动开发   时间:2015-06-11 19:27:39    阅读次数:201
基于am3358的led跑马灯测试
#include #include #include #include static int fb; int main() { int i=0; printf("hello world !\n"); fb = open("/dev/led", O_RDWR);//打开设备 if (fb < 0) { perror("open device leds fail...
分类:其他好文   时间:2015-06-10 12:21:04    阅读次数:138
基于am3358的蜂鸣器测试
#include #include #include #include static int fb; int main() { int i=0; printf("hello world !\n"); fb = open("/dev/beep", O_RDWR); if (fb < 0) { perror("open device beep fail"); ...
分类:其他好文   时间:2015-06-10 12:19:48    阅读次数:115
Cannot invoke Tomcat manager: FAIL
部署的时候出现: Cannot invoke Tomcat manager: FAIL - Context /HDInformationSer is defined in server.xml and may not be undeployed 或者? Failed to execute goal org.codehaus.mojo:tomcat-maven-plug...
分类:其他好文   时间:2015-06-08 11:51:25    阅读次数:148
BZOJ 1355: [Baltic2009]Radio Transmission( kmp )
自己YY一下可以发现answer = n - fail[ n ]-----------------------------------------------------------------------------------#include#include#include#include#de...
分类:其他好文   时间:2015-06-07 18:50:42    阅读次数:113
NOI2011阿狸的打字机(fail树+DFS序)
Description阿狸喜欢收藏各种稀奇古怪的东西,最近他淘到一台老式的打字机。打字机上只有28个按键,分别印有26个小写英文字母和'B'、'P'两个字母。 经阿狸研究发现,这个打字机是这样工作的:l 输入小写字母,打字机的一个凹槽中会加入这个字母(这个字母加在凹槽的最后)。l 按一下印有'B'的...
分类:其他好文   时间:2015-06-07 12:23:33    阅读次数:165
LinkedList: 详细介绍(源码解析)和使用示例 [From skywang12345]
概要前面,我们已经学习了ArrayList,并了解了fail-fast机制。这一章我们接着学习List的实现类——LinkedList。 和学习ArrayList一样,接下来呢,我们先对LinkedList有个整体认识,然后再学习它的源码;最后再通过实例来学会使用LinkedList。内容包括: 第...
分类:其他好文   时间:2015-06-05 07:39:02    阅读次数:140
mysql函数二
四、条件判断函数 1、if(expr,v1,v2)函数:成立返回结果v1,否则结果v2 例:select id,if(grade>=60,'pass','fail') from t; 2、IFNULL(V1,V2)函数:如果空显示v2,否则显示v1 例:mysql> select a,ifnull(a,'no') from pet76; +------+----------------+ | a ...
分类:数据库   时间:2015-06-02 18:00:57    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!