码迷,mamicode.com
首页 >  
搜索关键字:logstash grok pattern    ( 8906个结果
[笔记]工作相关
1、最近编写了几个工厂需要的test pattern,用于UHD120和UHD60的pannel上,其中UHD120需要做半分屏处理,存储一行。2、最近写了UHD120/60/30缩放到FHD120/60/30的算法,采用的算法是双线性算法,相邻4点取平均得到的。需要进行行的存储。注意DPRAM的使...
分类:其他好文   时间:2014-05-27 00:17:14    阅读次数:256
[Scala] Pattern Matching(模式匹配)
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
PHP设计模式之单例模式
单例模式(Singleton pattern)是一种创建型模式,它会限制应用程序,使其只能创建某个类类型的单一实例。举例来说,一个Web站点将会需要一个数据库连接对象,但是应该有且只有一个,因此我们需要使用单例模式来实现。eg:_settings[$index] = $value; } f...
分类:Web程序   时间:2014-05-26 06:20:06    阅读次数:319
设计模式 - 装饰者模式(Decorator Pattern) Java的IO类 使用方法
装饰者模式(Decorator Pattern) Java的IO类 使用方法 本文地址: http://blog.csdn.net/caroline_wendy/article/details/26716823 装饰者模式(decorator pattern)参见: http://blog.csdn.net/caroline_wendy/article/details/2670...
分类:编程语言   时间:2014-05-25 00:55:05    阅读次数:346
设计模式 - 策略模式(Strategy Pattern) 详解
策略模式(Strategy Pattern) 详解 本文地址: http://blog.csdn.net/caroline_wendy/article/details/26577879 本文版权所有, 禁止转载, 如有需要, 请站内联系. 策略模式: 定义了算法族, 分别封装起来, 让它们之间可以相互替换, 此模式让算法的变化独立于使用算法的客户. 对于父类的子类族需要经常扩展新的功能, 为了使用父类比较灵...
分类:其他好文   时间:2014-05-23 02:35:13    阅读次数:341
LeetCode: Wildcard Matching [043]
【题目】 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
JavaScript Patterns 2.6 switch Pattern
This post introduces the principle of the use of switch-pattern.
分类:编程语言   时间:2014-05-22 16:15:39    阅读次数:280
My study notes —— 初始24种设计模式
摘要 设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。 毫无疑问,设计模式于己于他人于系统都是多赢的;设计模式使代码编制真正工程化;设计模式是软件工程的基石脉络,如...
分类:其他好文   时间:2014-05-21 17:19:21    阅读次数:278
yarn 集群部署,遇到的问题小结
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 抽象工厂方法
有没有好的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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!