• 为啥做了这个代码的改动?

    之前修改了一处代码, e4323b785793d3bae97aca1648bb363bc2b1de33 , 注释里面说, 这里不应该调用 leave 函数, 只记得当时还想写详细一些为啥不要调用. 但是后面一时没时间写, 就最后没有写下来. 现在怎么都想不起来为啥了, 而且… 现在看起来, 不应该做这个改动的…

  • MAC上面绑定一个新的IP到网卡

    https://stackoverflow.com/questions/87442/virtual-network-interface-in-mac-os-x The loopback adapter is always up. ifconfig lo0 alias 172.16.123.1 will add an alias IP 172.16.123.1 to the loopback adapter ifconfig lo0 -alias 172.16.123.1 will remove it

  • ES中已经删除文档会影响打分

    被删除的文档如果没有merge, 没有被彻底删除, 还是会影响打分. 因为被计算在docCount里面.

  • 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...