combobox中有1,2,3三个item第1次选择1,四个事件都触发了,当我再次选择1时,4没出现,3,2,1均出现 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { Messa...
                            
                            
                                分类:
其他好文   时间:
2014-07-09 14:30:24   
                                阅读次数:
452
                             
                    
                        
                            
                            
                                小谷童鞋休息了好几天,终于又开始学习了.今天学的是Jquery,先来看看神马是jQuery?
JQuery is designed to change the way that you write JavaScript.
The focus of jQuery is "find some elements, do something with them".
write less,do m...
                            
                            
                                分类:
Web程序   时间:
2014-07-09 12:48:41   
                                阅读次数:
221
                             
                    
                        
                            
                            
                                HDU 3537 Daizhenyang's Coin(博弈-sg)
题目大意:
有一排硬币,告诉 你n个正面朝上的硬币的位置,你可以选择任意位置的1~3个硬币翻转一下,但是问你先手是否会输。
解题思路:
通过求sg发现规律
sg  1 2 4 7 8 11 13 14
  x   0 1 2 3 4  5   6    7
找到规律,sg[x],如果x的二进制1的个数为奇数,sg[x]=2*x ,否则 sg[x]=2*x+1;
然后把各个Sg的值异或最终就是答案...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 20:25:49   
                                阅读次数:
149
                             
                    
                        
                            
                            
                                Daizhenyang's Coin
Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 320    Accepted Submission(s): 146
Problem Description
We know that...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 17:58:15   
                                阅读次数:
251
                             
                    
                        
                            
                            
                                fillInStackTrace 方法的作用就是一追可以追溯到栈的底部。
转载一个测试类:
package com.exception;
/**
 * Created with IntelliJ IDEA.
 * User: 菜鸟大明
 * Date: 14-7-7
 * Time: 下午10:42
 * To change this template use File | Settin...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 17:47:01   
                                阅读次数:
265
                             
                    
                        
                            
                            
                                Method 1: Add one list into the other list.
For example, if list1is {22, 33, 44, 55} and  list2 is {66, 77, 88, 99},then append(list1, list2)will change list1to {22, 33, 44, 55, 44, 66, 77, 88, 99}.
...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 16:18:22   
                                阅读次数:
196
                             
                    
                        
                            
                            
                                情景:在一台真机中运行项目。
提示:Could not change executable permissions on the application.
解决:真机中已经有一个同名的应用。bundle identifier 一样。删掉那个应用就可以了。
参考:http://stackoverflow.com/questions/12547706/could-not-change-execu...
                            
                            
                                分类:
移动开发   时间:
2014-07-08 14:22:34   
                                阅读次数:
289
                             
                    
                        
                            
                            
                                change http port into other number
                            
                            
                                分类:
其他好文   时间:
2014-07-08 12:37:51   
                                阅读次数:
285
                             
                    
                        
                            
                            
                                1. Block Change Tracking 启用块修改跟踪特性,0级的增量备份肯定还得扫描所有数据文件,不过其后依赖这一0级备份集创建的增量备份就可以通过块修改跟踪文件来获取修改过的块了。 修改跟踪文件是基于整个数据库的,如果使用了OMF,该文件创建于DB_CREATE_FILE_DEST参数...
                            
                            
                                分类:
其他好文   时间:
2014-07-06 20:14:04   
                                阅读次数:
175
                             
                    
                        
                            
                            
                                通过下面这段代码可以抓取到change的事件源,从而判断出是哪个属性字段触发的事件,
function change(pContext)
{var fieldName=pContext.getEventSource().getName(); }
在字段的事件设置中需要将下框中复选框的勾勾上,更多的信息可参见SDK。...
                            
                            
                                分类:
编程语言   时间:
2014-07-05 11:10:28   
                                阅读次数:
322