摘要: 第一笔交易 假定 运行的是Linux或者macOS系统 网络连接正常 git已安装 macOS中安装了Homebrew Linux中安装了yum或者apt get 提交一笔交易的步骤 1. 克隆并构建Libra Core 2. 构建Libra命令行客户端并且连接到测试网络 3. 创建Alice和Bo 阅读全文
posted @ 2019-07-16 22:03 天边的鱼 阅读(818) 评论(0) 推荐(1) 编辑
摘要: 测试一下markdown写博客 阅读全文
posted @ 2018-01-26 23:46 天边的鱼 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Ubuntu启动特别慢 1、在$JAVA_HOME/jre/lib/security/java.security中,把securerandom.source=file:/dev/urandom替换成securerandom.source=file:/dev/./urandom 重启tomcat 阅读全文
posted @ 2017-08-06 00:43 天边的鱼 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 在transferTo中,使用的是绝对路径 pathRoot + path,但是在数据库中存储的时候,使用的是相对路径 path 这样,在页面显示的时候,就可以使用 其中basePath表示的是服务器路径http://localhost:8080/bignews1/ ,tweet.key.pictu 阅读全文
posted @ 2017-07-22 12:59 天边的鱼 阅读(672) 评论(0) 推荐(0) 编辑
摘要: request.getContextPath 上下文,例如 /bignews1 (自带 “ / ”) request.getScheme() 协议,例如HTTP request.getServerName() 域名,例如localhost request.getServerPort() 端口,例如8 阅读全文
posted @ 2017-07-19 22:27 天边的鱼 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 在页面提交时中,路径应该使用“/默认上下文/controller路径”,在controller重定向中,应该使用“/controller路径”,不加上下文。 阅读全文
posted @ 2017-07-18 22:31 天边的鱼 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 今天在网上看到了一个使用递归进行进制转换的例子,以前做进制转换的时候都是用的循环,而这次是递归,感觉非常的有意思,目前正在研究算法的思路,大家可以一起来看看。这个例子是从10进制转换到2进制。#includeint convert(int);int main(){ int dec,bin; printf("Enter a decimal number: "); scanf("%d",&dec); bin = convert(dec); printf("The binary equivalent of %d is %d.\n", 阅读全文
posted @ 2014-03-28 20:22 天边的鱼 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 今天在网上看到了一个可以关机的c程序,源程序是关于linux的,由于我没有linux,所以不能验证下面的程序是否能够正常运行,有linux的朋友可以试一试 #include int main(){ system("shutdown -P now"); return 0;}由于我最初不知道这是关于linux的,因此最开始运行的时候报错了,并且提醒了我关于shutdown(wi... 阅读全文
posted @ 2014-03-27 23:55 天边的鱼 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Let’s just try it!!! #includeint main(){ int a[3][3],b[3][3],c[3][3]; for(int i = 0;i < 3;++i) for(int j = 0;j < 3;++j) c[i][j] = 0; printf("Enter the element of a:(3 * 3)\n"); for(int i = 0;i < 3;++i) for(int j = 0;j < 3;++j) scanf("%d",&a[i][j]); ... 阅读全文
posted @ 2014-03-27 00:40 天边的鱼 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 今天是开博第一天,以前一直在博客园潜水,但是由于自身水平不是很高,所以许多东西都看了个大概,不能了解很多。既然今天已经开博,那就要好好学习,以后也要写写博客,毕竟这也是一个自我学习的好方法,好了,暂时就想到这么多了,先写到这里吧,以后要加油噢 阅读全文
posted @ 2014-02-18 20:46 天边的鱼 阅读(100) 评论(0) 推荐(0) 编辑