{"@attributes":{"version":"2.0"},"channel":{"title":"Lysander's Blog","link":"https:\/\/lysandert.github.io\/","description":"Recent content on Lysander's Blog","generator":"Hugo -- gohugo.io","language":"zh-cn","lastBuildDate":"Mon, 17 Apr 2023 20:23:17 +0800","item":[{"title":"why is better to use ++i instead of i++ in a for loop","link":"https:\/\/lysandert.github.io\/posts\/blog\/why_use_++i\/","pubDate":"Mon, 17 Apr 2023 20:23:17 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/why_use_++i\/","description":"because ++i use less memory. \/\/ prefix T&amp; T::operator++(){ *this += 1; \/\/ or sth else return *this; } \/\/ postfix T&amp; T::operator++(int){ \/\/ need to create a new variable T tmp(*this); \/\/ T tmp = *this ++(*this); return tmp; } \u4f46\u662f\uff0c\u7f16\u8bd1\u5668\u4f1a\u5bf9\u8fd9\u79cd\u60c5\u51b5\u8fdb\u884c\u4f18\u5316\uff0c\u6240\u4ee5\u5b9e\u9645\u4e0a\uff0c\u8fd9\u4e24\u79cd\u5199\u6cd5\u591a\u6570\u60c5\u51b5\u4e0b\u5728\u901f\u5ea6\u4e0a\u662f\u6ca1\u6709\u533a\u522b\u7684\u3002"},{"title":"iTerm2 \u5e38\u7528\u5feb\u6377\u952e","link":"https:\/\/lysandert.github.io\/posts\/blog\/iterm2\/","pubDate":"Wed, 01 Mar 2023 14:35:30 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/iterm2\/","description":"\u6807\u7b7e \u65b0\u5efa\u6807\u7b7e\uff1acommand + t \u5173\u95ed\u6807\u7b7e\uff1acommand + w \u5207\u6362\u6807\u7b7e\uff1a command + \u6570\u5b57 1\/2 command + \u5de6\u53f3\u65b9\u5411\u952e \u5207\u6362\u5168\u5c4f\uff1acommand + enter \u67e5\u627e\uff1acommand + f \u5206\u5c4f \u65b0\u5efa\u5782\u76f4\u5206\u5c4f\uff1acommand + d \u65b0\u5efa\u6c34\u5e73\u5206\u5c4f\uff1acommand + shift + d \u5207\u6362\u5c4f\u5e55\uff1acommand + option + \u65b9\u5411\u952e command + [ \u6216 command + ] \u67e5\u770b\u5386\u53f2\u547d\u4ee4"},{"title":"MySQL \u5e38\u7528\u547d\u4ee4","link":"https:\/\/lysandert.github.io\/posts\/blog\/mysql\/","pubDate":"Wed, 01 Mar 2023 14:06:30 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/mysql\/","description":"run from terminal mysql -uroot -p &gt;&gt; \u8f93\u5165\u5bc6\u7801 attention \u547d\u4ee4\u3001\u68c0\u7d22\u5747\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u3002\u4e60\u60ef\u4e0a\u5c06\u547d\u4ee4\u5173\u952e\u5b57\u5927\u5199\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6esql\u8ba9\u68c0\u7d22\u533a\u5206\u5927\u5c0f\u5199 basic # \u663e\u793a\u5e93\u5217\u8868 show databases; # \u521b\u5efa\u65b0\u5e93 create database &lt;d_name&gt;; # \u4f7f\u7528\u8fd9\u4e2a\u5e93 use &lt;d_name&gt;; # \u663e\u793a\u8868\u5217\u8868 show tables; # \u663e\u793a\u5217\uff08col\uff09\u5217\u8868 show columns from &lt;table_name&gt;; describe &lt;col_name&gt;; select \u65e0\u5e8f\u68c0\u7d22 # select\u5173\u952e\u5b57 select &lt;col_name1&gt;, &lt;col_name2&gt;, ... from &lt;table_name&gt;; # a single col is also valid # * means all (like in python)"},{"title":"Mycli-MySQL\u529e\u516c\u5229\u5668","link":"https:\/\/lysandert.github.io\/posts\/blog\/mycli\/","pubDate":"Wed, 01 Mar 2023 12:12:46 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/mycli\/","description":"\u4f7f\u7528Mycli\uff0c\u5b9e\u73b0\u547d\u4ee4\u884cmysql\u7684\u4ee3\u7801\u8865\u5168\u4e0e\u8bed\u6cd5\u9ad8\u4eae\uff01"},{"title":"hugo\u535a\u5ba2 \u6587\u5185\u63d2\u5165\u56fe\u7247","link":"https:\/\/lysandert.github.io\/posts\/blog\/blog_insert_pic\/","pubDate":"Thu, 23 Feb 2023 20:04:56 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/blog_insert_pic\/","description":"\u9759\u6001\u7f16\u8bd1\uff0c\u4e0d\u7528\u56fe\u5e8a"},{"title":"VSCode ChatGPT\u63d2\u4ef6","link":"https:\/\/lysandert.github.io\/posts\/blog\/chatgpt_plugin_for_vscode\/","pubDate":"Thu, 23 Feb 2023 19:07:35 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/chatgpt_plugin_for_vscode\/","description":"\u8ba9chatgpt\u534f\u52a9\u4f60\u5f00\u53d1\uff01"},{"title":"C++ STL heap\u7528\u6cd5","link":"https:\/\/lysandert.github.io\/posts\/blog\/c++_heap%E7%94%A8%E6%B3%95\/","pubDate":"Thu, 23 Feb 2023 13:44:00 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/c++_heap%E7%94%A8%E6%B3%95\/","description":"C++\u7684\u5806\u64cd\u4f5c\u4e00\u5171\u4e24\u5957\u4f53\u7cfb\uff1a make_heap\u548cpriority_queue \u524d\u8005\u662f\u76f4\u63a5\u628a\u539f\u5bb9\u5668\u53d8\u6210\u5806\uff0c\u7c7b\u4f3c\u4e8epython\u4e2d\u7684heapq\u6a21\u5757\uff0c \u540e\u8005\u662f\u65b0\u5efa\u4e00\u4e2apriority_queue\u7c7b\u5bb9\u5668\u3002 \u9ed8\u8ba4\u90fd\u662f\u5927\u9876\u5806,\u9ed8\u8ba4\u7684cmp\u90fd\u662fless&lt;&gt;. \u60f3\u8981\u5c0f\u9876\u5806\u53ef\u4ee5\u628aval\u90fd\u52a0\u8d1f\u53f7\uff0c"},{"title":"\u3010\u4e2a\u4eba\u7f51\u7ad9\u642d\u5efa\u3011hugo + github pages","link":"https:\/\/lysandert.github.io\/posts\/blog\/blog_setup\/","pubDate":"Thu, 23 Feb 2023 00:01:25 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/blog_setup\/","description":"\u514d\u8d39\u642d\u5efa\u4e2a\u4eba\u5b66\u672f\u4e3b\u9875\/\u535a\u5ba2\uff0c\u65e0\u9700\u8d2d\u4e70\u670d\u52a1\u5668\u3001\u57df\u540d\uff0c\u65e0\u9700\u638c\u63e1\u524d\u7aef\u77e5\u8bc6"},{"title":"Blog Workflow","link":"https:\/\/lysandert.github.io\/posts\/blog\/blog_workflow\/","pubDate":"Wed, 22 Feb 2023 21:53:22 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/blog_workflow\/","description":"My blog workflow"},{"title":"git commands","link":"https:\/\/lysandert.github.io\/posts\/blog\/git_command\/","pubDate":"Wed, 22 Feb 2023 19:42:43 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/git_command\/","description":"in common use"},{"title":"\u56fd\u5185\u83b7\u53d6\u8d26\u53f7\u3001\u8bbf\u95eechatGPT","link":"https:\/\/lysandert.github.io\/posts\/blog\/chatgpt_setup\/","pubDate":"Tue, 21 Feb 2023 19:06:42 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/chatgpt_setup\/","description":"\u4e00.\u8d2d\u4e70\u4ee3\u7406\u670d\u52a1 \u5373\u68af\u5b50\uff0cvpn\uff0cwhatever\u3002\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5c06ip\u5730\u5740\u5305\u88c5\u6210\u5176\u4ed6\u56fd\u5bb6\/\u5730\u533a\uff0c\u4ece\u800c\u6253\u5f00\u6bd4\u5982\u7ef4\u57fa\u767e\u79d1\u3001chatgpt\u7b49\u5b66\u4e60\u7f51\u7ad9\u3002 \u5df2\u6709\u4ee3\u7406\u670d\u52a1\u7684\u53ef\u4ee5\u76f4\u63a5\u770b\u4e0b\u4e00\u8282\u5185\u5bb9\u3002\u5982\u679c\u89c9\u5f97\u81ea\u5df1\u7684\u68af\u5b50\u901f\u5ea6\u6bd4\u8f83\u5feb\u7684\u8bdd\u4e5f\u53ef\u4ee5\u9009\u62e9\u63a8\u8350\u7ed9\u6211\u3002 \u6ca1\u6709\u7684\u53ef\u4ee5\u5c1d\u8bd5\u81ea\u884c\u641c\u7d22\u3002\u8003\u8651\u5230\u767e\u5ea6\u73b0\u5728ban\u4e86\u5305\u62ec\u4f46"},{"title":"linux(ubuntu)\u5e38\u89c1bug\u89e3\u51b3","link":"https:\/\/lysandert.github.io\/posts\/blog\/ubuntu_bug\/","pubDate":"Tue, 21 Feb 2023 16:44:43 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/ubuntu_bug\/","description":"1. apt\/apt-get update\u5931\u8d25 1.1 \u5c1d\u8bd5\u6362\u6e90 \u547d\u4ee4\u884c\u91cc\u8f93\u5165 nano \/etc\/apt\/sources.list \u5728\u6253\u5f00\u7684\u7f16\u8f91\u5668\u91cc\u5c06\u539f\u6709\u7684\u6e90\u6ce8\u91ca\u3002 \u6253\u5f00firefox\u641c\u7d22\u4e2d\u79d1\u5927\/\u963f\u91cc\/\u6e05\u534e\u6e90\uff08\u8bb0\u5f97\u4e00\u5b9a\u8981\u4e0eubuntu\u7684\u7248\u672c\u5bf9\u5e94\uff09\uff0c\u590d\u5236\u5e76\u7c98\u8d34\u5230\u7f16\u8f91\u5668\u4e2d\u3002 \u4f8b\u5982\uff1a\u6e05\u534e\u6e90for ubuntu 20.04 LTS # \u9ed8\u8ba4\u6ce8\u91ca\u4e86\u6e90\u7801\u955c\u50cf\u4ee5\u63d0\u9ad8 apt update \u901f\u5ea6\uff0c\u5982\u6709\u9700\u8981\u53ef\u81ea\u884c\u53d6\u6d88\u6ce8\u91ca deb https:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu\/ focal main restricted universe multiverse #"},{"title":"Research1","link":"https:\/\/lysandert.github.io\/posts\/research\/research1\/","pubDate":"Tue, 21 Feb 2023 12:20:21 +0800","guid":"https:\/\/lysandert.github.io\/posts\/research\/research1\/","description":{}},{"title":"\u8fdb\u7a0b\u4e0e\u7ebf\u7a0b","link":"https:\/\/lysandert.github.io\/posts\/blog\/%E8%BF%9B%E7%A8%8B%E4%B8%8E%E7%BA%BF%E7%A8%8B\/","pubDate":"Mon, 23 Jan 2023 20:22:16 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/%E8%BF%9B%E7%A8%8B%E4%B8%8E%E7%BA%BF%E7%A8%8B\/","description":"\u8fdb\u7a0b\u4e0e\u7ebf\u7a0b \u8fdb\u7a0b Process \u8fdb\u7a0b\u7684\u72b6\u6001 \u8fd0\u884c\u72b6\u6001\uff08Running\uff09\uff1a\u8be5\u65f6\u523b\u8fdb\u7a0b\u5360\u7528 CPU\uff1b \u5c31\u7eea\u72b6\u6001\uff08Ready\uff09\uff1a\u53ef\u8fd0\u884c\uff0c\u7531\u4e8e\u5176\u4ed6\u8fdb\u7a0b\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u800c\u6682\u65f6\u505c\u6b62\u8fd0\u884c\uff1b \u963b\u585e\u72b6\u6001\uff08Blocked\uff09\uff1a\u8be5\u8fdb\u7a0b\u6b63\u5728\u7b49\u5f85\u67d0\u4e00\u4e8b\u4ef6\u53d1\u751f\uff08\u5982\u7b49\u5f85\u8f93\u5165\/\u8f93\u51fa\u64cd\u4f5c\u7684\u5b8c\u6210\uff09\u800c\u6682\u65f6\u505c\u6b62\u8fd0\u884c\uff0c\u8fd9\u65f6\uff0c\u5373\u4f7f\u7ed9\u5b83CPU\u63a7\u5236\u6743\uff0c\u5b83\u4e5f"},{"title":"Why use a+=b instead of a = a + b in C++?","link":"https:\/\/lysandert.github.io\/posts\/blog\/why_use_a+b\/","pubDate":"Mon, 23 Jan 2023 20:16:45 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/why_use_a+b\/","description":"a, b are of same type: a += b only needs 1 assignment, it&rsquo;s like [pass by reference] but for a = a + b, the process is as follows: temp = a a = temp + b it&rsquo;s take 2 assignment. when a, b are strings, the problem is especially obvious. a, b are of different types a += b can do implicit typecasting but a = a + b cannot"},{"title":"\u8ba1\u7b97\u673a\u786c\u4ef6\u7ed3\u6784","link":"https:\/\/lysandert.github.io\/posts\/blog\/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%A1%AC%E4%BB%B6%E7%BB%93%E6%9E%84\/","pubDate":"Thu, 12 Jan 2023 17:30:43 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%A1%AC%E4%BB%B6%E7%BB%93%E6%9E%84\/","description":"\u786c\u4ef6\u7ed3\u6784 \u51af\u8bfa\u4f0a\u66fc\u6a21\u578b \u8fd0\u7b97\u5668ALU \u63a7\u5236\u5668Control Unit \u5b58\u50a8\u5668Memory Unit \u8f93\u5165\u8f93\u51fa\u8bbe\u5907 I\/O devices \u5185\u5b58 \u7ebf\u6027\u5b58\u50a8\uff0c\u57fa\u672c\u5355\u4f4d\u5b57\u8282(Byte)\uff0c\u6bcf\u4e00\u4e2a\u5b57\u8282\u5bf9\u5e94\u4e00\u4e2a\u5185\u5b58\u5730\u5740\uff08\u4ece0\u5f00\u59cb\u7f16\u53f7\uff0c\u6700\u540e\u4e00\u4e2a\u5730\u5740\u662f\u5185\u5b58\u603b\u5b57\u8282\u6570-1\uff09\u3002 1 Byte = 8 bit CPU \u63a7\u5236\u5355\u5143Control Unit \u903b\u8f91\u8fd0\u7b97\u5355\u5143ALU \u5bc4\u5b58\u5668Accumul"},{"title":"Linux\u5185\u5b58\u7ba1\u7406","link":"https:\/\/lysandert.github.io\/posts\/blog\/linux%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86\/","pubDate":"Wed, 17 Aug 2022 20:19:18 +0800","guid":"https:\/\/lysandert.github.io\/posts\/blog\/linux%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86\/","description":"\u5185\u5b58\u7ba1\u7406 \u865a\u62df\u5185\u5b58 \u64cd\u4f5c\u7cfb\u7edf\u5f15\u5165\u4e86\u865a\u62df\u5185\u5b58\u7684\u6982\u5ff5 \u7a0b\u5e8f\u6240\u4f7f\u7528\u7684\u5185\u5b58\u5730\u5740\u53eb\u505a\u865a\u62df\u5185\u5b58\u5730\u5740\uff08Virtual Memory Address\uff09 \u5b9e\u9645\u5b58\u5728\u786c\u4ef6\u91cc\u9762\u7684\u7a7a\u95f4\u5730\u5740\u53eb\u7269\u7406\u5185\u5b58\u5730\u5740\uff08Physical Memory Address\uff09\u3002 \u5185\u5b58\u5206\u6bb5 Segmentation driven: \u7528\u6237\u6267\u884c\u7684\u7a0b\u5e8f\uff08\u865a\u62df\u5185\u5b58\u4e2d\uff09\uff0c\u5728\u7269\u7406\u5185\u5b58\u4e2d\u627e\u4e00\u5757\u5730\u65b9\u653e\uff08\u6bb5\u7684\u5927\u5c0f\u4e0d\u56fa\u5b9a\uff09 \u865a\u62df"},{"title":"Life","link":"https:\/\/lysandert.github.io\/posts\/life\/life\/","pubDate":"Thu, 05 May 2022 00:18:15 +0800","guid":"https:\/\/lysandert.github.io\/posts\/life\/life\/","description":{}},{"title":"Read","link":"https:\/\/lysandert.github.io\/posts\/read\/read\/","pubDate":"Thu, 05 May 2022 00:18:06 +0800","guid":"https:\/\/lysandert.github.io\/posts\/read\/read\/","description":{}},{"title":"Research","link":"https:\/\/lysandert.github.io\/posts\/research\/research\/","pubDate":"Thu, 05 May 2022 00:17:58 +0800","guid":"https:\/\/lysandert.github.io\/posts\/research\/research\/","description":"test"},{"title":"\ud83e\udd1d\u53cb\u94fe","link":"https:\/\/lysandert.github.io\/links\/","pubDate":"Sat, 06 Nov 2021 15:15:53 +0800","guid":"https:\/\/lysandert.github.io\/links\/","description":"Lysander&#39;s Blog \u4e00\u4e2a\u8bb0\u5f55\u6280\u672f\u3001\u9605\u8bfb\u3001\u751f\u6d3b\u7684\u535a\u5ba2 \ud83d\udc49\u53cb\u94fe\u683c\u5f0f \u540d\u79f0\uff1a Lysander&rsquo;s Blog \u7f51\u5740\uff1a https:\/\/lysandert.github.io \u56fe\u6807\uff1a https:\/\/lysandert.github.io\/img\/cai.gif \u63cf\u8ff0\uff1a \u4e00\u4e2a\u8bb0\u5f55\u6280\u672f\u3001\u9605\u8bfb\u3001\u751f\u6d3b\u7684\u535a\u5ba2 \ud83d\udc49\u53cb\u94fe\u7533\u8bf7\u8981\u6c42 \u79c9\u627f\u4e92\u6362\u53cb\u94fe\u539f\u5219\u3001\u6587\u7ae0\u5b9a\u671f\u66f4\u65b0\u3001\u4e0d\u80fd\u6709\u592a\u591a\u5e7f\u544a\u3001\u4e2a\u4eba\u63cf\u8ff0\u5b57\u6570\u63a7\u5236\u572815\u5b57\u5185"},{"title":{},"link":"https:\/\/lysandert.github.io\/about\/","pubDate":"Sat, 06 Nov 2021 14:57:28 +0800","guid":"https:\/\/lysandert.github.io\/about\/","description":"\ud83d\udc3c About me \ud83d\ude0e Name: Lysander Cheng \ud83c\udf93 Educational experience Sophomore(2021.9-2025.8): Computer Science and Engineering, Chinese University of Hong Kong, Shenzhen. Github: https:\/\/github.com\/LysanderT \ud83c\udf31 Research interest: SLAM, AIGC &amp; Emergence \ud83e\uddbe I&rsquo;m learning SLAM, computer network &amp; OS \ud83d\udc4d I\u2019m looking for a summer internship(research or work)"}]}}