Bonding is aggregation multiple links to single link in order to increase throughput and achieve redundancy in case one of links fails. At least, offi...
分类:
其他好文 时间:
2014-06-24 10:28:42
阅读次数:
211
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2014-06-24 10:22:48
阅读次数:
214
最近看了异步框架的文章,
这个有个bad case, 我不知道采用什么方案解决.
钱有100,两口子之前有约定要剩下90. 老公看到有100,花10元,花完以后因为事件异步,数据不一致,此时老婆刷新页面也看到100,再花10元. 最终所有异步事件都处理完之后最终是80元. 不符合用户的预期.
这个问题如何解决?...
分类:
其他好文 时间:
2014-06-22 19:01:04
阅读次数:
209
leetcode:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last...
分类:
其他好文 时间:
2014-06-22 13:41:07
阅读次数:
154
BUY LOW, BUY LOWER
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 8311
Accepted: 2883
Description
The advice to "buy low" is half the formula to success i...
分类:
其他好文 时间:
2014-06-21 20:49:18
阅读次数:
304
One of the most important use-case in any cloud is provisioning a VM . In this article we shall do a walk through about an instance(VM) being provisio...
分类:
其他好文 时间:
2014-06-21 16:59:43
阅读次数:
376
Figure 1: Low latency software defined networking control loop The articles SDN and delay and Delay and stability describe the critical importance of ...
WHAT?在写程序的时候我们会遇到很多种根据得出的数值就行不同处理的conditional statements,我们可以选用switch写法,以免使用太多的nested if会让程序difficult to read.syntax:switch(value){ case value1: ...;....
分类:
编程语言 时间:
2014-06-21 09:30:28
阅读次数:
252
未用SQL CTE and case when:ALTER PROCEDURE [dbo].[usp_rptDropboxBatchSummary1] @DataSource varchar(10)='ALL', @BatchNum varchar(8)='ALL'...
分类:
其他好文 时间:
2014-06-20 14:09:23
阅读次数:
284
一、 枚举
枚举定义了一种包含一组相关值的公共类型。枚举是Swift中的一种与类类似的类型,具有许多传统类才有的特征,例如计算属性、实例方法,能够通过扩展或协议增强功能等。
1.1 枚举定义
Swift 语言的枚举类型的定义语法如下:
enum
CompassPoint {
case
North...
分类:
移动开发 时间:
2014-06-18 00:50:25
阅读次数:
326