01 2017 档案

摘要://使用双缓冲:添加新类继承ListView 对其重写 public class DoubleBufferListView : ListView { public DoubleBufferListView() { SetStyle(ControlStyles.DoubleBuffer | ControlS... 阅读全文
posted @ 2017-01-22 12:57 会弹猫的吉他 阅读(481) 评论(0) 推荐(0)
摘要:https://ipip.yy.com/get_ip_info.php http://pv.sohu.com/cityjson?ie=utf-8 http://www.ip168.com/json.do?view=myipaddress http://www.ipip.net/ip.php http://ip.chemdrug.com/ http://ip.siteloop.net/ http:... 阅读全文
posted @ 2017-01-19 14:53 会弹猫的吉他 阅读(334) 评论(0) 推荐(0)
摘要:JArray ja = new JArray(); JObject jo = new JObject(); jo.Add("1","1"); ja.Add(jo); ja.Add(jo); ja.ToList().ForEach(x => ((JObject)x).Add("2", "2")); Console.WriteLine(ja.ToString()); 阅读全文
posted @ 2017-01-06 14:57 会弹猫的吉他 阅读(4581) 评论(0) 推荐(0)
摘要:1. 部署网站到IIS7.5,Window 2008的时候出现这个错误 2. 错误信息 Server Error in ‘/’ Application. Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=3.0.0.0, Cul... 阅读全文
posted @ 2017-01-04 11:38 会弹猫的吉他 阅读(734) 评论(0) 推荐(0)
摘要:Windows下的Memcache安装: 1. 下载memcache的windows稳定版,解压放某个盘下面,比如在c:\memcached2. 在终端(也即cmd命令界面)下输入 ‘c:\memcached\memcached.exe -d install’ 安装,安装完成后刷新电脑的服务列表会发 阅读全文
posted @ 2017-01-03 16:04 会弹猫的吉他 阅读(178) 评论(0) 推荐(0)
摘要:枚举: public enum EnumLanugage { [System.ComponentModel.Description("中文")] Chinese, English } 获取值描述的方法: public string GetEnumDescription(Enum enumValue) { string str = enumValue.ToStri... 阅读全文
posted @ 2017-01-03 09:26 会弹猫的吉他 阅读(377) 评论(0) 推荐(0)