方式1. 构造函数绑定function A() { this.am = "aaa"; this.af = function() { console.log("aaafff"); }}function B() { A.call(this, arguments);//A.apply(thi...
分类:
编程语言 时间:
2014-11-13 18:07:24
阅读次数:
150
一、启动activity:$ adb shell$ am start -n {包名}/{包名}.{活动名称}如:启动一个名叫MainActivity的活动# am start -n com.example.test/com.example.test.MainActivity二、启动service.....
分类:
数据库 时间:
2014-11-13 00:18:00
阅读次数:
365
问:
As the title implies, I am using AFNetworking in an iOS project in which the application talks to a server. When the user signs in, the server responds by sending back a success flag and the res...
分类:
Web程序 时间:
2014-11-12 23:04:36
阅读次数:
278
git branch 查看本地所有分支 git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支 git branch -r 查看本地所有分支 git commit -am "init" 提交并且加注释 git remote add origin git@192.16...
分类:
其他好文 时间:
2014-11-12 13:55:53
阅读次数:
146
I am doing something about convolving images in Python and for sake of speed I chose opencv 2.4.9.Opencv offers a way calledfilter2Dto do this and her...
分类:
其他好文 时间:
2014-11-11 18:42:55
阅读次数:
291
adb shell am命令是在cmd命令行可以通过命令来启动Activity,Boradcast,Service等,更多使用可以参考下面附件.比如在cmd串口我们发送广播,广播action是"com.cmcc.media.bufferring" ,并且带key是"url",value是"http:...
分类:
数据库 时间:
2014-11-11 17:58:15
阅读次数:
183
Day1
T1
这个题其实就是考你会不会编程。
T2
题目有坑点,说n个点的无向图上有n-1条边,很明显这是棵树。
因为是树,所以我们没必要跑最短路,而且世界上还没这么快的最短路算法能A掉这个题。
下面是ydc的思路
考虑距离为2的点对,可以理解为枚举i,i能走到的点集两两之间距离为2
我们要做的是对于一个数组a1,a2,a3,…,am,要求aiaj,i≠j的Σ与max
...
分类:
其他好文 时间:
2014-11-09 19:35:33
阅读次数:
252
敏捷建模(Agile Modeling,AM)的价值观包括了XP(Extreme Programming:极限编程)的四个价值观:沟通、简单、反馈、勇气,此外,还扩展了第五个价值观:谦逊。
敏捷开发是针对传统的瀑布开发模式的弊端而产生的一种新的开发模式,目标是提高开发效率和响应能力。除了原则和实践,模式也是很重要的,多研究模式及其应用可以使你更深层次的理解敏捷开发。
沟通
建模不但能...
分类:
其他好文 时间:
2014-11-08 09:18:08
阅读次数:
219
第一步 检查系统的状态1.1 使用sar来检查操作系统是否存在IO问题#sar -u 2 10 — 即每隔2秒检察一次,共执行20次。 [root@CacheMemCache tester]# sar -u 2 1010:51:22 AM CPU %user %nice ...
分类:
数据库 时间:
2014-11-06 14:36:47
阅读次数:
358
以WordCount程序为例,假设有三台DataNode,每台DataNode有不一样的数据,如下表格所示:DataNode1DataNode2DataNode3who are you arewho am i arewho is he am经过Map函数后,生成以下键值对:DataNode1Data...
分类:
其他好文 时间:
2014-11-06 10:42:02
阅读次数:
195