每天多一点
  • 23 Apr, 2019

    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
    
  • 17 Apr, 2019

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

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

  • 9 Apr, 2019

    os.Stat 已经删除的文件不会报错

    如果已经os.open(1.txt) 拿到了文件句柄 h , rm 文件之后, os.Stat(h) 会正常返回. h依然指向那个被删除的文件, 新建 1.txt 不会有影响

  • 4 Apr, 2019

    丧

    什么是丧, 就是不开心啊, 非常不开心啊.

  • 29 Mar, 2019

    回退远端commit

    git push h +abcdefg^:master

  • 25 Mar, 2019

    Can not connect to the ChromeDriver

    因为 /etc/hosts 里面的 localhost 设置不对, 加上配置了搜索域, 导致 selenium 链接 webdriver 的时候失败.

  • 21 Mar, 2019

    Apache HttpClient Interim Error: NoHttpResponseException

    https://stackoverflow.com/questions/10558791/apache-httpclient-interim-error-nohttpresponseexception

  • 25 Feb, 2019

    天塌下来

    昨天, 女朋友问我会不会觉得生孩子会天塌下来, 我说不会. 然后心里想了下, 大概只有父母离开我会让我觉得天塌下来吧.

  • 19 Feb, 2019

    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 attackers to discover credentials by sniffing the network.
    

    原来这么严格. 同一个hostname, 从https转到http都不要带密码.

  • 15 Feb, 2019

    还是我前男友更好

    “还是我前男友更好”

  • 32
  • 33
  • 34
  • Logo Gmail (2015-2020) [email protected]
  • childe

powered with git pages & jekyll