Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,...
分类:
其他好文 时间:
2015-01-27 10:55:21
阅读次数:
148
一、向post请求中写入数据,最终保存在了HttpWebRequest.Params中: 1)如果存入的是IDictionary类型的字符串变量,如:“username=administrator”,则key=value; 2)如果写入的是string类型的变量,如"username",则ke...
分类:
Web程序 时间:
2015-01-27 10:51:59
阅读次数:
161
1 public class IDCardVerify { 2 3 private String errorInfo; 4 5 // wi =2(n-1)(mod 11) 6 final int[] wi = { 7, 9, 10, 5, 8, 4, 2, ...
分类:
其他好文 时间:
2015-01-27 10:47:48
阅读次数:
254
public class CustomizeSession { private HttpSessionState _sesssion = HttpContext.Current.Session; public void SetSession(string ke...
分类:
其他好文 时间:
2015-01-27 10:45:12
阅读次数:
220
public static string LogPath{ get { string path = string.Empty; path = Environment.GetFolderPath(Environment.SpecialFolder.CommonP...
分类:
其他好文 时间:
2015-01-27 10:45:09
阅读次数:
175
转载自http://bbs.csdn.net/topics/390731832问题:public static String getAddress(final InputStream inputStream, final String mobile) { new Thread() { ...
分类:
编程语言 时间:
2015-01-27 10:43:15
阅读次数:
224
1、创建SQliteOpenHeplper子类。
2、建立数据库和表结构如下:版本号从1开始。底层以String类型存放
public class LocationInfosDBHelper extends SQLiteOpenHelper {
private static final String DATABASE_NAME="gpsinfos.db";
private static ...
分类:
数据库 时间:
2015-01-27 09:34:01
阅读次数:
248
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2015-01-27 09:30:15
阅读次数:
169
最近做了一个 MEAN stack 的 app 。后台用 NodeJS 从 Jira rest api 获得JSON数据并做处理,然后前端用 AngularJS Ajax call 获得处理后的 JSON 数据,显示到 App 上。处理了很多 JSON 数据,决定编一个例子,写一个总结。
JSON 数据处理,基本就是 JSON String 和 JSON Object 之间的转换。
J...
分类:
编程语言 时间:
2015-01-27 08:09:42
阅读次数:
183
查询条件过滤替换特许符号 public static string SpecialSymbols(string strText)
{
strText = strText.Trim();
strText = strText.Replace("!", "‘ + char(33) + ‘");
...
分类:
数据库 时间:
2015-01-27 07:09:33
阅读次数:
232