CVE-2014-0160 Heartbleed Vul Analysis && OpenSSL Cryptographic Software Library Bug
分类:
其他好文 时间:
2014-11-05 21:19:37
阅读次数:
395
1 package main 2 3 import ( 4 "fmt" 5 "strconv" 6 "time" 7 ) 8 9 const LOOP = 10000010 11 var num int64 = 1012 13 func main() {14 s...
分类:
其他好文 时间:
2014-11-05 21:19:27
阅读次数:
230
题目链接题意 : 给你n,e,c,并且知道me≡ c (mod n),而且n = p*q,pq都为素数。思路 : 这道题的确与题目名字很相符,是个RSA算法,目前地球上最重要的加密算法。RSA算法原理。看到这个算法之后,就知道这个题是求cd≡m(mod n),要求m,就要先求d,而d则是e的模反元素...
分类:
其他好文 时间:
2014-11-05 21:19:22
阅读次数:
255
用了质因数分解的方法://欧拉函数#include#include#include#include#include#include#includeusing namespace std;int ef(int n){ int cnt = n; for(int i=2;i<=n;i++) ...
分类:
其他好文 时间:
2014-11-05 21:18:44
阅读次数:
161
1 /** 2 * 通过百度转换经纬度为地址信息 3 * 4 * @param longitude 经度 5 * @param latitude 纬度 6 * @param coordtype 坐标体系: 7 * 8 ...
分类:
其他好文 时间:
2014-11-05 21:19:01
阅读次数:
220
先来看下效果图:当中show和dismiss的时候有动画效果。原先试过使用PopupWindow来做,可是使用的时候不是那么舒服,毕竟不是dialog嘛。所以这次尝试还是使用dialog来做 ,非常多地方是引用了系统源代码(源代码是最好的老师)首先看CustomDialog.java的构造函数:pr...
分类:
其他好文 时间:
2014-11-05 21:18:51
阅读次数:
141
CentOS系统下Hadoop 2.4.1集群安装配置(简易版)
分类:
其他好文 时间:
2014-11-05 21:19:08
阅读次数:
184
1 //质因数分解 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 int top=0,num[10000],time[10000];11 v....
分类:
其他好文 时间:
2014-11-05 21:16:29
阅读次数:
321
概述: 在讲述FeatureClass对象之前,首先说明与FeatureClass对象相关的对象: Table对象,是不具有空间信息的二维表,是一张仅能在ArcMap的Table Of Content的 source选项卡中看到. 对象类(object class),对象类是对Tabl...
分类:
其他好文 时间:
2014-11-05 21:19:19
阅读次数:
209
Hadoop 2.x 安装常见问题FAQ(一) NodeManager 无法启动问题解决
分类:
其他好文 时间:
2014-11-05 21:18:36
阅读次数:
158
一个int占多少个字节?这个问题我们往往得到的答案是4.可是int究竟占多少个字节,却跟你的机器环境有关.As you can see, the typical data type sizes match the ILP32LL model, which is what most compilers...
分类:
其他好文 时间:
2014-11-05 21:17:37
阅读次数:
112
刚开始还思路错了,百度了一下就思路就能写出来了http://acm.hdu.edu.cn/showproblem.php?pid=2084 1 #include 2 3 int max(int a, int b) 4 { 5 return a>b ? a : b; 6 } 7 8 in...
分类:
其他好文 时间:
2014-11-05 21:16:37
阅读次数:
216
17. (Ando-Zhan) 设 $A,B\in M_n$ 半正定, $\sen{\cdot}$ 是一个酉不变范数, 则 $$\bex \sen{(A+B)^r}\leq \sen{A^r+B^r},\quad (0<r\leq 1), \eex$$ $$\bex \sen{(A+B)^r}\ge...
分类:
其他好文 时间:
2014-11-05 21:15:04
阅读次数:
163
正 文:数据库更新就一种方法Update,其标准格式:Update 表名 set 字段=值 where 条件只是依据数据的来源不同,还是有所差别的:1.从外部输入这样的比較简单例:update tb set UserName="XXXXX" where UserID="aasdd"2.一些内部变量,...
分类:
其他好文 时间:
2014-11-05 21:14:43
阅读次数:
156
placeholder属性,IE对其的支持表示无奈,firefox、google chrome表示毫无压力。由于placeholder是个新增属性,目前只有少数浏览器支持,如何检测浏览器是否支持它呢?(更多HTML5/CSS3特性检测可以访问)function hasPlaceholderSuppo...
分类:
其他好文 时间:
2014-11-05 21:14:54
阅读次数:
125
http://poj.org/problem?id=1384Piggy-BankTime Limit:1000MSMemory Limit:10000KTotal Submissions:7900Accepted:3813DescriptionBefore ACM can do anything, ...
分类:
其他好文 时间:
2014-11-05 21:15:50
阅读次数:
229
在windows下使用Git Bash会经常用到选中、复制、粘贴等功能,但是一般用的方法会很复杂,笔者经过查阅一些资料,特整理一些常见编辑功能的实现方法。(1)默认方法:单击左上角的logo icon,或者右键整个上窗口区域,选择编辑;复制操作:选择标记,即可进行选区然后再Enter即可复制(或再次...
分类:
其他好文 时间:
2014-11-05 21:14:12
阅读次数:
169