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
负载均衡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
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
#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
#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 - 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
自己YY一下可以发现answer = n - fail[ n ]-----------------------------------------------------------------------------------#include#include#include#include#de...
分类:
其他好文 时间:
2015-06-07 18:50:42
阅读次数:
113
Description阿狸喜欢收藏各种稀奇古怪的东西,最近他淘到一台老式的打字机。打字机上只有28个按键,分别印有26个小写英文字母和'B'、'P'两个字母。 经阿狸研究发现,这个打字机是这样工作的:l 输入小写字母,打字机的一个凹槽中会加入这个字母(这个字母加在凹槽的最后)。l 按一下印有'B'的...
分类:
其他好文 时间:
2015-06-07 12:23:33
阅读次数:
165
概要前面,我们已经学习了ArrayList,并了解了fail-fast机制。这一章我们接着学习List的实现类——LinkedList。 和学习ArrayList一样,接下来呢,我们先对LinkedList有个整体认识,然后再学习它的源码;最后再通过实例来学会使用LinkedList。内容包括: 第...
分类:
其他好文 时间:
2015-06-05 07:39:02
阅读次数:
140
四、条件判断函数
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