今天份的新日语单词:
今学期(こんがっき)
元号(げんごう)
年賀状(ねんがじょう)
初詣(はつもうで)
文法(ぶんぽう)
例文(れいぶん)
遅刻(ちこく)
書く事
お年玉(おとしだま)
令和(れいわ)
華氏(かし)
摂氏(せっし)
あす=あした
マイナス一度(〜いちど): -1度
食器(しょっき)
〜でしたっけ。
will you tell me again ~
例:お名前は何でしたっけ。
〜ですよね。is used for confirmation.
〜について:about
〜についてどう思いますか。
〜と言っています。
〜って言ってた。(简体形说法)
~と思います。(自己的想法)
XXは~と思っています。(别人的想法)
私もそう思います。(同意别人的想法)
今天日语老师课上讲short form(中文不知道叫什么,所以不翻译了。 《标日》叫简体形)。她说句尾的名词、な形容词的后面不要「だ」。也就是:
大学生だよ。〇
大学生。〇
大学生だ。 ✕
这个完全跟我之前在《标日》上学的不一样。
《标日》:大学生だ。〇
日语老师的意思是,作为native speaker,她觉得「大学生だ」在口语中说会很奇怪。只有在论文文献里才会使用「✕✕だ」。
颜色相关:
ベージュ:beige (浅褐色) *
黄色い(きいろ)*
这两个色可以直接接名词。
紫(むらさき)*
紺色(こんいろ)深蓝色/海军蓝
水色(みずいろ)浅蓝色
灰色(はいいろ)
这些词都需要后面加の再接名词。
例子:緑の帽子
====================
其他单词:
一般的な(いっぱんてきな)
トピック
共通(きょうつう)
しょどう: doing calligraphy
スキー: skii
読書(どくしょ)
不思議な(ふしきな):mysterious
思い出す: to recall; to remember
次女(じじょ)
次回(じかい)
アイディア: idea
コイン: coin
〜を始める
〜が始まる
当你使用gcc编译,然后发现你的linker (namely ld or lld) fail的时候
`ld -l<path to your lib> --verbose`
(刚才犯了低级错误,把linker写成了loader)
https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary
#systemProgramming
#systemProgramming
%rax用于存储当前function的return value;
%rdi用于存储将要调用的function的第一个argument;
%rsi用于存储将要调用的function的第二个argument。
std::endl; 除了换行,还有flush stream的功能。flush是把存在缓存里的内容flush到file里。
C的话手动flush的函数是fflush()
#systemProgramming
之前和老板讨论的C编译的library不能直接在C++ program里调用。解决方案在这里:https://stackoverflow.com/questions/19063975/linking-c-compiled-static-library-to-c-program/19064037
#systemProgramming
安利一个 Coursera 的教育优惠:每年为教育用户提供一门免费的课程,只需要在官网验证教育邮箱然后就可以免费完整参与一门课程啦。
另外 Coursera 还有许多免费课程,比如全世界所有人都应该学习的 CS229
https://youtu.be/Zw1tzxAt_CI 这是我这辈子上过的最有用的课,推荐给时间线上的象友!!!!!!!!!!
#systemProgramming
x64 registers: 这张图讲述了64位处理器里各种register之间的关系。
%rax:64位
%eax:%rax的低32位
%ax:%eax的低16位
%ah:%ax的高8位
%al:%ax的低8位
https://www.cs.uaf.edu/2017/fall/cs301/lecture/09_11_registers.html
Intel libxed:
https://intelxed.github.io/
大概搞了一下intel libxed。主要内容在这个`xed_decode()`里面(见网页链接)。就是把machine code decode成人类能够理解的汇编。标记一下去洗澡了。明天起来接着搞。
#systemProgramming
https://intelxed.github.io/ref-manual/group__DEC.html#ga9a27c2bb97caf98a6024567b261d0652
#systemProgramming
第1列:是否是dir(=directory)
第2-4列:user permission
第5-7列:group permission
第8-10列:user和group之外的所有人的permission
(1)read permission for a dir:permission to list files in that dir
(2)write permission for a dir: permission to delete, create, rename files in that dir
(3)execute permission for a dir: 你想要cd dir,你必须有这个dir的所有parent dir以及这个dir它自己的execute permission。
shell中的小trick
#systemProgramming
(1) define functions in shell
1) open a <file>, write your function
2) source <file>
3) then you can use your function in shell
(2) special variable
`$?`: the error code of your previous shell command
`$_`: the last argv of your previous command
(3) small trick
`!!`: shell will replace your !! to be your previous command
(4) difference between double and single quote
variables in double quote can be replaced by its value, while in single quote cannot.
How to store your C++ unordered_map into file.
https://stackoverflow.com/questions/68351589/serialization-of-unordered-map-using-fstream
用boost 读写unordered_map到file里的例子。
https://www.boost.org/doc/libs/1_77_0/libs/serialization/doc/tutorial.html
Kateです。アメリカのペン大でコンピューターシステムを研究している大学院生です。日本語を勉強しているから少し話せます。ビデオゲームが大好きです。
FC:SW-8149-0004-0143
PSN:kate0115