打开AndroidManifest.xml文件,找到application节点android:allowBackup="true"android:icon="@drawable/ic_launcher"android:label="@string/app_name"android:theme="@s...
分类:
移动开发 时间:
2015-01-13 19:41:53
阅读次数:
1601
Write a function to find the longest common prefix string amongst an array of strings.把输入strs当做二维数组,对每一列j, 检查strs[0...n-1][j]是否相同。 1 string longestCom...
分类:
其他好文 时间:
2015-01-13 19:38:59
阅读次数:
144
控制器 ( Controller)Product下面功能主要根据多条件搜索产品的列表的功能 public ActionResult ProductList(string cityID, string productType,string currentPageIndex,string sortTyp...
分类:
Web程序 时间:
2015-01-13 19:37:10
阅读次数:
148
一、filter(function, sequence)对sequence中的item依次执行function(item),将执行结果为True的item组成一个List/String/Tuple(取决于sequence的类型)返回:def f(x): return x % 2 != 0 a...
分类:
编程语言 时间:
2015-01-13 19:32:01
阅读次数:
207
static void Main(string[] args) { Func addFunc = (a, b) => a+b; addFunc.BeginInvoke(5, 6, new AsyncCallback((ar) => { var func= ar.AsyncState as...
分类:
其他好文 时间:
2015-01-13 19:29:01
阅读次数:
95
public string GetMacAddress() { try { string mac = ""; ManagementClass mc = new Man...
分类:
其他好文 时间:
2015-01-13 19:22:35
阅读次数:
152
获取string.xml文件里面的值有几个不同的地方:1.在AndroidManifest.xml与layout等xml文件里:android:text="@string/resource_name"2.在activity里:方法一:this.getString(R.string.resource_...
分类:
其他好文 时间:
2015-01-13 19:18:20
阅读次数:
195
public class ShellCommand{ public static void execCmd(String cmd, boolean wait) { execCmd(cmd, wait, null); } public static void execCmd(String cmd, ....
分类:
编程语言 时间:
2015-01-13 17:38:36
阅读次数:
136
因需要做了一个截取显示对象图片上传至服务器,纠结了好多种方法都无果,今天突然发现了真面目: 上传图片至服务器的三种方式分别为: 1、二进制传输(BINARY) 2、字符串传输(String) 3、文件流上传(File) 第三种要借助FileReference,但是在此不能用这个,所以过。就剩前面两种...
分类:
Web程序 时间:
2015-01-13 17:35:07
阅读次数:
123
// ExecuteNonQuery 构建public static int ExecuteNonQuery(string sql,params SqlParameter[] parameters){ string Str = ConfigurationManager.ConnectionStrin...
分类:
数据库 时间:
2015-01-13 17:31:20
阅读次数:
275