在systemstap中自定义函数 Embedded C can be the body of a script function. Instead enclosing the function body statements in { and}, use %{ and %}. Any enclos ...
分类:
其他好文 时间:
2018-03-11 02:47:47
阅读次数:
428
接上文 宏 可以理解为函数,即把一些常用的模板片段做好封装,以便于重用,减少工作量和维护难度。 宏的定义很简单: {%macro xxx()%} ##这里写内容 {%endmacro%} 下面引用官方的一个例子进行说明: {% macro input(name, value='', type='te ...
分类:
其他好文 时间:
2018-03-08 02:37:04
阅读次数:
195
接上文宏可以理解为函数,即把一些常用的模板片段做好封装,以便于重用,减少工作量和维护难度。宏的定义很简单:{%macro xxx()%}##这里写内容{%endmacro%}下面引用官方的一个例子进行说明:{% macro input(name, value=‘‘, type=‘text‘, size=20) -%}<input type="{{ type }}" name="{{ name
分类:
其他好文 时间:
2018-03-07 23:57:44
阅读次数:
152
1、下载 从官网下载https://help.sonatype.com/display/NXRM3/Download 选择Windows archive https://download.sonatype.com/nexus/3/latest-win64.zip 进行下载 2、安装 下载后得到一个z ...
Metaprogramming https://en.wikipedia.org/wiki/Metaprogramming 愿编程, 是一中编程技术, 制造的计算机程序,具有能力, 对待程序为他们的数据。 针对程语言的编程技术。 Metaprogramming is a programming te ...
分类:
Web程序 时间:
2018-03-02 01:23:04
阅读次数:
241
1.进程,单线程与多线 进程: 运行的程序就是一个进程,比如你正在运行的浏览器,它会有一个进程。 线程: 程序中独立运行的代码段。 一个进程由单个或多个线程组成,线程是负责执行代码的。 2.单线程与多线程的区别 单线程 从头执行到尾,一行一行执行,如果其中一行代码报错,那么剩下代码将不再执行。同时容 ...
分类:
其他好文 时间:
2018-02-24 23:01:46
阅读次数:
223
for variable_name=loopobj object_names=.amachinery.* type=macro var set var=filename1 str=(eval(STR_DELETE(loopobj,1,19)//".cmd")) file text open file... ...
分类:
其他好文 时间:
2018-02-24 19:34:42
阅读次数:
162
1 # 2 # This is the main Apache HTTP server configuration file. It contains the 3 # configuration directives(官方指示) that give the server its instructio ...
分类:
Web程序 时间:
2018-02-03 12:56:26
阅读次数:
1796
由于Verdi只能查看fsdb格式的波形,而vcs可以生成供DVE查看的vpd格式波形,如果想要输出fsdb格式的波形,我们就要额外在testbench中加入两个函数,并且用相应的命令进行编译。 1.首先了解一些vcs的常用命令: -cm line|cond|fsm|tgl|obc|path 设定c ...
分类:
数据库 时间:
2018-02-02 17:04:34
阅读次数:
529