每天多一点
  • 6 Nov, 2016

    洗澡

    小时候洗澡是因为身上太脏了, 到南方很久以后才接受洗澡是为了舒服点吧, 现在是因为, 哎呀要出门了, 还是洗个澡吧.

  • 27 Oct, 2016

    log4j2根据名字解析main参数不正常工作

    https://issues.apache.org/jira/browse/LOG4J2-1013 感觉很是很重要的功能,至少2.2版本就有了,一直到2.8版本才解决. 在maven里面还没有, 真有人用这个功能吗?

  • 21 Sep, 2016

    阻止osx的hostname在DHCP时被更改

    osx设置Hostname的顺序, 参考https://excitedcuriosity.wordpress.com/2007/08/24/mac-os-x-hostname-determination/ 07年的文章, 不知道还准不准

    1. The name provided by the DHCP or BootP server for the primary IP address

    2. The first name returned by a reverse DNS (address-to-name) query for the primary IP address

    3. The local hostname (set in the Sharing pane of System Preferences)

    4. The name localhost

    阻止被更改

    sudo scutil --set HostName myhostname
    
  • 31 Aug, 2016

    在VIM中查看所有map

    :map 可以查看所有映射

  • 28 Aug, 2016

    淘宝把我的重定向到world.taobao.com

    我是参考https://haoel.github.io配置的路由拨VPN

    今天逛淘宝发现被跳转到world.taobao.com
    chrome看了下解析出来的www.taobao.com是中国的. traceroute www.taobao.com也都是中国的
    然后怀疑cookie引起的, 清了之后果然好了.

    但是我现在不记得刚才上淘宝是要看什么了.

  • 26 Aug, 2016

    brew安装应用时出错

    brew安装Python3 和 vim时, 都是报错

    ==> ./configure --prefix=/usr/local/Cellar/apr/1.5.2/libexec
    checking for suffix of executables...
    checking whether we are cross compiling... configure: error: in `/private/tmp/vim-7.4.2235/':
    configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
    

    看github上面说是因为osx 10.11与老版本的xcode不兼容了

    解决:

    xcode-select --install
    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
    
  • 15 Aug, 2016

    go get files recursively using glob?

    golang官方的glob不能支持**代表递归
    https://github.com/golang/go/issues/11862
    https://github.com/driskell/log-courier/issues/285

    mattn给了一个他自己写的第三方库https://github.com/mattn/go-zglob

  • 15 Aug, 2016

    在mac系统vim中绑定command键

    只能在macvim中, 才能对commnad组合键做映射. 就是command+c

    因为在CLI中, commnad键会被iterm/terminal等终端应用截获. Option也是需要一些额外的办法才能使用, 而且会有负作用.也是需要一些额外的办法才能使用.

    参考http://stackoverflow.com/questions/9450905/how-to-bind-vim-through-tmux-to-cmd-key/9451636#9451636

  • 13 Aug, 2016

    今日单词

    discrete

    Breaking this down into discrete steps

    /dɪˈskriːt; dɪ`skrit/

    adj eparate; distinct 分离的; 截然分开的

    discrete particles

    a series of discrete events

  • 12 Aug, 2016

    今日单词

    rapidity

    Things are happening with machine-gun rapidity: Brexit, the Turkish coup, Islamist massacres in France, the surrounding of Aleppo, the nomination of Donald Trump.

    /rəˈpɪdətɪ; rə`pɪdətɪ/

    n[U] 迅速 湍急

    with great rapidity

  • 49
  • 50
  • 51
  • Logo Gmail (2015-2020) [email protected]
  • childe

powered with git pages & jekyll