摘要:
id_=document.getElementById("sidebar_categories");a_=id_.getElementsByTagName("a");len_=a_.length; sum_=0;for(i=0;i<len_;i++){n=a_[0].childNodes[0].no
阅读全文
posted @ 2018-05-23 21:43
papering
阅读(195)
推荐(0)
摘要:
当某个RDD的部分数据丢失时候,Saprk会根据记录的世系关系找到该RDD的父RDD以及更上级的RDD。只需要将该RDD依赖的上级RDD重新计算就可以将该RDD进行恢复。 Directed Acyclic Graph DAG RDD 的有向无环图构建过程,就是不停将Spark代码中刚一系列的RDD转
阅读全文
posted @ 2018-05-23 20:03
papering
阅读(408)
推荐(0)
摘要:
https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/__init__.py 建立连接 https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/connections.py https://
阅读全文
posted @ 2018-05-23 17:25
papering
阅读(684)
推荐(0)
posted @ 2018-05-23 14:15
papering
阅读(204)
推荐(0)
摘要:
1-生成数据元结构,末端值全为0 2-拿到每行数据,去更新末端值
阅读全文
posted @ 2018-05-23 09:54
papering
阅读(158)
推荐(0)
摘要:
redis.exceptions.ConnectionError: Error 99 connecting to 127.0.0.1:6379. Cannot assign requested address · Issue #219 · django/channels · GitHub https
阅读全文
posted @ 2018-05-23 08:09
papering
阅读(232)
推荐(0)
摘要:
pid_ = rds.connection_pool.pidimport subprocess#handle = subprocess.Popen("", shell=False)subprocess.Popen("taskkill /F /T /PID {}".format(pid_), shell=True)print('go-----------')
阅读全文
posted @ 2018-05-22 22:21
papering
阅读(230)
推荐(0)
摘要:
http://redis-py.readthedocs.io/en/latest/_modules/redis/client.html 解决办法:
阅读全文
posted @ 2018-05-22 21:33
papering
阅读(637)
推荐(0)
摘要:
redis.connection — redis-py 2.10.5 documentation http://redis-py.readthedocs.io/en/latest/_modules/redis/connection.html#ConnectionPool 实例化后 应关闭所有连接,或
阅读全文
posted @ 2018-05-22 21:02
papering
阅读(684)
推荐(0)
摘要:
4200001526986984.6271074200001526986985.62778144200001526986986.62846764200001526986987.62905124200001526986988.62972264200001526986989.63043984200001
阅读全文
posted @ 2018-05-22 19:05
papering
阅读(313)
推荐(0)
摘要:
ac_type = 'qq' if ac_type == 'qq': myid, mypwd = qq_key xp = '/html/body/div/div/div[2]/div/div/div/ul/li[3]' # udp xp = '/html/body/div/div/div[2]/div/d...
阅读全文
posted @ 2018-05-22 18:22
papering
阅读(436)
推荐(0)
摘要:
8 关注 41万 粉丝 u_following, u_followed = [i.get_attribute('number') for i in browser.find_element...
阅读全文
posted @ 2018-05-22 18:16
papering
阅读(267)
推荐(0)
摘要:
From / Size | Elasticsearch Reference [6.2] | Elastic http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html Fro
阅读全文
posted @ 2018-05-22 15:50
papering
阅读(179)
推荐(0)
摘要:
db.collection.mapReduce() — MongoDB Manual 3.6 https://docs.mongodb.com/manual/reference/method/db.collection.mapReduce/
阅读全文
posted @ 2018-05-22 12:41
papering
阅读(178)
推荐(0)
摘要:
d = {'a': [1, 2], 'b': [1]}# --->d={'b':[1],'a':[1,2]} feature_d_ = {} for feature in feature_complete_l: feature_d_[feature] = feature_d[feature] del feature_d feature_d ...
阅读全文
posted @ 2018-05-22 01:13
papering
阅读(168)
推荐(0)
摘要:
11.10. shutil — High-level file operations — Python 3.6.5 documentation https://docs.python.org/3/library/shutil.html
阅读全文
posted @ 2018-05-22 00:20
papering
阅读(170)
推荐(0)
摘要:
lokkit: The Lokkit utility attempts to provide firewalling for the average Linux end user. Instead of configuring firewall rules, Lokkit asks asmall n
阅读全文
posted @ 2018-05-21 21:12
papering
阅读(345)
推荐(0)
摘要:
Ids Query | Elasticsearch Reference [6.2] | Elastic http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ids-query.html#query-dsl-
阅读全文
posted @ 2018-05-21 19:00
papering
阅读(424)
推荐(0)
摘要:
https://mp.weixin.qq.com/s/ZqlhPC06_KW6a9OSgEuIVw 上面的线程栈我们注意到 nid 的值其实就是线程 ID,它是十六进制的,我们将消耗 CPU 最高的线程18250,转成十六进制0X47A,然后从上面的线程栈里找到nid=0X47A的线程,其栈为: "
阅读全文
posted @ 2018-05-21 01:42
papering
阅读(329)
推荐(0)
posted @ 2018-05-21 01:02
papering
阅读(191)
推荐(0)
posted @ 2018-05-20 23:08
papering
阅读(176)
推荐(0)
摘要:
spark join 广告特征做广播
阅读全文
posted @ 2018-05-20 22:26
papering
阅读(226)
推荐(0)
摘要:
从内存的最小化占用角度解释 变,必然伴随着加法
阅读全文
posted @ 2018-05-20 22:13
papering
阅读(235)
推荐(0)
posted @ 2018-05-20 19:34
papering
阅读(475)
推荐(0)
posted @ 2018-05-20 18:35
papering
阅读(523)
推荐(0)
摘要:
scala wordcount kmeans k-means算法的输入对象是d维向量空间的一些点,对一个d维向量的点集进行聚类。 k-means聚类算法会将集合D划分成k个聚簇。
阅读全文
posted @ 2018-05-20 17:56
papering
阅读(204)
推荐(0)
摘要:
Scala In Depth 深入理解Scala 1、判等 2、并发 3、用None不用nul l
阅读全文
posted @ 2018-05-20 17:45
papering
阅读(181)
推荐(0)
摘要:
可变性编程 不可变性编程 可变性变量 不可变性变量 -1 面向表达式编程是指在代码中使用表达式而不用语句 语句是可以执行的东西,执行代码 表达式是可以求职的东西,返回值 【Scala,大部分开发者会在代码中避免使用return】 Java惯用法:一个return语句 def createErrorM
阅读全文
posted @ 2018-05-20 17:05
papering
阅读(286)
推荐(0)
摘要:
Glossary — Python 3.6.5 documentation https://docs.python.org/3/glossary.html?highlight=equal hashable An object is hashable if it has a hash value wh
阅读全文
posted @ 2018-05-20 17:04
papering
阅读(286)
推荐(0)
posted @ 2018-05-20 16:29
papering
阅读(503)
推荐(0)
posted @ 2018-05-20 16:23
papering
阅读(157)
推荐(0)
摘要:
https://baike.sogou.com/v63435711.htm?fromTitle=内存转存文件 内存转储是用于系统崩溃时,将内存中的数据转储保存在转储文件中,供给有关人员进行排错分析用途。而它所保存生成的文件就叫做内存转储文件。 内存转储文件也被称作 虚拟内存,它是用硬盘里的一段空间虚
阅读全文
posted @ 2018-05-20 16:17
papering
阅读(2955)
推荐(0)
摘要:
C:\WINDOWS\SoftwareDistribution\Download
阅读全文
posted @ 2018-05-20 16:12
papering
阅读(430)
推荐(0)
posted @ 2018-05-20 15:50
papering
阅读(221)
推荐(0)
摘要:
以主机A(192.168.38.10)向主机B(192.168.38.11)发送数据为例: 发送数据时,主机A先在自身的ARP缓存表中寻找是否有目标IP地址。若找到,便得知目标MAC地址为(00-BB-00-62-C2-02),直接将目标MAC地址写入帧中发送即可。 若ARP缓存表中未找到对应的IP
阅读全文
posted @ 2018-05-20 12:08
papering
阅读(1639)
推荐(0)
摘要:
18 commands to monitor network bandwidth on Linux server – BinaryTides https://www.binarytides.com/linux-commands-monitor-network/ yum install iptraf
阅读全文
posted @ 2018-05-20 11:33
papering
阅读(1052)
推荐(0)
摘要:
Error 99 connecting to 192.168.3.212:6379. Cannot assign requested address Redis - corelation between QPS, response time, number of connections, respo
阅读全文
posted @ 2018-05-20 11:18
papering
阅读(1729)
推荐(0)
posted @ 2018-05-20 10:23
papering
阅读(227)
推荐(0)
摘要:
https://mp.weixin.qq.com/s/MSR18sqUznuiUgUM5YkvZg 我们选择了Golang做为当前版本的开发语言,架构如下: 采用多进程单协程图片处理模型。图片库主要依赖的是GraphicsMagick,和少部分ImageMagick,通过封装cgo调用实现。 Gol
阅读全文
posted @ 2018-05-19 23:35
papering
阅读(306)
推荐(0)
摘要:
feature_reduce_l = [i if re.search('\d', i) is None else i[0:re.search('\d', i).endpos - 1] for i in feature_l] # set 破坏了顺序 print(feature_reduce_l) print(list(set(feature_reduce_l))) featur...
阅读全文
posted @ 2018-05-19 23:14
papering
阅读(236)
推荐(0)