02 2016 档案

摘要:Go语言通过ODBC 访问SQL server,这里需要用到go-odbc库,开源地址::https://github.com/weigj/go-odbc 一、驱动安装 在cmd中打开GOPATH: 转到src目录 在src目录通过git获取odbc驱动: git clone git://githu 阅读全文
posted @ 2016-02-29 10:53 迪克猪 阅读(5153) 评论(0) 推荐(0) 编辑
摘要:一、介绍 对于Visual Studio Code开发工具,有一款优秀的GoLang插件,它的主页为:https://github.com/microsoft/vscode-go 这款插件的特性包括: Colorization 代码着彩色 Completion Lists 代码自动完成(使用goco 阅读全文
posted @ 2016-02-28 12:42 迪克猪 阅读(67322) 评论(8) 推荐(6) 编辑
摘要:一、GO语言安装 详情查看:GO语言下载、安装、配置 二、GoLang插件介绍 对于Visual Studio Code开发工具,有一款优秀的GoLang插件,它的主页为:https://github.com/microsoft/vscode-go 这款插件的特性包括: Colorization 代 阅读全文
posted @ 2016-02-28 01:08 迪克猪 阅读(175442) 评论(10) 推荐(16) 编辑
摘要:Consolidate multiple tasks or operations into a single computational unit. This pattern can increase compute resource utilization, and reduce the cost 阅读全文
posted @ 2016-02-27 14:21 迪克猪 阅读(593) 评论(0) 推荐(0) 编辑
摘要:问题描述 在服务端保存登录信息,出现异常信息 分析发现HttpContext.Current.Session为null 解决方案 执行时出报异常,要在Global.asax里添加:开启Session功能 阅读全文
posted @ 2016-02-26 09:45 迪克猪 阅读(693) 评论(0) 推荐(0) 编辑
摘要:应用场景 TListView可以动态选择列并显示而且列宽度也要保存,加载数据ListView会出现N次闪烁 步骤一: 选择要显示列: 点击“确定”按钮,显示下图 步骤二: 界面会出现数据加载闪烁情况。 代码分析 原有代码: ListView也启用了BeginUpdate与EndUpdate,使用这个两个方法还是会出现刷新问题。 查找相关资料,限制ListView刷新,使用LockWindo... 阅读全文
posted @ 2016-02-25 10:42 迪克猪 阅读(3245) 评论(1) 推荐(0) 编辑
摘要:一、Go语言下载 go语言官方下载地址:https://golang.org/dl/ 找到适合你系统的版本下载,本人下载的是windows版本。也可以下载Source自己更深层次研究go语言。 二、GO语言安装 下载完成之后,双击go1.6.windows-amd64.msi进行安装。 如果安装过程 阅读全文
posted @ 2016-02-24 22:08 迪克猪 阅读(41070) 评论(1) 推荐(3) 编辑
摘要:定义 业务对象模型(也叫领域模型 domain model)是描述业务用例实现的对象模型。它是对业务角色和业务实体之间应该如何联系和协作以执行业务的一种抽象。业务对象模型从业务角色内部的观点定义了业务用例。该模型为产生预期效果确定了业务人员以及他们处理和使用的对象(“业务类和对象”)之间应该具有的静态和动态关系。它注重业务中承担的角色及其当前职责。这些模型类的对象组合在一起可以执行所有的... 阅读全文
posted @ 2016-02-24 14:28 迪克猪 阅读(1654) 评论(0) 推荐(0) 编辑
摘要:Enable multiple concurrent consumers to process messages received on the same messaging channel. This pattern enables a system to process multiple mes 阅读全文
posted @ 2016-02-23 17:04 迪克猪 阅读(896) 评论(0) 推荐(0) 编辑
摘要:Undo the work performed by a series of steps, which together define an eventually consistent operation, if one or more of the steps fail. Operations t 阅读全文
posted @ 2016-02-16 21:13 迪克猪 阅读(655) 评论(0) 推荐(0) 编辑
摘要:一致性哈希算法在1997年由麻省理工学院提出的一种分布式哈希(DHT)实现算法,设计目标是为了解决因特网中的热点(Hot spot)问题,初衷和CARP十分类似。一致性哈希修正了CARP使用的简单哈希算法带来的问题,使得分布式哈希(DHT)可以在P2P环境中真正得到应用。 一致性hash算法提出了在动态变化的Cache环境中,判定哈希算法好坏的四个定义: 1、平衡性(B... 阅读全文
posted @ 2016-02-10 21:41 迪克猪 阅读(314) 评论(1) 推荐(0) 编辑
摘要:原文地址:CQRS, Task Based UIs, Event Sourcing agh! Many people have been getting confused over what CQRS is. They look at CQRS as being an architecture; it is not. CQRS is a very simple pattern that enabl... 阅读全文
posted @ 2016-02-08 20:10 迪克猪 阅读(462) 评论(0) 推荐(0) 编辑
摘要:Handle faults that may take a variable amount of time to rectify when connecting to a remote service or resource. This pattern can improve the stabili 阅读全文
posted @ 2016-02-05 23:58 迪克猪 阅读(3774) 评论(0) 推荐(1) 编辑
摘要:1、Cache-aside Pattern 缓存模式 Load data on demand into a cache from a data store. This pattern can improve performance and also helps to maintain consist 阅读全文
posted @ 2016-02-05 20:18 迪克猪 阅读(1111) 评论(0) 推荐(1) 编辑
摘要:Load data on demand into a cache from a data store. This pattern can improve performance and also helps to maintain consistency between data held in t 阅读全文
posted @ 2016-02-05 12:19 迪克猪 阅读(6246) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示