之前由于上线验证需要各种修改配置,需要运维同事处理,太麻烦,今天用程序处理了修改配置文件,一劳永逸,小记下: [HttpPost] public ActionResult SaveSetting(string key, string value) { ...
分类:
其他好文 时间:
2015-04-20 16:40:49
阅读次数:
100
Roman to IntegerTotal Accepted:35099Total Submissions:100583My SubmissionsQuestionSolutionGiven a roman numeral, convert it to an integer.Input is gua...
分类:
其他好文 时间:
2015-04-20 16:32:46
阅读次数:
155
1 public static class StringHelper 2 { 3 public static int? ToIntNullable(this string obj) 4 { 5 if (obj == null || strin...
分类:
其他好文 时间:
2015-04-20 16:30:08
阅读次数:
80
1 public static class ArrayListHelper 2 { 3 /// 4 /// determine whether the array list contain the sepcific string 5 //...
分类:
其他好文 时间:
2015-04-20 16:27:50
阅读次数:
81
图片加密使用xxtea来加密,加密秘钥自己定,思路就是自己使用代码首先将图片加密,在程序中使用的时候,在加载图片资源处再将资源解密
加密代码如下:
首先要加载头文件
2、将图片加密
bool jiamiImg(string inputFileName,string outFileName)
{
string fileName=FileUtils::getInstance()->...
分类:
其他好文 时间:
2015-04-20 15:07:16
阅读次数:
217
题目:
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 below and ask yourself what are the possible i...
分类:
其他好文 时间:
2015-04-20 15:04:26
阅读次数:
114
字符串和字符String是例如“hello, world”,“海贼王” 这样的有序的Character (字符)类型的值的集合,通过String 类型来表示。
Swift的String 和Character 类型提供了一个快速的,兼容 Unicode 的方式来处理代码中的文本信息。 创建和操作字符串的语法与 C 语言中字符串操作相似,轻量并且易读。 字符串连接操作只需要简单地通过+号将两个字符...
分类:
移动开发 时间:
2015-04-20 15:02:09
阅读次数:
189
转载请标明出处:http://blog.csdn.net/u012637501
一、GET请求(2步)
1.修改实现客户端与服务器通信的LoginToSever.java文件
注释"public String doPost(String name,String psd) "方法(POST请求方法实体),实现一个"public String doGet(String name,S...
分类:
数据库 时间:
2015-04-20 15:00:19
阅读次数:
204
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
For example: Given "25525511135",
return ["255.255.11.135", "255.255.111.35"]. (Order does ...
分类:
其他好文 时间:
2015-04-20 14:53:39
阅读次数:
95
String 定义的对象不能被修改,修改其实是创建了一个新的对象。如 :String s1 = "1";s1 = s1+ "2";本来s1 是指向”1“的一个对象 现在 s1是指向 ”12“ 的一个对象。s1 是一个新的对象。String 中一些常用的方法:== 与equal()的 区别== 是判断...
分类:
编程语言 时间:
2015-04-20 14:48:16
阅读次数:
181