摘要:
import sys, os this_file_abspath = os.path.dirname(os.path.abspath(__file__)) ProjectUtil_path = '{}{}{}'.format(this_file_abspath, os.sep, 'ProjectUtil') sys.path.append(ProjectUtil_path) from...
阅读全文
posted @ 2018-05-24 11:34
papering
阅读(339)
推荐(0)
摘要:
https://www.seleniumhq.org/download/
阅读全文
posted @ 2018-05-24 10:35
papering
阅读(175)
推荐(0)
摘要:
https://github.com/andymccurdy/redis-py/blob/master/redis/client.py https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/__init__.py
阅读全文
posted @ 2018-05-23 22:30
papering
阅读(196)
推荐(0)
摘要:
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
阅读(162)
推荐(0)
摘要:
当某个RDD的部分数据丢失时候,Saprk会根据记录的世系关系找到该RDD的父RDD以及更上级的RDD。只需要将该RDD依赖的上级RDD重新计算就可以将该RDD进行恢复。 Directed Acyclic Graph DAG RDD 的有向无环图构建过程,就是不停将Spark代码中刚一系列的RDD转
阅读全文
posted @ 2018-05-23 20:03
papering
阅读(374)
推荐(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
阅读(624)
推荐(0)
posted @ 2018-05-23 14:15
papering
阅读(180)
推荐(0)
摘要:
1-生成数据元结构,末端值全为0 2-拿到每行数据,去更新末端值
阅读全文
posted @ 2018-05-23 09:54
papering
阅读(147)
推荐(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
阅读(202)
推荐(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
阅读(167)
推荐(0)
摘要:
http://redis-py.readthedocs.io/en/latest/_modules/redis/client.html 解决办法:
阅读全文
posted @ 2018-05-22 21:33
papering
阅读(592)
推荐(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
阅读(655)
推荐(0)
摘要:
4200001526986984.6271074200001526986985.62778144200001526986986.62846764200001526986987.62905124200001526986988.62972264200001526986989.63043984200001
阅读全文
posted @ 2018-05-22 19:05
papering
阅读(288)
推荐(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
阅读(406)
推荐(0)
摘要:
8 关注 41万 粉丝 u_following, u_followed = [i.get_attribute('number') for i in browser.find_element...
阅读全文
posted @ 2018-05-22 18:16
papering
阅读(238)
推荐(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
阅读(146)
推荐(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
阅读(150)
推荐(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
阅读(143)
推荐(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
阅读(150)
推荐(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
阅读(318)
推荐(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
阅读(391)
推荐(0)
摘要:
https://mp.weixin.qq.com/s/ZqlhPC06_KW6a9OSgEuIVw 上面的线程栈我们注意到 nid 的值其实就是线程 ID,它是十六进制的,我们将消耗 CPU 最高的线程18250,转成十六进制0X47A,然后从上面的线程栈里找到nid=0X47A的线程,其栈为: "
阅读全文
posted @ 2018-05-21 01:42
papering
阅读(308)
推荐(0)
posted @ 2018-05-21 01:02
papering
阅读(177)
推荐(0)
posted @ 2018-05-20 23:08
papering
阅读(160)
推荐(0)
摘要:
spark join 广告特征做广播
阅读全文
posted @ 2018-05-20 22:26
papering
阅读(213)
推荐(0)
摘要:
从内存的最小化占用角度解释 变,必然伴随着加法
阅读全文
posted @ 2018-05-20 22:13
papering
阅读(219)
推荐(0)
posted @ 2018-05-20 19:34
papering
阅读(464)
推荐(0)
posted @ 2018-05-20 18:35
papering
阅读(504)
推荐(0)
摘要:
scala wordcount kmeans k-means算法的输入对象是d维向量空间的一些点,对一个d维向量的点集进行聚类。 k-means聚类算法会将集合D划分成k个聚簇。
阅读全文
posted @ 2018-05-20 17:56
papering
阅读(183)
推荐(0)
摘要:
Scala In Depth 深入理解Scala 1、判等 2、并发 3、用None不用nul l
阅读全文
posted @ 2018-05-20 17:45
papering
阅读(158)
推荐(0)
摘要:
可变性编程 不可变性编程 可变性变量 不可变性变量 -1 面向表达式编程是指在代码中使用表达式而不用语句 语句是可以执行的东西,执行代码 表达式是可以求职的东西,返回值 【Scala,大部分开发者会在代码中避免使用return】 Java惯用法:一个return语句 def createErrorM
阅读全文
posted @ 2018-05-20 17:05
papering
阅读(259)
推荐(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
阅读(245)
推荐(0)
posted @ 2018-05-20 16:29
papering
阅读(487)
推荐(0)
posted @ 2018-05-20 16:23
papering
阅读(145)
推荐(0)
摘要:
https://baike.sogou.com/v63435711.htm?fromTitle=内存转存文件 内存转储是用于系统崩溃时,将内存中的数据转储保存在转储文件中,供给有关人员进行排错分析用途。而它所保存生成的文件就叫做内存转储文件。 内存转储文件也被称作 虚拟内存,它是用硬盘里的一段空间虚
阅读全文
posted @ 2018-05-20 16:17
papering
阅读(2826)
推荐(0)
摘要:
C:\WINDOWS\SoftwareDistribution\Download
阅读全文
posted @ 2018-05-20 16:12
papering
阅读(406)
推荐(0)
posted @ 2018-05-20 15:50
papering
阅读(204)
推荐(0)
摘要:
获取mac地址 winodws getmac linux ifconfig -a HWaddr 值 ens192 Link encap:Ethernet HWaddr 00:50:56:9b:cc:81 inet addr:103.95.254.153 Bcast:103.95.254.159 Ma
阅读全文
posted @ 2018-05-20 12:08
papering
阅读(1571)
推荐(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
阅读(1006)
推荐(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
阅读(1674)
推荐(0)