#include #include #include using namespace std;class City {public: vector adj; bool visited; City() : visited(false) {}};void dfs(int idx, v...
分类:
其他好文 时间:
2014-10-16 02:01:41
阅读次数:
189
select * from (select Row_number() over( PARTITION BY MeterID order by a.CurrentReadDate desc) Idx,MeterID,a.CurrentReadDate,a.CurrentReadDegree from ...
分类:
其他好文 时间:
2014-10-16 01:16:41
阅读次数:
142
这其实是个老问题了。首先, 我们要知道noConflict是干什么的。我们直接从源码开始:var // Map over jQuery in case of overwrite _jQuery = window.jQuery, // Map over the $ in case of overwri...
分类:
Web程序 时间:
2014-10-13 19:46:26
阅读次数:
172
1.通过源代码安装Python3.4,make install时报错"Ignoring ensurepip failure: pip 1.5.4 requires SSL/TLS"。缺少openssl,openssl-devel(Ubuntu下为libssl-dev),通过yum -y instal...
分类:
编程语言 时间:
2014-10-12 18:58:08
阅读次数:
567
I love frameworks. As soon as I dropped my programmer’s ego and learned to embrace well conceived conventions over configuration my development and deployment times felt the benefit. On the other...
分类:
Web程序 时间:
2014-10-11 23:13:17
阅读次数:
422
1、SSL版本的问题
HTTPS加密传输的功劳归功于 TLS,平时称呼的 SSL 是 TLS 的前身,SSL 的最终版本是 3.0,而 TLS 的最新版本是1.3。
TLS 的加密功能依赖公私钥加解密系统.
2、SSL工作流程
第一、用户浏览器将以下信息发送到服务器。
I.TLS版本号
II.随机数:一般是28字节的随机数,随机数将用于产生最后的对称密钥
III.session i...
分类:
其他好文 时间:
2014-10-11 21:49:07
阅读次数:
209
题目链接:hdu 3016 Man Down
题目大意:有N个板,每个板有高度,以及l,r,d,l和r表示所在区间,d表示跳到该板上后将获得的能量(可能为负),保证没有两个板的高度相同。人的初始位置为最高的板上,能量值为100,如果能量值为0则game over,每次可以从左边或者右边跳下去,每次跳越属于垂直下落,落到最近的板上。求移动到地面上后的最大能量值,地面高度为0并且长度视为无穷大。...
分类:
其他好文 时间:
2014-10-11 18:28:25
阅读次数:
176
“Ad-hoc analysis over Cassandra data with Facebook Presto”一文,对Cassandra+Presto
结合实现大数据即席分析进行了介绍。Presto是为满足交互式即席查询需求而优化的分布式SQL查询引擎。它支持标准ANSI SQL,包括复杂查询,聚合,连接和窗口函数。
Cassandra以前缺少交互式即席查询功能,甚至在CQL中不支持聚合函数。因为这个原因,Cassandra在作为数据库使用时经常被混淆。分析Cassandra中的数据有下边两个框架:
...
分类:
Web程序 时间:
2014-10-10 20:13:04
阅读次数:
666
System Services is a singleton class to gather all available information about a device. Over 75 methods to determine everything from: System uptime, ...
分类:
移动开发 时间:
2014-10-09 22:17:47
阅读次数:
192
Https协议:SSL建立过程分析web訪问的两种方式:http协议,我们普通情况下是通过它訪问web,由于它不要求太多的安全机制,使用起来也简单,非常多web网站也仅仅支持这样的方式下的訪问.https协议(Hypertext Transfer Protocol over Secure Socke...
分类:
其他好文 时间:
2014-10-09 14:04:33
阅读次数:
176