摘要: 1.背景及问题 一个xml文件,过滤掉部分节点,生成新的xml文件,但是生成后,发现节点的属性顺序变化了,根据key的字母信息排了序。如原始信息: <string typename="time_type" length="8"/> 重新生成后的信息: <string length="8" typen 阅读全文
posted @ 2022-10-13 20:31 huhuahope 阅读(360) 评论(0) 推荐(0) 编辑
摘要: ifconfig lspci |grep -i thernet ethtool xxx xxx:a56爆大奖在线娱乐网卡号,可以通过ifconfig查询 阅读全文
posted @ 2022-09-29 18:50 huhuahope 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 安装虚拟机部署centos系统,使用vi编辑代码时,发现没有颜色区分,而自己其他机器是可以显示颜色的。通过查看其他主机的信息,发现vi 其实是vim。当a56爆大奖在线娱乐使用vim时无法找到该命令,查询安装信息如下 [root@linuxcentos7 ~]$ [root@linuxcentos7 ~]$ rpm 阅读全文
posted @ 2022-09-29 17:29 huhuahope 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: awk for循环及 uniq 去重,获取数字值; 注:uniq 只针对相邻的重复行去重,a56爆大奖在线娱乐与sort配合使用。 #uniq_circle.sh for item in `grep errors test.txt | awk -F "==" '{print $2}' | sort | uniq ` 阅读全文
posted @ 2022-08-12 20:11 huhuahope 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 1. 在虚拟机 设置-->选项-->共享文件夹-->添加共享目录 后,首次添加完成,是能看到目录的,但是第二天启动虚拟机后,发现共享目录不显示了,且新增加的共享文件夹也不显示; 解决方法: #挂载共享文件夹到/mnt/hgfs vmhgfs-fuse .host:/ /mnt/hgfs #如果需要普 阅读全文
posted @ 2022-08-03 18:04 huhuahope 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: 设置见图(wps的2项是有效性) 阅读全文
posted @ 2021-11-10 10:06 huhuahope 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 程序启动后运行过程中与程序启动时,遇到下述错误: Program terminated with signal SIGKILL, Killed. The program no longer exists. 由于内存不足,程序被系统杀死。包括,内存和程序执行输出磁盘 不足。 处理方式: 增加内存或磁盘 阅读全文
posted @ 2020-09-09 15:02 huhuahope 阅读(888) 评论(0) 推荐(0) 编辑
摘要: win10电脑,长时间使用指纹登录,忘记了密码,这时可以通过以下方式来解决。 1、先用指纹识别进入系统; 2、右击cmd.exe以管理员身份运行(cmd位于:c盘下Windows文件夹→System32文件夹→cmd.exe); 3、输入: net user 用户名 新密码(如果不知道用户名,可输入 阅读全文
posted @ 2020-07-01 10:02 huhuahope 阅读(968) 评论(0) 推荐(0) 编辑
摘要: 使用git diff 比较两个分支 git diff 分支1 分支2 加--stat参数,显示文件列表, 默认是文件内容diff,如上 git diff 分支1 分支2 --stat 阅读全文
posted @ 2020-04-07 20:04 huhuahope 阅读(7163) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include <ctime> using namespace std; int main() { struct tm t1 = { 0 }; struct tm t2 = { 0 }; double seconds; t1.tm_year = 2019 - 阅读全文
posted @ 2020-02-12 09:46 huhuahope 阅读(3538) 评论(0) 推荐(0) 编辑