上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 38 下一页
摘要: 求数组中不相邻的最大值 解决方案,假设opt数组为最优解,比如opt[6]就表示arr数组中下标0到6这段的最优解 即opt[n]=Math.max(opt[n-1],opt[n-2]+arr[n]) 上诉公式表示 不取下标为n的选项和取下标为n的选项两种方案的最大值 边界为 opt[0]=arr. 阅读全文
posted @ 2020-08-25 23:14 hongdada 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 安装xfce4 sudo yum install -y epel-release sudo yum groupinstall -y "Xfce" 重启WSL wsl --shutdown centos win10电脑安装VcXsrc,启动 界面的话,随便选,一般选择One window withou 阅读全文
posted @ 2020-08-19 14:55 hongdada 阅读(3937) 评论(0) 推荐(0) 编辑
摘要: TPM安装 按照官网的做法,很简单就安装上了,输入下面命令: # 把管理器文件安装到`~/.tmux/plugins/tpm`之下 此前这些目录是不存在的 git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm # 新建配置 阅读全文
posted @ 2020-08-19 14:01 hongdada 阅读(5831) 评论(0) 推荐(0) 编辑
摘要: 环境 因为k8s中是最基本的jre,网上说缺少tools.jar,但是补充了以后还是不行,最后还是将整个jdk给移到容器中的。 jre中执行: /home # /opt/jre/bin/java -jar /home/arthas-bin/arthas-boot.jar 1 [INFO] artha 阅读全文
posted @ 2020-08-06 18:57 hongdada 阅读(2294) 评论(0) 推荐(0) 编辑
摘要: 安装最新版Tmux 下载地址:releases Centos下载tmux安装教程 允许鼠标滚动 新的配置项已简化为 set -g mouse on 将他写到 ~/.tmux.conf 中然后执行 tmux source ~/.tmux.conf 注意2.1版本以下的配置项在新版本中已经被废弃 set 阅读全文
posted @ 2020-07-04 23:46 hongdada 阅读(3204) 评论(0) 推荐(0) 编辑
摘要: 电脑环境 618买了台联想小新pro13 锐龙版 4800U,将台式机中的win10系统迁移到笔记本。 目前win10是最新的2004版本,wsl为版本1,想要将其升级为wsl2使用,因为vmware 20H1可以和hyper-v兼容使用了,以前因为需要经常使用vmware,所以一直没有升级,这次趁 阅读全文
posted @ 2020-06-27 22:02 hongdada 阅读(8180) 评论(1) 推荐(0) 编辑
摘要: macOS 版本:Capslox 功能说明 以下功能都需要按下Capslock,而说明中基本都省略或缩写了Capslock,例如+Q是Capslock+Q 按键对应的功能可以在Capslock+settings.ini下的[Keys]设置,具体请参考Capslock+settingsDemo.ini 阅读全文
posted @ 2020-06-22 14:09 hongdada 阅读(374) 评论(0) 推荐(0) 编辑
摘要: win10安装openssh 查看: Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' # This should return the following output: Name : OpenSSH.Client~~~~0.0.1.0 阅读全文
posted @ 2020-06-04 17:59 hongdada 阅读(2435) 评论(2) 推荐(0) 编辑
摘要: Mac 日常使用问题收集 复制finder路径以及打开对应的文件夹 复制路径 在Finder中选择文件或是文件夹,然后按下快捷键 Command+Option+C,即可复制文件的全路径 在Finder中选择好文件或文件夹,点击鼠标右键,然后按住Option(alt)键,选择 将***拷贝为路径名称即 阅读全文
posted @ 2020-05-30 14:58 hongdada 阅读(439) 评论(0) 推荐(0) 编辑
摘要: Mac修改源并更新 替换中科大源 替换brew.git: cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc.edu.cn/brew.git 替换homebrew-core.git: cd "$(brew --repo 阅读全文
posted @ 2020-05-30 14:54 hongdada 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: Mac下zsh配置 zsh配置文件.zshrc设置: 修改.zshrc文件,添加以下内容: #关于历史纪录的配置 {{{ #历史纪录条目数量 export HISTSIZE=10000 #注销后保存的历史纪录条目数量 export SAVEHIST=10000 #历史纪录文件 export HIST 阅读全文
posted @ 2020-05-30 14:52 hongdada 阅读(1459) 评论(0) 推荐(0) 编辑
摘要: Stream中过滤null的情形 class Customer { private Long id; private String name; public Customer(Long id, String name) { this.id = id; this.name = name; } publ 阅读全文
posted @ 2020-05-28 17:27 hongdada 阅读(229) 评论(0) 推荐(0) 编辑
摘要: top 命令查看CPU、内存等使用情况 [root@server110 ~]# top top - 14:24:55 up 23 days, 20:34, 2 users, load average: 0.38, 0.15, 0.05 Tasks: 103 total, 1 running, 102 阅读全文
posted @ 2020-04-26 14:16 hongdada 阅读(1924) 评论(0) 推荐(1) 编辑
摘要: 工具类ZipUtil 调用 阅读全文
posted @ 2020-04-24 10:29 hongdada 阅读(5549) 评论(0) 推荐(0) 编辑
摘要: grep grep "getPenaltyCalDto" info.log i-忽略大小写、n-显示行号 r-递归 C-显示该列前后内容 grep -in "getPenaltyCalDto" info.log 这样可以查找出行号,再到vim中根据行号来查找内容 cat info.log | gre 阅读全文
posted @ 2020-04-21 18:26 hongdada 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 38 下一页