随笔分类 -  生活 / 杂项

在Linux下安装Anaconda和Pytorch
摘要:参考:https://blog.csdn.net/qq_39547794/article/details/124353667 1.输入ubuntu-drivers devices不显示 参考:https://blog.csdn.net/qq_44666320/article/details/1074 阅读全文

posted @ 2022-07-18 10:18 Narh 阅读(326) 评论(0) 推荐(1)

Qt入门
摘要:安装了Qt 6.1,记录一下自己学到的内容,梳理思路。(更新中) 因为只是自己的理解,所以可能有错误及不准确的地方,请多指正。 ##一、简单的界面设计 ###1.概述 用Qt Creater创建一个项目,会生成 .pro 文件、.h 文件和 .cpp 文件。 .pro 文件记录了该项目使用的编译器, 阅读全文

posted @ 2021-08-18 14:45 Narh 阅读(697) 评论(0) 推荐(0)

Linux系统下修改键盘映射
摘要:因为用 Emacs 的时候常用到 ctrl ,所以小指不适。想将 ctrl 和 capslock 换一下。 https://www.bilibili.com/read/cv5156572/ 可是输入 udevadm hwdb -- update 之后出现提示: /etc/udev/hwdb.d/99 阅读全文

posted @ 2021-08-01 15:00 Narh 阅读(573) 评论(0) 推荐(0)

在Ubuntu-20.04上安装Emacs-27.1
摘要:在电脑上装了一个Ubuntu-20.04。上面几乎啥软件也没有,所以装Emacs的时候有很多依赖的软件需要装,有点麻烦。下面是中途开始记录的日志。 emacs-> X -> gtk+-3.24.23 No package 'glib-2.0' foundNo package 'atk' foundN 阅读全文

posted @ 2021-07-22 18:58 Narh 阅读(713) 评论(0) 推荐(0)

关于 unsigned int 比较大小
摘要:unsigned int 的所有数都是 >=0 的。比如 unsigned int 的 -2 也是 > 0 的,所以不能用自己常用的 upt( ) { if( x<0 ) x+=mod ; } 这样。 阅读全文

posted @ 2019-03-19 14:12 Narh 阅读(2171) 评论(0) 推荐(0)

STL 的 vector 根据元素的值来删除元素的方法
摘要:vector 的 erase( ) 只能删除迭代器,所以要想删某种值的元素,需要这样: 假设有一个 vector 叫 vt ,则 vt.erase( remove( vt.begin() , vt.end() , k ) , vt.end() ) 就可以删掉值为 k 的元素。 更具体的,参考这里:h 阅读全文

posted @ 2019-03-14 15:04 Narh 阅读(957) 评论(0) 推荐(0)

TopCoder客户端安装
摘要:参考:https://blog.csdn.net/github_39353095/article/details/76165940 首先,下载 Java 环境。 https://www.java.com/en/download/manual.jsp 自己下载的是那个 Windows Offline 阅读全文

posted @ 2019-02-24 23:48 Narh 阅读(1043) 评论(0) 推荐(0)

bzoj 1000 A+B Problem (And also my first experience of Emacs)
摘要:problem:https://www.lydsy.com/JudgeOnline/problem.php?id=1000 This is my first code under Emacs! #include<iostream> #include<cstdio> #include<cstring> 阅读全文

posted @ 2018-06-28 00:19 Narh 阅读(211) 评论(0) 推荐(0)

导航