要用VB写一个串口通讯的小程序,
用到MSComm控件,
可是装好VB后又发现需要License。
上网查了一下,只需要做如下修改就好了。
把下面这段代码写成1.REG文件,然后运行1.reg,注册就可以了:
Continue reading “MSComm控件License安装”
工作-生活-记录
要用VB写一个串口通讯的小程序,
用到MSComm控件,
可是装好VB后又发现需要License。
上网查了一下,只需要做如下修改就好了。
把下面这段代码写成1.REG文件,然后运行1.reg,注册就可以了:
Continue reading “MSComm控件License安装”
Hacking Vim: A Cookbook to get the Most out of the Latest Vim Editor
看了一下介绍,讲的是Vim7.0,最新的版本,但是不适合初学者,对有一定Vim基础的应该是一本比较好的书,还没有下载完,一会先去浏览一下,看介绍的,我对一些章节还是挺感兴趣的,比如:auto-completion 和 folding。
下面是书的介绍:
Continue reading “Vim 新书快递”
When we need pass a variable name to a procedure, we can use upvar. upvar like reference in C++, we can changes the variable as we like.
the syntax of upvar is:
upvar ?level? varName localvar
现在一般教本语言(perl python tcl)中都会提供字典(数组)这样的数据结构,
这种结构使用起来最为灵活方便,但是也最不容易掌握。
Continue reading “tcl 中array做为函数参数传递的调用方法”
1 tcl>set drv 5
2 tcl>set foo "oai21_e5m_hvt"
3 tcl>regsub {_(_v\d)?e(\d+)} $foo "_ \1 e$drv" goo
4 1
5 tcl>echo $goo
6 oai21_e5m_hvt
7 tcl>echo $foo
8 oai21_e5m_hvt
9 tcl> string match $foo $goo
10 0
11 tcl>string length $foo
12 13
13 tcl>string length $goo
14 14
15 tcl>string index $goo 6
16
17 tcl>string index $foo 6
18 e 19 tcl>
这个插件可以使firefox直接打开CHM文件。
下载地址:
https://addons.mozilla.org/en-US/firefox/addon/3235
使用方法:
1、 File -> Open Chm File
2、View -> Sidebar -> CHM Reader
Continue reading “FireFox CHM 插件”
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Continue reading “The Zen of Python (Python之神)”
== 介绍 ==
这篇文档所给出的编码约定适用于在主要的Python发布版本中组成标准库的Python
代码.请查阅相关的关于在Python的C实现中C代码风格指南的描述.
这篇文档改编自Guido最初的《Python风格指南》一文.
并从《Barry’s style guide》中添加了部分内容.
在有冲突的地方,Guide的风格规则应该是符合本PEP的意图
(译注:就是当有冲突时,应以Guido风格为准)
这篇PEP也许仍然尚未完成(实际上,它可能永远不会结束).
====正文开始====
这是邮件正文
====正文结束====
Continue reading “测试pdf附件”
this is in the attachment, and the file format is txt.This is in the mail body.
Continue reading “test how blogger will deal with attachment”