http://www.imooc.com/learn/372在抢占焦点的控件加上方法一: android:focusable="false" 方法二: 在外界布局上 android:descendantFocusability="blocksDescendants"原因参考android.w...
分类:
其他好文 时间:
2015-06-10 22:15:37
阅读次数:
107
现象: 1 fastcgi load的http服务,在每次有请求打过来时,都会出现segment fault异常退出 dmesg查看如下:[2413269.761926] initSession[22470]: segfault at 67581fe9 ip 00000000080958cf s.....
分类:
其他好文 时间:
2015-06-10 22:16:03
阅读次数:
179
异步Action的定义 两种异步Action方法的定义 xxxAsync/xxxCompleted 这种形式的异步只能定义在实现了AsyncController的Controller中.针对Task的异步没有这个限制 可以将异步操作实现在X xxAsync 方法中,而将最终内容的响应实现在XxxCo...
分类:
其他好文 时间:
2015-06-10 22:14:27
阅读次数:
284
算法爱好者HDU 1013 Digital RootsDigital RootsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 29353Accep...
分类:
其他好文 时间:
2015-06-10 22:14:16
阅读次数:
119
全部设置完毕,以后更新时候的操作:git statusgit add .gitcommit –m "new natter " //对你更新或修改了哪些内容做一个描述。git remote -v //查看你当前项目远程连接的是哪个仓库地址。git push -u origin master //将本地...
分类:
其他好文 时间:
2015-06-10 22:12:59
阅读次数:
109
1 class Solution { 2 public: 3 int titleToNumber(string s) { 4 int n=s.size(),i; 5 int ans=0; 6 for(i=0;i<n;i++) 7 ...
分类:
其他好文 时间:
2015-06-10 22:12:34
阅读次数:
103
我们知道在oncreate中View.getWidth和View.getHeight无法获得一个view的高度和宽度,这是因为View组件布局要在onResume回调后完成。所以现在需要使用getViewTreeObserver().addOnGlobalLayoutListener()来获得宽度或...
分类:
其他好文 时间:
2015-06-10 22:13:51
阅读次数:
108
做前端开发免不了为浏览器的兼容而劳神,所以坚持把发现的浏览器兼容问题做做总结,是很有意义的。比如IE8及以下的浏览器的onchange事件实在该控件失去焦点之后才执行的,也就是要点一下空白的地方,才能执行。解决办法很简单,改成onclick事件就好了。来看个例子: 点这里选择勾选在IE8及以下...
分类:
其他好文 时间:
2015-06-10 22:11:51
阅读次数:
113
第一行为不可编辑DataGridRowrow=(DataGridRow)dataGrid1.ItemContainerGenerator.ContainerFromIndex(0);if(row==null){dataGrid1.UpdateLayout();row=(DataGridRow)dat...
分类:
其他好文 时间:
2015-06-10 22:13:37
阅读次数:
137
事实上与的优先级要大于或,可以举个例子 #include void main() { int a = 0,b = 1,c = 2; if(c>0 || b>0 && a>0) printf("this is a C program.\n"); }上面这个程序输出的是 this is a C p...
分类:
其他好文 时间:
2015-06-10 22:12:26
阅读次数:
134
事件分发机制尊重原创:http://cn.cocos2d-x.org/tutorial/show?id=2154什么是事件分发机制EventDispatch是响应用户事件的一种机制。基本概念:事件监听器封装了事件处理的代码;事件调度器通知用户事件的监听器;事件对象包含了关于事件的信息。事件监听器的5...
分类:
其他好文 时间:
2015-06-10 22:13:23
阅读次数:
127
1. Question给一整数数组,找两个数,使其和正好是给定值。函数 twoSum应当返回两个数的索引,且index1小于index2。索引不是从0开始的。假设每个输入都正好有一个解。Given an array of integers, find two numbers such that th...
分类:
其他好文 时间:
2015-06-10 22:11:08
阅读次数:
152
为品牌管理增加检索名称和状态项 如果你的品牌数量很多,不好管理,并且想在网站前台只显示被激活的品牌,则本扩充功能可以实现您的想法。 ? Key Features: 1. Filter manufacturers by name or status; 2. Show...
分类:
其他好文 时间:
2015-06-10 21:06:24
阅读次数:
159
LuaJIT FFI Library ? The FFI library allows?calling external C?functions?and?using C?data structures?from pure Lua code. The FFI library largely obviates the need to write tedious manual Lua...
分类:
其他好文 时间:
2015-06-10 21:08:36
阅读次数:
222
Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked l...
分类:
其他好文 时间:
2015-06-10 21:07:28
阅读次数:
174
Drainage Ditches
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 11306 Accepted Submission(s): 5328
Problem Description
Every time i...
分类:
其他好文 时间:
2015-06-10 21:07:23
阅读次数:
253