ping指定包大小的命令格式(windowslinuxvxworks)在工作过程中有两种情况需要考虑测试网络传输情况:客户端的响应比较慢,但服务端的业务处理时间并不慢;不同服务器之间的响应慢,但各个服务端的业务处理也不慢。有以上情况我们需要怀疑是网络传输慢导致,此时我们需要尝试ping..
分类:
其他好文 时间:
2015-02-13 11:46:09
阅读次数:
392
百度之殇,重搜索缺失
前两天在和一个在百度代理商工作的朋友喝茶,期间聊到移动互联网对传统搜索引擎流量的冲击。其开始颇为不以为然,“即使在移动互联网时代,百度仍是手机端的第一搜索引擎呀,外面平时在外面遇到问题还不会想到拿出手机,百度一下?”
可是他不明白的,问题就出在这儿。就像百度一直以来的Slogan “百度一下,你就知道”一样,百度所解决的问题,在移动互联网时代越 来越被局限在 “...
分类:
其他好文 时间:
2015-02-13 11:46:01
阅读次数:
148
Parcel其翻译为“包袱”、“包裹”。在Android系统中Binder进程间通信(IPC)中经常使用到Parcel类对象来实现客户端和服务端的数据交互,而AIDL技术也是通过Parcel来实现交互。
查阅Android源码Parcel类,其中常用方法有
obtain() 获得一个新的parcel对象,相当于java中new一个对象
dataSize() 得到当前parcel对象的...
分类:
其他好文 时间:
2015-02-13 11:44:50
阅读次数:
257
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3...
分类:
其他好文 时间:
2015-02-13 11:44:24
阅读次数:
127
今天我们要讨论的设计模式与前面提到的状态模式非常相似,他们不能的地方:状态模式是每个具体的状态处理自己状态的事务,若非自己状态处理的数据则将状态移动到一下一个具体状态类处理;而职责链则是根据自己的职责完成本职工作,若不能完成则判断是否已经关联了下一个环节职责,若存在则调用下一环节的处理。他们两个一个是在具体类中已经设定了下一环节,而另外一个则是在客户端先设定好职责链。
什么是职责链模...
分类:
其他好文 时间:
2015-02-13 11:42:57
阅读次数:
130
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
Intersection of Two Linked Lists
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked...
分类:
其他好文 时间:
2015-02-13 11:42:29
阅读次数:
138
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
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-...
分类:
其他好文 时间:
2015-02-13 11:43:14
阅读次数:
113
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
...
分类:
其他好文 时间:
2015-02-13 11:44:15
阅读次数:
119
#include
#include
#include
using namespace std;
void ProcessSignal(const char* data, int size)
{
LOG(ERROR) << __func__ << ":Error..." << std::string(data,size);
}
int main(int argc, cha...
分类:
其他好文 时间:
2015-02-13 11:42:22
阅读次数:
131
除了比较火的xutils butterknife注解框架外,google官方已经开始在support 包的 19.1版本中中加入自己的注解了,这个一个内部测试版本。
使用gradle把这句添加到你的项目中:
compile 'com.android.support:support-annotations:20.0.0'
我们先来看看基本的三种类型:
Nullness R...
分类:
其他好文 时间:
2015-02-13 11:40:22
阅读次数:
142
昂贵的聘礼
Description
年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:"嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币。如果你能够弄来他的水晶球,那么只要5000金币就行了。"探险家就跑到大祭司那里,向他要求皮袄或水晶球...
分类:
其他好文 时间:
2015-02-13 11:39:43
阅读次数:
115
地理信息系统(Geographic Information System或 Geo-Information system,GIS)有时又称为“地学信息系统”。它是一种特定的十分重要的空间信息系统。它是在计算机硬、软件系统支持下,对整个或部分地球表层(包括大气层)空间中的有关地理分布数据进行采集、储存、管理、运算、分析、显示和描述的技术系统。看上去挺简单,但是实现起来是挺复杂的,这里面涉及到专用的地理...
分类:
其他好文 时间:
2015-02-13 11:41:14
阅读次数:
700
肩负阿里“红包大战”重任的支付宝迎来年前首秀,但由于对局势判断不足,原本期望的全民参与变成全民吐槽,支付宝红包首秀意外“失手”。
此前支付宝宣布,将在春节期间发放约6亿元的红包。然而,期望越高失望越大,昨日,不少参与支付宝抢红包的用户表示没能抢到红包,就连抢到红包的用户也抱怨红包数额低,还掺杂很多购物红包(代金券),现金红包少。
见势不妙,支付宝昨日中午向用户道歉,调整...
分类:
其他好文 时间:
2015-02-13 11:40:35
阅读次数:
155
Wormholes
Description
While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to it...
分类:
其他好文 时间:
2015-02-13 11:41:25
阅读次数:
145
Given string A representative a positive integer which has N digits, remove any k digits of the number, the remaining digits are arranged according to the original order to become a new positive integer....
分类:
其他好文 时间:
2015-02-13 11:39:14
阅读次数:
119
1、下载路径为:
2、安装:
第一步 解压zookeeper压缩包:...
分类:
其他好文 时间:
2015-02-13 11:38:42
阅读次数:
106
1. 注释
单行注释 “--“ 相当于"//"
多行注释 “--[[ ]]” 相当于/* */
转义嵌套注释 --[==[ ]==]
其中=的个数不限,但个数必须对等。
2. 变量
关键字保留
if
else
elseif
then
end
for
break...
分类:
其他好文 时间:
2015-02-13 11:38:42
阅读次数:
100