上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页
摘要: 一直用QWidget类型的窗口,今天在Clion中创建Qt UI类,父类选择QMainWindow时,发现用QDesiger打开后,无法拖控件进去。baidu/google一番: stackoverflow 这个问题回答中提到这是由于Clion生成的UI文件没有**"central widget"这 阅读全文
posted @ 2022-06-11 23:48 thammer 阅读(560) 评论(0) 推荐(0)
摘要: 需求的产生:公司原来的git仓库位于机房的一台服务器上,当初安全意识不强,没做足够的备份工作,后来这台服务器硬盘坏了,于是在腾讯云上搭了一个gitea,需要从本地代码仓库迁移到新的仓库。 1. 断开本地仓库与原远程仓库的关联 git remote rm origin 2.关联新的远程仓库 git r 阅读全文
posted @ 2022-05-10 17:26 thammer 阅读(354) 评论(0) 推荐(0)
摘要: 文件表达式 -e filename 如果 filename存在,则为真 -d filename 如果 filename为目录,则为真 -f filename 如果 filename为常规文件,则为真 -L filename 如果 filename为符号链接,则为真 -r filename 如果 fi 阅读全文
posted @ 2022-03-10 10:52 thammer 阅读(47) 评论(0) 推荐(0)
摘要: 网上搜索到的是需要在当前shell中export一下一个全局变量: export LIBGL_ALWAYS_SOFTWARE=1 但是我是想在IDE中使用,最后发现/usr/bin/valgrind是一个wrapper脚本,所以只要在里面添加这个export的动作即可: #!/bin/sh -e # 阅读全文
posted @ 2022-01-12 16:35 thammer 阅读(736) 评论(0) 推荐(0)
摘要: 本地分支重命名 git branch -m oldName newName 将重命名后的分支推送到远程 git push origin newName 删除远程的旧分支 git push --delete origin oldName 阅读全文
posted @ 2022-01-08 11:16 thammer 阅读(67) 评论(0) 推荐(0)
摘要: 1.install qt5 development tools on ubuntu18.04:https://lucidar.me/en/dev-c-cpp/how-to-install-qt-creator-on-ubuntu-18-04/ 2.porting qt5 to imx6ul:http 阅读全文
posted @ 2021-07-05 14:05 thammer 阅读(121) 评论(0) 推荐(0)
摘要: depends Examples: - opt:depends("foo", "test") Require the value of `foo` to be `test`. - opt:depends({ foo: "test" }) Equivalent to the previous exam 阅读全文
posted @ 2021-06-25 17:29 thammer 阅读(116) 评论(0) 推荐(0)
摘要: 内核启动加载根文件系统后,执行的第一个脚本是init,具体参见内核源码kernel/init/main.c static int __ref kernel_init(void *unused) { ... ... ... if (!try_to_run_init_process("/sbin/ini 阅读全文
posted @ 2021-06-03 20:21 thammer 阅读(1212) 评论(0) 推荐(0)
摘要: 内部变量 linux中shell变量$#,$@,$0,$1,$2的含义解释: $$ :Shell本身的PID(ProcessID) $! :Shell最后运行的后台Process的PID $? :最后运行的命令的结束代码(返回值) $- :使用Set命令设定的Flag一览 $* :所有参数列表。如" 阅读全文
posted @ 2021-04-19 11:09 thammer 阅读(68) 评论(0) 推荐(0)
摘要: luci原生的调试接口用起来不太舒服,在网上搜到如下调试方法。 将下面的lua代码保存为 log.lua,然后放置于 /usr/lib/lua/luci ,即可在 luci 任意目录进行调用 local M = {} local tconcat = table.concat local tinser 阅读全文
posted @ 2021-03-10 09:42 thammer 阅读(2218) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页