1、最近编写了几个工厂需要的test
pattern,用于UHD120和UHD60的pannel上,其中UHD120需要做半分屏处理,存储一行。2、最近写了UHD120/60/30缩放到FHD120/60/30的算法,采用的算法是双线性算法,相邻4点取平均得到的。需要进行行的存储。注意DPRAM的使...
分类:
其他好文 时间:
2014-05-27 00:17:14
阅读次数:
256
Scala中的match, 比起以往使用的switch-case有著更強大的功能, 1. 傳統方法
def toYesOrNo(choice: Int): String = choice match { case 1 => "yes" case 0
=> "no" case _ => "error"...
分类:
其他好文 时间:
2014-05-26 20:45:46
阅读次数:
285
策略模式(Strategy Pattern) 详解
本文地址: http://blog.csdn.net/caroline_wendy/article/details/26577879
本文版权所有, 禁止转载, 如有需要, 请站内联系.
策略模式: 定义了算法族, 分别封装起来, 让它们之间可以相互替换, 此模式让算法的变化独立于使用算法的客户.
对于父类的子类族需要经常扩展新的功能, 为了使用父类比较灵...
分类:
其他好文 时间:
2014-05-23 02:35:13
阅读次数:
341
【题目】
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover the entire input string (not partial).
The functi...
分类:
其他好文 时间:
2014-05-23 00:17:12
阅读次数:
364
--查询数据库状态select name,user_access,user_access_desc,
snapshot_isolation_state,snapshot_isolation_state_desc,
is_read_committed_snapshot_onfrom sys.dat.....
分类:
数据库 时间:
2014-05-22 16:48:03
阅读次数:
340
This post introduces the principle of the use
of switch-pattern.
分类:
编程语言 时间:
2014-05-22 16:15:39
阅读次数:
280
List integers = new List() { 0, 1, 2, 3, 4, 5,
6, 7, 8, 9 };Parallel.ForEach(integers, (int item, ParallelLoopState state)
=>{ if (item > 5) { ...
分类:
Web程序 时间:
2014-05-22 16:03:56
阅读次数:
287
1. Application Master 无法访问
点击application mater 链接,出现 http 500 错误,java.lang.Connect.exception:
问题是由于设定web ui时,50030 端口对应的ip地址为0.0.0.0,导致application master 链接无法定位。
解决办法:...
分类:
其他好文 时间:
2014-05-21 13:58:49
阅读次数:
323
有没有好的python UML建模工具?求推荐,除eclipse的插件(因为不喜欢用eclipse)。pyNsource用的不是很好,pyUt不全。
import abc
class AbstractEnemyFactory( object ):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def createNinja( s...
分类:
编程语言 时间:
2014-05-21 12:25:32
阅读次数:
360