摘要: 一篇关于网络爬虫程序的一些原理及体系结构纯技术文章,一些地方可能不会看的非常明确。对于SEO行业,常常和搜索引擎及其爬虫程序打交道,细致浏览下,一些不清楚而自己又非常想了解的地方,能够借助搜索来需找相关解释,对工作还是有帮助的(个人觉得值得注意的地方已加红显示)。文章相对较长。我分两次公布,能够转换 阅读全文
posted @ 2017-05-31 21:23 cxchanpin 阅读(2980) 评论(0) 推荐(0)
摘要: 博文:给明年依旧年轻的我们:欲望、外界、标签、天才、时间、人生目标、现实、懊悔、和经历 ( http://blog.sina.com.cn/s/blog_6e8e05ac0100wu4h.html ) 提示:1.7万字文章在24小时内被浏览了将近15万次。 眼下:仅新浪博客阅读31万人次。评论225 阅读全文
posted @ 2017-05-31 20:13 cxchanpin 阅读(229) 评论(0) 推荐(0)
摘要: ubprocess包主要功能是运行外部的命令和程序。从这个意义上来说,subprocess的功能与shell类似。 subprocess以及经常使用的封装函数 当我们执行python的时候,我们都是在创建并执行一个进程。 在Python中。我们通过标准库中的subprocess包来fork一个子进程 阅读全文
posted @ 2017-05-31 19:00 cxchanpin 阅读(290) 评论(0) 推荐(0)
摘要: 给定两个数组:arr1[0..m-1]和arr2[0..n-1]. 推断arr2[]是否为arr1[]的子集。这两个数组都是无序的。 比如: 输入: arr1[] = {11, 1, 13, 21, 3, 7}, arr2[] = {11, 3, 7, 1} 输出: arr2是arr1的子集。 输入 阅读全文
posted @ 2017-05-31 17:32 cxchanpin 阅读(431) 评论(0) 推荐(0)
摘要: Matrix Swapping II Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1430 Accepted Submission(s): 阅读全文
posted @ 2017-05-31 16:15 cxchanpin 阅读(211) 评论(0) 推荐(0)
摘要: android 点击返回键退出程序的方法 第一种: 再按一次返回键退出程序 private long exitTime = 0; @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEv 阅读全文
posted @ 2017-05-31 14:39 cxchanpin 阅读(2701) 评论(0) 推荐(0)
摘要: Description You are the King of Byteland. Your agents have just intercepted a batch of encrypted enemy messages concerning the date of the planned att 阅读全文
posted @ 2017-05-31 13:47 cxchanpin 阅读(263) 评论(0) 推荐(0)
摘要: (转过来,源地址:http://www.jmatrix.org/notes/1067.html) 近期心血来潮。想能否够通过添加一个tomcat的扩展,来持续收集tomcatserver本身的性能信息。如线程池的各项数据,请求数等等,这样能够配合业务方面的监控,能够更方便的分析调整tomcat配置, 阅读全文
posted @ 2017-05-31 12:26 cxchanpin 阅读(409) 评论(0) 推荐(0)
摘要: 题目描写叙述:翻转句子中单词的顺序。但单词内字符的顺序不变。句子中单词以空格符隔开。 为简单起见,标点符号和普通字母一样处理。如:"I am a student."翻转成"student. a am I"。 #include <iostream> #include<assert.h> #includ 阅读全文
posted @ 2017-05-31 11:07 cxchanpin 阅读(184) 评论(0) 推荐(0)
摘要: 前言 上一篇文章中我们将ThreadPoolExecutor进行了深入的学习和介绍,实际上我们在项目中应用的时候非常少有直接应用ThreadPoolExecutor来创建线程池的。在jdk的api中有这么一句话“可是,强烈建议程序猿使用较为方便的 Executors 工厂方法Executors.ne 阅读全文
posted @ 2017-05-31 10:33 cxchanpin 阅读(320) 评论(0) 推荐(0)
摘要: Swift学习——类的定义,使用。继承,构造等(五) 类的使用说明 1 使用class和类名来创建一个类名,比如: class student 2 类中属性的声明和常量和变量一样,唯一的差别就是他们的上下文是类 3 方法和函数声明也一样 // 1 简单的类介绍 class Student{ //变量 阅读全文
posted @ 2017-05-31 08:53 cxchanpin 阅读(349) 评论(0) 推荐(0)
摘要: LNMP编译安装 # 需先配置IP # 软件包的路径 /usr/local/src yum install -y libjpeg-devel libpng-devel freetype-devel curl-devel python-devel curl-devel gcc gcc-c++ biso 阅读全文
posted @ 2017-05-31 08:52 cxchanpin 阅读(204) 评论(0) 推荐(0)
摘要: /** * 这个尽管非常easy,算是一个小技巧,可是碰到了就记录下来吧.积跬步,致千里嘛. */ - (void)scratchableLatex { for (int i=0; i<9; i++) { UIView *view = [[UIView alloc]initWithFrame:CGR 阅读全文
posted @ 2017-05-31 08:01 cxchanpin 阅读(184) 评论(0) 推荐(0)