function getServiceUrl() { var serverUrl =
Xrm.Page.context.getServerUrl(); if (serverUrl.match(/\/$/)) { serverUrl =
serverUrl.substring(0, serverUrl...
分类:
其他好文 时间:
2014-05-31 05:01:55
阅读次数:
214
移植环境:Cyclone IV
开发板,网卡芯片为ENC28J60,浏览器(Firefox_24.0.0.5001a)
首先,需要了解网卡芯片ENC28J60,有中文版的说明书:http://wenku.baidu.com/link?url=79r8JOHiGAyAG9kX9-...
分类:
移动开发 时间:
2014-05-30 20:01:21
阅读次数:
508
在android中要加载一张大图片到内存中如果通过如下方式进行:Bitmap bitmap=
BitmapFactory.decodeFile("/sdcard/a.jpg");iv.setImageBitmap(bitmap);则会抛出内存溢出异常Caused
by: java.lang.OutO...
分类:
移动开发 时间:
2014-05-28 16:23:10
阅读次数:
295
//判断一个汉子等于两个字符function getByteLen(val) { var len =
0; for (var i = 0; i < val.length; i++) { var a = val.charAt(i); if
(a.match(/[...
分类:
Web程序 时间:
2014-05-26 20:47:25
阅读次数:
205
Scala中的match, 比起以往使用的switch-case有著更強大的功能, 1. 傳統方法
def toYesOrNo(choice: Int): String = choice match { case 1 => "yes" case 0
=> "no" case _ => "error"...
分类:
其他好文 时间:
2014-05-26 20:45:46
阅读次数:
285
LinearLayout linearLayoutMain = new
LinearLayout(this);//自定义一个布局文件 linearLayoutMain.setLayoutParams(new
LayoutParams( LayoutParams.MATCH_PARENT, ...
分类:
移动开发 时间:
2014-05-26 16:22:12
阅读次数:
257
Marriage Match II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit:
32768/32768 K (Java/Others)
Problem Descript...
分类:
其他好文 时间:
2014-05-26 04:40:15
阅读次数:
228
Python能够成为流行的数据处理语言,部分原因是其简单易用的字符串和文本处理功能。大部分文本运算都直接做成了字符串对象的内置方法。对于更为复杂的模式匹配和文本操作,则可能需要用到正则表达式。pandas对此进行了加强,它使你能够对数组数据应用字符串表达式和正则表达式,而且能处理烦人的缺失数据。...
分类:
编程语言 时间:
2014-05-26 03:42:44
阅读次数:
443
注意两点
1.通过android:checkedButton="@+id/lunch"而不是item中的 android:checked="true"设置的某人被选中状态
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
a...
分类:
其他好文 时间:
2014-05-23 00:04:35
阅读次数:
344
import re
data = open('a.txt')
fh = open('b.txt', 'w')
"""Search the string begining with '【'"""
p = re.compile(r'\s*[\u3010]')
for each_d in data:
if re.match('\s*3\d{4}', each_d):
...
分类:
编程语言 时间:
2014-05-22 17:26:17
阅读次数:
293