使用easy_install安装scrapy,报错error: Setup script exited with error: command 'gcc' failed with exit status 1查看报错信息发现尝试pip install lxml==3.3.0继续easy_install...
分类:
其他好文 时间:
2015-02-11 18:05:01
阅读次数:
191
二分法求函数根的原理为:如果连续函数f(x)在区间[a, b]的两个端点取值异号,即f(a)f(b) 5 #define THRESHOLD 0.001 6 7 double coefficient[4]; 8 9 /*10 ** 三阶多项式11 */12 double f( double ...
分类:
其他好文 时间:
2015-02-11 18:03:43
阅读次数:
131
一、通过命令方式将节点加入集群1.同步各Node的.erlang.cookie文件 # find / -name .erlang.cookie /* 查找文件所在目录 */ # scp /root/.erlang.cookie root@ip:/root/.erlang.cookie 2.启动各N....
分类:
其他好文 时间:
2015-02-11 18:06:19
阅读次数:
143
status被设成stuts,在iterator的里面就可以通过#stuts取得IteratorStatus的对象。IteratorStatus类包含当前序号信息
分类:
其他好文 时间:
2015-02-11 18:04:01
阅读次数:
162
ARP缓存表的构成ARP协议全面实战协议详解、攻击与防御
分类:
其他好文 时间:
2015-02-11 18:02:57
阅读次数:
120
一.block的内存分析如上图:定义了一个weak的block,那么它在内存中的表现形式如右下角,1.没有对block进行copy操作,而是weak,block就存储在栈空间中.2.如果block存储于栈空间,不会对block内部所用到的对象产生强引用.如上图:对block进行了一次copy操作,如...
分类:
其他好文 时间:
2015-02-11 18:01:46
阅读次数:
530
最近工作中使用到了openssl的win64位资料,所以进行前期调研,汇总结果如下: 【注意】openssl代码所在目录中不要带中文,否则“nmake -f ms\ntdll.mak ”可能会提示“宏中非法字符”等错误 环境:WIN8 64位,编译器:VS2010 需要下载 Perl(如http:....
分类:
其他好文 时间:
2015-02-11 18:03:50
阅读次数:
206
Google Code Jam 2014 Round 1B Problem Bhdu 2089hdu 3555uestc 250 (原1307)hdu 3652hdu 3709
分类:
其他好文 时间:
2015-02-11 18:02:22
阅读次数:
82
方法一、运行【Visual_Assist_X_DiE.exe】运行后勾选安装的VC版本,点击“Patch”按钮即可。方法二、运行【vax_patch.exe】1、VC6/2005/2008的破解方法:复制破解补丁vax_patch.exe到Visual Assist的安装目录(例如 C:\Progr...
分类:
其他好文 时间:
2015-02-11 18:02:11
阅读次数:
179
开源xcode插件:规范注释生成器VVDocumenter1、类似eclipse 和 vs studio 在前面输入/// 后触发,自动生成代码注释,如图2、GitHub工程文件地址:https://github.com/onevcat/VVDocumenter-Xcode3.用Xcode打开工程,...
分类:
其他好文 时间:
2015-02-11 18:02:57
阅读次数:
200
题意:一个长为L的河,中间有n个石子,小青蛙需要跳少于m次过河,判断小青蛙每次跳跃最大距离的最小值最大值最小,用二分Sample Input6 1 2225 3 311218Sample Output411 1 #include 2 #include 3 #include 4 #include 5 ...
分类:
其他好文 时间:
2015-02-11 18:01:07
阅读次数:
104
枚举+数位dp注意处理数字为0和1的情况。#include #include using namespace std;#define D(x) const int MAX_DIGIT = 20;long long n;int f[MAX_DIGIT];long long memoize[MAX_DI...
分类:
其他好文 时间:
2015-02-11 18:00:35
阅读次数:
167
以下演示了如何导出/导入数据 string file = Server.MapPath("/data.xml"); Code.ProductDataManage.Instance.ExportToFile(file, b => b.Id > 0);//导出到文件 Response....
分类:
其他好文 时间:
2015-02-11 18:01:53
阅读次数:
141
以下演示了导出对象文档编译MODEL所在的DLL时,在项目属性=>生成 选中下面的框,生成XML文档XML文档地址Type[] types = new Type[] { typeof(Code.ProductData) };string[] xmlFiles = new string[] { Ser...
分类:
其他好文 时间:
2015-02-11 17:59:42
阅读次数:
119
admin = Context.Request.Cookies["user"].Values["username"].ToString(); Hashtable hash = new Hashtable(); hash.Add("p2", admin); hash.Add("p_state", 2)...
分类:
其他好文 时间:
2015-02-11 18:00:39
阅读次数:
122
2.hadoop的伪分布的安装步骤:1.1设置静态IP 在centos桌面右上角图标,右键修改 重启网卡,执行命令service network restart 验证:ifconfig1.2 修改主机名 修改当前会话中的主机名,执行命令hostname hadoop 修改配置文件中的主机名...
分类:
其他好文 时间:
2015-02-11 18:00:07
阅读次数:
171