目录

我的学习分享

记录精彩的程序人生

标签: 待分类 (318)

为GitHub项目添加协议

解决方法 如果一开始在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 网络中的 5 种 Node

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。未来完全去中心化的....

《JAVA与模式》之观察者模式

https://www.cnblogs.com/java-my-life/archive/2012/05/16/2502279.html

mysql怎么取明天的凌晨时间呢?

date_add(curdate(), interval 1 day); select curdate(), date_add(curdate(), interval 1 day);

Conflux FC 合约地址

0x87010faf5964d67ed070bc4b8dcafa1e1adc0997

Mybatis中的大于等于和小于等于、${}和#{}的区别 有更新!

mybatis中可以直接使用>或<;但是不能直接使用>=或<=; 第一种写法(1): 原符号 < <= > >= & ' " 替换符号 &lt; &lt;= &gt; &gt;= &amp; &apos; &quot; 例如:sql如下: create_date_time &gt;= #{startTime} and create_date_time &lt;= #{endTime} 第二种写法(2): 大于等于 <![CDATA[ >= ]]> 小于等于 <![CDATA[ <= ]]> 例如:sql如下: create_date_time <![CDATA[ >= ]]> #{startTime} and create_date_time <![CDATA[ <= ]]> #{endTime} ${}和#{}的区别: 1. #将传入的数据都当成一个字符串,会对自动传入的数据加一个双引....

如何为你的开源项目选择一个合适的开源协议? 有更新!

https://www.oschina.net/news/74999/how-to-choose-a-license https://jingyan.baidu.com/article/215817f755a8071eda14232b.html

【Netbeans Platform】Lookup API 有更新!

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....

Netbeans Dialogs API

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 =....

ANTLR语法文件

https://github.com/antlr/grammars-v4

大牛猫语录 有更新!

20200730 买宽基指数基金,这样等于是把钱委托给交易所,让交易所帮你炒,这比你自己瞎搞强多了。 买龙头权重股,茅20组合里随机抽签选。 调整审美,买市值大,价格高的。 不碰ST股,不买5元以下低价股,不买100亿市值以下小盘股,不追突发热点。 N选1的情况下一定要警惕别贪便宜,别选弱鸡当队友。 贝塔收益就是大盘涨跌的那部分收益,阿尔法收益就是你跑赢或跑输大盘的那部分收益。贝塔粗浅点解释就是择时,阿尔法就是选股。 我的股票世界观 本文略长,请选择于安静环境阅读   写这个命题是想比较系统的分享一下我对炒股这件事的认识,因为关注时间长的老粉丝坚持看了好几年的夜报,有时我的心意想法可以相互领会,但对于很多新粉丝来说单纯看yc3那篇文章只落得个半懂不懂,所以一直想好好写一篇文章,分享我的股票世界观。   标题很大,但我会尽量写的很俗,确保你能看的懂。 ★股票的短期走势能预测吗?   这里的短线是指一个星期。不同时期的我对这件事有不同的看法,我炒股有8年了,下面给大家讲讲我的故事。   第1-2年,我坚信可以预测,奈何菜鸟道行不够,所以四处拜神,当时有个女股神受人崇拜,我给她发了私信她....

java.awt.AWTError: BoxLayout can't be shared

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....

java通过Stream对list集合分组

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....

SQL查找是否“存在“,别再count了,很耗费时间的

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 ....

正则表达式:必须要有一个小写字母,一个大写字母和一个数字,并且是8-16位

public static boolean isMobileNO(String mobiles) { Pattern pattern = Pattern.compile("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[A-Za-z0-9]{8,16}$"); Matcher matcher = pattern.matcher(mobiles); boolean b = matcher.matches(); return b; } ———————————————— 版权声明:本文为CSDN博主「super果」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/qq_35841348/article/details/80735251

GridLayout布局动态添加控件时以从左向右的顺序添加

import java.awt.*; import java.applet.Applet; public class ButtonGrid extends Applet { public void init() { contentPane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT); setLayout(new GridLayout(0,2)); add(new Button("1")); add(new Button("2")); add(new Button("3")); add(new Button("4")); add(new Button("5")); add(new Button("6")); } } 要点: 设置容器的组件方向为LEFT_TO_RIGHT 实例化GridLayout时,第一个参数设置为0

Howto use wait and progress cursors

https://performance.netbeans.org/howto/wait-cursors.html

Optimization of java.awt.Component's initialization

https://performance.netbeans.org/responsiveness/improving/postinit_of_comps.html