之前做DataTable和DataSet转xml一直使用XmlSerializer 序列化完成。今天发现新方法,哇咔咔方便了很多。还不用担心Name为空时报错 1 static void Main(string[] args) 2 { 3 DataTable ...
分类:
其他好文 时间:
2015-04-25 16:31:23
阅读次数:
160
MD5方法:public static string GetMD5(string sDataIn) { MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider(); byte[] bytValue, bytHash; bytValue ...
分类:
编程语言 时间:
2015-04-25 16:23:08
阅读次数:
170
物联网学习过程中遇到了需要PC端与Android端使用TCP协议进行通讯的问题,记录下来以便今后复习。 这里我PC端服务器使用的是C#编写的代码:int port = 2000;//端口号string host = "192.168.1.100";//服务器IP地址,IPAddress ip ...
分类:
移动开发 时间:
2015-04-25 16:19:35
阅读次数:
128
① String 字符串对象fromCharCode() 静态方法, 用作为参数而传递的字符代码创建一个新的字符串。length 字符串的长度。charAt() 抽取字符串中指定位置的字符。charCodeAt() 返回字符串中指定位置的字符编码。concat() 把一...
分类:
编程语言 时间:
2015-04-25 14:58:54
阅读次数:
161
今天用到了查询手机号码归属地的这个功能,但是公司自己的字典库数据太过陈旧,每一百个号码就有五六个识别不出来,所以就找了开源的API,维护了一下字典库。用到的API有两个,整理如下:淘宝的JSONObject json = null; String url = "http://tcc.t...
分类:
移动开发 时间:
2015-04-25 14:54:15
阅读次数:
146
问题描述:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique l...
分类:
编程语言 时间:
2015-04-25 14:54:13
阅读次数:
145
问题描述:Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see be...
分类:
编程语言 时间:
2015-04-25 14:51:50
阅读次数:
148
问题描述:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating lette...
分类:
编程语言 时间:
2015-04-25 14:50:46
阅读次数:
131
内容:在上一章的基础上多了对servlet的处理,重点是ServletProcessor1这个类,利用到了URL、URLClassLoader和java反射机制。
webroot:
public class HttpServer1 {
private static final String SHUTDOWN_COMMAND = "/SHUTDOWN";
private boolean sh...
分类:
其他好文 时间:
2015-04-25 12:16:33
阅读次数:
135
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:
编程语言 时间:
2015-04-25 12:09:43
阅读次数:
158