编译和编写代码。1. 创建代码文件夹mkdir lession22. 新建类文件touch lession2.m3. 打开编写代码,(会用xcode打开)open lession2.m4. 编译代码cc lession2.m -framework Foundication(一般包含-framewor...
分类:
其他好文 时间:
2014-12-27 20:19:32
阅读次数:
150
1. 这篇博客讲什么? 2. The Crash Consistency Problem 3. FSCK 4. Journaling
分类:
其他好文 时间:
2014-12-27 20:20:56
阅读次数:
280
Gradle support the definition of so called live collections. These collections are mostly created based on criteria like with a filter() or matching()...
分类:
其他好文 时间:
2014-12-27 20:18:45
阅读次数:
203
额外问题处理:--------------------------------------------------------------------------------13) 定时器之外的一些处理 a) window环境下,定时器通知执行定时任务的时间点可能误差1毫秒;Linux环境也...
分类:
其他好文 时间:
2014-12-27 20:19:03
阅读次数:
170
服务端:1.创建一个Socket对象。用来侦听的。2.绑定端口和IP3.开启侦听4.开始接受客户端连接5.创建一个代理通信Socket对象。用来通信的。6.发送消息接收消息7.收到客户端的道别,也会回一个:我也走了8.关闭Socket客户端:1.创建Socket对象2.连接服务器3.发送消息接受消息...
分类:
其他好文 时间:
2014-12-27 20:18:10
阅读次数:
125
源blog地址http://onlywish.me用天平称重量有1,3,9,27,81的砝码输入一个121以内的数。求出称重方法:如:输入10 显示 9+1;输入 7 显示 9-3+1;下面是答案(自己写的,非标准):#include #include int sum = 0; int array[...
分类:
其他好文 时间:
2014-12-27 20:19:28
阅读次数:
127
说是定时任务,其实我只是登记了要调用的远端接口、通讯协议、Crontab 时间格式表达式、执行机器组、超时时间、报警接收人等而已。由 JobCenter 按时通知对端的接口,并接收任务执行者的进度反馈和最终执行结果,这些响应均为 JSON 格式。还可以为同一个定时任务添加多个执行机器,JobCent...
分类:
其他好文 时间:
2014-12-27 20:17:59
阅读次数:
216
这道题 用位运算必然简单 但是苦逼的是自己不熟练 那就 用本办法输入一个十进制数 转换成二进制翻转 去掉高位的零 然后再转化为十进制 输出! 1 #include 2 #include 3 #include 4 int main() 5 { 6 int i, x, sum, sum1, n...
分类:
其他好文 时间:
2014-12-27 20:18:06
阅读次数:
191
With the Gradle copy task we can define renaming rules for the files that are copied. We use the rename() method of the copy task to define the naming...
分类:
其他好文 时间:
2014-12-27 20:17:35
阅读次数:
183
1. ASCII(American Standard Code for Information Interchange,美国信息互换标准代码),是基于常用的英文字符的一套电脑编码系统。我们知道英文中经常 使用的字符、数字符号被计算机处理时都是以二进制码的形式出现的。这种二进制码的集合就是所谓的AS....
分类:
其他好文 时间:
2014-12-27 20:16:03
阅读次数:
211
---恢复内容开始---1. 安装先安装依赖库yum -y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel 下载源码包 编译安装wget http://downloads.sourceforge....
分类:
其他好文 时间:
2014-12-27 20:16:20
阅读次数:
374
对于 新手的我来说 写起来 还是有一点吃力 好在写出来了! 1 #include 2 int main() 3 { 4 int m; 5 scanf( "%d" , &m ); 6 int a[50000] = {0,1}; 7 //static int a[...
分类:
其他好文 时间:
2014-12-27 20:16:30
阅读次数:
252
最近的碰上工作的选择的问题,才发现以前自己最终的选择比较容易啊,你应该如何如何的说法,那就是一坨热乎乎的东西,不搁自己身上不知道啊。 选择之难,在于未知。 未知有二,一个是未来的未知,不知道这个决定下了以后,自己的未来会受到什么的影响。 一个是不知道选择的范围,或者说这个范围圈定在什么地方,自己看不...
分类:
其他好文 时间:
2014-12-27 20:14:52
阅读次数:
142
1.其中以eth0 为首的部分是本机的以太网卡配置参数,这里显示了网卡的设备名/dev/eth0 和硬件的MAC 地址 lo 则代表Link encap:本地环回 2.eth0,eth1,eth2……代表网卡一,网卡二,网卡三……lo(回路设备)代表127.0.0.1,即localhost e...
分类:
其他好文 时间:
2014-12-27 20:13:31
阅读次数:
376
Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ...
分类:
其他好文 时间:
2014-12-27 20:14:16
阅读次数:
214
kernel-based Virtual Machine的简称,是一个开源的系统虚拟化模块,自Linux 2.6.20之后集成在Linux的各个主要发行版本中。它使用Linux自身的调度器进行管理,所以相对于Xen,其核心源码很少。KVM目前已成为学术界的主流VMM之一。 KVM的虚拟化需要硬件支持...
分类:
其他好文 时间:
2014-12-27 20:12:55
阅读次数:
186