摘要:
import ( "reflect" "testing" ) type args struct { input []int } var Sorttests = []struct { name string args args want []int }{ // TODO: Add test cases
阅读全文
posted @ 2017-02-20 20:36
papering
阅读(286)
推荐(0)
摘要:
w https://cait.calarts.edu/hc/en-us/articles/217055138-Error-Maximum-Number-of-Cookie-Values-Reached http://browsercookielimits.squawky.net/
阅读全文
posted @ 2017-02-20 10:22
papering
阅读(221)
推荐(0)
posted @ 2017-02-20 09:14
papering
阅读(192)
推荐(0)
摘要:
递归练习 组合总和 - 组合总和 - 力扣(LeetCode) https://leetcode.cn/problems/combination-sum/solution/zu-he-zong-he-by-leetcode-solution/ func combinationSum(candidat
阅读全文
posted @ 2017-02-20 01:00
papering
阅读(3380)
推荐(0)
摘要:
w新的预订时间戳区间之间是否有旧的预订信息。
阅读全文
posted @ 2017-02-19 09:21
papering
阅读(199)
推荐(0)
摘要:
小结: 1、jpeg这个协议本身就支持调整图片质量的 glup 压缩图片 大图上传 Golang压缩Jpeg图片和PNG图片 - 员力 - 博客园 https://www.cnblogs.com/lianggx6/p/12684885.html
阅读全文
posted @ 2017-02-17 18:20
papering
阅读(184)
推荐(0)
摘要:
前端加载超大图片(100M以上)实现秒开解决方案 - 知乎 https://zhuanlan.zhihu.com/p/615286222
阅读全文
posted @ 2017-02-17 12:32
papering
阅读(420)
推荐(0)
posted @ 2017-02-17 12:20
papering
阅读(202)
推荐(0)
摘要:
时间消耗 耗时 import timefrom datetime import datetimelimit_ms = 10000start = datetime.now()time.sleep(1.234)end = datetime.now()duration = end - startms =
阅读全文
posted @ 2017-02-17 02:35
papering
阅读(1574)
推荐(0)
摘要:
使用 JavaScript,HTML 和 CSS 构建跨平台的桌面应用程序 流程模型 | Electron https://www.electronjs.org/zh/docs/latest/tutorial/process-model 流程模型 Electron 继承了来自 Chromium 的多
阅读全文
posted @ 2017-02-17 01:01
papering
阅读(309)
推荐(0)
摘要:
推荐算法架构 :召回(1) - 知乎 https://zhuanlan.zhihu.com/p/475120402 推荐算法架构 :召回(1) 召回模块面对几百上千万的推荐池物料规模,候选集十分庞大。由于后续有排序模块作为保障,故不需要十分准确,但必须保证不要遗漏和低延迟。目前主要通过多路召回来实现
阅读全文
posted @ 2017-02-16 23:14
papering
阅读(971)
推荐(0)
摘要:
Linux inotify功能及实现原理 https://mp.weixin.qq.com/s?src=11×tamp=1642038821&ver=3555&signature=L1s3NlAcI-rPNc-9ZZgBMdagfIIslFJVblDmz5lydogzw1fimX9Ij*k
阅读全文
posted @ 2017-02-16 23:11
papering
阅读(511)
推荐(0)
posted @ 2017-02-16 22:49
papering
阅读(225)
推荐(0)
摘要:
w 0-订单表为2张:非拼团、拼团; 1-拼团类型表,拼团维度:人数、周期、单品或组合、折扣; 评团创建表:上类型表共拼团创建人选择; 团成员表:上创建表中共新成员选择; 商品录入表:独立表,仅商品价格、名字、描述等基本信息。 顾客页面端需要3次join才能进行拼团信息的展示、参团、开团、下单,对其
阅读全文
posted @ 2017-02-16 22:40
papering
阅读(919)
推荐(0)
摘要:
实践: 1) 首先,可以先查看一下数据库现在的sql_mode的值,sql语句为: select version(), @@sql_mode; 获取结果可能如下,不同的设置查询出来的有区别: 然后可以使用如下语句,去设置自己需要的sql_mode. SET sql_mode=(SELECT REPL
阅读全文
posted @ 2017-02-16 15:32
papering
阅读(360)
推荐(0)
摘要:
https://docs.djangoproject.com/en/2.2/ref/contrib/ contrib packages Django aims to follow Python’s “batteries included” philosophy. It ships with a va
阅读全文
posted @ 2017-02-16 14:06
papering
阅读(380)
推荐(0)
摘要:
w数组的元素排序,不同编程语言的算法。 w耗时、耗内存。 情景: 一张grab表,行时时新增中;每次按一定条件取出一定行,遍历每行,对单表单行数据进行处理分析,分析后再更新是否分析二元值标识字段。 若采用外部脚本分析,如php,暂时不考虑存储过程,同时认为只有一个分析脚本在运行,无并发分析,则需要获
阅读全文
posted @ 2017-02-16 13:11
papering
阅读(794)
推荐(0)
摘要:
w TypeError : Cannot set property 'innerHTML' of nullTypeError : Cannot set property 'value' of null通过id或其他部分属性查找元素改变页面值时,如在点击中event.target.getAttribu
阅读全文
posted @ 2017-02-15 13:44
papering
阅读(319)
推荐(0)
摘要:
Python | super() function with multilevel inheritance - GeeksforGeeks https://www.geeksforgeeks.org/python-super-function-with-multilevel-inheritance/
阅读全文
posted @ 2017-02-14 17:50
papering
阅读(333)
推荐(0)
摘要:
https://docs.djangoproject.com/en/2.2/topics/pagination/ Paginator objects¶ The Paginator class has this constructor: class Paginator(object_list, per
阅读全文
posted @ 2017-02-14 17:42
papering
阅读(295)
推荐(0)
摘要:
http://www.world-english.org/boys_names-j-l.htm w http://ename.dict.cn/list/male/F/4 http://babynames.net/all/starts-with/d?page=2
阅读全文
posted @ 2017-02-14 15:51
papering
阅读(324)
推荐(0)
摘要:
w HTTP The Definitive Guide Cookies themselves are not believed to be a tremendous security risk, because they can be disabled and because much of the
阅读全文
posted @ 2017-02-14 11:31
papering
阅读(244)
推荐(0)
摘要:
w HTTP The Definitive Guide 11.6.9 Cookies and Caching You have to be careful when caching documents that are involved with cookie transactions. You d
阅读全文
posted @ 2017-02-14 11:29
papering
阅读(197)
推荐(0)
摘要:
w HTTP The Definitive Guide Cookies can be used to track users as they make multiple transactions to a web site. E-commerce web sites use session cook
阅读全文
posted @ 2017-02-14 11:26
papering
阅读(320)
推荐(0)
摘要:
w https://www.zhihu.com/question/35307626 w 0-客户端(附加用户信息)首次请求服务端 》服务端生成session(有唯一性)、session_id,cookie(可能含有用户名、登录密码、浏览历史),并且设定cookie的生命周期、适用域名、适用域名下的路
阅读全文
posted @ 2017-02-14 11:20
papering
阅读(262)
推荐(0)
摘要:
HTTP The Definitive Guide Cookies are the best current way to identify users and allow persistent sessions. They don't suffer many of the problems of
阅读全文
posted @ 2017-02-14 11:16
papering
阅读(236)
推荐(0)
摘要:
w本地存储数据2种形式。 http://superuser.com/questions/292952/chrome-cookies-folder-in-windows-7 chrome://settings/cookies Settings > Show Advanced Settings > Pr
阅读全文
posted @ 2017-02-14 10:54
papering
阅读(231)
推荐(0)
摘要:
w在每个URL后面都附加一个用户特有的标识码。 HTTP The Definitive Guide Some web sites keep track of user identity by generating special versions of each URL for each user.
阅读全文
posted @ 2017-02-14 10:40
papering
阅读(366)
推荐(0)
摘要:
w用HTTP认证首部注册用户名。 HTTP The Definitive Guide Rather than passively trying to guess the identity of a user from his IP address, a web server can explicit
阅读全文
posted @ 2017-02-14 10:36
papering
阅读(268)
推荐(0)
摘要:
HTTP The Definitive Guide Early web pioneers tried using the IP address of the client as a form of identification. This scheme works if each user has
阅读全文
posted @ 2017-02-14 10:31
papering
阅读(324)
推荐(0)
摘要:
用户信息通过HTTP头部承载:不能实现用户唯一性标识。 w HTTP The Definitive Guide Table 11-1 shows the seven HTTP request headers that most commonly carry information about the
阅读全文
posted @ 2017-02-14 10:27
papering
阅读(272)
推荐(0)
摘要:
w服务器要知道和谁在交谈。 HTTP The Definitive Guide Web servers may talk to thousands of different clients simultaneously. These servers often need to keep track
阅读全文
posted @ 2017-02-14 10:04
papering
阅读(276)
推荐(0)
摘要:
0-服务器识别用户的目的:服务器存有不同用户的信息,而对这些信息,服务器自身、网站开发管理者、网站访问者会对其读写; 1-暂且存入服务器数据库,购物车分为2种表:购物车入车表和购物车下单表; 2-单个客户的购物车是只有一个,状态具有单一时刻,或者说,当前唯一性,其中入车表一个客户的一种商品数量大于1
阅读全文
posted @ 2017-02-14 09:59
papering
阅读(191)
推荐(0)
posted @ 2017-02-14 01:23
papering
阅读(279)
推荐(0)
摘要:
w调用函数次数的计算。 JavaScript: The Good Parts 4.15. Memoization Functions can use objects to remember the results of previous operations, making it possible
阅读全文
posted @ 2017-02-14 00:10
papering
阅读(470)
推荐(0)
posted @ 2017-02-13 18:08
papering
阅读(627)
推荐(0)
posted @ 2017-02-13 16:47
papering
阅读(338)
推荐(0)
摘要:
借助cookie,cookie是js和php互相传值的纽带。
阅读全文
posted @ 2017-02-13 16:29
papering
阅读(296)
推荐(0)
posted @ 2017-02-13 12:32
papering
阅读(206)
推荐(0)
摘要:
http://stackoverflow.com/questions/143847/best-way-to-find-if-an-item-is-in-a-javascript-array Best way to find if an item is in a JavaScript array? [
阅读全文
posted @ 2017-02-13 11:49
papering
阅读(598)
推荐(0)