以太坊event
① 在英语中that的意思有多少种,有什么用处
that 1
/ ðæt; ðæt/ det (pl those / ðəuz; ðoz/)
(used to make a person or thing specific, esp when he/it is seen as distant in space or time from the speaker/writer 用以指人或事物, 尤指在空间或时间上较远的): Look at that man standing there. 瞧站在那儿的那个男子. * That box is bigger than this. 那个盒子比这个大. * How much are those apples at the back? 后边那些苹果多少钱? * Where did that noise come from? 那响声从哪儿来的? * Have you read that book about China? 你读过那本关於中国的书吗? * I was still living with my parents at that time/in those days, ie at that particular time in the past. 我那时还跟父母住在一起. Cf 参看 this.
(a) (used to specify a person or thing that is indicated or mentioned 用以指要表明的或要提及的人或事物): Did you see that boy? 你看见那个男孩儿了吗? * He began by writing a thriller. That book sold a million copies. 他是写惊险小说起家的. 那本书卖了一百万册. (b) (used with a n followed by a possessive 与名词连用, 后接物主代词): Did you meet that friend of his? 你见过他的那个朋友吗? * That dress of hers is too short. 她那件连衣裙太短了.
(used in front of the antecedent of a relative clause 用於关系从句的先行词前): Have you forgotten about that money I lent you last week? 你忘了上星期我借给你的钱了吧? * Those students who failed the exam will have to take it again. 考试不及格的学生需补考. * Who was that man you were talking to? 刚才你正和一个人说话, 他是谁?
> that adv to that degree; so 达到那样的程度; 如此; 这般: I can't walk that far, ie as far as that. 我可走不了那麽远. * They've spent that much, ie as much as is indicated. 他们花了那些钱. * It's about that long, ie as long as that. 那个东西大约有那麽长. * It isn't all thatcold, ie not as cold as you are suggesting or not extremelycold. 还没冷到那种程度(不像你说的那麽冷或极冷). that 2
/ ðæt; ðæt/ pron (pl those / ðəuz; ðoz/)
(a) (used to make a thing specific, esp one more distant in space or time than another 用以表示所指的事物, 尤指在空间或时间上较另一事物远的): Those look juicier than these. 那些显得比这些汁液多. * That's a nice hat. 那顶帽子很好. (b) (referring to people, only with the verb be 用以指人, 只能与动词be连用): That's Peter at the bus-stop. 在公共汽车站那儿的那个人是彼得. * Who's that? 那是谁?
(used to specify a thing, an event, an idea, etc that is indicated or mentioned 用以指要表明的或要提及的事物、 想法等): Look at that! 看那个! * Do you remember going to Norway? That was a good holiday. 你还记得去挪威的情景吗? 那个假期真好. * Send her some flowers that's the easiest thing to do. 给她送些花儿去--那是最好办的事.
(used as the antecedent of a relative clause 用作关系从句的先行词): Is that what you really think? 你真的那样想吗? * That's what he told me. 他就是那麽跟我说的. * Those who expect the worst are less likely to be disappointed. 把事情想得坏的人, 不容易失望. * Those present were in favour of a change. 出席的人都赞成改一改. * There are those who say (ie Some people say) she should never have been appointed. 有人说根本就不应该委派她.
(idm 习语) `that is (to say) (a) which means 就是; 即: He's a local government administrator, that is to say a Civil Servant. 他是地方行政官员, 也就是说是文官. (b) to be specific 确切地: She's a housewife when she's not teaching English, that is. 她是个家庭主妇--是指她不教英语的时候. ,that's `that (used to indicate the end of a discussion, search, development, etc 用以表示谈论、 调查、 进展等的结束): I take it that's that we've heard your final offer? 我看就这样了--我们已经了解到你们出的最高价了吧? * So that's that. At last we're all agreed. 就这样了. 我们终於取得了一致的意见. that 3
/ ðət; ðət; rare strong form ç½ǖï¹ū 强读å¼ǒ ðt; ðæt/ conj
(used to introce a clause that is the subject or object of a v 用以引导主语从句或宾语从句): That the attempt to save her had failed soon became widely known. 想救她而未救成, 此事不久已尽人皆知. * She said that the book was based on a true story. 她说那本书取材於一件真事. * I thought that 13 May would be the date of the election. 我以为5月13日是选举的日子. * It's possible that he hasn't received the letter. 可能他还没收到那封信呢.
(rhet 修辞) (used to express wishes and regrets 用以表示愿望和遗憾): Oh that I could see him again! 我真希望能再见到他! * That I should see a child of mine arrested for selling drugs! 我竟然看见自己的孩子因贩毒而被捕! that 4
/ ðət; ðət; rare strong form ç½ǖï¹ū 强读å¼ǒ ðt; ðæt/ rel pron 关系代词
(used to introce a defining clause after a n, esp referring to things 用以引导名词之后的限定从句, 尤指表示事物的) (a) (as the subject of the v in the clause 在从句中作主语): The letter that came this morning is from my father. 今天早晨收到的那封信是我父亲寄来的. * The clothes that are on the floor are dirty. 地板上的那些衣物是脏的. * The woman that spoke to me in the shop used to live next door. 在商店里跟我说话的那个女人从前就住隔壁. * Who was it that won the World Cup in 1982? 谁赢得了1982年的世界杯? (b) (as the object of the v in the clause, but usu omitted in this position 在从句中作宾语, 但通常省略此字): The watch (that) you gave me keeps perfect time. 你给我的那个表走得很准. * Here are the books (that) I borrowed from you a week ago. 这些是我一周前向你借的书. * The person (that) I have to phone lives in India. 我要打电话找的那个人住在印度. (c) (as the object of a prep in the clause, but usu omitted in this position 在从句中作介词宾语, 但通常省略此字): The photographs (that) you're looking at were taken by my brother. 你看的那些相片是我哥哥拍的. * The man (that) I was talking to had just arrived from Canada. 我与之谈话的那个人刚从加拿大来. * These are the children (that) I looked after last summer. 这都是去年夏天我照看的孩子.
(used to introce a clause following superlatives, the only, all, etc 用以引导形容词最高级以及the only、 all等之后的从句): Shakespeare is the greatest English writer that ever lived. 莎士比亚是有史以来最伟大的英国作家. * This is the most expensive watch (that) I've ever owned. 在我所有的表当中, 这个最贵. * The only part of the meal (that) I really liked was the dessert. 这顿饭只有甜食是我爱吃的. * All that I have is yours. 凡我所有都是你的.
(used after an expression of time instead of when 用於表示时间的词语之后, 代替when): the year that my father died 我父亲去世的那年 * the day that war broke out 战争爆发的那天.
出自牛津第六版
其实记两种就好:一种是指示代词,意思是“那个”
eg:that boy 那个男孩
另一种就是在从句中,定语从句中的关系代词,强调句中的标志之一“It is/was... that”
② ios 如何实现 DAPP
客户端代码是这样的。。。
#import "ViewController.h"
@implementation ViewController
-(void)aaa:(UIButton *)btn
{
NSString *method=[NSString stringWithFormat:@"login"];
NSString *username=[NSString stringWithFormat:@"123"];
笭肠蒂段郦灯垫犬叮华 NSString *password=[NSString stringWithFormat:@"123"];
NSString *urlString= [NSString stringWithFormat:@"",@"method=",method,@"username=",username,@"password=",password];
ASIFormDataRequest *requestForm = [[ASIFormDataRequest alloc] initWithURL:[NSURL URLWithString:urlString]];
//设置需要POST的数据,这里提交两个数据,A=a&B=b
//[requestForm setPostValue:@"a" forKey:@"A"];
//[requestForm setPostValue:@"b" forKey:@"B"];
[requestForm startSynchronous];
//输入返回的信息
NSLog(@"response\n%@",[requestForm responseString]);
[requestForm release];
}
- (void)viewDidLoad
{
[super viewDidLoad];
button1=[[UIButton alloc]initWithFrame:CGRectMake(200, 200, 50, 50)];
button1.backgroundColor=[UIColor redColor];
[self.view addSubview:button1];
[button1 addTarget:self action:@selector(aaa:) forControlEvents:UIControlEventTouchUpInside];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
}
- (BOOL):(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation != );
}
@end
客户端想要访问服务器
必须加上服务器的ip 服务端我是这样实现的。。。
服务器是用java开发的
public
void doLogin(HttpServletRequest request,HttpServletResponse response) throws
IOException{
String
username=request.getParameter("username");
String
password=request.getParameter("password");
String
getStr=request.getParameter("A");
System.out.println("用户名:"+username+
"密码:"+password);
getAddr(request);
PrintWriter
out=response.getWriter();
String msg=null;
if(username!=null&&username.equals("123")&&password!=null
&&password.equals("123")&&
getStr!=null&&getStr.equals("a")){
msg="登陆成功";
}
else
{
msg="登陆失败";
}
out.print(msg);
out.flush();
out.close();
}
③ 在LINUX环境下怎样设置无线网络配置
void function(e,t){for(var n=t.getElementsByTagName("img"),a=+new Date,i=[],o=function(){this.removeEventListener&&this.removeEventListener("load",o,!1),i.push({img:this,time:+new Date})},s=0;s< n.length;s++)!function(){var e=n[s];e.addEventListener?!e.complete&&e.addEventListener("load",o,!1):e.attachEvent&&e.attachEvent("onreadystatechange",function(){"complete"==e.readyState&&o.call(e,o)})}();alog("speed.set",{fsItems:i,fs:a})}(window,document);
[rts{N|auto|fixed|off}][frag{N|auto|fixed|off}][enc{NNNN-NNNN|off}][power{periodN|timeoutN}][retry{limitN|lifetimeN}][txpowerN{mW|dBm}][commit]
说明:iwconfig是LWE最主要的工具,可以对无线网卡的大部分参数进行配置。
参数:
essid:设置无线网卡的ESSID(ExtensionServiceSetID)。通过ESSID来区分不同的无线网络,正常情况下只有相同ESSID的无线站点才可以互相通讯,除非想监听无线网络。其后的参数为双引号括起的ESSID字符串,或者是any/on/off,如果ESSID字符串中包含any/no/off,则需要在前面加"--"。
示例:
#iwconfigeth0essidany允许任何ESSID,也就是混杂模式
var cpro_psid ="u2572954"; var cpro_pswidth =966; var cpro_psheight =120;
#iwconfigeth0essid"MyNetwork"设置ESSID为"MyNetwork"
#iwconfigeth0essid--"ANY"设置ESSID为"ANY"
nwid:NetworkID,只用于pre-802.11的无线网卡,802.11网卡利用ESSID和AP的MAC地址来替换nwid,现在基本上不用设置。
示例:
#iwconfigeth0nwidAB34#iwconfigeth0nwidoff
nick:Nickname,一些网卡需要设置该参数,但是802.11协议栈、MAC都没有用到该参数,一般也不用设置。
示例:
#iwconfigeth0nickname"MyLinuxNode"mode:设置无线网卡的工作模式,可以是Ad-hoc:不带AP的点对点无线网络
Managed:通过多个AP组成的网络,无线设备可以在这个网络中漫游
Master:设置该无线网卡为一个AP
④ 区块链的数据可以修改吗
理想状态是不能修改的,区块链只能增加不能修改删除。 以太坊虽然可以修改删除账户数据,但是也只是状态机层面的, 是通过transaction或者event进行的状态转换,之前的状态不会被修改删除。
如果是pow算法:如比特币等。 用户往往会同步算力最好的新增链。 而且每一个交易会有6个块的延迟。 所以每当我们去制造一个假的块,我们通常需要同时将前面六个块的pow全部做出来而且这6个块累计的pow需要比真实主链(主链是多有诚实用户共同维护的)的pow高才可以保证每次都能成功,所以需要掌握51的算力
⑤ Linux命令:# ls -al /usr/lib | grep libevent 这句话到底是怎么解释的
1、列出/usr/lib目录下含有字符串“libevent”的文件和目录
2、ls 即 list directory contents列出目录内容;其中的 -a选项代表列出所有,包括隐藏文件; -l选项是列出文件的详细信息,每行只列出一个文件。如下面所示:
root@localhost ~]# ls -al
total 96
dr-xr-x---. 2 root root 4096 Jul 18 17:36 .
dr-xr-xr-x. 26 root root 4096 Aug 24 23:49 ..
-rw-------. 1 root root 1553 Mar 24 2014 anaconda-ks.cfg
-rw-------. 1 root root 8481 Aug 24 23:49 .bash_history
-rw-r--r--. 1 root root 18 May 20 2009 .bash_logout
-rw-r--r--. 1 root root 176 May 20 2009 .bash_profile
-rw-r--r--. 1 root root 176 Sep 23 2004 .bashrc
-rw-r--r--. 1 root root 100 Sep 23 2004 .cshrc
-rw-r--r--. 1 root root 32223 Mar 24 2014 install.log
-rw-r--r--. 1 root root 6995 Mar 24 2014 install.log.syslog
-rw-------. 1 root root 79 Aug 24 23:54 .lesshst
-rw-r--r--. 1 root root 129 Dec 4 2004 .tcshrc
-rw-------. 1 root root 2673 Jul 18 17:36 .viminfo
3、另外ls -l 通常缩写为ll
4、grep 是检索的意思,是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。
5、扩展下ls命令的其他选项:
-a 列出目录下的所有文件,包括以 . 开头的隐含文件。
-b 把文件名中不可输出的字符用反斜杠加字符编号(就象在C语言里一样)的形式列出。
-c 输出文件的 i 节点的修改时间,并以此排序。
-d 将目录象文件一样显示,而不是显示其下的文件。
-e 输出时间的全部信息,而不是输出简略信息。
-f -U 对输出的文件不排序。
-g 无用。
-i 输出文件的 i 节点的索引信息。
-k 以 k 字节的形式表示文件的大小。
-l 列出文件的详细信息。
-m 横向输出文件名,并以“,”作分格符。
-n 用数字的 UID,GID 代替名称。
-o 显示文件的除组信息外的详细信息。
-p -F 在每个文件名后附上一个字符以说明该文件的类型,“*”表示可执行的普通
文件;“/”表示目录;“@”表示符号链接;“|”表示FIFOs;“=”表示套
接字(sockets)。
-q 用?代替不可输出的字符。
-r 对目录反向排序。
-s 在每个文件名后输出该文件的大小。
-t 以时间排序。
-u 以文件上次被访问的时间排序。
-x 按列输出,横向排序。
-A 显示除 “.”和“..”外的所有文件。
-B 不输出以 “~”结尾的备份文件。
-C 按列输出,纵向排序。
-G 输出文件的组的信息。
-L 列出链接文件名而不是链接到的文件。
-N 不限制文件长度。
-Q 把输出的文件名用双引号括起来。
-R 列出所有子目录下的文件。
-S 以文件大小排序。
-X 以文件的扩展名(最后一个 . 后的字符)排序。
-1 一行只输出一个文件。
--color=no 不显示彩色文件名
--help 在标准输出上显示帮助信息。
--version 在标准输出上输出版本信息并退出。
⑥ 华为 Quidway S5328C-EI以太网交换机配置命令
楼上的都是老命令了。有些不支持了。
http://www.huawei.com/cn/procts/datacomm/catalog.do?id=4144
这个是官方手册。看看吧,挺系统的。
⑦ 硫分析仪galvanic和event哪个好
硫化氢/总硫分析仪GAS-903D1
加拿大 Galvanic Applied 中国区代理
应用领域:
石油石化,天然气,化工,钢铁等领域的过程气体分析;
车间腐蚀控制和质量控制;
气体硫化氢检测器和控制系统的校准检测;
硫化氢的制备,来源监测和泄漏检测;
环境气体分析,臭气污染控制;
科研活动等;
检测原理:
醋酸铅纸带检测原理;
只有硫化氢才会与醋酸铅反应,使纸带着上褐色。硫化氢含量直接用于醋酸铅纸带上颜色的深浅变化速率成正比。此法是迄今为止测量工艺中的硫化氢浓度最可靠的方法。
检测公式:H2S+Pb(CH3COO)2 --→PbS+2CH3COOH
技术参数:
最高量程 0-2000ppm
0-100%(加稀释装置)
最低量程 0-1ppm或更低
重复性 ±1%满量程>1ppm
±2.5%满量程200ppm
±2%满量程 总硫
线性 ±1%满刻度
响应时间 3分钟内达到90%,10秒钟响应超量程值
输出 4-20mA,继电器,电磁阀驱动,USB,RS-232/485,LAN,以太通信(可选),
所有端口都与MODBUS兼容,LED显示,大屏幕显示
输入 干节点输入,湿节点输入,4-20mA模拟输入,HUB通信
尺寸 28“H*16”W*16“D
重量 1,80磅
环境温度 10-50度
流路 最多4流路;每路都可以单独标定,并采用不同的量程
纸带寿命 5-15周
操作模式 自动/手动模式
周期时间 依据量程和浓度而定
最大周期