2007年1月16日
摘要: 当我们开发C#代码的时候,经常碰到一个问题,有些class提供Close(),有些class提供Dispose(),那么Dispose和Close到底有什么区别? 阅读全文
posted @ 2007-01-16 18:06 万俊峰Kevin 阅读(74935) 评论(25) 推荐(5) 编辑
  2007年1月12日
摘要: 为了让大家使用稍微方便点,我把fgen编译成了Linux上的binary,(可以直接run)。只要把.fgen这个config目录copy到HOME下就可以了。可以从这里下载。http://sourceforge.net/project/showfiles.php?group_id=184939 阅读全文
posted @ 2007-01-12 18:37 万俊峰Kevin 阅读(424) 评论(0) 推荐(0) 编辑
  2006年12月28日
摘要: fgen发布到sourceforge上了。 阅读全文
posted @ 2006-12-28 20:33 万俊峰Kevin 阅读(990) 评论(3) 推荐(0) 编辑
  2006年12月11日
摘要: Google quietly added a small feature to Gmail this week called Mail Fetcher. When that feature launched, Gmail became perfect. 阅读全文
posted @ 2006-12-11 11:16 万俊峰Kevin 阅读(655) 评论(2) 推荐(0) 编辑
  2006年12月8日
摘要: Delegate in C# is similar to a function pointer in C or C++. But it's type-safe, and easy to use. This delegate library in C++ implements the similar concept. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which method will be invoked. 阅读全文
posted @ 2006-12-08 21:32 万俊峰Kevin 阅读(2608) 评论(0) 推荐(0) 编辑
  2006年11月23日
摘要: 昨天在公司装上了Vista,不错。。。 阅读全文
posted @ 2006-11-23 11:41 万俊峰Kevin 阅读(316) 评论(5) 推荐(0) 编辑
  2006年11月11日
摘要: 对于c来说,我们可以用lint来检查程序的一些隐含的问题。gcc中可以用-Wall选项来实现差不多lint的功能。对于python这样一个动态的语言来说,这种检查就显得更为重要了,因为有些代码在做unit test的时候可能不会执行到,里面的错误就很难被发现。我们可以用pylint来做一些仔细的检查。pylint: ftp://ftp.logilab.fr/pub/pylint/pylint-0.... 阅读全文
posted @ 2006-11-11 11:06 万俊峰Kevin 阅读(1791) 评论(1) 推荐(0) 编辑
  2006年11月7日
摘要: 不知道是懒惰,还是没空(这个估计不是,)。早在六七月份的美国之行,到今天才写这篇随笔。因为是出差,所以没有太多时间游玩,有点遗憾。玩的地方有:金门大桥,旧金山观光一日游,唐人街等。有几点感想: 不到那里根本不知道自己的英语怎样,他们一聊天我就基本上没法懂,太多的俚语和文化差异!唉。。。 美国人很注重环保,所以我在那里那么多天,天空都是很蓝很蓝的,我们开玩笑的说,原来w... 阅读全文
posted @ 2006-11-07 11:35 万俊峰Kevin 阅读(994) 评论(6) 推荐(0) 编辑
  2006年11月1日
摘要: cat - concatenate files and print to the standard output cksum - checksum and count the bytes in a file comm - compare two sorted files line by line csplit - split a fi... 阅读全文
posted @ 2006-11-01 13:01 万俊峰Kevin 阅读(405) 评论(0) 推荐(0) 编辑
  2006年10月30日
摘要: 对于python程序转为exe文件的方法,大家知道最多的可能就是py2exe了,不过这个是windows平台上的。在linux平台上可以使用python自带的freeze模块,用法如下:python [options] 要找到freeze.py,可以使用"locate freeze"比如:我有5个py文件, gen目录下(main.py, print.py, depot.py, gen.py, ... 阅读全文
posted @ 2006-10-30 12:06 万俊峰Kevin 阅读(2667) 评论(2) 推荐(0) 编辑