删除已过期的Apple Worldwide Developer Relations Certification Authority证书
http://www.jianshu.com/p/9dc2aad90539
MAC 钥匙串访问
Launchpad ->其他 -> 钥匙串访问
http://www.jianshu.com/p/af1e98321574
Scala Eclipse建立scala Maven项目
先建一个普通的maven项目, 然后在项目上右键,configure, Add Scala Nature.
Could Not Calculate Build Plan
参考http://stackoverflow.com/questions/12533885/could-not-calculate-build-plan-plugin-org-apache-maven-pluginsmaven-resources
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved
I had the exact same problem and since I read somewhere that the error was caused by a cached file, I fixed it by deleting all the files under de .m2 repository folder. The next time I built the project I had to download all the dependencies again but it was worth it - 0 errors!!
多个consumer使用同一个group.id消费同一个topic
只会有一个consumer能够读取到数据, 其它的consumer是无法消费到数据的. 谁要是知道怎么做,恳请告知!
Shell遍历目录下所有文件
1 | filelist=`ls /home/work/file/` |
一定要切记filelist=后边的那个引号不是单引号,而是tab键上边的那个键,或者说是1左边的那个键。否则的话不起作用。
转自http://blog.163.com/clevertanglei900@126/blog/static/111352259201162553652150
Hexo文章中插入图片
1 | 使用markdown写文章,插入图片的格式为,这里要说的是链接地址怎么写。 |
Elasticsearch查看type的mapping
使用以下方式查看elasticsearch中type的mapping1
GET /my_index/_mapping/my_type
详情请参考https://www.elastic.co/guide/en/elasticsearch/guide/current/mapping-intro.html#_viewing_the_mapping