摘要:
原创|InnoDB事务锁系统及其实现 https://mp.weixin.qq.com/s/W07ZIW0GRtsrS5nuiy2z_A CATS事务调度算法 CATS(Contention Aware Transaction Schedule)是MySQL 8.0的一个新特性,相关论文发表在VLD
阅读全文
posted @ 2018-05-26 01:16
papering
阅读(319)
推荐(0)
摘要:
换座位 - LeetCode (中国) https://leetcode-cn.com/problems/exchange-seats/description/ Mary is a teacher in a middle school and she has a table seat storing
阅读全文
posted @ 2018-05-26 00:52
papering
阅读(341)
推荐(0)
摘要:
第N高的薪水 - LeetCode (中国) https://leetcode-cn.com/problems/nth-highest-salary/description/ Write a SQL query to get the nth highest salary from the Emplo
阅读全文
posted @ 2018-05-25 21:07
papering
阅读(231)
推荐(0)
摘要:
select case when if 的一些用法 - 马丁传奇 - 博客园 https://www.cnblogs.com/martinzhang/p/3220595.html Write a SQL query to get the second highest salary from the
阅读全文
posted @ 2018-05-25 19:47
papering
阅读(254)
推荐(0)
摘要:
https://leetcode-cn.com/problems/employees-earning-more-than-their-managers/description/ The Employee table holds all employees including their manage
阅读全文
posted @ 2018-05-25 02:17
papering
阅读(242)
推荐(0)
摘要:
https://leetcode-cn.com/problems/swap-salary/description/ Given a table salary, such as the one below, that has m=male and f=female values. Swap all f
阅读全文
posted @ 2018-05-25 02:11
papering
阅读(255)
推荐(0)
摘要:
SELECT * FROM cinema WHERE description NOT IN ("boring") AND id MOD 2 = 1 ORDER BY rating DESC
阅读全文
posted @ 2018-05-25 01:59
papering
阅读(206)
推荐(0)
摘要:
无重复字符的最长子串 - LeetCode (中国) https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/description/
阅读全文
posted @ 2018-05-25 00:29
papering
阅读(177)
推荐(0)
摘要:
最长公共前缀 - LeetCode (中国) https://leetcode-cn.com/problems/longest-common-prefix/description/
阅读全文
posted @ 2018-05-24 21:19
papering
阅读(243)
推荐(0)
摘要:
https://docs.python.org/3/library/configparser.html
阅读全文
posted @ 2018-05-24 12:02
papering
阅读(115)
推荐(0)
摘要:
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
阅读(343)
推荐(0)
摘要:
https://www.seleniumhq.org/download/
阅读全文
posted @ 2018-05-24 10:35
papering
阅读(177)
推荐(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
阅读(198)
推荐(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
阅读(165)
推荐(0)
摘要:
当某个RDD的部分数据丢失时候,Saprk会根据记录的世系关系找到该RDD的父RDD以及更上级的RDD。只需要将该RDD依赖的上级RDD重新计算就可以将该RDD进行恢复。 Directed Acyclic Graph DAG RDD 的有向无环图构建过程,就是不停将Spark代码中刚一系列的RDD转
阅读全文
posted @ 2018-05-23 20:03
papering
阅读(379)
推荐(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
阅读(629)
推荐(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
阅读(205)
推荐(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
阅读(168)
推荐(0)
摘要:
http://redis-py.readthedocs.io/en/latest/_modules/redis/client.html 解决办法:
阅读全文
posted @ 2018-05-22 21:33
papering
阅读(596)
推荐(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
阅读(659)
推荐(0)
摘要:
4200001526986984.6271074200001526986985.62778144200001526986986.62846764200001526986987.62905124200001526986988.62972264200001526986989.63043984200001
阅读全文
posted @ 2018-05-22 19:05
papering
阅读(291)
推荐(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
阅读(412)
推荐(0)
摘要:
8 关注 41万 粉丝 u_following, u_followed = [i.get_attribute('number') for i in browser.find_element...
阅读全文
posted @ 2018-05-22 18:16
papering
阅读(239)
推荐(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
阅读(151)
推荐(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
阅读(144)
推荐(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
阅读(151)
推荐(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
阅读(319)
推荐(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
阅读(395)
推荐(0)
摘要:
https://mp.weixin.qq.com/s/ZqlhPC06_KW6a9OSgEuIVw 上面的线程栈我们注意到 nid 的值其实就是线程 ID,它是十六进制的,我们将消耗 CPU 最高的线程18250,转成十六进制0X47A,然后从上面的线程栈里找到nid=0X47A的线程,其栈为: "
阅读全文
posted @ 2018-05-21 01:42
papering
阅读(312)
推荐(0)
posted @ 2018-05-21 01:02
papering
阅读(177)
推荐(0)
posted @ 2018-05-20 23:08
papering
阅读(161)
推荐(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
阅读(507)
推荐(0)
摘要:
scala wordcount kmeans k-means算法的输入对象是d维向量空间的一些点,对一个d维向量的点集进行聚类。 k-means聚类算法会将集合D划分成k个聚簇。
阅读全文
posted @ 2018-05-20 17:56
papering
阅读(185)
推荐(0)
摘要:
Scala In Depth 深入理解Scala 1、判等 2、并发 3、用None不用nul l
阅读全文
posted @ 2018-05-20 17:45
papering
阅读(162)
推荐(0)