(git rm –r folder)删除一个空文件夹的时候,出现错误:fatal:pathspec "folder Name" did not match any files ...
分类:
其他好文 时间:
2016-07-09 10:37:52
阅读次数:
226
maven install的时候遇到 Check $M2_HOME environment variable and mvn script match.只需要在eclispe中的Default VM arguments中设置 -Dmaven.multiModuleProjectDirectory=$... ...
分类:
其他好文 时间:
2016-07-08 17:55:39
阅读次数:
114
多字段搜索(Multifield Search) 本文翻译自官方指南的Multifield Search一章。 查询很少是只拥有一个match查询子句的查询。我们经常需要对一个或者多个字段使用相同或者不同的查询字符串进行搜索,这意味着我们需要将多个查询子句和它们得到的相关度分值以一种有意义的方式进行 ...
分类:
其他好文 时间:
2016-07-07 12:31:29
阅读次数:
165
出这个错是因为jdk没有设置Dmaven.multiModuleProjectDirectory这个参数 如下配置即可: ...
分类:
其他好文 时间:
2016-07-06 14:44:06
阅读次数:
146
Scala里没有多少内建控制结构。仅有的包括if,while,for,try,match和函数调用。如此之少的理由是,从一开始Scala就包括了函数文本。代之以在基本语法之上一个接一个添加高层级控制结构,Scala把它们汇集在库里. 有件你会注意到的事情是,几乎所有的Scala的控制结构都会产生某个 ...
分类:
其他好文 时间:
2016-07-05 17:05:32
阅读次数:
205
本章要点
match表达式是一个更好的switch,不会有意外掉入到下一个分支的问题。
如果没有模式能够匹配,会抛出MatchError。可以用case _ 模式来避免。
模式可以包含一个随意定义的条件,称作守卫。
你可以对表达式的类型进行匹配;优先选择模式匹配而不是isInstanceOf/asInstanceOf。
你可以匹配数组、元组和样例类的模式,然后将匹配到的不同部分绑定到变量。
在for...
分类:
其他好文 时间:
2016-07-03 19:27:10
阅读次数:
161
re.match: match from the beginning of the string re.search: scan through the whole string to find a match dash '-' inside square '[]' means a range. p ...
分类:
编程语言 时间:
2016-07-02 22:44:00
阅读次数:
204
第一种:直接JS脚本<script type="text/javascript">try { var urlhash = window.location.hash; if (!urlhash.match("fromapp")){ if (navigator.userAgent.match(/(iPh ...
分类:
移动开发 时间:
2016-07-01 17:57:01
阅读次数:
301
1.显示7行,超过7行自动向下补充行数 <EditText android:id="@+id/edt_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:backgroun ...
分类:
其他好文 时间:
2016-07-01 16:00:45
阅读次数:
715
问题: Error 500 Error 500 preg_match(): Compilation failed: this version of PCRE is compiled without UTF support at offset 0 具体分析: 环境:centos7,lnmp,nginx ...
分类:
其他好文 时间:
2016-07-01 10:19:34
阅读次数:
210