上一页 1 2 3 4 5 6 ··· 15 下一页
有时候需要运行不同的项目,node版本不一致会导致不少问题,特别是最新版本对应的一些插件,由于语法等原因导致不一定兼容低版本,这样运行低版本环境的项目的时候很多坑。反复卸载node又很麻烦。幸好有了nvm,可以让你在电脑上管理多个版本的nodejs。nvm全名node.js version mana Read More
posted @ 2022-09-22 21:20 ck_2016 Views(2672) Comments(0) Diggs(0) Edit
在使用Java自带的排序函数时,往往需要根据自己的需求自定义比较器。以前一直对Comparator的升序降序疑惑。现在记录一下,加深下印象。 先给结论:实现Comparator接口,必须实现下面这个函数: @Override public int compare(CommentVo o1, Comm Read More
posted @ 2022-08-16 20:23 ck_2016 Views(389) Comments(0) Diggs(0) Edit
1. 百度百科 - 正则表达式 https://baike.baidu.com/item/%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F/1700215?fr=aladdin 2. 匹配符含义 符号 描述 $$ 插入一个 "$" $& 插入匹配的子串 $` Read More
posted @ 2022-08-05 11:05 ck_2016 Views(27) Comments(0) Diggs(0) Edit
换行符的差异 windows下每行结尾为回车+换行(CR+LF),即 \r\n unix和macOS下每行结尾为换行LF,即 \n classic macOS(最后一个版本为1999年发布的Mac OS 9,可忽略)下为回车,即 \r 设置jetbrain系IDE settings > Editor Read More
posted @ 2022-07-22 14:13 ck_2016 Views(1789) Comments(0) Diggs(0) Edit
1 AutoCRLF #提交时转换为LF,检出时转换为CRLFgit config --global core.autocrlf true #提交时转换为LF,检出时不转换git config --global core.autocrlf input #提交检出均不转换git config --gl Read More
posted @ 2022-06-17 22:23 ck_2016 Views(221) Comments(0) Diggs(0) Edit
c++通过dbg分析内存和cpu,可能大家都会。本篇主要分析通过delve分析golang程序cpu占用高的问题。 delve是golang推荐的专门go语言调试工具,用来替代gdb。golang组织说delve能更好的理解go语言。 先用vscode写个简单的demo,main.go代码如下: p Read More
posted @ 2022-06-13 19:25 ck_2016 Views(693) Comments(0) Diggs(0) Edit
(1)创建数据库文件 无需手动创建db文件,直接在命令行执行: ~/test_sqlite$ sqlite3 test.db 进入SQLIte命令行,直接使用标准SQL建表: sqlite> create table test_table (id integer primary key, name Read More
posted @ 2022-05-23 10:29 ck_2016 Views(1932) Comments(0) Diggs(0) Edit
容器 容器是由可见边框环绕的形状集合。 添加容器 选择要包含的形状。 在"插入"选项卡上的"图表部件"组中,单击"容器"。 将指针放在容器样式上以查看页面上容器的预览。 单击以插入容器。 选中容器后,键入形状组的标题。 如果在插入容器时未选择任何形状,则在当前视图的中间添加该容器。 它实际上不包含任 Read More
posted @ 2022-05-20 17:38 ck_2016 Views(1362) Comments(0) Diggs(0) Edit
Go 标准库可以大致按其中库的功能进行以下粗略的分类 输入输出。这个分类包括二进制以及文本格式在屏幕、键盘、文件以及其他设备上的输入输出等,比如二进制文件的读写。对应于此分类的包有bufio、 fmt、 io、 log和flag等,其中 flag 用于处理命令行参数。 文本处理。这个分类包括字符串和 Read More
posted @ 2022-05-10 11:10 ck_2016 Views(193) Comments(0) Diggs(0) Edit
一日,同事安装了2.33.1版本的git,生成密钥、gitlab账户绑定pubkey一气呵成后,发现pull代码时报错: $ git pull Unable to negotiate with 12.34.56.78 port 22: no matching host key type found. Read More
posted @ 2022-05-06 13:37 ck_2016 Views(437) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 ··· 15 下一页