摘要: 原文:https://github.com/alex/what-happens-when/blob/master/README.rst 一个版本的翻译: https://github.com/skyline75489/what-happens-when-zh_CN#id9 另一个版本的翻译:http 阅读全文
posted @ 2018-10-27 15:07 夜歌乘年少 阅读(402) 评论(0) 推荐(0)
摘要: 1.加密协议:苏联的密码本如果不被发现,至今也不会超级计算机破解。(私有的加密协议安全性在于其协议的随机性和不公开,无法应用在网络安全领域) 2.协议: 协议是一系列步骤,它包括两方或多方,设计它的目的是要完成一项任务。这个定义很重要 :“一系列步骤”意味着协议是从开始到结束的一个序列,每一步必须依 阅读全文
posted @ 2018-10-23 15:42 夜歌乘年少 阅读(367) 评论(0) 推荐(0)
摘要: https://www.sysgeek.cn/remove-old-kernels-ubuntu-16-04/ 阅读全文
posted @ 2018-10-18 19:56 夜歌乘年少 阅读(332) 评论(0) 推荐(0)
摘要: win+Q certmgr.msc 阅读全文
posted @ 2018-10-18 11:24 夜歌乘年少 阅读(462) 评论(0) 推荐(0)
摘要: lrzsz随手传文件还是挺方便的。 1.apt install lrzsz 2.rz 3.右键 或者control右键选择 send file useing Z-modem 选择文件上传 接收同理 阅读全文
posted @ 2018-10-18 10:03 夜歌乘年少 阅读(3418) 评论(0) 推荐(0)
摘要: 1.跨站脚本攻击分类不包括以下哪种?(B) A DOM型xss B 跨站伪造请求csrf C 存储型xss D反射型xss 注:XSS就三种 存储反射 DOM 阅读全文
posted @ 2018-10-17 15:24 夜歌乘年少 阅读(268) 评论(0) 推荐(0)
摘要: deb: 添加默认路由:route add default gw 8.46.192.1 添加网段路由:route add -net 8.46.0.0/19 gw 8.46.192.1 删除路由:把 add 改为 del rpm: sudo ip route add (default|8.46.0.0 阅读全文
posted @ 2018-10-17 10:14 夜歌乘年少 阅读(206) 评论(0) 推荐(0)
摘要: rpm: 1.IP a 查看网卡名 ens256 2.uuidgen ens256 生成UUID 3./etc/sysconfig/network-scripts add ifcfg-ens256 4.sudo vim ifcfg -ens256 4.重启网络服务:systemctl restart 阅读全文
posted @ 2018-10-17 10:06 夜歌乘年少 阅读(446) 评论(0) 推荐(0)
摘要: set nocompatible 阅读全文
posted @ 2018-10-17 09:52 夜歌乘年少 阅读(236) 评论(0) 推荐(0)
摘要: 1.安装matplotlib pip3 install matplotlib sudo apt install python3-tk 2.分段函数 3. 阅读全文
posted @ 2018-10-15 17:49 夜歌乘年少 阅读(687) 评论(0) 推荐(0)
摘要: 1.入侵后拉高出货(hack, pump and dump 2.黑客群体发生了一个值得注意的转变,他们不再只把黑客行为看成一种乐趣,而是看作一个职业。现如今,可能有数百万台电脑已经被某些黑客控制着的僵尸程序(bot)感染了。 获取肉鸡。 3.zero-day attack 阅读全文
posted @ 2018-10-13 17:13 夜歌乘年少 阅读(288) 评论(0) 推荐(0)
摘要: is 对比 地址 == 对比 值 阅读全文
posted @ 2018-10-13 16:59 夜歌乘年少 阅读(162) 评论(0) 推荐(0)
摘要: https://www.oschina.net/translate/pythons-hardest-problem 事实上,这个问题被问得如此频繁以至于Python的专家们精心制作了一个标准答案:”不要使用多线程,请使用多进程。“ 阅读全文
posted @ 2018-10-12 11:32 夜歌乘年少 阅读(195) 评论(0) 推荐(0)
摘要: 直接赋值 传引用 copy 浅拷贝 list传值 值是引用 deepcopy list传值 值是值 阅读全文
posted @ 2018-10-12 11:24 夜歌乘年少 阅读(134) 评论(0) 推荐(0)
摘要: arr = [[a],[b]] set(arr) output: Traceback (most recent call last): File "<stdin>", line 1, in <module>TypeError: unhashable type: 'list' arr =[1,2] s 阅读全文
posted @ 2018-10-10 22:04 夜歌乘年少 阅读(1776) 评论(0) 推荐(0)
摘要: https://yuchengkai.cn/docs/zh/frontend/#%E5%86%85%E7%BD%AE%E7%B1%BB%E5%9E%8B https://github.com/taizilongxu/interview_python#19-%E5%8D%8F%E7%A8%8B 阅读全文
posted @ 2018-10-10 15:22 夜歌乘年少 阅读(219) 评论(0) 推荐(0)
摘要: temp = "".join(sorted(arr[i])) arr[i] = temp 阅读全文
posted @ 2018-10-10 15:18 夜歌乘年少 阅读(200) 评论(0) 推荐(0)
摘要: 2019年1月10日15:39:23 去掉了所有不必要的循环区间 还是超时 本地运行大概3s 注意 anagrammatic 是拼字游戏的意思,任意调换顺序可以组成对方都成立,不是简单的回文数字。 1.第一种解法想省些时间 结果都比测试集少了20多个 应该是有些规则题目没有描述清楚。 5ifailu 阅读全文
posted @ 2018-10-10 15:17 夜歌乘年少 阅读(618) 评论(0) 推荐(0)
摘要: string[::-1] 阅读全文
posted @ 2018-10-10 10:39 夜歌乘年少 阅读(149) 评论(0) 推荐(0)
摘要: https://www.hackerrank.com/challenges/two-strings/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=dictionari 阅读全文
posted @ 2018-10-09 18:07 夜歌乘年少 阅读(157) 评论(1) 推荐(0)
摘要: 1 题目重点:whole words | case-sensitive 阅读全文
posted @ 2018-10-09 17:20 夜歌乘年少 阅读(205) 评论(0) 推荐(0)
摘要: 第一版有7个时间超限,优化成了第二版: 1: 2: 阅读全文
posted @ 2018-10-09 15:28 夜歌乘年少 阅读(153) 评论(0) 推荐(0)
摘要: 源代码超时 看了评论区改用了字典序列。 阅读全文
posted @ 2018-10-09 11:05 夜歌乘年少 阅读(342) 评论(0) 推荐(0)
摘要: 1.没有考虑i+2越界的问题 2.没有考虑结尾三个零导致 -5 3.没有考虑len(c)<2 导致 -5 阅读全文
posted @ 2018-09-30 17:59 夜歌乘年少 阅读(364) 评论(0) 推荐(0)
摘要: 把字符串数字化之后应该从 i>0开始判断而不是 i>1 因此错了4个testcases。 阅读全文
posted @ 2018-09-30 16:07 夜歌乘年少 阅读(278) 评论(0) 推荐(0)
摘要: 列表循环式:[x * x for x in range(1, 11)] 生成器:(x * x for x in range(1, 11))后者返回一个对象: >>> L = [x*x for x in range(10)] >>> L [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] >>> g = (x*x for x in range(10)) >>> g at... 阅读全文
posted @ 2018-09-27 16:02 夜歌乘年少 阅读(293) 评论(1) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-09-27 10:01 夜歌乘年少 阅读(1) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-09-27 09:47 夜歌乘年少 阅读(1) 评论(5) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-09-26 17:59 夜歌乘年少 阅读(0) 评论(0) 推荐(0)
摘要: 轻量化 抢占式 节约切换成本 阅读全文
posted @ 2018-09-26 17:55 夜歌乘年少 阅读(706) 评论(0) 推荐(0)
摘要: 变量 作用域 全局变量( external linkage ) 定义在函数外 Int a=1 作用于整个工程 在连接两个文件时若有两个a会报错 Staic 函数外(internal linkage) 作用于本文件内 Static 函数内 作用于函数内 但在多次调用值不会丢失 extern:类似imp 阅读全文
posted @ 2018-09-26 17:54 夜歌乘年少 阅读(269) 评论(0) 推荐(0)
摘要: MIT 6.828 JOS 操作系统实验 阅读全文
posted @ 2018-09-13 17:12 夜歌乘年少 阅读(177) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-08-23 20:23 夜歌乘年少 阅读(0) 评论(0) 推荐(0)
摘要: 重启 阅读全文
posted @ 2018-08-21 11:41 夜歌乘年少 阅读(1868) 评论(0) 推荐(0)
摘要: for Windows : for Linux : 阅读全文
posted @ 2018-08-09 10:13 夜歌乘年少 阅读(5341) 评论(0) 推荐(0)
摘要: 修改服务器中/etc/ssh/sshd.config 文件,将LoginGraceTime的值设为0,默认为2m,TCPKeepAlive 设为yes, 然后使用service sshd restart来重启sshd服务,这样就可以了。 补充: 在sshd_config中有LoginGraceTim 阅读全文
posted @ 2018-08-08 00:19 夜歌乘年少 阅读(31937) 评论(0) 推荐(1)
摘要: http://www.voidcn.com/article/p-kjolxwrh-yd.html cat jordan_shoes.tar.gz.a* |tar zxv 解释: 用cat来读所有的压缩包,利用tar来进行解压。 阅读全文
posted @ 2018-08-04 16:22 夜歌乘年少 阅读(516) 评论(0) 推荐(0)
摘要: 修改debian9 stretch源 修改配置文件/etc/apt/sources.list 修改成163源: 1 2 3 4 5 6 7 8 修改成清华源: 1 2 3 4 5 6 7 8 修改成科大源: 阅读全文
posted @ 2018-08-03 11:42 夜歌乘年少 阅读(366) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/jiangjiang_jian/article/details/79453856 [s[i:i + x + 1] for x in range(len(s)) for i in range(len(s) - x)] [s[i:i + x + 1] for 阅读全文
posted @ 2018-08-02 14:44 夜歌乘年少 阅读(4370) 评论(2) 推荐(0)
摘要: https://blog.csdn.net/wchoclate/article/details/42297173 round(float,N-digit) 阅读全文
posted @ 2018-08-01 14:10 夜歌乘年少 阅读(362) 评论(2) 推荐(0)