上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: Talking About Test I hate the unit test to some extent, since I think unit test is a kind of duplication. We all know “Don’t Repeat Yourself”, but test definitely duplicated with production code. Thin... 阅读全文
posted @ 2011-06-14 10:26 Jerry Chou 阅读(618) 评论(0) 推荐(1) 编辑
摘要: It’s very common to create unique id in our application, like as order identifier,user identifier.etc. There are also many ways to generate the unique id in C#. The simplest approach is generating GUI... 阅读全文
posted @ 2011-06-13 14:50 Jerry Chou 阅读(2883) 评论(1) 推荐(0) 编辑
摘要: 1,HTML Specification In HTML specification, a section of [form submission] dedicated to explain which data should be post to the sever when submitting a form. User agent(such as Chrome, IE) which comp... 阅读全文
posted @ 2011-06-10 14:08 Jerry Chou 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 网上一个朋友问人注入是怎么回事,我一时语塞。我并不能很好的用尽量通俗的语言来表达这个意思。我说,我写一个代码片段吧,也许这样容易理解些。但发现效果并不明显。 代码示例如下: public interface IDisplay{ void Display(string message);}public class LCD:IDisplay{ public void Display(string me... 阅读全文
posted @ 2011-06-09 17:32 Jerry Chou 阅读(269) 评论(0) 推荐(0) 编辑
摘要: We do not want to view a mess of sql statement. such as There is no indent, mixing the lowercase and uppercase keywords. Is there any way to format this sql statement by SQL Management Studio? Maybe ... 阅读全文
posted @ 2011-06-08 11:32 Jerry Chou 阅读(474) 评论(2) 推荐(0) 编辑
摘要: 1,GIMP文字操作 怎么样在GIMP中添加文字? File->New新创建一个画布,然后点击工具箱中的“A”样式的工具(或菜单Tools->Text)。 在画布中需要添加文字的地方点击,此时会出现一个GIMP Text Editor对话框,在些写入你想添加的文字,我这里写入“GIMP 文字”。 此时,在工具箱的下方,你可以更改文字的字体,大小,颜色等属性,如图: 怎么样修改已经添加的文字? 在... 阅读全文
posted @ 2011-06-07 13:53 Jerry Chou 阅读(5716) 评论(0) 推荐(0) 编辑
摘要: 0:004> !threads ********************************************************************* * Symbols can not be loaded because symbol path is not initialized. * * * * The Symbol Path can be set by: * * usi... 阅读全文
posted @ 2011-04-14 09:12 Jerry Chou 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 1,准备工作 很多播放器都使用了ffmpeg这个类库来编解码,使用没有关系,但总是有些人不守规则。在耻辱榜上我看到了腾讯(QQPlayer),还有另一家深圳的公司。 我对GPL协议也不太了解,issue tracker中显示QQPlayer需要提供完整项目代码。我的疑问是: 如果是QQPlayer。其中集成了QQ的一些登陆模块,但这些代码不方便公开。但Player相关的代码已经公开。这样违反GPL... 阅读全文
posted @ 2011-03-31 11:07 Jerry Chou 阅读(15730) 评论(5) 推荐(0) 编辑
摘要: 因为需要使用ffmpeg的相关库和执行文件,所以需要编译最新的ffmpeg代码。为了能在编译成Windows native执行程序(需要在.net中调用该执行程序),这里我们使用MinGW。 1,安装MinGW 下载MinGW,双击安装,我当前使用的版本是20110316的。 添加Windows环境变量: BTW:对于使用Cygwin的朋友,为了不影响cygwin的HOME目录,可以在[C:\... 阅读全文
posted @ 2011-03-29 11:12 Jerry Chou 阅读(6040) 评论(0) 推荐(0) 编辑
摘要: 以下翻译自:http://www.emacs.uniyar.ac.ru/doc/em24h/emacs031.htm 如果没有Ctrl和Meta配合,键盘上的所有字符,数字和符号都会将字面意义输入当前缓冲区。 时常使用的函数被绑定在Ctrl或Meta键上。(比如将光标移动至行尾C-e,撤销C-_,粘贴C-y) 如果Ctrl用来绑定操作单个字符(Character)的函数,Meta则用来绑定相应地操... 阅读全文
posted @ 2011-03-21 15:27 Jerry Chou 阅读(689) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页