05 2012 档案

摘要:///<summary>///通过单利模式实现数据程序缓存///DataInstanct.GetInstan().Add(0)[写入数据]///DataInstanct.GetInstan().Clear()[清空数据存储]///</summary>publicclassDataInstance{///<summary>///数据仓库///</summary>publicstaticList<int>dataWarehouse=newList<int>();privatereadonlystaticDataInstanct 阅读全文
posted @ 2012-05-31 17:05 Rhythmk 阅读(212) 评论(0) 推荐(0)
摘要:1.Get请求cs:privatevoidDownload(){stringurl="http://localhost:13936/GetData.aspx?id=getwangk";WebClientclient=newWebClient();client.DownloadStringCompleted+=newDownloadStringCompletedEventHandler(DownloadBind);client.DownloadStringAsync(newUri(url));}privatevoidDownloadBind(objectsender,Down 阅读全文
posted @ 2012-05-31 11:17 Rhythmk 阅读(2106) 评论(2) 推荐(0)
该文被密码保护。
posted @ 2012-05-27 17:54 Rhythmk 阅读(7) 评论(0) 推荐(0)
摘要:代码格式化工具 CodeMaid 阅读全文
posted @ 2012-05-19 17:11 Rhythmk 阅读(509) 评论(0) 推荐(0)
摘要://性能SETSTATISTICSIOon;SETSTATISTICSTIMEon;//Mysql 切分字符串CREATEPROCEDUREproc_split(inputstringVARCHAR(1000),delimCHAR(1))BEGINDECLAREstrlenINT;DECLARElast_indexINT;DECLAREcur_indexINT;DECLAREcur_charVARCHAR(200);DECLARElenINT;SETcur_index=1;SETlast_index=0;SETstrlen=LENGTH(inputstring);DROPTABLEIFEXIS 阅读全文
posted @ 2012-05-14 10:21 Rhythmk 阅读(541) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/zhangking/article/details/5670070 MySQL 群集是 MySQL 适合于分布式计算环境的高可用、高冗余版本。它采用了 NDB Cluster 存储引擎,允许在 1 个群集中运行多个 MySQL 服务器。在 MySQL 5.0 及以上的二进制版本中,以及与最新的 Linux 版本兼容的 RPM 包中提供了该存储引擎。 MySQL 群集是一种技术,该技术允许在无共享的系统中部署“内存中”和“磁盘中”数据库的 Cluster 。通过无共享体系结构,系统能够使用廉价的硬件,而且对软硬件无特殊要求。此外,由于每个组件有自... 阅读全文
posted @ 2012-05-10 11:18 Rhythmk 阅读(12531) 评论(3) 推荐(4)
摘要:EventLoglog=newEventLog("Wodongni.Com");//首先应判断日志来源是否存在,一个日志来源只能同时与一个事件绑定sif(!EventLog.SourceExists("NewApplication1"))EventLog.CreateEventSource("New... 阅读全文
posted @ 2012-05-09 13:06 Rhythmk 阅读(237) 评论(0) 推荐(0)
摘要:publicstaticDataTableToDataTable<T>(thisIList<T>data){PropertyDescriptorCollectionprops=TypeDescriptor.GetProperties(typeof(T));DataTabletable=newDataTable();for(inti=0;i<props.Count;i++){PropertyDescriptorprop=props[i];table.Columns.Add(prop.Name,prop.PropertyType);}object[]values=ne 阅读全文
posted @ 2012-05-08 17:23 Rhythmk 阅读(342) 评论(0) 推荐(0)
摘要:搜索 VersionControl.configwindows 7 路径如下:C:\Users\Administrator\AppData\Local\Microsoft\Team Foundation\3.0\Cache\VersionControl.config删除其中无用节点 .大致如下: <MappedPaths> <MappedPath path="项目路径" /> </MappedPaths> 阅读全文
posted @ 2012-05-08 09:29 Rhythmk 阅读(1065) 评论(0) 推荐(0)

Rhythmk 个人笔记