public static string GetHttpResponse(string url) {
string content = ""; // Create a new HttpWebRequest object.Make sure that // a
default proxy is se....
分类:
其他好文 时间:
2014-05-16 21:43:22
阅读次数:
360
Step1:关闭防火墙 service iptables stop[status] service
iptables status chkconfig --list |grep iptables chkconfig iptables offStep2:修改IP
(重启网卡:se...
分类:
其他好文 时间:
2014-05-16 21:22:50
阅读次数:
318
在使用nhibernate时,想将实体对象序列化成json字符串,然后打印在日志中。
序列化时会出现问题,应该是因为这个实体被hibernate管理的原因。具体原因没有分析。
解决方案:为实体创建一个dto。使用autoMapper将实体映射到dto中。然后再序列化dto。 这样需要为每一个实体对象...
分类:
Web程序 时间:
2014-05-16 21:17:41
阅读次数:
450
tr
(traslate的缩写)可以用来删除一段信息当中的文字,或者是进行文字信息的替换![root@www ~]# tr [-ds] SET1
...选项与参数:-d :删除信息当中的 SET1 这个字符串;-s :取代掉重复的字符!范例一:将 last 输出的信息中,所有的小写变成大写字...
分类:
系统相关 时间:
2014-05-16 19:36:05
阅读次数:
361
我们先把数组中的整数转换成字符串,在函数compare中定义比较规则,并根据该规则用库函数qsort排列。最后把排序好的数组中的数字依次打印出来,就是该数组中数字拼接出来的最小数字。这种思路的时间复杂度是O(nlogn)。
分类:
其他好文 时间:
2014-05-16 09:22:04
阅读次数:
262
class base64{ /** * 加密字符串 * @access static * @param
string $data 字符串 * @param string $key 加密key * @return string */ publ...
分类:
Web程序 时间:
2014-05-14 10:18:23
阅读次数:
333
一、介绍
1、STL是C++的一部分,做到了数据结构和算法的分离,具有高度的可重用性、高性能、高度的可移植性、跨平台的优点。
2、字符串string的使用方法:全面介绍了string类的构造、赋值、连接、比较、子串、查找、插入、删除、替换、wstring和统一编码等方面。 STL
简介:分为三类:c...
分类:
其他好文 时间:
2014-05-14 09:05:40
阅读次数:
374
将数组转成字符串/// /// 将数组转成字符串/// /// 分隔符///
要字符串数组private string Implode(char glue,string[] pieces) { string result =
string.Empty; int count = piece...
分类:
其他好文 时间:
2014-05-14 07:48:42
阅读次数:
363