首页 > 其他
weibo sdk Multiple dex files define Lcom/sina/weibo/sdk/BuildConfig
集成新浪微博SDK,用gradle编译时,报如下错误:UNEXPECTED TOP-LEVEL EXCEPTION:com.android.dex.DexException: Multiple dex files define Lcom/sina/weibo/sdk/BuildConfig;at.....
分类:其他   时间:2015-06-10 22:14:14    收藏:0  评论:0  赞:0  阅读:226
读入再优化
读入再优化:读入优化2.0
分类:其他   时间:2015-06-10 22:14:04    收藏:0  评论:0  赞:0  阅读:192
解决Item控件抢占焦点
http://www.imooc.com/learn/372在抢占焦点的控件加上方法一: android:focusable="false" 方法二: 在外界布局上 android:descendantFocusability="blocksDescendants"原因参考android.w...
分类:其他   时间:2015-06-10 22:13:54    收藏:0  评论:0  赞:0  阅读:158
服务问题调查
现象: 1 fastcgi load的http服务,在每次有请求打过来时,都会出现segment fault异常退出 dmesg查看如下:[2413269.761926] initSession[22470]: segfault at 67581fe9 ip 00000000080958cf s.....
分类:其他   时间:2015-06-10 22:13:35    收藏:0  评论:0  赞:0  阅读:217
Action的执行
异步Action的定义 两种异步Action方法的定义 xxxAsync/xxxCompleted 这种形式的异步只能定义在实现了AsyncController的Controller中.针对Task的异步没有这个限制 可以将异步操作实现在X xxAsync 方法中,而将最终内容的响应实现在XxxCo...
分类:其他   时间:2015-06-10 22:13:14    收藏:0  评论:0  赞:0  阅读:305
HDU 1013 Digital Roots
算法爱好者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:13:04    收藏:0  评论:0  赞:0  阅读:222
Git 操作
全部设置完毕,以后更新时候的操作:git statusgit add .gitcommit –m "new natter " //对你更新或修改了哪些内容做一个描述。git remote -v //查看你当前项目远程连接的是哪个仓库地址。git push -u origin master //将本地...
分类:其他   时间:2015-06-10 22:12:55    收藏:0  评论:0  赞:0  阅读:288
Excel Sheet Column Number
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:24    收藏:0  评论:0  赞:0  阅读:198
关于OnGlobalLayoutListener
我们知道在oncreate中View.getWidth和View.getHeight无法获得一个view的高度和宽度,这是因为View组件布局要在onResume回调后完成。所以现在需要使用getViewTreeObserver().addOnGlobalLayoutListener()来获得宽度或...
分类:其他   时间:2015-06-10 22:12:04    收藏:0  评论:0  赞:0  阅读:247
IE下onchange事件不立即执行
做前端开发免不了为浏览器的兼容而劳神,所以坚持把发现的浏览器兼容问题做做总结,是很有意义的。比如IE8及以下的浏览器的onchange事件实在该控件失去焦点之后才执行的,也就是要点一下空白的地方,才能执行。解决办法很简单,改成onclick事件就好了。来看个例子: 点这里选择勾选在IE8及以下...
分类:其他   时间:2015-06-10 22:11:35    收藏:0  评论:0  赞:0  阅读:138
[FZYZOJ 2108] 连接网络
[FZYZOJ 2108] 连接网络 题解
分类:其他   时间:2015-06-10 22:11:26    收藏:0  评论:0  赞:0  阅读:309
DataGrid 如何得到DataGridRow 和DataGridCell 对象
第一行为不可编辑DataGridRowrow=(DataGridRow)dataGrid1.ItemContainerGenerator.ContainerFromIndex(0);if(row==null){dataGrid1.UpdateLayout();row=(DataGridRow)dat...
分类:其他   时间:2015-06-10 22:11:05    收藏:0  评论:0  赞:0  阅读:252
与和或的优先级问题
事实上与的优先级要大于或,可以举个例子 #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:10:44    收藏:0  评论:0  赞:0  阅读:152
事件分发机制
事件分发机制尊重原创:http://cn.cocos2d-x.org/tutorial/show?id=2154什么是事件分发机制EventDispatch是响应用户事件的一种机制。基本概念:事件监听器封装了事件处理的代码;事件调度器通知用户事件的监听器;事件对象包含了关于事件的信息。事件监听器的5...
分类:其他   时间:2015-06-10 22:10:14    收藏:0  评论:0  赞:0  阅读:252
Two Sum
1. Question给一整数数组,找两个数,使其和正好是给定值。函数 twoSum应当返回两个数的索引,且index1小于index2。索引不是从0开始的。假设每个输入都正好有一个解。Given an array of integers, find two numbers such that th...
分类:其他   时间:2015-06-10 22:08:24    收藏:0  评论:0  赞:0  阅读:236
为品牌管理增加检索名称和状态项
为品牌管理增加检索名称和状态项 如果你的品牌数量很多,不好管理,并且想在网站前台只显示被激活的品牌,则本扩充功能可以实现您的想法。 ? Key Features: 1. Filter manufacturers by name or status; 2. Show...
分类:其他   时间:2015-06-10 21:06:04    收藏:0  评论:0  赞:0  阅读:256
luaJIT FFI Library
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:05:55    收藏:0  评论:0  赞:0  阅读:290
Leetcode[19]-Remove Nth Node From End of List
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:04:34    收藏:0  评论:0  赞:0  阅读:251
HDU 1532Drainage Ditches(最大流模板题 ISAP)
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:04:24    收藏:0  评论:0  赞:0  阅读:350
resin-4 启动多个实例
不废话了,直接上代码 -Xmx512m -Xms512m -verbosegc -Xmx512m -Xms512m -verbosegc ...
分类:其他   时间:2015-06-10 21:04:14    收藏:0  评论:0  赞:0  阅读:503
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!