-
os.Stat 已经删除的文件不会报错
如果已经os.open(1.txt) 拿到了文件句柄 h , rm 文件之后, os.Stat(h) 会正常返回. h依然指向那个被删除的文件, 新建 1.txt 不会有影响
-
丧
什么是丧, 就是不开心啊, 非常不开心啊.
-
回退远端commit
git push h +abcdefg^:master
-
Can not connect to the ChromeDriver
因为 /etc/hosts 里面的 localhost 设置不对, 加上配置了搜索域, 导致 selenium 链接 webdriver 的时候失败.
-
Apache HttpClient Interim Error: NoHttpResponseException
https://stackoverflow.com/questions/10558791/apache-httpclient-interim-error-nohttpresponseexception
-
天塌下来
昨天, 女朋友问我会不会觉得生孩子会天塌下来, 我说不会. 然后心里想了下, 大概只有父母离开我会让我觉得天塌下来吧.
-
python-requests-package-secure-issue
https://nvd.nist.gov/vuln/detail/CVE-2018-18074#vulnCurrentDescriptionTitle https://github.com/kennethreitz/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff The Requests package before 2.20.0 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote...
-
还是我前男友更好
“还是我前男友更好”
-
通过cross search访问freezed index
Elasticsearch 6.6.0 的文档中说, 访问 freeze 索引需要添加 ignore_throttled=false , 测试下来的确如此. 但是, 如果通过低版本的(6.4.1) cross search cluster 搜索, 不加这个参数居然也可以.
-
苹果系统弹出通知
/usr/bin/osascript -e "display notification \" 提醒内容 \" with title \"提醒标题\""