● File 字段摘要static pathSeparator--与系统有关的路径分隔符,为了使用方便,它被表示为一个字符串。static separator--与系统有关的默认名称分隔符,为了使用方便,它被表示为一个字符串。 ● File 类方法 static File[] listRoots() ...
分类:
其他好文 时间:
2018-12-02 21:12:19
阅读次数:
149
一、概述 PI-SDK(Plant Information Software Develop Kit)是OSI公司提供的基于面向对象的访问PI数据库的软件开发工具包,它可以对以下数据库进行读写: ² PIPoints (PI point table) ² StateSets (Digital set ...
目标
https://docs.saltstack.com/en/latest/
模块
https://docs.saltstack.com/en/latest/ref/modules/all/index.html
salt ‘*‘ service.available sshd 验证sshd服务
[root@master ~]# grep -v ‘^$‘ /etc/salt/master |grep -v ‘#‘
client_acl: #客户端开启模块限制
luo: #用户名
- test.ping
- network.*
file_roots:
base:
- /srv/salt
pillar_roots:
base:
- /srv/pillar
[root@master ~]# systemctl restart salt-master
给用户授权
[root@master ~]# useradd luo
useradd:用户“luo”已存在
[root@master ~]# passwd
分类:
其他好文 时间:
2018-12-01 00:13:20
阅读次数:
235
状态模块:
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#module-salt.states.file
[root@master ~]# grep -v ‘^$‘ /etc/salt/master |grep -v ‘#‘
client_acl:
luo:
- test.ping
- network.*
file_roots: #top.sls路径,可以写多个
base: #但是只读取base路径
- /srv/salt/base
test:
- /srv/salt/test
prod:
- /srv/salt/prod
pillar_roots:
base:
- /srv/pillar
mysql.host: ‘192.168.43.118‘
mysql.user: ‘salt‘
mysql.pass: ‘Myq1231!‘
mysql.db: ‘salt‘
mysql.port: 330
分类:
其他好文 时间:
2018-12-01 00:08:52
阅读次数:
253
气死我了,调了一个下午+两节课,各种大大小小的错误,各种调QAQ,最后总之是调出来了. 其实就是一个双旋操作,然后其他就是左儿子<当前节点<右儿子,剩下就是细节了. 题干: 代码: 代码有点长... ...
分类:
其他好文 时间:
2018-11-28 12:39:34
阅读次数:
228
Digital logic gets really interesting when we connect the output of gates back to an input. The SR latch is one of the most basic memory circuits that ...
分类:
其他好文 时间:
2018-11-27 22:51:22
阅读次数:
369
Digital deletions is a two-player game. The rule of the game is as following. Begin by writing down a string of digits (numbers) that's as long or as ...
分类:
其他好文 时间:
2018-11-27 16:48:53
阅读次数:
157
[toc] 近似深度优先搜索方法 Paul R.Wilson、Michael S.Lam、Thomas G.Moher,1991 这个方法只是近似深度优先搜索,但可以做到深度优先执行GC复制算法。 Cheney的GC复制算法 假设所有对象都是2个字,下图所示是对象间的引用关系。 下图所示是执行该算法 ...
分类:
其他好文 时间:
2018-11-26 10:22:21
阅读次数:
236
[toc] 保守式GC 保守式GC(Conservative GC)指“不能识别指针和非指针的GC” 不明确的根 不明确的根(ambiguous roots),下面三类都可以作为根。 事实上是不明确的根 寄存器 调用栈 全局变量空间 以栈为例 :在调用栈中有调用帧(call frame),调用帧里面 ...
分类:
其他好文 时间:
2018-11-26 10:20:38
阅读次数:
270
``` #include "mbed.h" #include "MCP23017.h" #include "WattBob_TextLCD.h" #include "TCS3472_I2C.h" #include "stdint.h" #include "VL6180.h" #include "rt... ...
分类:
其他好文 时间:
2018-11-25 17:43:04
阅读次数:
129