http://blog.csdn.net/zhuobattle/article/details/50555393 问题描述: 在用fabric集成后编译出现如下错误, Error:Cause: hostname in certificate didn't match: <maven.fabric.i ...
分类:
移动开发 时间:
2016-09-24 13:27:47
阅读次数:
233
test是RegExp的方法,参数是字符串,返回值是boolean类型。 match是String的方法,参数是正则表达式,返回值是数组。 ...
分类:
Web程序 时间:
2016-09-23 11:26:19
阅读次数:
202
安装docker,gityuminstalldockerdocker-logrotategit-y安装docker-composeyuminstallpython-pip-y
pipinstall--upgradepip
pipinstalldocker-compose
pipinstall--upgradebackports.ssl_match_hostname下载harborgitclonehttps://github.com/vmware/harbor安装harborcdharbor/D..
分类:
其他好文 时间:
2016-09-22 18:24:03
阅读次数:
236
CD"D:\Symantec\ScanEngine\CmdLineScanner\"
Write-Host"开始扫描以a打头的文件!"
Get-ChildItem-pathz:\|where{$_.Name-match"^a"}|selectfullname|Out-Filefiles.txt#获取以a开头的文件及文件夹,输出到a.txt文件中
$file=Get-Content"files.txt"#将files.txt内容赋给$fil..
分类:
系统相关 时间:
2016-09-22 18:23:34
阅读次数:
268
前面两节我们已经多次接触过case关键字了。case关键字不仅可以用在match/case中来执行模式匹配,也可以用来修饰类。不过用case修饰的类也主要是用来做模式匹配。在上一节曾经提到过match可以是Any类型的所有类,为什么还需要使用case关键字来修饰呢?假定有这样一个场景:我们要接收和处... ...
分类:
其他好文 时间:
2016-09-20 22:37:11
阅读次数:
260
【问题】 一个python脚本,本来都运行好好的,然后写了几行代码,而且也都确保每行都对齐了,但是运行的时候,却出现语法错误: IndentationError: unindent does not match any outer indentation level 【解决过程】 1.对于此错误,最 ...
分类:
编程语言 时间:
2016-09-20 22:32:18
阅读次数:
179
1 <WebView 2 android:id="@+id/webView" 3 android:layout_width="match_parent" 4 android:layout_height="wrap_content"></WebView> ...
分类:
Web程序 时间:
2016-09-20 18:07:47
阅读次数:
139
读取navigator.userAgent里面的信息,为了方便利用toLowerCase方法转成小写的形式。然后用MATCH方法进行匹配版本信息,这里提供了多个版本的测试信息,可以用来做后续代码的接口。这里作统一或起来判断登陆端是否是手机~~程序很简单,主要还是丰富JS知识吧。下面是个简单的小例子, ...
分类:
移动开发 时间:
2016-09-19 15:53:05
阅读次数:
131
RDD里的模式匹配:defhasNext:Boolean=(thisIter.hasNext,otherIter.hasNext)match{case(true,true)=>truecase(false,false)=>falsecase_=>thrownewSparkException("CanonlyzipRDDswith"+"samenumberofelementsineachpartition")}jobResult=jobResultmatch{caseSome(v..
分类:
其他好文 时间:
2016-09-19 13:21:23
阅读次数:
140
再来看一下之前的一段代码: def process(input: Any) { input match { case (a: Int, b: Int) => println("Processing (int, int)... ") case (a: Double, b: Double) => pri... ...
分类:
其他好文 时间:
2016-09-18 23:31:31
阅读次数:
260