日志记录(Logging) More than : 每次用 terminal debug 时都要手动在各种可能出现 bug 的地方 print 相关信息来确认 bug 的位置; 每次完成 debug 后为了避免输出太多细节信息和代码整洁,又需要把几个关键位置的 print 注释掉甚至删掉; 当下次出 ...
分类:
编程语言 时间:
2019-01-28 23:49:50
阅读次数:
219
Running into the same issue here after upgrading from 0.44. None of the above solutions or clearing caches did the trick for me. Here's what I did to ...
分类:
其他好文 时间:
2019-01-28 18:22:18
阅读次数:
209
Mac OS OneDrive 无法同步.DS_Store文件 同步出错 解决方案: 第一步:打开 terminal 窗口,到本地同步的目录下: 第二步:执行:查找和删除 ...
分类:
系统相关 时间:
2019-01-26 22:42:23
阅读次数:
357
1、打开Mac自带终端Terminal; 2、进入当前用户主目录,cd ~;(默认用户目录则不需要) 3、临时授权,sudo su; 4、输入系统密码(加锁密码不显示输入); 5、创建.bash_profile文件,touch .bash_profile(如果存在则不必新建,可直接第六步验证后再选择 ...
分类:
系统相关 时间:
2019-01-24 14:37:12
阅读次数:
188
2012年9月6日 1) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server \Wds\rdpwd\Tds\tcp],看见PortNamber值了吗?其默认值是3389,修改成所希望的端口即可,例如6111。 2) ...
分类:
其他好文 时间:
2019-01-21 01:11:49
阅读次数:
197
```python import sys
import os class Logger(object): def __init__(self, filename="log.txt"): self.terminal = sys.stdout self.log = open(filename, "a")... ...
分类:
编程语言 时间:
2019-01-19 22:52:25
阅读次数:
527
1.这里如果设置为Git/git-bash.exe确实不会乱码,但是每次点Idea里的Terminal都会弹出一个单独的terminal窗口而非在idea子窗口里出现; 2.因此需要设置为Git/bin/bash.exe,但是这个东西它本质上貌似是用Cmd.exe来打开的?(反正需要设置页编码为65 ...
分类:
其他好文 时间:
2019-01-19 21:22:14
阅读次数:
880
In a directed graph, we start at some node and every turn, walk along a directed edge of the graph. If we reach a node that is terminal (that is, it h ...
分类:
其他好文 时间:
2019-01-18 10:16:09
阅读次数:
135
一、准备环境$firewall-cmd--zone=public--add-port=80/tcp--permanent#nginx端口$firewall-cmd--zone=public--add-port=2222/tcp--permanent#用户SSH登录端口coco$firewall-cmd--reload#重新载入规则$setenforce0$sed-i"s/enforcin
分类:
其他好文 时间:
2019-01-17 17:49:51
阅读次数:
451
Alt + Enter -- 全屏 Alt + B -- 快速打开新的连接 Alt + 1/2/3/4/5.../9 -- 切换到第1/2/3/4/5.../9个标签 Ctrl + A | Alt+A -- 光标移至行首,windows复制功能应用后,使用Alt+A Ctrl + E -- 光标移至 ...
分类:
其他好文 时间:
2019-01-17 10:16:21
阅读次数:
179