<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://zzblydia.github.io/myblog/feed.xml" rel="self" type="application/atom+xml" /><link href="https://zzblydia.github.io/myblog/" rel="alternate" type="text/html" /><updated>2026-06-20T12:37:02+08:00</updated><id>https://zzblydia.github.io/myblog/feed.xml</id><title type="html">My Code Home</title><subtitle>some detailed, authentic, not necessarily interesting notes</subtitle><author><name>zzblydia</name></author><entry><title type="html">AI来了</title><link href="https://zzblydia.github.io/myblog/work/what-and-how-ai-do/" rel="alternate" type="text/html" title="AI来了" /><published>2026-05-17T21:09:00+08:00</published><updated>2026-06-20T12:31:00+08:00</updated><id>https://zzblydia.github.io/myblog/work/what-and-how-ai-do</id><content type="html" xml:base="https://zzblydia.github.io/myblog/work/what-and-how-ai-do/"><![CDATA[<h1 id="我们与ai">我们与AI</h1>

<h2 id="生活">生活</h2>

<p>不知不觉AI就浸入到我们生活的方方面面了，现在应该没有人从没听说过AI了吧。</p>

<p>印象里最早来到我们身边的是豆包，横空出世的deepseek则是让AI大模型家喻户晓。</p>

<p>孩子们甚是喜欢豆包，因为豆包什么都懂（笑），讲故事信手拈来，脾气又好，比大人又有耐心。</p>

<p>同时豆包又有一点傻萌，比如让她讲睡前故事希望她讲一个长一点的，但她总是傻乎乎的停掉，而如果让她讲10个故事，她又会敷衍的讲10个短小故事。</p>

<p>父母也用豆包，比起让老人主动问孩子这是不是骗人的，老人们面对豆包可放松的多，说说心里话，聊聊生活疑问，比广告满天的搜索引擎不要好用太多。</p>

<p>老婆用的是deepseek, 但是因为工作偏创新一点，总是感觉不够给力。</p>

<p>我最早用的是Grok，因为没有对香港地区限制， 而彼时chatgpt的封锁是比较严重的。后来（2026.5）开始用claude。</p>

<h2 id="工作">工作</h2>

<p>公司也在推AI进工作，成立了项目组开发了<code class="language-plaintext highlighter-rouge">CodeAgent</code>辅助开发，甚至还抽调了高级专家们专项探究，足以表达重视。</p>

<p>得益于公司内部搭建的<code class="language-plaintext highlighter-rouge">minimax 2.5</code>(后来升级到2.7)，大家终于有机会不考虑token开始猛登了，疯狂探索如何使用AI提高开发效率，包括需求内容分析，需求文档编写，开发设计文档审视，代码编写，代码审查，单元测试用例设计，集成测试用例设计，维护文档编写，维护案例总结，开发各种skills。</p>

<p>我们的产品主要是电信级的客服系统，工作中使用AI主要是用于编程辅助。</p>

<p>面对庞大的代码库（百万级别），整理一个被叫号码分析逻辑可能要一上午，现在AI十几分钟就能搞定，虽然有的时候还需要人工介入引导它，但是已经很棒了。平时工作忙碌，有些流程用的多，用一点了解一点，有了AI之后可以让它全面的总结下业务流程，AI帮着做了很多一直想做没做的事。</p>

<p>于是，使用AI越是频繁, 使用时间越长，越是体会到那句话： “所有的东西都值得用AI重写一遍”。</p>

<h2 id="用大模型干了什么">用大模型干了什么</h2>

<ul>
  <li>手机卡流量自动查询并用tg每天通知（claude opus 4.7）</li>
  <li>小米插座根据笔记本电量自动充电防止电池鼓包 (cursor + sonnet4.6)</li>
  <li>写websocket模拟服务端用于代码测试 (minimax 2.7)</li>
  <li>朋友硕士论文研究方向和框架讨论 (claude opus 4.8)</li>
</ul>

<h2 id="思考">思考</h2>

<p>网上的说法是人类的智慧结晶已经被大模型吸取的差不多了，因此大模型未来一段时间内很难大幅度进化了。</p>

<p>于是，注意到有两个方向开始发展：</p>

<ul>
  <li>多模态方向</li>
  <li>大模型的控制方向</li>
</ul>

<p>大模型原来只能处理文本，现在开始处理图片/音频/视频。<br />
 大模型处理复杂任务容易走偏，于是出现了<code class="language-plaintext highlighter-rouge">harness</code>。</p>

<h2 id="在大型软件工程中使用大模型">在大型软件工程中使用大模型</h2>

<h3 id="可能面临的问题">可能面临的问题</h3>

<p>1.项目工程代码量巨大,超出大模型的上下文,导致大模型的记忆出现偏差,编码思路走偏<br />
2.如何规范的使用大模型, 使用步骤能否固定, 哪些步骤是固定的, 哪些步骤是需要人工接入的, 哪些步骤是随着项目进展不断完善的.</p>

<h3 id="可能的解决思路有哪些">可能的解决思路有哪些</h3>

<p>公司内部推广的是<code class="language-plaintext highlighter-rouge">metaSpec</code>和<code class="language-plaintext highlighter-rouge">mindSpec</code>。他们借鉴了<code class="language-plaintext highlighter-rouge">openSpec</code>和<code class="language-plaintext highlighter-rouge">superpowers</code>.</p>

<h2 id="残酷的真相">残酷的真相</h2>
<p>AI大模型的本质是token预测，它并不真实理解人们的语义。</p>

<p>当他收到你的hello时，它经过分析自己学习的内容，猜测最合适的回答是你好。</p>

<p>它并不能感受到你的情感和善意，也不是在对你表达善意，它的表达仅仅是一个推理。</p>

<p>当我们在和大模型交互的欣喜之余，意识到这一点，会感觉有点残酷。</p>

<h2 id="曾经的疑问">曾经的疑问</h2>

<p>1.大模型的工具选择应该是claude, opencode还是codex?</p>

<p>2.大模型能否输出ppt</p>

<p>3.如何让大模型在linux上工作的前提下, 能通过手机app进行下一步控制, 甚至通过手机的语音功能指挥linux上的会话？</p>

<p>4.个人如何具体量化感受大模型的进步？</p>]]></content><author><name>zzblydia</name></author><category term="work" /><category term="AI" /><summary type="html"><![CDATA[我们与AI]]></summary></entry><entry><title type="html">一些生活的随想</title><link href="https://zzblydia.github.io/myblog/life/thoughts/" rel="alternate" type="text/html" title="一些生活的随想" /><published>2026-01-18T06:53:00+08:00</published><updated>2026-01-18T07:00:00+08:00</updated><id>https://zzblydia.github.io/myblog/life/thoughts</id><content type="html" xml:base="https://zzblydia.github.io/myblog/life/thoughts/"><![CDATA[<h1 id="一些生活的随想">一些生活的随想</h1>

<h2 id="随想">随想</h2>
<p>早就意识到,博客的难点在于持续的输出,而持续输出最大的敌人还不是懒惰, 而是绞尽脑汁让博客更好看一些.</p>

<p>最近在看到<a href="https://littlenewton.github.io/">Peng Liu’s blog</a>觉得自己博客的主题(<code class="language-plaintext highlighter-rouge">jekyll</code>的<code class="language-plaintext highlighter-rouge">minimal-mistakes</code>)实在有些简陋, 便又想开始折腾<code class="language-plaintext highlighter-rouge">hexo+butterfly</code>了.</p>

<p>最早写博客的初衷,还包括想借此练练自己的英语, 后来看, 这更加剧了我博客的简陋</p>

<p>还是要先把博客写好, 写的丰富, 写的真实, 然后再适当的写一些必要的英文博客, 毕竟自己能够输出的很少.</p>]]></content><author><name>zzblydia</name></author><category term="life" /><category term="thoughts" /><summary type="html"><![CDATA[一些生活的随想]]></summary></entry><entry><title type="html">linux nfs</title><link href="https://zzblydia.github.io/myblog/linux/nfs/" rel="alternate" type="text/html" title="linux nfs" /><published>2025-11-13T00:20:00+08:00</published><updated>2025-11-13T00:20:00+08:00</updated><id>https://zzblydia.github.io/myblog/linux/nfs</id><content type="html" xml:base="https://zzblydia.github.io/myblog/linux/nfs/"><![CDATA[<h1 id="linux-nfs-on-ubuntu">linux nfs on ubuntu</h1>

<h2 id="nfs-server">nfs server</h2>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo apt install nfs-kernel-server
sudo systemctl status nfs-server
sudo systemctl status rpcbind

/etc/exports
/share_dir 192.168.8.0/24(rw,sync,no_subtree_check)

sudo exportfs -ra    # reload configuration  
sudo exportfs -v     # checkt current configuration in use  
</code></pre></div></div>

<h2 id="nfs-client">nfs client</h2>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo apt install nfs-common
sudo mount -t nfs 192.168.8.42:/sharedir /u01
</code></pre></div></div>

<h1 id="reference">reference</h1>
<p><a href="https://littlenewton.uk/2025/08/tutorial-nfs-export-and-mount/">Linux NFS 共享设置教程</a></p>]]></content><author><name>zzblydia</name></author><category term="linux" /><category term="nfs" /><summary type="html"><![CDATA[linux nfs on ubuntu]]></summary></entry><entry><title type="html">some notes in work</title><link href="https://zzblydia.github.io/myblog/work/work-notes/" rel="alternate" type="text/html" title="some notes in work" /><published>2025-06-09T23:58:00+08:00</published><updated>2025-06-09T23:59:00+08:00</updated><id>https://zzblydia.github.io/myblog/work/work-notes</id><content type="html" xml:base="https://zzblydia.github.io/myblog/work/work-notes/"><![CDATA[<h1 id="some-notes-in-work">some notes in work</h1>

<h2 id="issues-list">issues list</h2>

<h3 id="20250609">20250609</h3>
<p>insmod self-defined kernel module on suse11sp3 error <code class="language-plaintext highlighter-rouge">Unknown symbol __x86_indirect_thunk_r11 (err 0)</code></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>The self-defined kernel was compiled on suse11sp3 with kernel version 3.0.101-0.47.106 with `CONFIG_RETPOLINE=y`  
When it runs on suse11sp3 with kernel version 3.0.101-0.47.90, it shows error above.  

Check the configuration by `cat /boot/config-$(uname -r) | grep CONFIG_RETPOLINE`  
It had to recompile on lower version(0.47.90) and it runs normally on higher version(0.47.106)  
</code></pre></div></div>]]></content><author><name>zzblydia</name></author><category term="work" /><category term="issues" /><summary type="html"><![CDATA[some notes in work]]></summary></entry><entry><title type="html">jekyll theme minimal mistakes</title><link href="https://zzblydia.github.io/myblog/blog/theme-minimal-mistakes/" rel="alternate" type="text/html" title="jekyll theme minimal mistakes" /><published>2025-03-13T01:30:00+08:00</published><updated>2025-03-13T02:00:00+08:00</updated><id>https://zzblydia.github.io/myblog/blog/theme-minimal-mistakes</id><content type="html" xml:base="https://zzblydia.github.io/myblog/blog/theme-minimal-mistakes/"><![CDATA[<h1 id="jekyll-theme-minimal-mistakes">jekyll theme minimal mistakes</h1>

<h2 id="三种使用主题的方法">三种使用主题的方法</h2>

<h3 id="gem-theme">gem theme</h3>
<p>适合自托管（Self-hosting）, 指的是你自己负责运行和托管 Jekyll 生成的网站</p>

<h3 id="remote-theme">remote theme</h3>
<p>简单化引入, 下载远程主题的文件时不会覆盖本地文件, 从而依然可以定制化.</p>

<h3 id="fork-repo">fork repo</h3>
<p>高度定制化.</p>

<h2 id="初期使用方式">初期使用方式</h2>
<p>fork仓库后, 我做了哪些改动</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>1. _config.yml  
2. _data/navigation.yml  
</code></pre></div></div>

<h2 id="后期使用方式">后期使用方式</h2>

<h2 id="todo">todo</h2>
<p>1.如何按标签和tag归类文章<br />
2.post的文章如何使用主题<br />
3.分页帖子数量<br />
4.博客正文太细长, 影响阅读体验, 如何按照屏幕自动适配?—&gt;使用layout splash</p>]]></content><author><name>zzblydia</name></author><category term="blog" /><category term="mmistakes" /><summary type="html"><![CDATA[jekyll theme minimal mistakes]]></summary></entry><entry><title type="html">ping problem and policy route</title><link href="https://zzblydia.github.io/myblog/linux/ping-policy-routing/" rel="alternate" type="text/html" title="ping problem and policy route" /><published>2025-03-02T22:44:00+08:00</published><updated>2025-03-12T05:12:00+08:00</updated><id>https://zzblydia.github.io/myblog/linux/ping-policy-routing</id><content type="html" xml:base="https://zzblydia.github.io/myblog/linux/ping-policy-routing/"><![CDATA[<h1 id="experience-with-policy-routing">Experience with policy routing</h1>
<p>I faced a problem that I couldn’t ping, and then I experienced policy routing. <br />
Now the simplified scenario is as follows.</p>

<h2 id="the-basic-network-environment">The basic network environment</h2>
<p>my computer A can reach subnet <code class="language-plaintext highlighter-rouge">172.90.185.0/24</code> with ip <code class="language-plaintext highlighter-rouge">172.136.125.70</code> by <strong>switch</strong>.<br />
my computer A can reach subnet <code class="language-plaintext highlighter-rouge">100.61.193.0/24</code> with ip <code class="language-plaintext highlighter-rouge">100.255.200.8</code>  by <strong>vpn</strong>.</p>

<h2 id="the-problem">The problem</h2>
<p>Machine M with <code class="language-plaintext highlighter-rouge">eth0 172.90.185.65</code> and <code class="language-plaintext highlighter-rouge">eth1 100.61.193.131</code>.<br />
I can ping <code class="language-plaintext highlighter-rouge">172.90.185.65</code> success but cannot ping <code class="language-plaintext highlighter-rouge">100.61.193.131</code> successfully.</p>

<p>Machine N with <code class="language-plaintext highlighter-rouge">eth0 100.61.193.109</code> and <code class="language-plaintext highlighter-rouge">eth1 172.90.185.59</code>.<br />
I can ping <code class="language-plaintext highlighter-rouge">100.61.193.109</code> success but cannot ping <code class="language-plaintext highlighter-rouge">172.90.185.59</code> successfully.</p>

<p>It seems that I can never ping the IP address on the second network card.</p>

<p>run command <code class="language-plaintext highlighter-rouge">route</code> on M:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         172.90.185.1     0.0.0.0         UG    0      0        0 eth0
172.90.185.0     *               255.255.255.0   U     0      0        0 eth0
100.61.193.0     *               255.255.255.0   U     0      0        0 eth1
</code></pre></div></div>

<p>run command <code class="language-plaintext highlighter-rouge">route</code> on N:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         100.61.193.1     0.0.0.0         UG    0      0        0 eth0
172.90.185.0     *               255.255.255.0   U     0      0        0 eth1
100.61.193.0     *               255.255.255.0   U     0      0        0 eth0
</code></pre></div></div>

<h2 id="explore">Explore</h2>
<p>Later some application add ip <code class="language-plaintext highlighter-rouge">100.61.193.40</code> on <code class="language-plaintext highlighter-rouge">eth1:0</code> of M and I can ping <code class="language-plaintext highlighter-rouge">100.61.193.40</code> from A successfully.<br />
I decided to find out.</p>

<p>I am using <code class="language-plaintext highlighter-rouge">tcpdump -i any -s 0 icmp</code> to capture packets on machine <strong>M</strong>:<br />
When I ping 172.90.185.65 from A, the source IP of the packets is 172.136.125.70.<br />
When I ping 100.61.193.40 from A, the source IP of the packets is 100.255.200.8.</p>

<h2 id="command-ip">Command <code class="language-plaintext highlighter-rouge">ip</code></h2>
<p>Using <code class="language-plaintext highlighter-rouge">ip rule list all</code> to view all rules, I found that <code class="language-plaintext highlighter-rouge">100.61.193.40</code> has special handling and will use <code class="language-plaintext highlighter-rouge">routing table 239</code>.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>32755:  from 100.61.193.40 lookup 239
</code></pre></div></div>

<p>Run command <code class="language-plaintext highlighter-rouge">ip route list table 239</code> and view the processing action of route table 239:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>default via 100.61.193.1 dev eth1
</code></pre></div></div>

<p>Make the similiar <strong>rule</strong> and <strong>route</strong> for <code class="language-plaintext highlighter-rouge">100.61.193.131</code></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ip rule add from 100.61.193.131 table 230
ip route add default via 100.61.193.1 dev eth1 table 230 
</code></pre></div></div>

<p>then ping <code class="language-plaintext highlighter-rouge">100.61.193.131</code> from A successed and ping <code class="language-plaintext highlighter-rouge">100.255.200.8 -I 100.61.193.131</code> also succeed.</p>

<h2 id="other">Other</h2>
<p>Running <code class="language-plaintext highlighter-rouge">ping 100.255.200.8</code> from M failed and running <code class="language-plaintext highlighter-rouge">ping 100.255.200.8 -I eth1</code> from M also failed.</p>

<p>Add route to table main <code class="language-plaintext highlighter-rouge">ip route add 100.255.200.8/32 via 100.61.193.1 dev eth1</code> and it succeed.</p>]]></content><author><name>zzblydia</name></author><category term="linux" /><category term="PolicyRoute" /><summary type="html"><![CDATA[Experience with policy routing I faced a problem that I couldn’t ping, and then I experienced policy routing. Now the simplified scenario is as follows.]]></summary></entry><entry><title type="html">dns server with bind9</title><link href="https://zzblydia.github.io/myblog/linux/dns-server-with-bind9/" rel="alternate" type="text/html" title="dns server with bind9" /><published>2024-12-04T20:05:00+08:00</published><updated>2024-12-04T22:05:00+08:00</updated><id>https://zzblydia.github.io/myblog/linux/dns-server-with-bind9</id><content type="html" xml:base="https://zzblydia.github.io/myblog/linux/dns-server-with-bind9/"><![CDATA[<h1 id="dns-server-with-bind9">dns server with bind9</h1>

<h2 id="1-install-on-ubuntu">1. install on ubuntu</h2>
<p>bind: Berkeley Internet Name Domain</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo apt-get install bind  
systemctl status named  
systemctl restart named  
</code></pre></div></div>

<h2 id="2-configuration">2. configuration</h2>
<p>target domain:  goodluck.com<br />
target ip:      192.168.23.62<br />
dns machine:    192.168.23.52</p>

<p><strong>sudo vi /etc/bind/named.conf.local</strong></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>zone "goodluck.com" {
    type master;
    file "/etc/bind/db.goodluck.com";
};
</code></pre></div></div>

<p><strong>sudo vi db.goodluck.com</strong></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns.goodluck.com. admin.goodluck.com. (
                         2024120421     ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
@       IN      A       192.168.23.62
www     IN      A       192.168.23.62
</code></pre></div></div>

<h2 id="3-check-on-client-machine">3. check on client machine</h2>
<p><strong>add “nameserver 192.168.8.52” in /etc/resolv.conf of client machine</strong></p>

<p><strong>dig goodluck.com</strong></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>; &lt;&lt;&gt;&gt; DiG 9.18.28-0ubuntu0.24.04.1-Ubuntu &lt;&lt;&gt;&gt; goodluck.com
;; global options: +cmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 61902
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: 62c10e7fbcc0a2ae0100000067505f6771e5f0d80e77c012 (good)
;; QUESTION SECTION:
;goodluck.com.                  IN      A

;; ANSWER SECTION:
goodluck.com.           604800  IN      A       192.168.23.62

;; Query time: 0 msec
;; SERVER: 192.168.23.52#53(192.168.23.52) (UDP)
;; WHEN: Wed Dec 04 21:55:58 HKT 2024
;; MSG SIZE  rcvd: 85
</code></pre></div></div>

<p><strong>dig www.goodluck.com</strong></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>; &lt;&lt;&gt;&gt; DiG 9.18.28-0ubuntu0.24.04.1-Ubuntu &lt;&lt;&gt;&gt; www.goodluck.com
;; global options: +cmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 17992
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: 95fc1427421e63890100000067505fa1d9ec1743c9ca8865 (good)
;; QUESTION SECTION:
;www.goodluck.com.              IN      A

;; ANSWER SECTION:
www.goodluck.com.       604800  IN      A       192.168.23.62

;; Query time: 1 msec
;; SERVER: 192.168.23.52#53(192.168.23.52) (UDP)
;; WHEN: Wed Dec 04 21:56:56 HKT 2024
;; MSG SIZE  rcvd: 89
</code></pre></div></div>

<p><strong>ping goodluck.com</strong></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>PING goodluck.com (192.168.23.62) 56(84) bytes of data.
64 bytes from 192.168.23.62: icmp_seq=1 ttl=64 time=0.018 ms
</code></pre></div></div>

<p><strong>ping www.goodluck.com</strong></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>PING www.goodluck.com (192.168.23.62) 56(84) bytes of data.
64 bytes from 192.168.23.62: icmp_seq=1 ttl=64 time=0.018 m
</code></pre></div></div>

<h2 id="4-reference">4. Reference</h2>
<p><a href="https://www.cnblogs.com/doherasyang/p/14464999.html">bind9</a></p>]]></content><author><name>zzblydia</name></author><category term="linux" /><category term="bind9" /><summary type="html"><![CDATA[dns server with bind9]]></summary></entry><entry><title type="html">core dump</title><link href="https://zzblydia.github.io/myblog/c-cpp/coredump/" rel="alternate" type="text/html" title="core dump" /><published>2024-11-14T01:11:33+08:00</published><updated>2024-11-14T01:12:00+08:00</updated><id>https://zzblydia.github.io/myblog/c-cpp/coredump</id><content type="html" xml:base="https://zzblydia.github.io/myblog/c-cpp/coredump/"><![CDATA[<h1 id="some-notes-of-core-dump">some notes of core dump</h1>

<p>pending</p>]]></content><author><name>zzblydia</name></author><category term="c-cpp" /><category term="coredump" /><summary type="html"><![CDATA[some notes of core dump]]></summary></entry><entry><title type="html">Redmi Note13 pro+</title><link href="https://zzblydia.github.io/myblog/life/digital-gadgets/" rel="alternate" type="text/html" title="Redmi Note13 pro+" /><published>2024-10-01T22:44:00+08:00</published><updated>2025-03-12T05:12:00+08:00</updated><id>https://zzblydia.github.io/myblog/life/digital-gadgets</id><content type="html" xml:base="https://zzblydia.github.io/myblog/life/digital-gadgets/"><![CDATA[<h1 id="share-the-experence-of-shopping-redmi-note13-pro-in-hk">share the experence of shopping Redmi Note13 pro+ in HK.</h1>

<p>本文<strong>仅作分享,不做讨论</strong>. 我在<strong>2023.07</strong>去香港买了<strong>Redmi Note13 pro+</strong> .</p>

<h1 id="起因">起因</h1>
<ol>
  <li>在过去几年我都是随身携带两部手机出行, 但有时候觉得不太方便.
    <ul>
      <li>主用安卓P20(一张米粉卡保号+一张二折冰激淋全家流量和宽带)</li>
      <li>备用iphone se3(澳门版, 一张实体3hk diy+两张esim).</li>
    </ul>
  </li>
  <li>
    <p>安卓机器太老了, 导航时卡顿严重, 查资料切换多个app时反应慢, 同时充电只有22W.<br />
se的电池不耐用且充电慢, 基本一天一充, 而且屏幕比较小, 看视频不是很爽.<br />
在家软路由在公司专线, 手机上<strong>只用流量</strong>学习科学知识.</p>
  </li>
  <li>所以我一直在寻找一款<strong>多卡双待单通</strong>的手机, 希望这样在出门的时候我能只带一部手机, 同时方便切换内外网.</li>
</ol>

<h1 id="经过">经过</h1>
<ol>
  <li>在筛选手机时, 我主要考虑了几点, 其他参数开盲盒…
    <ul>
      <li>双卡, 支持实体 sim+esim</li>
      <li>充电功率大于等于100W</li>
      <li>屏幕尺寸大于等于6.7</li>
    </ul>
  </li>
  <li>经过筛选, <strong>当时大概</strong>有几款进入视线:
    <ul>
      <li>vivo x100 pro  (100W)</li>
      <li>Xiaomi 13T pro (120W, 12+512, 官网4599HKD, 门店实际4499, 因非曲面屏pass)</li>
      <li>Redmi Note13 pro+ (120W, 12+512, 官网2999HKD, 门店实际2899)</li>
      <li>Redmi Note13 pro (67W, 2499HKD)</li>
      <li>OnePlus 12 hk</li>
    </ul>
  </li>
  <li>最后选择小米有以下因素:
    <ul>
      <li>在查规格时感觉xiaomi hk官网款式参数清晰, 价格明确, 方便对比.</li>
      <li>hk map搜索xiaomi or vivo, 小米有专营店(mi home).</li>
    </ul>
  </li>
</ol>

<h1 id="结果">结果</h1>
<ol>
  <li>想什么来什么, 临时被派去广州出差, 收拾行李时我特意带了港澳通行证.</li>
  <li>周五晚上在广州找自助机办了签注，当时很忐忑, 怕非粤籍办理签注要求居住证啥的，没想到一张身份证就解决了.<br />
办签注的人排队十来个, 感觉广东去香港真的就跟去市中心一样方便随意.</li>
  <li>周六买了充电宝, 换了300港币，因为没带任何银行卡. 一般换外币是需要预约的，还好金额较小招商有库存。</li>
  <li>周日选了八点多的高铁，因为有查到小米之家十点开门, 九点多下了高铁, alipay hk坐地铁到mi home(Chong Hing Square), 结果到了门口发现11点才开门.</li>
  <li>因为是第三次去香港了, 没什么好奇的, 就在小红书搜了家网咖上了2小时的网打发时间，凭港澳通行证开机, 10港币1小时, 尴尬的是电脑都没配耳机(落后).<br />
网速上下行对等200Mbps, 当然可以看netflix和disney+.</li>
  <li>门店开门后, 买了手机, 买了平板, 买了mi box 2S, 两张大陆卡插进去, 在3hk app中办理diy实体卡转esim, 搞定. 然后又买了平板pad se和 mi box 2S.<br />
小米之家的人很多, 帮助台坐满了转移新机的人, 我看到一大爷买了一个Redmi 13C.</li>
</ol>

<h1 id="感受">感受</h1>
<ol>
  <li>note13pp sim slot2和esim只能同时用一个, 通过下拉控制菜单3秒可完成内外网切换. <strong>无法使用双5G</strong>.</li>
  <li>充电120W从0到100%只需19分钟, 所以我都是下班前用几分钟充满走人. 对比设置了电量低于70%自动进入省电模式自动化的se3, 真的是天差地别.</li>
  <li>note13pp自带谷歌全家桶, 相册可设置自动同步到google相册. <strong>地区无法设置为中国大陆</strong>, miui为MIUI Global 14.0.8, play商店可能无法通过软路由下载app, 具体见网上.</li>
  <li>下载境内app我借助了oppo的应用市场, 开始用的华为应用市场, 但是后者下的app版本不太好用(有时跟鸿蒙有关).</li>
  <li>讽刺的是, 买完手机看新闻就看到大陆小米不给解锁bootloader了.</li>
  <li>后续使用中, 发现指纹解锁有时解锁后黑屏3秒, 出现概率3%左右吧,升级成hyperOS后没再出现.</li>
  <li>后续新品中, xiaomi 14T/14T pro都是双卡且支持esim, 但是系统是HyperOS了, 然后听说境外版本也不支持解锁bl了.</li>
  <li>港版安卓溢价严重, 我买的这款走淘宝代购则在2800~3000左右, 自己去店里换算汇率后大概2600多, 同规格国行京东自营才2100左右.</li>
  <li>自带的gboard输入经过调教很满意, 以前一直用断网的搜狗..</li>
</ol>]]></content><author><name>zzblydia</name></author><category term="life" /><category term="redmi" /><summary type="html"><![CDATA[share the experence of shopping Redmi Note13 pro+ in HK.]]></summary></entry><entry><title type="html">cmake commands</title><link href="https://zzblydia.github.io/myblog/c-cpp/cmake-commands/" rel="alternate" type="text/html" title="cmake commands" /><published>2024-08-31T00:44:00+08:00</published><updated>2024-08-31T01:11:00+08:00</updated><id>https://zzblydia.github.io/myblog/c-cpp/cmake-commands</id><content type="html" xml:base="https://zzblydia.github.io/myblog/c-cpp/cmake-commands/"><![CDATA[<h1 id="some-notes-of-cmake">some notes of cmake</h1>

<h2 id="1-common-usage">1. common usage</h2>
<p>1&gt; <strong>cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON</strong><br />
This option tells CMake to generate a verbose Makefile.<br />
When you run make, it will display each compilation and linking step, which is very useful for debugging the build process.</p>

<p>2&gt; <strong>cmake .. –trace-expand</strong><br />
This option enables tracing, which means that every command executed by CMake during configuration will be printed, along with all relevant variables expanded to their actual values at that moment.<br />
This is particularly useful for debugging complex configurations and understanding how variables affect the build process.</p>

<p>3&gt; <strong>cmake .. -DCMAKE_BUILD_TYPE=type</strong><br />
This option sets the build type, which can affect compiler flags and optimizations. Common values for <code class="language-plaintext highlighter-rouge">type</code> include:<br />
(1)<strong>Debug</strong>: Enables debugging information and disables optimizations. (maybe <strong>-g</strong>)<br />
(2)<strong>Release</strong>: Enables optimizations and disables debugging information. (maybe <strong>-O3 -DNDEBUG</strong>)<br />
(3)<strong>RelWithDebInfo</strong>: Combines optimization with debugging information. (maybe <strong>-O2 -g -DNDEBUG</strong>)<br />
(4)<strong>MinSizeRel</strong>: Optimizes for minimum size. (maybe <strong>-Os -DNDEBUG</strong>)</p>

<h2 id="2-reference">2. Reference</h2>
<p><a href="https://cmake.org/cmake/help/latest/manual/cmake.1.html">cmake latest document</a></p>]]></content><author><name>zzblydia</name></author><category term="c-cpp" /><category term="cmake" /><summary type="html"><![CDATA[some notes of cmake]]></summary></entry></feed>