博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
好好学习
bilbo.cublog.cn
管理博客
发表文章
留言
收藏夹
· Compiler
· Unix_Linux
博客圈
音乐
相册
文章
· AutoHotKey
· C/C++
· Caml
· Perl
· Tcl & Expect
· 其他编程语言
· Visual Language
· Compiler Engineering
· Embedded System
· Formal methods
· FieldBus
· Networking
· Hardware Desing
· Safety System
· Unix_Linux
· Software Engineering
· GSM/GSM-R
· 技术幽默
· 读书时间
· Good Resource
· 关注社会
· 胡言乱语
首页
关于作者
姓名:你知道 职业:IT 年龄:每年大一岁 位置:地球 个性介绍:挺笨 Email: bilbo0214@163.com
||
<<
>>
||
我的分类
文章列表 - 其他编程语言
A good tutorial for VBscript
For my temporary work, I learned vbscript for a day. The following tutorial is a good one for experienced programmer.<br><table style="border-collapse: collapse;" width="360" align="center" border="1" bordercolor="#dddddd" cellpadding="0" cellspacing="0"> <tbody><tr height="60"><td width="60" align="center"><img src="/fileicon/pdf.gif" alt="" border="0"></td><td> <table style="border-collapse: collapse;" width="100%" border="0" cellpadding="0" cellspacing="0"> <tbody><tr height="20"><td width="40" align="center">文件:</td><td>VBScript.pdf</td></tr> <tr height="20"><td width="40" align="center">大小:</td><td>749KB</td></tr> <tr height="20"><td width="40" align="center">下载:</td><td><a href="http://blogimg.chinaunix.net/blog/upfile2/080920195431.pdf">下载</a></td></tr> </tbody></table> </td></tr> </tbody></table><br>
查看全文
发表于:2008-09-20 ┆
阅读(61)
┆
评论(0)
(转)Language Principles
<h2>MacLennan's Language Principles</h2> <ol><li><p><strong>Abstraction</strong>: Avoid requiring something to be stated more than once; factor out the recurring pattern. </p><p> </p></li><li><p><strong>Automation</strong>: Automate mechanical, tedious, or error-prone activities. </p><p> </p></li><li><strong>Defense in Depth</strong>: Have a series of defenses so that if an error isn't caught by one, it will probably be caught by another. <p> </p></li><li><p><strong>Information Hiding</strong>: The language should permit modules designed so that (1) the user has all of the information needed to use the module correctly, and nothing more; (2) the implementor has all of the information needed to implement the module correctly, and nothing more. </p><p> </p></li><li><p><strong>Labeling</strong>: Avoid arbitrary sequences more than a few items long; do not require the user to know the absolute position of an item in a list. Instead, associate a meaningfu……
查看全文
发表于:2008-08-28 ┆
阅读(101)
┆
评论(0)
HP RPN计算器
<table align="center" border="0" width="75%"> <tbody><tr> <td> <center><img src="http://users.ece.gatech.edu/%7Emleach/revpol/rpn.gif" alt="The Reverse Polish Algorithm for Hewlett Packard Calculators"> <p><b>W. Marshall Leach, Jr.<br>Professor of Electrical and Computer Engineering<br>Georgia Institute of Technology<br>Atlanta, Georgia 30332-0250<br>Copyright 1999</b></p></center> <hr> <p><img src="http://users.ece.gatech.edu/%7Emleach/icons/blank.gif" alt="">The operating system for Hewlett Packard scientific calculators is called "reverse Polish notation," or simply rpn. In talking to students who have HP calculators, I have not found one who knows the rpn algorithm. This is unfortunate, because not knowing it is a major cause for making mistakes with HP calculators. This page explains the algorithm and gives examples. When the algorithm is applied correctly, one can use the calculator to rapidly evaluate long expressions without stopping to think how th……
查看全文
发表于:2007-09-06 ┆
阅读(652)
┆
评论(0)
(转)C Programming vs. Java Programming
<DIV> <P><BR> <CENTER> <TABLE cellSpacing=1 cellPadding=5 width="90%" border=0> <TBODY> <TR> <TH align=left>Thing</TH> <TH align=left>C</TH> <TH align=left>Java</TH></TR> <TR bgColor=#ebebeb> <TD>type of language <TD>function oriented <TD>object oriented </TD> <TR bgColor=#ebebeb> <TD>basic programming unit <TD>function <TD>class = ADT </TD> <TR bgColor=#ebebeb> <TD>portability of source code <TD>possible with discipline <TD>yes </TD> <TR bgColor=#ebebeb> <TD>portability of compiled code <TD>no, recompile for each architecture <TD>yes, bytecode is "write once, run anywhere" </TD> <TR bgColor=#ebebeb> <TD>security <TD>limited <TD>built-in to language </TD> <TR bgColor=#ebebeb> <TD>compilation <TD><TT><FONT face=新宋体>gcc hello.c</FONT></TT> creates machine language code <TD><TT><FONT face=新宋体>javac Hello.java</FONT></TT> creates Java virtual machine language bytecode </TD> <TR bgColor=#ebebeb> <TD>linking in the Math library <TD><TT><F……
查看全文
发表于:2007-09-06 ┆
阅读(644)
┆
评论(0)
近期需要阅读的协议
<a href="http://tools.ietf.org/html/rfc1180" target="_blank">http://tools.ietf.org/html/rfc1180 </a><br>it’s a tutorial written in a very readable style that explains the basics of IP, ARP, routing tables and TCP / UDP.<br><br><a href="http://tools.ietf.org/html/rfc1350" target="_blank">http://tools.ietf.org/html/rfc1350</a><br>TFTP<br><br><a href="http://tools.ietf.org/html/rfc1123" target="_blank">http://tools.ietf.org/html/rfc1123</a><br>a thorough collection of all Internet related protocols with cross references to other relevant RFCs.<br>
查看全文
发表于:2007-07-31 ┆
阅读(760)
┆
评论(0)
(转)DSL = Metalinguistic Abstraction
<p>The idea of Domain Specific Languages (<a href="http://en.wikipedia.org/wiki/Domain-specific_programming_language">DSL</a>) has been lately brought into attention by the freshly popular programming language <a href="http://en.wikipedia.org/wiki/Ruby_%28programming_language%29">Ruby</a>. In particular, the famed web framework <a href="http://en.wikipedia.org/wiki/Ruby_on_Rails">Ruby On Rails</a>, which is built as a DSL on top of Ruby has been a prime example. </p> <p>What most people are not aware of, however, is that DSLs is just a new incarnation of the very old concept born in the world of Lisp called <a href="http://en.wikipedia.org/wiki/Metalinguistic_abstraction"><i>Metalinguistic Abstraction</i></a>. It is a recurrent theme in the seminal MIT textbook, <a href="http://en.wikipedia.org/wiki/SICP">Structure and Interpretation of Computer Programs</a> (SICP) that was written in 1985 to present general computer programming concepts using the Scheme language (member of the Li……
查看全文
发表于:2007-07-31 ┆
阅读(767)
┆
评论(0)
JOVIAL简介
<DIV> <P><B>ps:B52轰炸机的软件就是用这个语言写的,mil的网站国内无法访问,很遗憾看不到Jovial的实际样子。</B></P> <P><B>JOVIAL</B> is a high-order <A title=Computer href="http://en.wikipedia.org/wiki/Computer"><FONT color=#0000ff>computer</FONT></A> <A title="Programming language" href="http://en.wikipedia.org/wiki/Programming_language"><FONT color=#0000ff>programming language</FONT></A> similar to <A title=ALGOL href="http://en.wikipedia.org/wiki/ALGOL"><FONT color=#0000ff>ALGOL</FONT></A>, but specialized for the development of <A title="Embedded system" href="http://en.wikipedia.org/wiki/Embedded_system"><FONT color=#0000ff>embedded systems</FONT></A>.</P> <P>JOVIAL stands for "Jules Own Version of the International Algorithmic Language." The "International Algorithmic Language" part of the name is from ALGOL, which was originally going to be called that (or IAL for short). It was developed to write software for the electronics of military aircraft by <A class=new title="Jules Schw……
查看全文
发表于:2007-07-23 ┆
阅读(795)
┆
评论(0)
(转)Programming languages are tools for programmers
源自 http://jenda.krynicky.cz/<br><br>文章最后的一段话给偶启发较大。<br>Don't use functions you do not understand!<br> If you don't understand WHAT are they doing, and how do control what are they doing, simply don't use them. You don't have to know HOW are they doing it, but if you don't feel you understand properly how to use them ... ask someone to help you with the code, let someone review the code, read the documentation ten more times or use something else.
查看全文
发表于:2007-07-12 ┆
阅读(793)
┆
评论(0)
(转)Top 10 Coding Practices
<DIV> <H2 style="MARGIN: 20.25pt 7.5pt 3pt; TEXT-ALIGN: center" align=justify><SPAN lang=EN-US><FONT face=Verdana size=3>Top 10 Coding Practices</FONT></SPAN></H2> <P class=MsoNormal style="MARGIN: 0cm 7.5pt 0pt 43.5pt; TEXT-INDENT: -18pt; LINE-HEIGHT: 12pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo10; tab-stops: list 36.0pt"><SPAN lang=EN-US style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Verdana">1.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN><B><SPAN lang=EN-US style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Verdana">Validate input.</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: Verdana"> Validate input from all untrusted data sources. Proper input validation can eliminate the vast majority of software vulnerabilities. Be suspicious of most external data sources, including command line arguments, network interfaces, environmental variables, and user controlled files [Seacord 05]. <?xml:n……
查看全文
发表于:2007-07-10 ┆
阅读(742)
┆
评论(0)
General Parameter Rules
<font size="2"> </font><div v:shape="_x0000_s1026"> <div><ul><li><font size="2">Call by reference for arguments that may be altered by the function. </font></li></ul></div> <div><!--[if ppt]--><font size="2"> </font><!--[endif]--></div> <div><ul><li><font size="2">Call by value is appropriate for small arguments that should not be altered by the function. </font></li></ul></div> <div><!--[if ppt]--><font size="2"> </font><!--[endif]--></div> <div><ul><li><font size="2">Call by constant reference for large arguments that should not be altered by the function. </font></li></ul></div> </div>
查看全文
发表于:2007-07-09 ┆
阅读(648)
┆
评论(0)
(转)文本分析的三种典型设计模式
<h1 style="margin-bottom: 0.0001pt; text-align: center;" align="center">文本分析的三种典型设计模式</h1> <p class="MsoNormal" style="text-align: left;" align="left"><b><span style="font-size: 24pt; font-family: 宋体;" lang="EN-US"><br> </span></b><b><span style="font-size: 24pt; font-family: 宋体;"><font size="3">事件驱动:<span lang="EN-US">Parse-Handler</span>模型(如:<span lang="EN-US">xml</span>之<span lang="EN-US">SAX</span>模型)</font><span lang="EN-US"><o:p></o:p></span></span></b></p> <p class="MsoNormal" style="text-align: left;" align="left"><span style="font-size: 12pt; font-family: 宋体;">该模型主要有<span lang="EN-US">Parser</span>和<span lang="EN-US">Handler</span>两个组件。其原型大体如下:<span lang="EN-US"><o:p></o:p></span></span></p> <p class="MsoNormal" style="background: rgb(230, 230, 230) none repeat scroll 0%; text-align: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" ali……
查看全文
发表于:2007-07-09 ┆
阅读(741)
┆
评论(0)
SCILAB example
<DIV>偶然看到SCILAB的书,就开始学了起来。</DIV> <DIV>昨天晚上搞了半天才画出3条直线,唉,感觉自己有些老了。关键还是要理解参数的含义,都是向量。 <DIV align=center> </DIV></DIV> <DIV>代码如下:</DIV> <DIV>// scilab example<BR>// draw braking curve in Shunting mode</DIV> <DIV>//clear the drawing area<BR>clf(); </DIV> <DIV>//build vector<BR>t=linspace(0,100,10);<BR>NBP = linspace(45, 45, 10);<BR>EBP = linspace(50, 50, 10);<BR>W = linspace(40, 40, 10);<BR>L = linspace(0, 0, 10);<BR>H = linspace(80, 80, 10);</DIV> <DIV>//draw multiple line<BR>plot(t, [L; W; NBP; EBP; H] );</DIV> <DIV>//add text info<BR>xtitle('braking curve in SH mode','distance (km)','speed (km/h)');<BR>xstring(1,45,"NBP");xstring(1,45,"NBP");<BR>xstring(1,50,"EBP");<BR>xstring(1,40,"W, REL");<BR></DIV> <DIV>图形如下:</DIV> <DIV> <DIV align=center><IMG src="http://blogimg.chinaunix.net/blog/upfile/070425123717.jpg" onload="javascript:if(this.width>500)this.width=500;……
查看全文
发表于:2007-04-25 ┆
阅读(657)
┆
评论(0)
My first FORTH program
( my first FORTH program, trival and simple )<br>( I test it in Win32Forth environment )<br><br>: lecho \ -- ; runs until CR pressed<br> CR ." line echo program " CR<br> BEGIN <br> KEY DUP 13 = IF CR ." exit " EXIT THEN <br> EMIT<br> AGAIN<br>;<br>lecho<br>
查看全文
发表于:2007-03-07 ┆
阅读(625)
┆
评论(0)