记录精彩的程序人生
https://blogs.oracle.com/geertjan/how-to-change-the-background-color-of-topcomponents
nbproject/project.properties末尾增加app.conf=nbproject/my.conf app.name=${branding.token} app.title=acuibc modules=\ ${project.net.java.balloontip}: ${project.party.loveit.bip44forjava}:\ ${project.org.apache.commons.lang3}: ${project.org.apache.derby}:\ ${project.com.google.guava}: ${project.org.javatuples}:\ ${project.org.springframework.core}: ${project.org.jdesktop.swingx}:\ ${project.com.acuilab.bc.main}: ${project.com.acuilab.bc.cfx}:\ ${project.conflux.web3j}: ${project.org.bouncycastle}:\ ${....
获得日志 LogFilter filter = new LogFilter(); // filter.setAddress(Arrays.asList(address)); filter.setFromEpoch(Epoch.numberOf(2025454)); filter.setToEpoch(Epoch.numberOf(2025658)); // filter.setLimit(20000l); Request<List<Log>, Log.Response> req = cfx.getLogs(filter); List<Log> logs = req.sendAndGet(); System.out.println("logs.size=" + logs.size()); for(Log log : logs) { System.out.println("address=" + log.getAddress() + ", epochNumber=" + log.getEpochNumber().orElse(BigInteger.ZER....
先看现象,之前功能一起正常,当调用getLogs获得日志后,编译无问题,执行时抛异常 SEVERE [global] conflux.web3j.RpcException: RPC error: code = -32602, message = Invalid params: invalid type: map, expected an epoch number or 'latest_mined', 'latest_state', 'latest_checkpoint', 'latest_confirmed' or 'earliest'., data = null at conflux.web3j.Request.sendAndGet(Request.java:69) at com.acuilab.bc.cfx.CFXCoin.transferRecord(CFXCoin.java:66) at com.acuilab.bc.main.wallet.CoinPanel.<init>(CoinPanel.java:30) at com.acuilab.bc.main.wall....
解决方法 如果一开始在GitHub上创建仓库时没有添加协议,可以用以下方式来重新添加相关的协议: 打开GitHub上的某个仓库,点击Create new file; 在新建文件的页面上,输入文件名LICENSE,这时候你会发现在标题的右边多出来一个按钮Choose a license template,点击该按钮; 在新页面上选择一个你想要的协议,接着在最右边输入Year和Full name,你会发现中间板块的年份和名称会发生变化,这是协议的预览界面,确认无误后点击最右边的Review and submit; 最后填写commit信息,点击Commit changes即可 https://www.cnblogs.com/yulinlewis/p/10056353.html
https://www.liankexing.com/notetwo/11421
该文章已经加密。
Conflux 网络第二阶段(Oceanus)上线,挖矿测试活动开始,朋友们经常提到这样一个问题:Conflux 中的各种"Node"到底是什么意思,今天就和大家解释一下。 Boot Node(启动节点) Boot Node 是节点启动的时候最先连接的节点,也会从 Boot Node 获得其他节点的信息,从而连上更多的节点。目前 Boot Node 主要有 Conflux 基金会提供,社区也可以提供更多的 Boot Node。 Archive Node(档案节点) Archive Node 中会存储 Conflux 网络中的所有历史区块数据,因此存储的数据比也会比较大。Archive Node 挖矿时,需要同步数据的时间比较长,占用的存储空间比较多。 Conflux 会允许任何人运行一个 Archive Node,但是 Archive Node 对存储的要求比较高,以现在 Conflux 的网络参数为例,平均每秒生成 2 个区块,每个区块大小限制约为 600KB。那么在满载的情况下,一秒的吞吐量为 1.2MB,一天约 100GB,每年新增的交易历史数据可达 30TB。未来完全去中心化的....
https://www.cnblogs.com/java-my-life/archive/2012/05/16/2502279.html
date_add(curdate(), interval 1 day); select curdate(), date_add(curdate(), interval 1 day);
0x87010faf5964d67ed070bc4b8dcafa1e1adc0997
mybatis中可以直接使用>或<;但是不能直接使用>=或<=; 第一种写法(1): 原符号 < <= > >= & ' " 替换符号 < <= > >= & ' " 例如:sql如下: create_date_time >= #{startTime} and create_date_time <= #{endTime} 第二种写法(2): 大于等于 <![CDATA[ >= ]]> 小于等于 <![CDATA[ <= ]]> 例如:sql如下: create_date_time <![CDATA[ >= ]]> #{startTime} and create_date_time <![CDATA[ <= ]]> #{endTime} ${}和#{}的区别: 1. #将传入的数据都当成一个字符串,会对自动传入的数据加一个双引....
20200730 买宽基指数基金,这样等于是把钱委托给交易所,让交易所帮你炒,这比你自己瞎搞强多了。 买龙头权重股,茅20组合里随机抽签选。 调整审美,买市值大,价格高的。 不碰ST股,不买5元以下低价股,不买100亿市值以下小盘股,不追突发热点。 N选1的情况下一定要警惕别贪便宜,别选弱鸡当队友。 贝塔收益就是大盘涨跌的那部分收益,阿尔法收益就是你跑赢或跑输大盘的那部分收益。贝塔粗浅点解释就是择时,阿尔法就是选股。 我的股票世界观 本文略长,请选择于安静环境阅读 写这个命题是想比较系统的分享一下我对炒股这件事的认识,因为关注时间长的老粉丝坚持看了好几年的夜报,有时我的心意想法可以相互领会,但对于很多新粉丝来说单纯看yc3那篇文章只落得个半懂不懂,所以一直想好好写一篇文章,分享我的股票世界观。 标题很大,但我会尽量写的很俗,确保你能看的懂。 ★股票的短期走势能预测吗? 这里的短线是指一个星期。不同时期的我对这件事有不同的看法,我炒股有8年了,下面给大家讲讲我的故事。 第1-2年,我坚信可以预测,奈何菜鸟道行不够,所以四处拜神,当时有个女股神受人崇拜,我给她发了私信她....
https://www.oschina.net/news/74999/how-to-choose-a-license https://jingyan.baidu.com/article/215817f755a8071eda14232b.html
The Lookup API is a loose coupling mechanism enabling a component to place a query for a particular interface and get back pointers to all registered instances of that interface across all modules of the application. Simply put, Lookup is an observable Map, with Class objects as keys and instances of those Class objects as values, and it allows loosely coupled communication between modules. NetBeans’ implementation of a MultiFileSystem is the so-called System FileSystem. It is used to define all....
Displaying a dialog requires two steps: creating a NotifyDescriptor to configure the dialog a DialogDisplayer to display it. Listing 10-1. Display a message dialog using the Dialogs API NotifyDescriptor d = new NotifyDescriptor.Message("Message"); DialogDisplayer.getDefault().notify(d); Listing 10-2. Display a confirmation dialog using the Dialogs API NotifyDescriptor d = new NotifyDescriptor.Confirmation("Message", "Title"); object retVal = DialogDisplayer.getDefault().notify(d); if(retVal =....
https://github.com/antlr/grammars-v4
https://stackoverflow.com/questions/5917017/java-awt-awterror-boxlayout-cant-be-shared When calling setLayout on a JFrame, you're actually adding the layout to the JFrame's contentPane not the JFrame itself since this method is more of a convenience method that transmits the method call to the contentPane. The BoxLayout constructor must reflect this since you can't add the BoxLayout to one container and then pass in as a parameter a different container. So change this: this.setLayout(new BoxLayo....
package com.maps; public class User{ private Integer id; private String type; private String name; public User(){} public User(Integer id,String type,String name){ this.id = id; this.type = type; this.name = name; } public void setId(Integer id){ this.id = id; } public Integer getId(){ return id; } public void setType(String type){ this.type = type; } public String getType(){ return type; } public void setName(String name){ this.name = name; } public String getName(){ return name; } } package c....
https://blog.csdn.net/qq_35661171/article/details/106880454?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param 根据某一条件从数据库表中查询 『有』与『没有』,只有两种状态,那为什么在写SQL的时候,还要SELECT count(*) 呢? 无论是刚入道的程序员新星,还是精湛沙场多年的程序员老白,都是一如既往的count 目前多数人的写法 多次REVIEW代码时,发现如下现象: 业务代码中,需要根据一个或多个条件,查询是否存在记录,不关心有多少条记录。普遍的SQL及代码写法如下 ##### SQL写法: SELECT count(*) FROM table WHERE a ....