希望实现的效果是:对购物车中所有商品的总价,实现9折或8折:当点击"9折":当点击"8折":□
思路8折或9折是打折接口的不同实现,关键是:由什么条件决定使用哪种打折方式?--当点击8折或9折链接的时候,把参数放在路由中,然后在自定义控制器工厂中根据参数的不同选择使用哪种打折方式。□
model p...
分类:
Web程序 时间:
2014-05-27 17:53:23
阅读次数:
702
DPM(Deformable Parts Model)Reference:Object
detection with discriminatively trained partbased models. IEEE Trans. PAMI,
32(9):1627–1645, 2010."Support...
分类:
其他好文 时间:
2014-05-27 17:37:59
阅读次数:
366
目标:1. 使用ZoomManager来执行图形的缩放2.
对图形进行对齐(Alignment)操作3. 图形修改后进行dirty
check(提示保存文档)图形缩放:提供缩放能力的方法就是设置根图形的RootEditPart为ScalableRootEditPart。一般在Editor的confi...
分类:
其他好文 时间:
2014-05-27 17:20:25
阅读次数:
482
20140526-一个从pdf转换成图片的类,工作当中有用到 package
com.jako.database.model; import java.awt.Image; import java.awt.Rectangle;
import java.awt.image.BufferedImage;...
分类:
其他好文 时间:
2014-05-27 17:11:55
阅读次数:
368
UCJqOrderList @model
PagedList订单编号订单日期顾客编号收货地址@foreach(Order od in Model) {
@od.OrderID@od.OrderDate.ToString()@od.CustomerID @od.Ship...
分类:
Web程序 时间:
2014-05-26 20:07:21
阅读次数:
397
NOTES : A Model of Gas Exchange for
Hyperpolarized Xe(129) Magnetic Resonance of the
Lung背景知识:Gasexchangeistheessentialfunctionofthelung.Ingeneral,alu...
分类:
Web程序 时间:
2014-05-26 16:45:06
阅读次数:
352
MVC(Model/View/Controller)模式是国外用得比较多的一种设计模式,好象最早是在Smaltalk中出现。MVC包括三类对象。Model是应用对象,View是它在屏幕上的表示,Controller定义用户界面对用户输入的响应方式。
模型-视图-控制器(MVC)是80年代Smallt...
分类:
其他好文 时间:
2014-05-25 23:19:23
阅读次数:
235
用数学的方法描述语言规律贾里尼克:一个句子是否合理,等同于判断其可能性的大小,用概率来衡量Markov模型:简化条件概率运算。二元模型 Bigram
model,N元模型为什么合理?上下文相关,短程依赖。不足之处:忽略长程依赖性 Long Distance DependencyN的取值?tradeo...
分类:
其他好文 时间:
2014-05-25 23:12:32
阅读次数:
262
模型-视图-控制器(MVC)是80年代Smalltalk-80出现的一种软件设计模式,现在已经被广泛的使用。
1、模型(Model) 模型是应用程序的主体部分。模型表示业务数据,或者业务逻辑. 2、视图(View)
视图是应用程序中用户界面相关的部分,是用户看到并与之交互的界面。 3、控制器(con...
分类:
Web程序 时间:
2014-05-25 22:50:17
阅读次数:
249
寻找图中最小连通的路径,图如下:
算法步骤:
1. Sort all the edges in non-decreasing order of their weight.
2. Pick the smallest edge. Check if it forms a cycle with the spanning tree
formed so far. If cycle is n...
分类:
其他好文 时间:
2014-05-25 07:35:59
阅读次数:
301