会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yinhuachen
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
16
17
18
19
20
21
22
23
24
···
34
下一页
2022年10月12日
在 win10 上如何把 capslock 映射到 esc 上?
摘要: 参考网址:https://www.makeuseof.com/windows-10-11-disable-caps-lock/ ( How to Disable Caps Lock by Editing the Registry 其中第八改成下面这个 "Scancode Map"=hex:00,00
阅读全文
posted @ 2022-10-12 14:30 yinhuachen
阅读(78)
评论(0)
推荐(0)
2022年10月11日
高效的代码迁移方案(使用 git)
摘要: 1. 把 ics2021 做个备份,存为 ics2021_backup 2. 来到 ics2021/PA,把 PA1-2 的所有 commit 压缩成一个 commit,使用 git rebase -i <after-this-commit> 命令 来源:https://stackoverflow.
阅读全文
posted @ 2022-10-11 10:13 yinhuachen
阅读(96)
评论(0)
推荐(0)
2022年10月10日
ysyx,给所有的模块名和宏名前面加上特定前缀
摘要: find . -iname "*.v" | xargs sed -r -i 's/([^a-zA-Z0-9_])([A-Z_]+)([^a-zA-Z0-9_])/\1<特定前缀>\2\3/g' 这里使用了 find 和 sed,宏的格式是[A-Z_]+,使用了 extended regexp
阅读全文
posted @ 2022-10-10 19:25 yinhuachen
阅读(51)
评论(0)
推荐(0)
.gitignore,如何忽略子目录下的特定目录?
摘要: 提问:.gitignore。如何修改 .gitignore 才能忽略掉项目中的某个特定子目录下的任何修改。 详细解释:(展示 git status 结果)我想要让 git 忽略 npc/build 下的所有修改以下是我在 ysyx-workbench 下的 .gitignore (展示 .gitig
阅读全文
posted @ 2022-10-10 17:45 yinhuachen
阅读(1362)
评论(0)
推荐(0)
2022年10月5日
在PA2中学到的有关编写测试用例的经验补充
摘要: 来源:ysyx5期, PA2 基础设施(2)- “测试你的klib” 内存和字符串的写入函数, 例如memset(), strcpy()等. 内存和字符串的只读函数, 例如memcmp(), strlen()等. 格式化输出函数, 例如sprintf()等. 如何进行充分的测试: 1. 在可以遍历输
阅读全文
posted @ 2022-10-05 14:09 yinhuachen
阅读(240)
评论(0)
推荐(0)
2022年9月29日
git 当我们错误的提交了commit,想要回到提交commit之前,但又不想丢失自己的改变怎么办?
摘要: 使用 git reset --soft 答案来源(高赞回答):https://stackoverflow.com/questions/22355612/how-to-undo-the-last-commit-in-git-but-keep-my-changes-as-unstaged
阅读全文
posted @ 2022-09-29 01:07 yinhuachen
阅读(51)
评论(0)
推荐(0)
2022年9月28日
git 如何处理 “deleted by us”冲突?
摘要: 看高赞回答 答案来源:https://stackoverflow.com/questions/42174485/git-how-dangerous-is-deleted-by-us-conflict
阅读全文
posted @ 2022-09-28 06:30 yinhuachen
阅读(1664)
评论(0)
推荐(0)
git 修改一个特定的 commit 的 COMMIT_MSG
摘要: 看高赞回答 答案来源 https://stackoverflow.com/questions/1186535/how-do-i-modify-a-specific-commit
阅读全文
posted @ 2022-09-28 06:29 yinhuachen
阅读(32)
评论(0)
推荐(0)
2022年9月26日
第五期“一生一芯”第四课 -- 从C语言到二进制程序
摘要: 1. 预处理 = 文本粘贴 + 去除注释 gcc -E 可以通过 gcc --verbose(阅读工具的日志)来查看头文件是如何被编译器找到的(可以使用 gcc --verbose > /dev/null 丢掉预处理的结果,只看verbose的内容) 在 C 编程语言中,#warning 指令类似于
阅读全文
posted @ 2022-09-26 16:51 yinhuachen
阅读(125)
评论(0)
推荐(0)
2022年9月24日
关于 git conflict merge 的方法
摘要: 答案来源:https://stackoverflow.com/questions/7901864/git-conflict-markers
阅读全文
posted @ 2022-09-24 15:21 yinhuachen
阅读(19)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
24
···
34
下一页
公告