一、alertdialog java: AlertDialog.Builder dialog=new AlertDialog.Builder(MainActivity.this); dialog.setTitle("This is Dialog"); dialog.setMessage("Somet ...
分类:
其他好文 时间:
2017-08-02 23:31:43
阅读次数:
193
/// 判断是否十六进制格式字符串 public bool IsHexadecimal(string str) { const string PATTERN = @"[A-Fa-f0-9]+$"; return System.Text.RegularExpressions.Regex.IsMatch ...
分类:
其他好文 时间:
2017-08-02 19:53:36
阅读次数:
155
1 SSL: certificate subject name 'WMSvc-GWAMSERVER02' does not match target host name 把curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); 2 Curl error: S ...
分类:
Web程序 时间:
2017-08-02 15:02:07
阅读次数:
309
Marriage Match II Problem Description Presumably, you all have known the question of stable marriage match. A girl will choose a boy; it is similar as ...
分类:
其他好文 时间:
2017-08-02 14:59:13
阅读次数:
207
activity启动模式之singleTask 一、简介 如果另外一个应用调用了C2,C2在栈底,如果这个程序里面再嗲用C1,C3,C2,那么这个C2就是调用onNewIntant的,C1和C3都被销毁了; 另一个程序>c2>c1>c3>c2,实际只剩:另一个程序>c2。 二、代码实例 效果图: 上 ...
分类:
其他好文 时间:
2017-08-02 00:34:55
阅读次数:
223
content为需要匹配的值 var b=/<a([\s]+|[\s]+[^<>]+[\s]+)href=(\"([^<>"\']*)\"|\'([^<>"\']*)\')[^<>]*>/gi; var s=content.toLowerCase().match(b); //得到链接地址 for(v ...
分类:
Web程序 时间:
2017-08-01 16:32:35
阅读次数:
179
来源:https://github.com/medcl/elasticsearch-analysis-pinyin Pinyin Analysis for Elasticsearch This Pinyin Analysis plugin is used to do conversion betwe ...
分类:
其他好文 时间:
2017-08-01 15:34:47
阅读次数:
225
在Android中对控件布局指定尺寸时,一般有两种方式:一种设定为自适应布局,即match_parent(fill_parent)或者wrap_content,通过根据父布局大小或者自己内容来产生一个动态尺寸;另外一种通过指定一个具体数值的方式定义成固定布局,单位可以是px/dp/sp等。这在绝大数 ...
分类:
移动开发 时间:
2017-08-01 12:41:57
阅读次数:
199
这里没什么好说的,直接贴文了 MongoDB provides the following methods for updating documents in a collection: Updates at most a single document that match a specified ...
分类:
其他好文 时间:
2017-08-01 12:31:06
阅读次数:
156
// 判断是否是手机function plat_is_mobile(){ var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIph ...
分类:
微信 时间:
2017-07-31 15:49:56
阅读次数:
246