<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ridic</title>
    <link>https://www.ridic.me/</link>
    <description>Recent content on Ridic</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sun, 28 Dec 2025 12:17:00 +0000</lastBuildDate><atom:link href="https://www.ridic.me/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>一个关于映射度的问题</title>
      <link>https://www.ridic.me/posts/maths/251228-yaucontest-degree-prob/</link>
      <pubDate>Sun, 28 Dec 2025 12:17:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/251228-yaucontest-degree-prob/</guid>
      <description>如下题目是某年丘赛的几何与拓扑赛道的一题： Let $S^n$ be the unit sphere in $\mathbb{R}^{n+1}$ and $f:S^n\rightarrow S^n$ a continuous map. Assume that the degree of $f$ is an odd integer. Show that there exists $x_0$ such that $f(-x_0)=-f(x_0)$. 网上某解答如下： Otherwise $F(t,x)=\frac{f(x)+tf(-x)}{|f(x)+tf(-x)|}$ gives the homotopy between $f(x)$ and $g=\frac{f(x)+f(-x)}{|f(x)+f(-x)|}$,</description>
      <content:encoded><![CDATA[<p>如下题目是某年丘赛的几何与拓扑赛道的一题：</p>
<p style="font-size: 14px;" class="probborder">
    Let $S^n$ be the unit sphere in $\mathbb{R}^{n+1}$ and $f:S^n\rightarrow S^n$ a continuous map. Assume that the degree of $f$ is an odd integer. Show that there exists $x_0$ such that $f(-x_0)=-f(x_0)$.
    <span class="probanswers">
        
        
    </span>
</p>
<p>网上某解答如下：</p>
<p>Otherwise $F(t,x)=\frac{f(x)+tf(-x)}{|f(x)+tf(-x)|}$ gives the homotopy between $f(x)$ and $g=\frac{f(x)+f(-x)}{|f(x)+f(-x)|}$, where $g$ is an even map. So $\mathrm{deg}(f)=\mathrm{deg}(g)\in 2\mathbb{Z}$, a contradiction.</p>
<p>但是没有详细解释映射度是偶数这一步。以下先记录一下deepseek的解释，以后再来整理：</p>
<p>这个证明使用了反证法来证明命题：如果连续映射 $f : S^n \to S^n$ 的度是奇数，则存在点 $x_0$ 使得 $f(-x_0) = -f(x_0)$。</p>
<h3 id="证明步骤详解">证明步骤详解：</h3>
<ol>
<li>
<p><strong>假设相反</strong>：假设对于所有 $x \in S^n$，都有 $f(-x) \neq -f(x)$。这意味着对于所有 $x$，向量 $f(x)$ 和 $f(-x)$ 不互为反方向。</p>
</li>
<li>
<p><strong>构造同伦</strong>：定义函数 $F(t, x)$ 如下：
$$ F(t, x) = \frac{f(x) + t f(-x)}{|f(x) + t f(-x)|}$$
其中 $t \in [0, 1]$。需要验证 $F$ 是定义良好的，即分母不为零。</p>
<ul>
<li>如果对于某些 $t$ 和 $x$，有 $f(x) + t f(-x) = 0$，则 $f(x) = -t f(-x)$。由于 $f(x)$ 和 $f(-x)$ 是单位向量，如果 $t = 0$，则 $f(x) = 0$，矛盾；如果 $t &gt; 0$，则取模得 $1 = t$，所以 $t = 1$，此时 $f(x) = -f(-x)$，与假设矛盾。因此，对于所有 $t \in [0, 1]$ 和所有 $x$，分母不为零，$F$ 是定义良好的连续函数。</li>
</ul>
</li>
<li>
<p><strong>同伦的性质</strong>：</p>
<ul>
<li>当 $t = 0$ 时，$F(0, x) = \frac{f(x)}{|f(x)|} = f(x)$。</li>
<li>当 $t = 1$ 时，$F(1, x) = \frac{f(x) + f(-x)}{|f(x) + f(-x)|} = g(x)$。</li>
<li>因此，$F$ 是 $f$ 到 $g$ 的同伦，故 $f$ 和 $g$ 同伦，从而有相同的度： $\deg(f) = \deg(g)$.</li>
</ul>
</li>
<li>
<p><strong>分析 $g$ 的性质</strong>：</p>
<ul>
<li>计算 $g(-x)$:
$$g(-x) = \frac{f(-x) + f(-(-x))}{|f(-x) + f(-(-x))|} = \frac{f(-x) + f(x)}{|f(-x) + f(x)|} = g(x)$$
所以 $g$ 是偶函数，即 $g(-x) = g(x)$ 对于所有 $x$.</li>
</ul>
</li>
<li>
<p><strong>偶函数的度</strong>：需要证明偶函数 $g : S^n \to S^n$ 的度是偶数。</p>
<ul>
<li>由于 $g$ 是偶函数，它可以通过覆盖映射 $p : S^n \to \mathbb{RP}^n$（其中 $p(x)=[x] $）下降为一个映射 $\tilde{g} : \mathbb{RP}^n \to S^n$，使得 $g = \tilde{g} \circ p$。</li>
<li>考虑同调群： $H_n(S^n) \cong \mathbb{Z}$ 和 $H_n(\mathbb{RP}^n)$。当 $n$ 为奇数时， $\mathbb{RP}^n$ 可定向， $H_n(\mathbb{RP}^n) \cong \mathbb{Z}$，覆盖映射 $p_* : H_n(S^n) \to H_n(\mathbb{RP}^n)$ 满足 $p_*([S^n] )=2[\mathbb{RP}^n] $，即 $p_*$ 是乘以 2。当 $n$ 为偶数时， $\mathbb{RP}^n$ 不可定向， $H_n(\mathbb{RP}^n) \cong 0$，因此 $\tilde{g}_*$ 是零映射。</li>
<li>于是， $g_{*} = \tilde{g}_{*} \circ p_{*} $。无论 $n$ 的奇偶性，都有 $g_*([S^n]) = \tilde{g}_*(p_*([S^n]))$。如果 $n$ 为奇数， $p_*([S^n]) = 2 [\mathbb{RP}^n]$，所以 $g_*([S^n]) = 2 \tilde{g}_*([\mathbb{RP}^n])$，即 $\deg(g) = 2 \deg(\tilde{g})$ 为偶数。如果 $n$ 为偶数， $H_n(\mathbb{RP}^n) = 0$，所以 $g_*([S^n]) = 0$，即 $\deg(g) = 0$ 为偶数。</li>
<li>因此，在所有情况下， $\deg(g)$ 是偶数。</li>
</ul>
</li>
<li>
<p><strong>矛盾</strong>：由 $\deg(f) = \deg(g)$ 和 $\deg(g)$ 是偶数，得 $\deg(f)$ 是偶数，但与假设 $\deg(f)$ 是奇数矛盾。因此，原假设错误，存在 $x_0$ 使得 $f(-x_0) = -f(x_0)$.</p>
</li>
</ol>
<p>这个证明通过构造同伦和利用偶函数度的性质，简洁地得出了结论。</p>
<p>还有以下网络参考：</p>
<p>
<a href="https://math.stackexchange.com/questions/3984757/even-maps-of-any-even-degree"  target="_blank" >https://math.stackexchange.com/questions/3984757/even-maps-of-any-even-degree</a></p>
<p>
<a href="https://math.stackexchange.com/questions/1750150/show-that-deg-f-is-even-when-n-is-odd?rq=1"  target="_blank" >https://math.stackexchange.com/questions/1750150/show-that-deg-f-is-even-when-n-is-odd?rq=1</a></p>
<p>
<a href="https://zhuanlan.zhihu.com/p/1972454671042975253"  target="_blank" >https://zhuanlan.zhihu.com/p/1972454671042975253</a></p>
]]></content:encoded>
    </item>
    
    <item>
      <title>买原版书遇到的坑</title>
      <link>https://www.ridic.me/posts/trivial/250816-buying-original-books/</link>
      <pubDate>Sat, 16 Aug 2025 15:02:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/250816-buying-original-books/</guid>
      <description>八月初在淘宝买了 Bredon 的 Topology and Geometry 原版精装本. 到货后打开一看，书皮质量还行，但印刷质量十分低，主要问题在于字母的边缘粗糙不齐，仔细翻阅对照后发现与网</description>
      <content:encoded><![CDATA[<p>八月初在淘宝买了 Bredon 的 Topology and Geometry 原版精装本. 到货后打开一看，书皮质量还行，但印刷质量十分低，主要问题在于字母的边缘粗糙不齐，仔细翻阅对照后发现与网络上流传的扫描版的痕迹都对上了：</p>
<p><a href="https://i.fi0.cc/xvrV1q8dVZ.jpeg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/xvrV1q8dVZ.jpeg" alt=""  />
</a>
</p>
<p><a href="https://i.fi0.cc/9fBlbDqqNo.jpeg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/9fBlbDqqNo.jpeg" alt=""  />
</a>
</p>
<p>所以我还一度以为是淘宝这个店铺卖的是假货，直到我在 Google 上搜索一通，发现许多人都评价说Springer 的印刷质量不大行，尤其是 &ldquo;print on demand&rdquo; 这种类型的：</p>
<p><a href="https://i.fi0.cc/Kv8luhaUhX.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/Kv8luhaUhX.png" alt=""  />
</a>
</p>
<p>(上图见 
<a href="https://news.ycombinator.com/item?id=40175390"  target="_blank" >https://news.ycombinator.com/item?id=40175390</a>)</p>
<p>其他参考：
<a href="https://www.physicsforums.com/threads/springer-and-elsevier-butterworth-heinemann-quality.838662/"  target="_blank" >Springer and Elsevier-Butterworth-Heinemann quality</a>，
<a href="https://www.reddit.com/r/math/comments/7a4gmy/considering_the_low_quality_of_their/"  target="_blank" >Considering the low quality of their print-on-demand texts, is it not worth it anymore to buy physical Springer books?</a></p>
<p>实在受不了这种“官方复印”件，毕竟我也有这本书的pdf，自己去打印店复印不得合算的多.于是果断退货，之后又在孔夫子旧书网调到一本原版精装，看拍的照片似乎印刷地挺清晰的.不过后来买回来一看发现还是网络复印版。。。懒得折腾了</p>
<p>最后得到的教训：尽量避免官方渠道购买(冷门)原版旧书（15、20年前），因为多是 &ldquo;print on demand&rdquo;，印刷质量堪忧.（为什么要说“冷门”这个条件，因为我看同学的原版Hartshorne似乎印刷质量很好的&hellip;）</p>
<hr>
<p>12月8日更新：</p>
<p>最近终于把这本按需印刷的书通过咸鱼卖出去了，几乎回了本。今年九月刚开学的时候就在孔夫子买到了一本原版的非按需印刷，目测大概是10年左右印的。质量非常的好，纸张的细腻和印刷的清晰程度甚至一度让我回忆起高考试卷的小册子(还带着纸张的某种暗香味(?)). 总之兜兜转转，最后还是买到心仪的原版书了。</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>区域不变性及相关应用</title>
      <link>https://www.ridic.me/posts/maths/250812-inv-of-domain/</link>
      <pubDate>Tue, 12 Aug 2025 14:35:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/250812-inv-of-domain/</guid>
      <description>1 如何证明环面T2不能嵌入到球面S2中? 2 Möbius带无法嵌入欧氏平面 3 用 Invariance of Domain 证明 Invariance of Dimension: Elementary proof of topological invariance of dimension using Brouwer&amp;rsquo;s fixed point and invariance of domain theorems? (提问者的动机是</description>
      <content:encoded><![CDATA[<h3 id="1">1</h3>
<p>
<a href="https://www.zhihu.com/question/469998504/answer/1980980054"  target="_blank" >如何证明环面T2不能嵌入到球面S2中?</a></p>
<hr>
<h3 id="2">2</h3>
<p>
<a href="https://zhuanlan.zhihu.com/p/683227918"  target="_blank" >Möbius带无法嵌入欧氏平面</a></p>
<hr>
<h3 id="3">3</h3>
<p>用 Invariance of Domain 证明 Invariance of Dimension:

<a href="https://math.stackexchange.com/questions/1197640/elementary-proof-of-topological-invariance-of-dimension-using-brouwers-fixed-po"  target="_blank" >Elementary proof of topological invariance of dimension using Brouwer&rsquo;s fixed point and invariance of domain theorems?</a></p>
<p>(提问者的动机是
<a href="https://people.math.sc.edu/howard/Notes/brouwer.pdf"  target="_blank" >这篇文章</a>用初等方法证明了 Brouwer 不动点定理，也先挖个坑)</p>
<p style="font-size: 14px;" class="probborder">
    <strong>(Invariance of Dimension)</strong> 若$m\ne n$，则$\mathbb{R}^m\not\cong\mathbb{R}^n$.
    <span class="probanswers">
        
        
    </span>
</p>
<p>证明：设$m\leqslant n$，设$\mathbb{R}^m$的开子集$V$同胚于$\mathbb{R}^n$的开子集$U$，则设$f:U\rightarrow V$为同胚.复合上包含映射$i:\mathbb{R}^m\hookrightarrow\mathbb{R}^n$可得<strong>单射</strong>$i\circ f:U\rightarrow\mathbb{R}^n$，像在$\mathbb{R}^n$的子空间$\mathbb{R}^m$中.由<strong>Invariance of Domain</strong>，可得$i\circ f(U)$在$\mathbb{R}^n$中是开的.</p>
<p>若$m&lt;n$，则像不会是开的(超平面中一点的任意邻域必包含不在超平面中的点)，因此$m=n$.</p>
<p>注：上面的<strong>Invariance of Domain</strong>用的等价描述：设$U$是$\mathbb{R}$的开子集，设$f:U\rightarrow\mathbb{R}^n$是连续的单射，则$f(U)$也是$\mathbb{R}^n$的开子集.</p>
<p>参考：</p>
<p>
<a href="https://math.stackexchange.com/questions/1197640/elementary-proof-of-topological-invariance-of-dimension-using-brouwers-fixed-po"  target="_blank" >Elementary proof of topological invariance of dimension using Brouwer&rsquo;s fixed point and invariance of domain theorems?</a></p>
<p>
<a href="https://terrytao.wordpress.com/2011/06/13/brouwers-fixed-point-and-invariance-of-domain-theorems-and-hilberts-fifth-problem/"  target="_blank" >Brouwer’s fixed point and invariance of domain theorems, and Hilbert’s fifth problem - Terence Tao</a></p>
<p>
<a href="https://math.stackexchange.com/questions/24873/elementary-proof-that-mathbbrn-is-not-homeomorphic-to-mathbbrm/2351577#2351577"  target="_blank" >Elementary proof that ℝ𝑛 is not homeomorphic to ℝ𝑚</a></p>
<p>
<a href="https://math.stackexchange.com/questions/20308/another-non-homological-proof-of-the-invariance-of-dimension"  target="_blank" >Another (non-homological) proof of the invariance of dimension</a></p>
<hr>
<h3 id="4">4</h3>
<p>单值化定理的证明（？）</p>
<hr>
<h3 id="5">5</h3>
<p>待整理</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>Klein瓶的高维推广</title>
      <link>https://www.ridic.me/posts/maths/250728-klein-bottle-in-higher-dim/</link>
      <pubDate>Mon, 28 Jul 2025 09:07:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/250728-klein-bottle-in-higher-dim/</guid>
      <description>最近在一个教授 Donald M. Davis的主页上看到： An n-dimensional Klein bottle The geodesic complexity of n-dimensional Klein bottles 比较有意思，他这种对高维&amp;quot;Klein瓶&amp;quot;$K_n(n\g</description>
      <content:encoded><![CDATA[<p>最近在一个教授
<a href="https://www.lehigh.edu/~dmd1/"  target="_blank" >Donald M. Davis</a>的主页上看到：</p>
<ul>
<li>
<a href="https://www.lehigh.edu/~dmd1/kleinn4.pdf"  target="_blank" >An n-dimensional Klein bottle</a></li>
<li>
<a href="https://www.lehigh.edu/~dmd1/GCKnboth-cutlocus.pdf"  target="_blank" >The geodesic complexity of n-dimensional Klein bottles</a></li>
</ul>
<p>比较有意思，他这种对高维&quot;Klein瓶&quot;$K_n(n\geq 2)$的构造是因为某些情形的嵌入欧氏空间方式与$n=2$时类似.</p>
<p>见知乎问题
<a href="https://www.zhihu.com/question/2020490842"  target="_blank" >三维空间有莫比乌斯环，四维空间有克莱因瓶，五维六维有什么？</a>，目前没有人回答有关这个构造的.</p>
<p>此外，在这个教授的主页中找到了许多其关于
<a href="https://en.wikipedia.org/wiki/Topological_complexity"  target="_blank" >Topological Complexity</a>这个拓扑不变量的研究，之后有空也会研究一下.维基百科引用的一篇较老的文献
<a href="https://etheses.dur.ac.uk/736/1/thesis__ArmindoCosta.pdf"  target="_blank" >Topological Complexity of Configuration Spaces</a>，当时不可定向曲面的Topological Complexity问题还没解决，现在应该已经解决了.</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>待解决的问题</title>
      <link>https://www.ridic.me/posts/maths/250623-prob2solv/</link>
      <pubDate>Mon, 23 Jun 2025 23:43:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/250623-prob2solv/</guid>
      <description>记录整理一些待解决的问题，其中部分是尚未学到所需知识，部分是没有想到/搜到解决方法。 设$X$是$\mathbb{C}$或者$\mathbb{</description>
      <content:encoded><![CDATA[<p>记录整理一些待解决的问题，其中部分是尚未学到所需知识，部分是没有想到/搜到解决方法。</p>
<p style="font-size: 14px;" class="probborder">
    设$X$是$\mathbb{C}$或者$\mathbb{R}$上的Banach空间，$A,B$是$X$上的有界线性算子，则$AB-BA\ne I$.
    <span class="probanswers">
        
        
    </span>
</p>
<p>下题见：
<a href="https://zhuanlan.zhihu.com/p/700272540"  target="_blank" >卓里奇《数学分析》习题</a></p>
<p style="font-size: 14px;" class="probborder">
    证明：若函数$f\in C^\infty[a,b]$，并且$$\forall x\in[a,b]\exist n\in \mathbb{N}\forall m&gt;n(f^{(m)}(x)=0),$$则$f$是多项式.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    证明：$$\lim\limits_{x\rightarrow 1^-}(1-x)\displaystyle\sum_{n=1}^\infty 2^n x^{2^n}=\dfrac{1}{\ln{2}}$$
    <span class="probanswers">
        
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>一些待整理的资料</title>
      <link>https://www.ridic.me/posts/maths/250618-somenote/</link>
      <pubDate>Wed, 18 Jun 2025 00:44:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/250618-somenote/</guid>
      <description>最近在网上找到许多有趣的文章和lecture notes，因为接近期末周没时间仔细读完，故放置在此。 代数拓扑碎碎念（一）：从映射度说起 谱序列：</description>
      <content:encoded><![CDATA[<p>最近在网上找到许多有趣的文章和lecture notes，因为接近期末周没时间仔细读完，故放置在此。</p>
<p>
<a href="https://zhuanlan.zhihu.com/p/1902309432039290485"  target="_blank" >代数拓扑碎碎念（一）：从映射度说起</a></p>
<p>谱序列：</p>
<p>Clover May

<a href="https://cloverm.folk.ntnu.no/237Spring2020.html"  target="_blank" >Math 237 Spectral Sequences - Spring 2020 at UCLA</a></p>
<p>
<a href="https://wiki.math.ntnu.no/ma3408/2024v/start"  target="_blank" >Algebraic Topology 2</a></p>
<p>书：A User&rsquo;s Guide to Spectral Sequences</p>
<p>
<a href="https://book.douban.com/subject/3830023/"  target="_blank" >A User&rsquo;s Guide to Spectral Sequences</a></p>
<p>肖梁 代数学</p>
<p>
<a href="http://faculty.bicmr.pku.edu.cn/~lxiao/2023fall/2023fall.htm"  target="_blank" >2023 秋: 代数学 (实验班)</a></p>
<p>
<a href="https://math.colorado.edu/topology/balmer.pdf"  target="_blank" >HOMOLOGICAL ALGEBRA - LECTURE NOTES</a></p>
<p>Daniel Dugger</p>
<p>
<a href="https://pages.uoregon.edu/ddugger/"  target="_blank" >Daniel Dugger</a></p>
<p>
<a href="https://pages.uoregon.edu/ddugger/milnor.pdf"  target="_blank" >NOTES ON THE MILNOR CONJECTURES</a></p>
<p>Mike Hill</p>
<p>
<a href="https://mikehill.math.umn.edu/teaching"  target="_blank" >Mike Hill</a></p>
<p>
<a href="https://www.math.ucla.edu/~mikehill/Teaching/Math885.html"  target="_blank" >Computational Methods in Algebraic Topology</a></p>
<hr>
<p>如何证明莫比乌斯带的边界圆不是形变收缩核? - Eric的回答 - 知乎

<a href="https://www.zhihu.com/question/5265920881/answer/75695841029"  target="_blank" >https://www.zhihu.com/question/5265920881/answer/75695841029</a></p>
<hr>
<p>O. Randal-Williams Algebraic Topology Notes</p>
<p><strong>有许多计算的例子</strong></p>
<p>
<a href="https://dec41.user.srcf.net/notes/III_M/algebraic_topology_iii_trim.pdf"  target="_blank" >https://dec41.user.srcf.net/notes/III_M/algebraic_topology_iii_trim.pdf</a></p>
<p>以上是Dexter Chua做的笔记，他的笔记主页：https://dec41.user.srcf.net/notes/</p>
<p>共几千页.</p>
<hr>
<p>Shintaro Fushida-Hardy</p>
<p>Homology 3-spheres</p>
<p>
<a href="https://stanford.edu/~sfh/homosphere.pdf"  target="_blank" >https://stanford.edu/~sfh/homosphere.pdf</a></p>
<p>Grad school application advice</p>
<p>
<a href="https://stanford.edu/~sfh/advice.pdf"  target="_blank" >https://stanford.edu/~sfh/advice.pdf</a></p>
<hr>
<p>An Infinitely Large Napkin</p>
<p>
<a href="https://venhance.github.io/napkin/Napkin.pdf"  target="_blank" >https://venhance.github.io/napkin/Napkin.pdf</a></p>
<p>从基础知识到代数数论、代数拓扑、代数几何，很全.</p>
<hr>
<p>When are finite-index subgroups of a Lie group closed?</p>
<p>
<a href="https://math.stackexchange.com/questions/454320/when-are-finite-index-subgroups-of-a-lie-group-closed"  target="_blank" >https://math.stackexchange.com/questions/454320/when-are-finite-index-subgroups-of-a-lie-group-closed</a></p>
<hr>
<p>Marc Lackenby</p>
<p>
<a href="https://people.maths.ox.ac.uk/lackenby/"  target="_blank" >https://people.maths.ox.ac.uk/lackenby/</a></p>
<p>有许多关于几何拓扑的研究，发过很多四大</p>
<p>后面想看一些他的讲义，比如 
<a href="https://people.maths.ox.ac.uk/lackenby/tg11o17.pdf"  target="_blank" >https://people.maths.ox.ac.uk/lackenby/tg11o17.pdf</a></p>
<hr>
<p>Lars Hesselholt</p>
<p>
<a href="https://web.math.ku.dk/~larsh/"  target="_blank" >https://web.math.ku.dk/~larsh/</a></p>
<p>比较喜欢他的表示论讲义，打算后面看看.</p>
<p>表示论讲义：https://web.math.ku.dk/~larsh/teaching/S2023_A/representations.pdf</p>
<p>表示论主页：https://web.math.ku.dk/~larsh/teaching/S2023_A/</p>
<p>Topics in Algebraic Topology: 
<a href="https://web.math.ku.dk/~larsh/teaching/F2023/"  target="_blank" >https://web.math.ku.dk/~larsh/teaching/F2023/</a>
后面也可以看看，或者讨论班讲</p>
<hr>
<p>
<a href="https://naprienko.com/"  target="_blank" >https://naprienko.com/</a></p>
<hr>
<p>Sophus Lie: A Real Giant in Mathematics</p>
<p>
<a href="https://intlpress.com/site/pub/files/_fulltext/journals/iccm/2015/0003/0001/ICCM-2015-0003-0001-a009.pdf"  target="_blank" >https://intlpress.com/site/pub/files/_fulltext/journals/iccm/2015/0003/0001/ICCM-2015-0003-0001-a009.pdf</a></p>
<p>季李真的文章，挺有意思的</p>
<hr>
<p>
<a href="https://www.zhihu.com/question/55626398/answer/521920422"  target="_blank" >https://www.zhihu.com/question/55626398/answer/521920422</a></p>
<p>N-1维球面上恰有ρ(N) − 1个逐点线性无关切向量场.</p>
<p>把$N$写作$N=A\cdot 2^B$，其中$A$为奇数，$B$为自然数，$B$又写作$B=c+4d,0\leqslant c&lt;4$，则$\rho(N)=2^c+8d$.</p>
<hr>
<p>群论里一直想搞的几个问题：</p>
<p>
<a href="https://zhuanlan.zhihu.com/p/1888684854847206201"  target="_blank" >SL₂(𝔽₃) 的 Sylow 子群 （2025中科大考研复试题）</a></p>
<p>
<a href="https://zhuanlan.zhihu.com/p/1920795046116058210"  target="_blank" >用群作用计数 |GL_n(F_p)|, |SL_n(F_p)| 和 |PSL_n(F_p)|</a></p>
<p>
<a href="https://www.zhihu.com/question/1889066006799966287"  target="_blank" >https://www.zhihu.com/question/1889066006799966287</a></p>
<hr>
<p>Daniel Bump 的表示论课程</p>
<p>
<a href="http://sporadic.stanford.edu/Math122/"  target="_blank" >Math 122: Modules and Group Representation Theory</a></p>
<p>
<a href="http://sporadic.stanford.edu/Math122/lecture19.pdf"  target="_blank" >http://sporadic.stanford.edu/Math122/lecture19.pdf</a></p>
<p>关于半直积的讲解（有用）：http://sporadic.stanford.edu/bump/group/gind1_3.html</p>
<hr>
<p>A Note on Complex Representations of GL(2, Fq)</p>
<p>
<a href="https://math.ntnu.edu.tw/~li/note/REPGL2K.pdf"  target="_blank" >https://math.ntnu.edu.tw/~li/note/REPGL2K.pdf</a></p>
<hr>
<p>
<a href="https://subwiki.org/"  target="_blank" >https://subwiki.org/</a></p>
<p>比较全的数学 wiki</p>
<p>第一次用到是在找 Bruhat 分解</p>
<p>
<a href="https://groupprops.subwiki.org/wiki/Bruhat_decomposition_for_general_linear_group_of_degree_two_over_a_field"  target="_blank" >https://groupprops.subwiki.org/wiki/Bruhat_decomposition_for_general_linear_group_of_degree_two_over_a_field</a></p>
<hr>
<p>陈小伍 - 中科大</p>
<p>
<a href="http://home.ustc.edu.cn/~xwchen/"  target="_blank" >http://home.ustc.edu.cn/~xwchen/</a></p>
<p>想学代数荣誉课程：http://home.ustc.edu.cn/~xwchen/ModernAlgebra.htm</p>
<hr>
<p>刘毅 - BICMR</p>
<p>
<a href="http://scholar.pku.edu.cn/liuyi"  target="_blank" >http://scholar.pku.edu.cn/liuyi</a></p>
<p>有很多想学的课 
<a href="http://scholar.pku.edu.cn/liuyi/classes"  target="_blank" >http://scholar.pku.edu.cn/liuyi/classes</a></p>
<p>2023年秋季-微分流形与拓扑（实验班）：http://scholar.pku.edu.cn/liuyi/fall_2023_course_00137914</p>
<p>2025年春季-几何学II（实验班）：http://scholar.pku.edu.cn/liuyi/spring_2025_course_00132382</p>
<p>2024年秋季-微分流形与拓扑（实验班）：http://scholar.pku.edu.cn/liuyi/spring_2025_course_00132382</p>
<p>2024年春季-同调论（强化班）：http://scholar.pku.edu.cn/liuyi/spring_2024_course_e16x</p>
<p>作业习题值得做一做！！！</p>
<hr>
]]></content:encoded>
    </item>
    
    <item>
      <title>记录一些想看的书和课程</title>
      <link>https://www.ridic.me/posts/maths/250602-courses2learn/</link>
      <pubDate>Mon, 02 Jun 2025 00:10:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/250602-courses2learn/</guid>
      <description>课程 这里记录一些网络上看到的高质量课程/教授主页.特别注意2020-2022，这几年由于疫情而线上授课，因此各种资料更为丰富详细（如大多暑校</description>
      <content:encoded><![CDATA[<h1 id="课程">课程</h1>
<p>这里记录一些网络上看到的高质量课程/教授主页.特别注意2020-2022，这几年由于疫情而线上授课，因此各种资料更为丰富详细（如大多暑校提供这两年的课程录像和 Lecture Notes）</p>
<h3 id="南开大学暑校">南开大学暑校</h3>
<p>
<a href="http://www.cim.nankai.edu.cn/2021/0611/c11453a372030/page.psp"  target="_blank" >2021年南开大学暑期短期课程</a></p>
<p>
<a href="http://www.cim.nankai.edu.cn/2022/0627/c11453a460256/page.htm"  target="_blank" >2022年南开大学暑期短期课程</a></p>
<h3 id="iwoat---international-workshop-on-algebraic-topology">IWoAT - International Workshop on Algebraic Topology</h3>
<p>
<a href="https://iwoat.github.io/"  target="_blank" >https://iwoat.github.io/</a></p>
<p>网站中提供结束课程的 Lecture Notes.</p>
<p>
<a href="https://space.bilibili.com/1888763963/upload/video"  target="_blank" >官方B站账号</a>提供2021-2022年部分课程录像.</p>
<h3 id="renato-feres">Renato Feres</h3>
<p>这个教授什么课都开，分析、代数、几何拓扑、数学物理&hellip;</p>
<p>许多课程主页的作业文件已经404，部分可以在
<a href="https://archive.org"  target="_blank" >archive.org</a>上找到.</p>
<p>主页：
<a href="https://www.math.wustl.edu/~feres/"  target="_blank" >https://www.math.wustl.edu/~feres/</a></p>
<ul>
<li>
<a href="https://www.math.wustl.edu/~feres/Math5031.html"  target="_blank" >Algebra I - Math 5031</a>-</li>
<li>
<a href="https://www.math.wustl.edu/~feres/Math5031Fall21/Math5031Fall21Syllabus.html"  target="_blank" >Math 5031 – Algebra I (Fall 2021)</a></li>
<li>
<a href="https://www.math.wustl.edu/~feres/Math5032.html"  target="_blank" >Algebra II - Math 5032</a></li>
<li>
<a href="https://www.math.wustl.edu/~feres/Math5047Fall24/Math5047Fall24Syllabus.html"  target="_blank" >Math 5047 – Geometry/Topology III: Differential Geometry (Fall 2024)</a></li>
</ul>
<h3 id="熊锐">熊锐</h3>
<ul>
<li>
<a href="https://www.cnblogs.com/XiongRuiMath"  target="_blank" >熊睿的数学博客</a></li>
<li>
<a href="https://www.cnblogs.com/XiongRuiMath/p/14992978.html"  target="_blank" >Spectral Sequence, My Homological Saw</a></li>
<li>
<a href="https://github.com/CubicBear/SpectralSequences/tree/main?tab=readme-ov-file"  target="_blank" >SpectralSequences</a></li>
</ul>
<h3 id="肖梁">肖梁</h3>
<p>最好的抽象代数课程！</p>
<ul>
<li>Fall 2023, 
<a href="http://faculty.bicmr.pku.edu.cn/~lxiao/2023fall/2023fall.htm"  target="_blank" >Honors Algebra</a>, Peking University.</li>
<li>Fall 2020, 
<a href="http://faculty.bicmr.pku.edu.cn/~lxiao/2020fall/2020fall.htm"  target="_blank" >Topics in Number Theory: Fermat&rsquo;s Last Theorem</a>, Peking University.</li>
</ul>
<h3 id="伍晓磊">伍晓磊</h3>
<p>
<a href="https://wuxiaolei.org"  target="_blank" >Dr. Xiaolei Wu</a></p>
<h1 id="图书">图书</h1>
<h3 id="seifert-and-threlfall-a-textbook-of-topology">Seifert and Threlfall A Textbook of Topology</h3>
]]></content:encoded>
    </item>
    
    <item>
      <title>在服务器中部署Overleaf</title>
      <link>https://www.ridic.me/posts/tech/250428-overleaf/</link>
      <pubDate>Mon, 28 Apr 2025 02:03:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/tech/250428-overleaf/</guid>
      <description>主要部分可参考： 搭建和使用overleaf服务器 备份 主题部分可能以后再详细写。 这里先讲我在部署过程中遇到的几个坑。 1、无法注册管理员账户 在安</description>
      <content:encoded><![CDATA[<p>主要部分可参考：
<a href="https://www.tnnidm.com/build-and-use-overleaf-server/index.html"  target="_blank" >搭建和使用overleaf服务器</a> 
<a href="https://web.archive.org/web/20250208062704/https://www.tnnidm.com/build-and-use-overleaf-server/index.html"  target="_blank" >备份</a></p>
<p>主题部分可能以后再详细写。</p>
<p>这里先讲我在部署过程中遇到的几个坑。</p>
<h2 id="1无法注册管理员账户">1、无法注册管理员账户</h2>
<p>在安装完成后，进入<code>http://localhost/launchpad</code>却无法注册管理员账户，可能需要在<code>bin/config/variables.env</code>中把如下两行 <em><strong>注释掉</strong></em>（改成<code>False</code>都不行）：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e"># SHARELATEX_BEHIND_PROXY=false</span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># SHARELATEX_SECURE_COOKIE=false</span>
</span></span></code></pre></div><p>参考：见
<a href="https://github.com/overleaf/toolkit/issues/151#issuecomment-1536668800"  target="_blank" >Error session message for login and registration</a></p>
<h2 id="2安装完整版-latex-时出错">2、安装完整版 LaTeX 时出错</h2>
<p>在开头提到的经验贴中用的是2021年的sharelatex，但目前是2025年版本，操作可能不大一样，</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e"># 检查texlive版本</span>
</span></span><span style="display:flex;"><span>docker exec sharelatex tlmgr --version
</span></span><span style="display:flex;"><span><span style="color:#75715e"># 示例：2025年版本</span>
</span></span><span style="display:flex;"><span>docker exec sharelatex tlmgr option repository https://mirrors.pku.edu.cn/ctan/systems/texlive/tlnet/
</span></span><span style="display:flex;"><span><span style="color:#75715e"># 拉取完整latex</span>
</span></span><span style="display:flex;"><span>docker exec sharelatex tlmgr install scheme-full
</span></span></code></pre></div><p>sharelatex每年的三、四月份会更新版本并且将去年的archive仓库，如果overleaf没有跟进版本，则要选取对应版本。</p>
<p>archive的版本：</p>
<ul>
<li>清华镜像站：<code>https://mirrors.tuna.tsinghua.edu.cn/tex-historic-archive/systems/texlive/</code></li>
<li>南大镜像站：<code>https://mirror.nju.edu.cn/tex-historic/systems/texlive/</code></li>
</ul>
<p>最新版本：</p>
<ul>
<li>北大镜像站：<code>https://mirrors.pku.edu.cn/ctan/systems/texlive/tlnet</code></li>
</ul>
<p>（除了北大镜像站，其它都没有把最新版打包。。。很奇怪）</p>
<h2 id="3其它问题">3、其它问题</h2>
<p>可参考
<a href="https://github.com/overleaf/toolkit/tree/master/doc"  target="_blank" >官方doc</a></p>
<h1 id="注记">注记</h1>
<p>overleaf工作目录下的几个文件夹不要随便删，特别是mongo的文件夹，tex和用户信息都在里面。各个文件夹的用途和重要性可见
<a href="https://github.com/overleaf/overleaf/wiki/Data-and-Backups#folders-in-detail"  target="_blank" >Data and Backups</a>，在不同服务器中
<a href="https://github.com/overleaf/overleaf/wiki/Data-and-Backups#performing-a-backup"  target="_blank" >迁移数据</a>.</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>高等代数习题课-记录</title>
      <link>https://www.ridic.me/posts/maths/250428-algebra-exe-class/</link>
      <pubDate>Mon, 28 Apr 2025 00:44:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/250428-algebra-exe-class/</guid>
      <description>4.27日周日，调休上周一课。晚上高代课主要讲一个关于幂等（投影）变换的结论，在用映射的方法研究后再去看书上用迹的方法解决（丘P263）（挖</description>
      <content:encoded><![CDATA[<p>4.27日周日，调休上周一课。晚上高代课主要讲一个关于幂等（投影）变换的结论，在用映射的方法研究后再去看书上用迹的方法解决（丘P263）（挖坑）</p>
<p style="font-size: 14px;" class="probborder">
    设$V$是数域$K$上的$n$维线性空间，$\mathcal{A}_1,\mathcal{A}_2,\cdots,\mathcal{A}_s$都是$V$上的幂等变换。<br>
证明：如果 $\mathcal{A}_1 + \mathcal{A}_2 + \cdots+\mathcal{A}_s$ 也是幂等变换，那么
$$\mathrm{rank}(\mathcal{A}_1+\mathcal{A}_2+\cdots+\mathcal{A}_s)=\mathrm{rank}(\mathcal{A}_1)+\mathrm{rank}(\mathcal{A}_2)+\cdots+\mathrm{rank}(\mathcal{A}_s).$$
    <span class="probanswers">
        
        
    </span>
</p>
<p>课上从作用的观点，讲“幂等”类比到分析（拓扑）上的Brouwer不动点定理，并对于其最常用的证明方法，进行了代数上的思考.然后接着引出了Lefschetz不动点（挖坑x2）。</p>
<p>课后答疑时又问到昨日中饭时与老师聊的内容，数分课中证明代数基本定理的动机是证明有理函数有初等原函数那部分内容。在不定积分原函数那块内容涉及了一些代数的内容和概念，主要就是两个：代数基本定理、微分域扩张（证明Liouville定理）。</p>
<p>代数基本定理的证明刚讨论过，来自(Harm Derksen, 2003)的一种巧妙且深刻的证法。今天由这个话题又提到代数闭域的存在性和唯一性问题，证明它可能会用到正项/逆向极限，Zorn引理等。知乎上找到的证明：参考
<a href="https://zhuanlan.zhihu.com/p/129623743"  target="_blank" >抽象代数(3-2)：分裂域，代数闭域，代数闭包</a>（挖坑x3）</p>
<p>然后就是Liouville定理，表述如下：</p>
<p style="font-size: 14px;" class="probborder">
    (Liouville) 设$f$为初等函数，$K$为一个初等微分扩域使得$f\in{K}$，则$f$有初等原函数当且仅当$\exist M\in\mathbb{N}^*,c_1,\cdots,c_m\in\mathbb{C},\beta_1,\cdots,\beta_m,\gamma\in{K},\beta_j\ne0$，使得$$f=\displaystyle\sum_{j=1}^m c_j\dfrac{\beta_j^{′}}{\beta_j}+\gamma^{′}.$$
    <span class="probanswers">
        
        
    </span>
</p>
<p>在超理论坛中找到一个不错的
<a href="https://chaoli.club/index.php/3339"  target="_blank" >证明解说</a>，以及一份
<a href="https://severuslin.github.io/notes/Diff_Alg_Intro.pdf"  target="_blank" >微分代数导引</a>，以后有空仔细研究一下（挖坑x4）</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>关于学习过程的“参数权重”设置</title>
      <link>https://www.ridic.me/posts/trivial/250427-learn-para/</link>
      <pubDate>Sun, 27 Apr 2025 00:39:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/250427-learn-para/</guid>
      <description>今天在自习室，随意翻桌上的书时，发现一个大四同学在看的一本 J.P. May 的 &amp;ldquo;More Concise Algebraic Topology&amp;rdquo;，属实令我吃了一惊，毕竟是May写的研究</description>
      <content:encoded><![CDATA[<p>今天在自习室，随意翻桌上的书时，发现一个大四同学在看的一本 J.P. May 的 &ldquo;More Concise Algebraic Topology&rdquo;，属实令我吃了一惊，毕竟是May写的研究生代拓教材的第二册，讲“局部化,完备化和模型范畴”等更深入抽象的内容。按我目前的学习速度，可能本科读完也没有足够的功底去读这本书，我想。</p>
<p>但是否一定如此？也许在“读书学习速度”这一表象并非反映学习能力，而是学习方法的外显。毕竟，如果是像读小说一样浏览一遍还是相对轻松的；而我总担心这样的理解不深，无法掌握精髓，于是深入到书中的每一个细节，无法自拔。于是意识到，自己得调整一下学习方法。</p>
<p>实际上，学习方法没有绝对的对错，只有在给定某种“意义”下的优劣。记得开学初，孟晟老师在第一节课就跟我们讲过这个类比。他找出了deepseek的一篇论文，其中刻画了训练模型中不同方面的参数权重，于是模型归结为一个问题：找到最佳参数权重比例，使得“预期”训练结果最优化。类比到数学学习上，便可以说：在明晰学习目的的条件下，我们要在“刷题训练”、“自我探索生成”等学习方法中找到最佳比例。</p>
<p>因此，回到对于书籍的阅读学习。本科生学习代数拓扑等进阶学科，目的并非是去完全掌握。对于这近一个世纪较为“前沿”的内容，也许只是粗略了解思想方法，学会计算即可。（这大概也是丘赛设立的初衷）而我目前学习代拓的“死磕”方法，既失去了效率，又无法完全理解，可能不久又将忘记。那么两种学习方法的效果将产生显著差异。这也解释了广为流传的一个论断：“数学系中学生的差距，比人与猪的差距还要大。”好的学习方法、好的思维，将时刻不断作用于学习过程中。</p>
<p>罗栗老师曾说，学习要不求甚解。这句话有不同的理解方式。对于我来说，就是不再沉迷细节，能够在掌握最低前置知识的前提下，看懂核心方法即可。</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>从今天开始写一些东西</title>
      <link>https://www.ridic.me/posts/trivial/250403-beginwriting/</link>
      <pubDate>Thu, 03 Apr 2025 01:00:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/250403-beginwriting/</guid>
      <description>一点总结和计划</description>
      <content:encoded><![CDATA[<p>为什么突然开始想写些东西，因为我发现最近的学习与生活，愈发陷入一种模式：</p>
<p>$$\cdots \longrightarrow  遗忘 \longrightarrow  \text{浏览} \longrightarrow  \text{想法} \longrightarrow  \text{遗忘} \longrightarrow \text{浏览} \longrightarrow \text{想法} \longrightarrow  \cdots$$</p>
<p>这学期选了六门数学专业课，所以说课余的时间很少，几乎没有整块的时间去深化某方面的学习，大多数空闲的碎片化时间，便用在刷知乎、公众号，看各种各样他人的研究创作。有时确能激发一些灵感想法，但始终没有时间深入思考了解，一直收藏/挂在电脑平板的标签页里，渐渐忘掉。</p>
<p>因此我意识到必须做些持续性的、有规划的工作。之前尝试过整理成latex笔记形式，然而其形式不够自由（引用参考和超链接、归纳整理太繁），最终也就流于形式。最终坚持下来的只有数学分析笔记。而写博客则解决了这一痛点，偶尔有些思路，直接把 <code>思路/超链接</code> 往上一丢，简单一分类即可；什么时候有新思路，直接定位到某篇blog接着写，完全无需在组织、排版上耗心思。</p>
<p>当然，行动起来是关键。我希望在这之后半年中能坚持更新的内容：</p>
<ol>
<li>代数拓扑（和一些几何？）</li>
<li>数学分析（习题/答疑/参考书）</li>
</ol>
]]></content:encoded>
    </item>
    
    <item>
      <title>不定积分练习</title>
      <link>https://www.ridic.me/posts/maths/240618-integration1/</link>
      <pubDate>Tue, 18 Jun 2024 23:12:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/240618-integration1/</guid>
      <description>一份不定积分网络题目的Latex整理</description>
      <content:encoded><![CDATA[<h3 id="坚持慢慢练">坚持慢慢练</h3>
<!-- raw HTML omitted -->
<!DOCTYPE HTML>
<html lang="en">

<head>
    <style type="text/css">
        #googleslides_shortcodes {
            padding-bottom: 66%;
            position: relative;
            display: block;
            width: 100%;
            border-bottom: 5px solid;
        }

        #googleslides_shortcodes iframe {
            position: absolute;
            top: 0;
            left: 0
        }
    </style>
    <title></title>
</head>

<body>
    <div id="googleslides_shortcodes">
        <iframe id="googleSlideIframe" width="100%" height="100%" src="https://cos.fi0.cc/uploads/k75vpjVX_%E4%B8%8D%E5%AE%9A%E7%A7%AF%E5%88%86%E7%BB%83%E4%B9%A0.pdf" frameborder="0"
            allowfullscreen="">
        </iframe>
    </div>
</body>

</html>
]]></content:encoded>
    </item>
    
    <item>
      <title>国内Docker镜像代理</title>
      <link>https://www.ridic.me/posts/tech/240611-docker-mirror/</link>
      <pubDate>Tue, 11 Jun 2024 10:55:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/tech/240611-docker-mirror/</guid>
      <description>使用国内Docker镜像代理拉去Docker镜像</description>
      <content:encoded><![CDATA[<p>目前主流的公共Docker镜像源都不能在国内用了，因此可以用docker镜像的代理。</p>
<p>参考项目：https://github.com/DaoCloud/public-image-mirror</p>
<p>实例：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e">#将jellyfin/jellyfin:10.9.2换成你需要的镜像名和版本</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>docker pull m.daocloud.io/docker.io/jellyfin/jellyfin:10.9.2
</span></span></code></pre></div><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e">#格式为 docker tag 代理镜像名:版本 原始镜像名:版本</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>docker tag m.daocloud.io/docker.io/jellyfin/jellyfin:10.9.2 jellyfin/jellyfin:10.9.2
</span></span></code></pre></div><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e">#格式为 docker rmi 代理镜像名:版本</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>docker rmi m.daocloud.io/docker.io/jellyfin/jellyfin:10.9.2
</span></span></code></pre></div><hr>
<p>2025.04.30更新：</p>
<p>目前发现还是有一些仓库能用的：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-json" data-lang="json"><span style="display:flex;"><span>{
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">&#34;registry-mirrors&#34;</span>: [
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://docker.m.daocloud.io&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://hub1.nat.tf&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://docker.registry.cyou&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://docker-cf.registry.cyou&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://dockercf.jsdelivr.fyi&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://docker.jsdelivr.fyi&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://dockertest.jsdelivr.fyi&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://mirror.aliyuncs.com&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://dockerproxy.com&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://mirror.baidubce.com&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://docker.nju.edu.cn&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://docker.mirrors.sjtug.sjtu.edu.cn&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://docker.mirrors.ustc.edu.cn&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://mirror.iscas.ac.cn&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#34;https://docker.rainbond.cc&#34;</span> 
</span></span><span style="display:flex;"><span>  ]
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div><p>（可参考
<a href="https://status.daocloud.io/status/docker"  target="_blank" >https://status.daocloud.io/status/docker</a>、
<a href="https://blog.csdn.net/wxhzz/article/details/143785794"  target="_blank" >https://blog.csdn.net/wxhzz/article/details/143785794</a>）</p>
<p>在终端重新启动一下docker</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>systemctl daemon-reload
</span></span><span style="display:flex;"><span>systemctl restart docker
</span></span></code></pre></div><p>（daocloud的镜像使用白名单制，如果自己要下的镜像不在白名单内，则要先
<a href="https://github.com/DaoCloud/public-image-mirror/issues/2328"  target="_blank" >申请</a>.）</p>
<p>（以及自部署镜像代理服务器
<a href="https://github.com/DaoCloud/crproxy/tree/master"  target="_blank" >crproxy</a>）</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>《上海高考指南》数学部分阅读与分析</title>
      <link>https://www.ridic.me/posts/maths/240524-cee-guide/</link>
      <pubDate>Fri, 24 May 2024 20:22:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/240524-cee-guide/</guid>
      <description>一、高考数学试卷命题思路是什么？ (以下仅列举重点部分) (1)命题以数学学科核心素养立意 考查学生的数学学科核心素养，包括：数学抽象、逻辑推理、</description>
      <content:encoded><![CDATA[<h2 id="一高考数学试卷命题思路是什么">一、高考数学试卷命题思路是什么？</h2>
<p>(以下仅列举重点部分)</p>
<h4 id="1命题以数学学科核心素养立意">(1)命题以数学学科核心素养立意</h4>
<blockquote>
<p>考查学生的数学学科核心素养，包括：<strong>数学抽象</strong>、<strong>逻辑推理</strong>、<strong>数学建模</strong>、<strong>直观想象</strong>、<strong>数学运算</strong>和<strong>数据分析</strong>。</p>
</blockquote>
<blockquote>
<p>文中列举了23年春考的16题：<br>
已知无穷数列  $\left\{a_{n}\right\}$  的各项均为实数, 记  $\left\{a_{n}\right\}$  的前  $n$  项的和是  $S_{n}$  。若对任意  $k&gt;2022$ , 都有  $\left|S_{k}\right|&gt;\left|S_{k+1}\right|$ , 则以下可能正确的是（     ）。<br>
A.  $a_{1}$ 、 $a_{3}$ 、 $\cdots$ 、 $a_{2 n-1}$ 、 $\cdots$  是等差数列,  $a_{2}$ 、 $a_{4}$ 、 $\cdots$ 、 $a_{2 n}$ 、 $\cdots$  是等比数列。<br>
B.  $a_{1}$ 、 $a_{3}$ 、 $\cdots$ 、 $a_{2 n-1}$ 、 $\cdots$  是等比数列,  $a_{2}$ 、 $a_{4}$ 、 $\cdots$ 、 $a_{2 n}$ 、 $\cdots$  是等差数列。<br>
C.  $a_{1}$ 、 $a_{2}$ 、 $\cdots$ 、 $a_{2022}$  是等差数列,  $a_{2023}$ 、 $a_{2024}$ 、 $\cdots$  是等比数列。<br>
D.  $a_{1}$ 、 $a_{2}$ 、 $\cdots$ 、 $a_{2022}$  是等比数列,  $a_{2023}$ 、 $a_{2024}$ 、 $\cdots$  是等差数列。</p>
</blockquote>
<blockquote>
<p>（答案：C）</p>
</blockquote>
<h4 id="2重点探索应用性与探究性问题情境的创设">(2)重点探索应用性与探究性问题情境的创设</h4>
<blockquote>
<p>数学学科核心素养通过“情境与问题”“知识与技能”“思维与表达”“交流与反思”四个方面来体现，而<strong>加强情境设计，注重联系社会生活实际，增加应用性、探究性试题</strong>正是深化考试命题改革的要求。命题对于应用型问题情境的创设作重点探索。试卷中会设置一些现实情境、数学情境或科学情境，这些情境的创设对考生来说是<strong>全新的</strong>，没有现成的解题模式或解题策略可用，需要考生<strong>独立思考</strong>去发现和提出问题、运用所学知识分析问题和解决问题。<br>
······<br>
例如应用题，引入建筑物的“体形系数”及“形状因子”，···，了解建模的过程和价值，从而学会变被动解题为<strong>主动发现问题</strong>，<strong>建立模型</strong>、<strong>解决问题</strong>。</p>
</blockquote>
<p>可以看出，数学建模这块主要看中主动探索能力，高考命题可能会将其体现在“提出问题”或“提出假设”中，甚至可能是对一个陌生问题的完全的自主探究。</p>
<h4 id="3试题的设计注重设问应答评分与考试目标一致性">(3)试题的设计注重设问、应答、评分与考试目标一致性</h4>
<blockquote>
<p>又如解析几何解答题，第三小题考查学生的数学运算素养······评分时紧扣考试目标要素，将应答过程划分为<em>直线与曲线方程联立</em>、<em>判别式满足的条件</em>、<em>消元</em>、<em>结论</em>四个环节进行评分，达到按照素养水平进行评价的目的，并实现<em>各种解法的匹配</em>。</p>
</blockquote>
<h2 id="二针对近年来学生在数学答题中的薄弱环节如何提高解题能力">二、针对近年来学生在数学答题中的薄弱环节，如何提高解题能力？</h2>
<h4 id="1加强审题意识">(1)加强<strong>审题意识</strong></h4>
<blockquote>
<p>审题是答题的首要环节，正确领会题意是正确答题的前提。然而在考生中却存在着对审题环节不够重视的情况：<br>
<strong>读题马虎，将字母、数字或其他表述看错。</strong> 如：将“$OA\perp{AB}$”看作“$OA\perp{OB}$”，将四棱锥当做三棱锥等。<br>
<strong>读题不加分析，想当然地往习惯思路上走。</strong> 如：求函数值域的交集却去求两个函数图像的交点，<em>求三棱柱的体积却用三棱锥的体积公式等</em>（<del>确实是这样</del>）。<br>
<strong>读题后思考不全面，没能领悟隐含的条件。</strong> 有些题设是隐含着条件的，如：已知某三角形为直角三角形，若无明确说明，则直角的位置有三种情况；若两个非零向量的和的模等于这两个向量模的和，则意味着这两个向量同向。<br>
因此，建议审题时一要看清题目的语言表述，二要明确涉及的知识内容，三要读懂题设的真正含义，为正确答题打好基础。</p>
</blockquote>
<p>上述“想当然”和“忽略隐含条件”可在今年春考20题第三问体现。如下图，已知两个向量平行，如果想当然地按习惯思路把两个向量坐标一列，然后说$\dfrac{x_1}{y_1}=\dfrac{x_2}{y_2}$，就会发现无解。这其实就是忽略了向量平行坐标轴的情况，所以把向量平行用乘积式表达更好。并且，有同学没有发现点$B,C$的对称关系，结果设线联立算了好久，这就是忽略隐含条件带来的麻烦。</p>
<p><a href="https://i.fi0.cc/J6S0xMnrC6.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/J6S0xMnrC6.png" alt="24年春考20题"  />
</a>
</p>
<p>答案：(1)$\dfrac{5\sqrt{6}}{3}$;</p>
<p>(2)$\left(\sqrt{2},\dfrac{3\sqrt{10}}{5}\right]$;</p>
<p>(3)$C\left(-\dfrac{9}{4},-\dfrac{\sqrt{5}}{4}\right)$</p>
<h4 id="2提高运算及推理能力">(2)提高运算及推理能力</h4>
<blockquote>
<p>近年来，考生的运算能力、推理能力都<strong>有所退化</strong>。<br>
如：求<strong>特殊角的三角比值</strong>、<strong>数据很小的组合数</strong>等都要依赖计算器（&hellip;&hellip;）<br>
因此，建议考生在学习中要多思考，明白知识的来龙去脉，知其然更知其所以然，还要<strong>勤动手</strong>，数据不大的问题亲手算一算，想明白的问题看<strong>能不能写清楚</strong>，扎扎实实地提高运算和推理能力。</p>
</blockquote>
<p>可以参考<strong>23年春考21题</strong>，想明白容易，写明白很不容易。</p>
<p><a href="https://i.fi0.cc/cuh1bw29mL.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/cuh1bw29mL.png" alt="23年春考21题"  />
</a>
</p>
<h4 id="3提高阅读理解能力提升数学建模素养">(3)提高阅读理解能力，提升数学建模素养</h4>
<blockquote>
<p>···目前，部分考生在这方面的能力还是较为欠缺的，主要困难在于<em>阅读时有畏难情绪、无法将实际问题转换为数学模型</em>，解决这个问题的关键在于：平时多观察、多思考，主动寻找数学知识与现实生活的联系；<strong>对于现有的应用题，应多加分析</strong>，而不是记住其模式。</p>
</blockquote>
<h4 id="4加强探究意识">(4)加强探究意识</h4>
<blockquote>
<p>为了公平地考查考生独立思考和运用所学知识分析问题、解决问题的能力，试卷中会有一些背景新颖的试题，是考生以前没有见过的，<strong>不能套用已有的解题模式</strong>。这就需要考生具有<strong>探究意识，独立自主</strong>地去分析，<strong>整合</strong>已有的知识和方法，从而解决问题。<br>
然而，近年的考查结果表明，考生的探究意识亟待加强，最典型的例子是高考试卷的最后一题。<strong>纵观今年高考卷的最后一题，总体上绝对难度没有上升，甚至有所降低，但考生的得分率却屡屡下降</strong>，除了实在不会做的因素之外，有相当部分考生心理上就没有做好去尝试探究的准备，对试题未曾下笔。这种”放弃“的情况再高考试卷某些试题的答题中有一定的普遍性。事实上，探究能力的形成不是一蹴而就的，为考查考生这方面的能力，<strong>试题会铺设一定的阶梯</strong>。如果有探究意识，充分调动所掌握的知识和方法，勇于尝试，就能在实践中展现并发展自身的能力。</p>
</blockquote>
<p><a href="https://i.fi0.cc/VgnQFO3eMM.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/VgnQFO3eMM.png" alt="2015上海高考理科数学23题"  />
</a>
</p>
<p><a href="https://i.fi0.cc/2J73vmqCP5.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2J73vmqCP5.png" alt="2017上海高考数学21题"  />
</a>
</p>
<p><a href="https://i.fi0.cc/0PhEFtw3GU.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/0PhEFtw3GU.png" alt="2024上海春考数学21题"  />
</a>
</p>
<p>17年高考应该算是近几年中较难的。</p>
<h2 id="四数学临考前如何进行总复习">四、数学临考前如何进行总复习？</h2>
<h4 id="1认真学习课程标准明确考试要求">(1)认真学习《课程标准》，明确考试要求</h4>
<h4 id="2充分利用教材全面落实学习要求">(2)充分利用教材，全面落实学习要求</h4>
<h4 id="3适度训练提高效率">(3)适度训练，提高效率</h4>
<blockquote>
<p>考前适当的训练是必要的，可以检验复习情况、熟悉考试节奏，但要掌握好训练的度。过度训练，可能引起疲劳，流于一味追求量的机械训练，并不利于提高学业水平。训练要有针对性，通过做题，理解本质，掌握规律；不能就题论题，而要举一反三，最大限度地发挥每一题的效用。训练中，做通、做透，理解了思想方法，才能<strong>在不同中见相同，于相同中见差异</strong>，知识和方法才能灵活运用，从而提高学习效率。</p>
</blockquote>
<h4 id="4调整好临考前的状态">(4)调整好临考前的状态</h4>
<blockquote>
<p>要以积极自信的心理状态和踏实学习的行动迎接考试。不因纠结于考分而对自己作过高的预期或盲目低估自己，要专心于踏实学习带来的收获，专注于提升学业水平。<strong>考试时遇到难题不要急躁，试题的难度对大家而言都是一样的。</strong> 平时注意劳逸结合，只要抱着平常心、保持充沛的精力步入考场，就能发挥出自身应有的水平。</p>
</blockquote>
<h2 id="五一些补充">五、一些补充</h2>
<h4 id="高考真相">高考真相</h4>
<p>(来源于“晨晖数学”公众号《高考真相（1）》)</p>
<ul>
<li>真相一</li>
</ul>
<p>高考命题组由考试院“学科秘书”、大学教师和中学教师组成；<strong>高考题主要是大学老师命制的</strong>，特别是压轴题，而中学老师主要负责审题。</p>
<ul>
<li>真相二</li>
</ul>
<p>高考题的命制<strong>紧扣《课标》和《教材》</strong>，通常各种 <strong>“模拟卷”基本上押不到真题</strong> ，因为高考命题组有严密的“反押题”措施。</p>
<ul>
<li>真相三</li>
</ul>
<p>高考题原则上<strong>不出怪题、偏题</strong>，更<strong>不回避“必考点”</strong>，但却在<strong>命题角度、方法、题型</strong>上下功夫；而各种“高考模拟卷”往往把握不住标准，特别是难度方面，日常练习普遍偏难，往往使学生对高考心生畏惧，不利于考试中发挥正常水平。</p>
<ul>
<li>真相四</li>
</ul>
<p>高考阅卷人员主要是由大学教师、在读博士、硕士和部分中学老师构成。阅卷评分细则也主要是由大学教师制定。</p>
<hr>
<p>我们可以发现，平常考试中与上海高考贴近的压轴题是很稀有的(这是由大学教授和中学老师思考问题角度不同造成的)，我翻遍了高中三年的所有数学考卷，找到较好的压轴题不超过十道：</p>
<blockquote>
<p>(高一上期末)已知函数$f(x)$的图像在定义域$(0,+\infty)$上连续不断.若存在常数$T&gt;0$，使得对于任意的$x&gt;0, f(Tx)=f(x)+T$恒成立，称函数$f(x)$满足性质$P(T)$.<br>
(3)若函数$f(x)$满足性质$P(T)$，求证：函数$f(x)$存在零点.</p>
</blockquote>
<blockquote>
<p>(高一上练习卷)已知$y=f(x)$在定义域$\mathbf{R}$上是连续不断的函数，对于区间$I\subseteq\mathbf{R}$，若存在$c\in{I}$，使得对任意的$x\in{I}$，都有$f(x)\leq{f(c)}$，则称函数$y=f(x)$在区间$I$上存在最大值$M ( M=f(c) )$<br>
(3)若对任意$t\in{\mathbf{R}}$，函数$y=f(x)$在区间$(-\infty,t]$存在最大值$M$，设最大值$M$关于$t$的函数关系式为$M=g(t)$，求证：“$y=f(x)$在定义域$R$上是严格增函数”的充要条件是“$M=g(t)$在定义域$\mathbf{R}$上是严格增函数”.</p>
</blockquote>
<p>(上题说明了<em>回归教材</em>的重要性)</p>
<blockquote>
<p>(高一上练习卷、2020高考16)已知函数$y=f(x)$在$\mathbf{R}$上严格增.若函数$y=f(x)$有零点$x=x_0$，证明：存在$a\in\mathbf{R}$，使得$f(x+a) &lt; f(x)+f(a)$对任意$x\in{\mathbf{R}}$恒成立的充要条件是$x_0 &lt; 0$.</p>
</blockquote>
<blockquote>
<p>(高三周练7)设$A$是$\mathbf{R}$的子集，对于定义域为$D$的函数$y=f(x)$，若对任意$x\in{D}$和任意$t\in{A}$，都成立$x+t\in{D}$且$f(x)\geq{2^t\cdot{f(x+t)}}\geq{0}$，则称$f(x)$具有“$A$性质”.<br>
(3)已知定义域为$[0,+\infty)$的函数$y=h(x)$具有$\{1\}$性质，且存在$T&gt;0$使得当$x\geq{0}$时$h(x+T)=h(x)$恒成立.证明：“$h(x)$不恒为$0$”是“对任意$M&gt;0$”，存在$x_{M}\in{(0,T)}$，使得$h(x_{M})&gt;M$的充要条件.</p>
</blockquote>
<blockquote>
<p>(高三下三月月考)设$y=g(x)$是定义在$\mathbf{R}$上的函数，若存在常数$T&gt;0$，使得$y=\sin\left(g(x)\right)$是以$T$为一个周期的函数，则称$y=g(x)$为“正弦周期函数”，并称$T$是它的一个“正弦周期”.例如，所有的周期函数都是正弦周期函数.<br>
(1)证明：$y=2x+\cos{x}$是正弦周期函数，并求出它的一个正弦周期；<br>
(2)设$h(x)=x+\dfrac{1}{a}\sin{ax}$.若$y=h(x)$及其导函数$y=h^{′}(x)$均为正弦周期函数，且$y=h^{′}(x)$的正弦周期都是$y=h(x)$的正弦周期，求正整数$a$的所有可能值；<br>
(3)已知$y=f(x)$是以$T$为一个正弦周期的正弦周期函数，且存在$P&gt;0$和$A&gt;0$，使得对任意$x\in{\mathbf{R}}$，都成立$f(x+P)=Af(x)$.证明：$y=f(x)$是周期函数.</p>
</blockquote>
<p>注：以下是我能在近几年模卷里找到质量比较高的两题了。</p>
<blockquote>
<p>(2017黄浦二模)若函数  $f(x)$  满足: 对于任意正数  $s, t$ , 都有  $f(s)&gt;0, f(t)&gt;0$ , 且  $f(s)+f(t) &lt; f(s+t)$ , 则称函数  $f(x)$  为 “  $L$  函数”.<br>
(3) 若函数  $f(x)$  为 “  $L$  函数”, 且  $f(1)=1$ , 求证: 对任意  $x \in\left(2^{k-1}, 2^{k}\right)\left(k \in \mathbf{N}^{*}\right)$ , 都有  $f(x)-f\left(\dfrac{1}{x}\right)&gt;\dfrac{x}{2}-\dfrac{2}{x}$.</p>
</blockquote>
<blockquote>
<p>(2017浦东二模)对于定义域为  $R$  的函数  $g(x)$ , 若函数  $\sin [g(x)]$  是奇函数, 则称  $g(x)$  为正弦奇函数. 已知  $f(x)$  是单调递增的正弦奇函数, 其值域为  $R, f(0)=0$ .<br>
(1) 已知  $g(x)$  是正弦奇函数, 证明: “  $u_{0}$  为方程  $\sin [g(x)]=1$  的解” 的充要条件是 “  $-u_{0}$  为方程  $\sin [g(x)]=-1$  的解&quot;;<br>
(2)若  $f(a)=\dfrac{\pi}{2}, f(b)=-\dfrac{\pi}{2}$ , 求  $a+b$  的值;<br>
(3) 证明:  $f(x)$  是奇函数.</p>
</blockquote>
<hr>
<p>对于“真相”中所说“反押题”，则主要体现在12题，12题所设置的情景以及考察方式一定是新的(各种成熟套路<strong>失效</strong>，或披着伪装的外衣)，但实际上思维难度远不及20题。一般来说，只要肯动手算，仅得到正确答案是不难的。</p>
<p><a href="https://i.fi0.cc/muJhVvVtCE.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/muJhVvVtCE.png" alt="2021高考12  (答案：31)"  />
</a>
</p>
<p><a href="https://i.fi0.cc/sjqNnBnMrA.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/sjqNnBnMrA.png" alt="2024春考12  (答案：48)"  />
</a>
</p>
<p>(高三下三月月考12)已知各项均为正整数的数列$a_1,a_2,\cdots,a_{10}$满足对任意正整数$2\leq{n}\leq{9}$，均存在正整数$i\leq{n-1}$，使得$a_{n+1}=2a_n-a_i$.若$a_{2k}=2^k$（对所有$1\leq{k}\leq{5},k$为正整数），则符合条件的数列个数为________.<br>
(答案：5)</p>
<p><a href="https://i.fi0.cc/hMaT7vM8M3.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/hMaT7vM8M3.png" alt="他人原创  (答案：0,-3或-5)"  />
</a>
</p>
<hr>
<p>最后几天，应当在保持手感的前提下，回归教材，对于定义、定理进行独立的思考研究。</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>函数关于两点对称问题</title>
      <link>https://www.ridic.me/posts/maths/240511-one-abstract-function-problem/</link>
      <pubDate>Sat, 11 May 2024 22:22:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/240511-one-abstract-function-problem/</guid>
      <description>函数$f(x)$是定义域$\mathbf{R}$上的单调递增函数，图像同时关于两个点$(a,b)$和$(c,d)$对称($a,b,c,d$互</description>
      <content:encoded><![CDATA[<p style="font-size: 14px;" class="probborder">
    函数$f(x)$是定义域$\mathbf{R}$上的单调递增函数，图像同时关于两个点$(a,b)$和$(c,d)$对称($a,b,c,d$互不相等)，证明：存在实数$k$和$M$，满足：$|f(x)-kx|\leq{M}$恒成立.
    <span class="probanswers">
        
        
    </span>
</p>
<p>证明：由$f(x)$关于$(a,b)$对称：$f(x)+f(2a-x)=2b$，同理$f(x)+f(2c-x)=2d$，两式相减得</p>
<p>$$f(2a-x)-f(2c-x)=2b-2d$$</p>
<p>$$\Rightarrow{f(2a-2c+x)=f(x)+2b-2d}$$</p>
<p>设$g(x)=f(x)-\dfrac{b-d}{a-c}x-\dfrac{ad-bc}{a-c}$，则可得</p>
<p>$$g(x+2a-2c)=g(x)$$</p>
<p>不妨设$a&gt;c$，则$[2c-a,a]$是$g(x)$的一个周期.</p>
<p>在$[c,a]$上，$f(x)\in[d,b]$且$\dfrac{b-d}{a-c}x+\dfrac{ad-bc}{a-c}\in[d,b]$，故$g(x)\in[d-b,b-d]$.</p>
<p>由对称性，在$[2c-a,c]$上，$g(x)\in[d-b,b-d]$，故取$k=\dfrac{b-d}{a-c},M=b-d+\left|\dfrac{ad-bc}{a-c}\right|$即满足$|f(x)-kx|\leq{M}$恒成立.</p>
<p>注：题目中给出的条件“$f(x)$在$\mathbf{R}$上递增”是为了排除$f(x)=\tan{x}+x$等在一段“周期”内都无界的函数。所以，把单调增的条件改为“$f(x)$在$\mathbf{R}$上连续”也使得命题成立，但证明需要用到数学分析中“连续函数在闭区间上有界”的结论.</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>数学笔记-第八周</title>
      <link>https://www.ridic.me/posts/maths/240413-mathsnote8/</link>
      <pubDate>Sat, 13 Apr 2024 11:50:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/240413-mathsnote8/</guid>
      <description>几道题目 (答案在最后) 1.(1)已知数列$\{a_n\}$满足$a_1=\dfrac{2023}{2020}$，且对于任意的正整数$n$，都</description>
      <content:encoded><![CDATA[<h3 id="几道题目">几道题目</h3>
<p>(答案在最后)</p>
<p style="font-size: 14px;" class="probborder">
    1.(1)已知数列$\{a_n\}$满足$a_1=\dfrac{2023}{2020}$，且对于任意的正整数$n$，都有$a_n=\dfrac{a_{n+1}-1}{a_n-1}$.若正整数$k$使得$k&gt;\displaystyle\sum_{i=1}^{n}\dfrac{1}{a_i}$对任意的正整数成立，则整数$k$的最小值为__________.<br>
(2)在数列$\{a_n\}$中，$a_1=3,a_{n+1}=1+a_1\cdot{a_2}\cdot{a_3}\cdot{&hellip;}\cdot{a_n}$，记$T_n$为数列$\{\dfrac{1}{a_n}\}$的前$n$项和，且$T_n &lt; M$对一切正整数$n$成立，则实数$M$的最小值为__________.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    2.(1)已知定义在$\mathbf{R}$上的奇函数$y=f(x)$满足对任意$x_1&lt;x_2$，都成立$\dfrac{f(x_1)+f(x_2)}{x_1+x_2}&gt;a$.有下列两个命题：①当$a&gt;0$时，存在$f(x)$，使得$f(a)=0$；②对任意实数$a$，关于$x$的方程$f(a-x)+ax=a^2$都有唯一解.则正确的是__________.<br>
(2)已知函数$y=f(x)$满足：对任意$x_1,x_2\in{\mathbf{R}},x_1+x_2\not ={0}$，都有$\dfrac{f(x_1)+f(x_2)}{x_1+x_2}&gt;0$，且函数图像是一条连续曲线，若$y=f(x)$在$\mathbf{R}$上是严格增函数，求证：$y=f(x)$是奇函数.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    3.设定义在$\mathbf{R}$上的函数$f(x)$，对任意不同的两个实数$x_1、x_2,|f(x_1)-f(x_2)|&lt;|x_1-x_2|$均成立，且存在$x_0$，使$f(x_0)=x_0$.若数列$\{a_n\}$满足$a_1 &lt; x_0$，且$f(a_n)=2a_{n+1}-a_n(n\in{\mathbf{N^{*}}})$.<br>
有下列两个命题：①对于$n\in{\mathbf{N^{*}}},a_n &lt; x_0$恒成立；②：对于$n\in{\mathbf{N^{*}}},a_n&lt;a_{n+1}$恒成立.<br>
则正确的是__________.
    <span class="probanswers">
        
        
    </span>
</p>
<h3 id="压轴题">压轴题</h3>
<p><del>2018宝山一模21被认为是最难21&hellip;</del></p>
<p><a href="https://i.fi0.cc/ASEPt1uHBx.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/ASEPt1uHBx.png" alt=""  />
</a>
</p>
<p><a href="https://i.fi0.cc/gBTbMYiTUJ.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/gBTbMYiTUJ.png" alt=""  />
</a>
</p>
<p><a href="https://i.fi0.cc/z6utDBSeU3.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/z6utDBSeU3.png" alt=""  />
</a>
</p>
<p><a href="https://i.fi0.cc/Hhudsm32os.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/Hhudsm32os.png" alt=""  />
</a>
</p>
<h3 id="答案">答案</h3>
<p>1.(1)674  (2)$\dfrac{2}{3}$</p>
<p>2.(1)②   (2)略（2024虹口二模21）</p>
<p>3.(1)①②</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>数学笔记-第七周</title>
      <link>https://www.ridic.me/posts/maths/240403-mathsnote7/</link>
      <pubDate>Wed, 03 Apr 2024 22:20:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/240403-mathsnote7/</guid>
      <description>几道题目 上次周练13的12题好像考了关于取整的题目，但题不在手边。这里整理了一些手边的有关取整的题目。 取整的题目其实不难，唯一需要的技巧就是</description>
      <content:encoded><![CDATA[<h3 id="几道题目">几道题目</h3>
<blockquote>
<p>上次周练13的12题好像考了关于取整的题目，但题不在手边。这里整理了一些手边的有关取整的题目。<br>
取整的题目其实不难，唯一需要的技巧就是利用$x=[x]+\{x\}$。有时候找规律、分类讨论也能出结果。</p>
</blockquote>
<p style="font-size: 14px;" class="probborder">
    1.(1)定义$f(x)$表示不小于$x(x&gt;0)$的最小整数.若$f(3x+f(x))=f(6.5)$，则正实数$x$的取值范围为__________.<br>
(2)在$1,2,\cdots,2021$中，可以表示为$[x[x]] (x&gt;0)$形式的数共有__________个.<br>
(3)设正整数$n\leq2022$，且$\{\frac{n}{2}\}+\{\frac{n}{4}\}+\{\frac{n}{6}\}+\{\frac{n}{12}\}=3$.则这样的$n$共有__________个.<br>
(4)正实数数列$A=\{a_1,a_2,\cdots,a_{100}\}$满足：对$\forall{x}\in{A},x\notin{Z}$但$x+\{x\}^2\in{Z}$（其中$\{x\}=x-[x]$），则$S(A)=a_1+a_2+\cdots+a_{100}$的最小值为__________.<br>
(5)定义函数$f(x)=[x[x]]$，当$x\in[0,n),n\in\mathbf{N^{*}}$时，设函数$f(x)$的值域为$A$，记集合$A$中的元素个数为$a_n$，则$[\dfrac{a_n+90}{n}]$的最小值为__________.<br>
(6)设$[x]$表示不超过$x$的最大整数，且$\{x\}=x-[x]$，则方程$\{x\}+\{\frac{1}{x}\}=1$(  )<br>
A. 方程无实根                B. 方程存在整数解<br>
C. 方程存在无理数根     D. 方程有两个以上有理数根<br>
(7)已知$f(x)=\dfrac{x}{x-1}+\sin{\pi{x}}$，则$y=[f(x)]+[f(2-x)]$的值域为__________.<br>
(8)设$a_n=&lt;\sqrt{n}&gt;$，其中$&lt; x &gt;$表示与$x$最接近的整数，则$\dfrac{1}{a_1}+\dfrac{1}{a_2}+\cdots+\dfrac{1}{a_{2000}}$的值为__________.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    2.设$a_1,a_2,a_3,a_4\in\mathbf{R}$且$a_1a_4-a_2a_3=1$，则$f={a_1}^2+{a_2}^2+{a_3}^2+{a_4}^2+a_1a_3+a_2a_4$的最小值为__________.<br>
(提示：有$(a^2_1+a^2_2)(a^2_3+a^2_4)=(a_1a_3+a_2a_4)^2+(a_1a_4-a_2a_3)^2$)
    <span class="probanswers">
        
        
    </span>
</p>
<h3 id="答案">答案</h3>
<p><a href="https://i.fi0.cc/PcaWQIeyeA.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/PcaWQIeyeA.jpg" alt=""  />
</a>
</p>
<p><a href="https://i.fi0.cc/KotlmJxRN7.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/KotlmJxRN7.jpg" alt=""  />
</a>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>二模前复习总结</title>
      <link>https://www.ridic.me/posts/maths/240331-sec-test/</link>
      <pubDate>Sun, 31 Mar 2024 14:34:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/240331-sec-test/</guid>
      <description>这次的浦东二模大三门是第一个考的，没有其他区的卷子借鉴，就先复习一些以前做过的题。 1.避免小错误 1.定义域 对数函数、反函数的定义域容易漏。 2</description>
      <content:encoded><![CDATA[<p>这次的浦东二模大三门是第一个考的，没有其他区的卷子借鉴，就先复习一些以前做过的题。</p>
<h2 id="1避免小错误">1.避免小错误</h2>
<h4 id="1定义域">1.定义域</h4>
<p><strong>对数函数</strong>、<strong>反函数</strong>的定义域容易漏。</p>
<p><a href="https://i.fi0.cc/SssLLZ5YJy.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/SssLLZ5YJy.jpg" alt="对数函数"  />
</a>
</p>
<h4 id="2充要条件">2.充要条件</h4>
<p>一般放在13题，越是题面简单的越容易<strong>想当然</strong>，所以当认为推不出，一定要构造例子验证。</p>
<blockquote>
<p>设复数$z_1$、$z_2$分别对应于平面向量$\overrightarrow{a_1}$、$\overrightarrow{a_2}$，则“$z_1z_2=0$”是“$\overrightarrow{a_1}\cdot\overrightarrow{a_2}=0$”的(  )<br>
A.充分非必要条件;<br>
B.必要非充分条件;<br>
C.充要条件;<br>
D.既非充分也非必要条件.</p>
</blockquote>
<p>答案:A</p>
<p><a href="https://i.fi0.cc/2KVsBYZIJa.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2KVsBYZIJa.jpg" alt="构造反例"  />
</a>
</p>
<p><a href="https://i.fi0.cc/2KVsBYZIJa.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2KVsBYZIJa.jpg" alt=""  />
</a>
</p>
<h4 id="3读题">3.读题</h4>
<p>题目读完整即可。</p>
<p>注意题干中信息，比如定义域，“。钝角”，“<strong>正实数</strong>a的取值范围”等等，大题还要注意几个小问条件不要用串</p>
<p><a href="https://i.fi0.cc/z6JPcJlePm.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/z6JPcJlePm.jpg" alt="“剩下的”"  />
</a>
</p>
<p><a href="https://i.fi0.cc/aKgUeUaema.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/aKgUeUaema.jpg" alt="注意，这不是抛物线标准方程"  />
</a>
</p>
<h4 id="4考点意识">4.考点意识</h4>
<p>7~12题，想想考点，可以提供一些思路，并且避免掉进陷阱。</p>
<p><a href="https://i.fi0.cc/KIydQYSmhP.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/KIydQYSmhP.jpg" alt="等比数列正负号交错出现，所以要舍掉1这个解"  />
</a>
</p>
<h4 id="5目标量意识">5.目标量意识</h4>
<p>有时候组合问题取了相反情况、函数问题取了补集、数形结合把式子表示成距离的平方，写答案的时候不要忘记倒回去。</p>
<p>可以在题目横线处写上“目标量”避免自己忘记。</p>
<p><a href="https://i.fi0.cc/BlZDIJbRD1.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/BlZDIJbRD1.jpg" alt="这又是直接写距离了"  />
</a>
</p>
<p><a href="https://i.fi0.cc/xhePC5QiFI.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/xhePC5QiFI.jpg" alt="取反"  />
</a>
</p>
<h2 id="2难题">2.难题</h2>
<h3 id="12题">12题</h3>
<p>许多12题就是得花一些时间（要枚举、找规律等等），不涉及技巧性，对于这些题，就是要沉下心去做。</p>
<p><a href="https://i.fi0.cc/pksEBmFx4w.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/pksEBmFx4w.png" alt=""  />
</a>
</p>
<p><a href="https://i.fi0.cc/57U4cSCHB7.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/57U4cSCHB7.jpg" alt=""  />
</a>
</p>
<p><a href="https://i.fi0.cc/Fm5Sgm1SN4.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/Fm5Sgm1SN4.jpg" alt=""  />
</a>
</p>
<p><a href="https://i.fi0.cc/FLyTYWx2p5.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/FLyTYWx2p5.jpg" alt=""  />
</a>
</p>
<h3 id="21题">21题</h3>
<p>21题，第三问没有思路，可以试试用第二问的结论，有时候有意想不到的效果。</p>
<p>对于浦东二模，<del>出题老师可能会把自己得意的题在二模再放一遍</del>（像23年一模21题，同一个函数又出在了二模12题），所以还是再看看今年的一模21。</p>
<p><a href="https://i.fi0.cc/AuZ4Lg04eA.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/AuZ4Lg04eA.png" alt=""  />
</a>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>6</title>
      <link>https://www.ridic.me/problems/6/</link>
      <pubDate>Thu, 28 Mar 2024 17:14:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/problems/6/</guid>
      <description>构造定义域为$\mathbf{R}$函数$f,g$，使得$f[g(x)]$严格单调递增，$g[f(x)]$严格单调递减. &amp;emsp;题源：2</description>
      <content:encoded><![CDATA[<p style="font-size: 14px;" class="probborder">
    构造定义域为$\mathbf{R}$函数$f,g$，使得$f[g(x)]$严格单调递增，$g[f(x)]$严格单调递减.
    <span class="probanswers">
        
        
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：2011罗马尼亚大师杯、月考改编</a>
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>数学笔记-第六周</title>
      <link>https://www.ridic.me/posts/maths/240317-mathsnote6/</link>
      <pubDate>Sun, 17 Mar 2024 14:39:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/240317-mathsnote6/</guid>
      <description>组合数有关的一些求和公式 (1)$\mathrm{C}^m_n=\mathrm{C}^{m-1}_{n-1}+\mathrm{C}^{m}_{n-1}$ (2)$m\mathrm{C}^m_n=n\mathrm{C}^{m-1}_{n-1}$ (3)$\mathrm{C}^k_n\mathrm{C}^m_k=\mathrm{C}^m_n\mathrm{C}^{k-m}_{n-m}$ (4)$\mathrm{C}^0_n+\mathrm{C}^1_n+\mathrm{C}^2_n+\cdots+\mathrm{C}^n_n=2^n$ (5)$(\mathrm{C}^0_n)^2+(\mathrm{C}^1_n)^2+(\mathrm{C}^2_n)^2+\cdots+(\mathrm{C}^n_n)^2=\mathrm{C}^{n}_{2n}$ (6)$1\mathrm{C}^1_n+2\mathrm{C}^2_n+3\mathrm{C}^3_n+\cdots+n\mathrm{C}^n_n=n\cdot2^{n-1}$ (7)$1^2\mathrm{C}^1_n+2^2\mathrm{C}^2_n+3^2\mathrm{C}^3_n+\cdots+n^2\mathrm{C}^n_n=n(n+1)\cdot2^{n-2}$ (8)(※)$\mathrm{C}^0_n+\frac{1}{2}\mathrm{C}^1_n+\fr</description>
      <content:encoded><![CDATA[<h3 id="组合数有关的一些求和公式">组合数有关的一些求和公式</h3>
<p>(1)$\mathrm{C}^m_n=\mathrm{C}^{m-1}_{n-1}+\mathrm{C}^{m}_{n-1}$</p>
<p>(2)$m\mathrm{C}^m_n=n\mathrm{C}^{m-1}_{n-1}$</p>
<p>(3)$\mathrm{C}^k_n\mathrm{C}^m_k=\mathrm{C}^m_n\mathrm{C}^{k-m}_{n-m}$</p>
<p>(4)$\mathrm{C}^0_n+\mathrm{C}^1_n+\mathrm{C}^2_n+\cdots+\mathrm{C}^n_n=2^n$</p>
<p>(5)$(\mathrm{C}^0_n)^2+(\mathrm{C}^1_n)^2+(\mathrm{C}^2_n)^2+\cdots+(\mathrm{C}^n_n)^2=\mathrm{C}^{n}_{2n}$</p>
<p>(6)$1\mathrm{C}^1_n+2\mathrm{C}^2_n+3\mathrm{C}^3_n+\cdots+n\mathrm{C}^n_n=n\cdot2^{n-1}$</p>
<p>(7)$1^2\mathrm{C}^1_n+2^2\mathrm{C}^2_n+3^2\mathrm{C}^3_n+\cdots+n^2\mathrm{C}^n_n=n(n+1)\cdot2^{n-2}$</p>
<p>(8)(※)$\mathrm{C}^0_n+\frac{1}{2}\mathrm{C}^1_n+\frac{1}{3}\mathrm{C}^2_n+\cdots+\frac{1}{n+1}\mathrm{C}^n_n=\frac{1}{n+1}(2^{n+1}-1)$</p>
<p>(9)(※)$\dfrac{\mathrm{C}^1_n}{1}-\dfrac{\mathrm{C}^2_n}{2}+\dfrac{\mathrm{C}^3_n}{3}-\cdots+(-1)^{n-1}\dfrac{\mathrm{C}^n_n}{n}=1+\dfrac{1}{2}+\dfrac{1}{3}+\cdots+\dfrac{1}{n}$</p>
<h3 id="几道题目">几道题目</h3>
<p style="font-size: 14px;" class="probborder">
    1.(1)等比数列$\{a_n\}$中，$a_1=2,a_8=4$，函数$f(x)=x(x-a_1)(x-a_2)\cdots(x-a_8)$,则$f^{′}(0)=$__________.<br>
(2)函数$f(x)=(x-1)(x-2)(x-3)(x-4)$在$x=3$处的导数为__________.<br>
(3)函数$f(x)=(x-1)(x-2)\cdots(x-n)$，则$\displaystyle\sum_{k=1}^{n}\frac{1}{f^{′}(x)}=$__________.
    <span class="probanswers">
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：蓝宝书P143</a>
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    2.(1)设$I$为$\Delta ABC$的内心，$AB=5,AC=6,BC=7.\overrightarrow{IP}=x\overrightarrow{IA}+y\overrightarrow{IB}+z\overrightarrow{IC},0\leq{x,y,z}\leq{1}$，则动点$P$的轨迹所覆盖的平面区域的面积等于__________.<br>
(2)点$O$是正四面体$A_1A_2A_3A_4$的中心，$|OA_i|=1(i=1,2,3,4).$若$\overrightarrow{OP}=\lambda_1\overrightarrow{OA_1}+\lambda_2\overrightarrow{OA_2}+\lambda_3\overrightarrow{OA_3}+\lambda_4\overrightarrow{OA_4},$其中$0\leq\lambda_i\leq1(i=1,2,3,4),$则动点$P$扫过的区域的体积为__________.
    <span class="probanswers">
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：(2)为高三上第一次月考11题</a>
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    3.构造定义域为$\mathbf{R}$函数$f,g$，使得$f[g(x)]$严格单调递增，$g[f(x)]$严格单调递减.
    <span class="probanswers">
        
        
        <a></a>
        &gt;&nbsp;<a class="probans" href="/problems/6">详细解答</a>
        
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：2011罗马尼亚大师杯、月考改编</a>
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>将 word 中的 Mathtype 公式转为 Latex</title>
      <link>https://www.ridic.me/posts/tech/240217-mathtype2latex/</link>
      <pubDate>Sat, 17 Feb 2024 18:50:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/tech/240217-mathtype2latex/</guid>
      <description>如图，在 word 中进行操作。选中要转换的内容，点击 MathType 选项卡，单击Toogle Tex即可。 将所得 latex 代码复制使用即可。 1.已知点$R$是圆$B$：${</description>
      <content:encoded><![CDATA[<p>如图，在 word 中进行操作。选中要转换的内容，点击 MathType 选项卡，单击<code>Toogle Tex</code>即可。</p>
<p><a href="https://i.fi0.cc/AJ6HHdh425.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/AJ6HHdh425.png" alt=""  />
</a>

<a href="https://i.fi0.cc/8ewwRZse5E.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/8ewwRZse5E.png" alt=""  />
</a>
</p>
<p>将所得 latex 代码复制使用即可。</p>
<p style="font-size: 14px;" class="probborder">
    1.已知点$R$是圆$B$：${{(x+1)}^{2}}+{{y}^{2}}=16$上任意一点，定点$A(1,0)$，线段$AR$的垂直平分线$l$
和半径$BR$相交于点$T$，当点$R$在圆周上运动时，设点$T$的运动轨迹为$\Gamma $.<br>
（1）证明轨迹$\Gamma $为椭圆，并请写出$\Gamma $的方程；<br>
（2）设$E$、$F$分别为$\Gamma $与$x$轴的左、右交点，过$F$且垂直于$x$轴的直线为$m$，$S$为$\Gamma $上
任意一点，直线$ES$与$m$交于点$U$，求证直线$OU$与$FS$的斜率之积为定值；<br>
（3）直线$l_1$过点$M(-3,0)$，与轨迹$\Gamma $交于$P$、$Q$两点，与$y$轴交于点$N$，平行于直线$l_1$的
直线$l_2$过点$A(1,0)$，且与$\Gamma $交于$C$、$D$两点，$O$为坐标原点，记$S_1=S_{\vartriangle POQ}$，$S_2=S_\vartriangle MON$，
$S_3=S_{\vartriangle COD}$，求$\frac{S_1S_2}{S_3}$的最大值.
    <span class="probanswers">
        
        
    </span>
</p>
<h2 id="待解决问题">待解决问题：</h2>
<ol>
<li>
<p>转换所得数学公式默认用<code>\[</code>和<code>\]</code>，而非<code>$</code>。不过这个好解决，直接在 word/vscode 等中分别将其<strong>全部替换</strong>即可。</p>
</li>
<li>
<p>转换所得公式中的<code>{{  }}</code>与 hugo 模版引擎冲突。目前没有找到解决办法，依靠手动删除。</p>
</li>
</ol>
]]></content:encoded>
    </item>
    
    <item>
      <title>原创一题</title>
      <link>https://www.ridic.me/posts/maths/231223-original-problem/</link>
      <pubDate>Sat, 23 Dec 2023 17:45:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/231223-original-problem/</guid>
      <description>平面向量$\overrightarrow{a},\overrightarrow{b}$满足$|\overrightarrow{a}|\cdo</description>
      <content:encoded><![CDATA[<p style="font-size: 14px;" class="probborder">
    平面向量$\overrightarrow{a},\overrightarrow{b}$满足$|\overrightarrow{a}|\cdot|\overrightarrow{b}|=2|\overrightarrow{a}|^2+\overrightarrow{a}\cdot\overrightarrow{b},4|\overrightarrow{a}|=|\lambda\overrightarrow{a}+\overrightarrow{b}|=4$,求实数$\lambda$的取值范围.
    <span class="probanswers">
        
        
    </span>
</p>
<p>答案是$[-4,5]$，以后再来写过程。</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>为什么高中数学题越来越难</title>
      <link>https://www.ridic.me/posts/maths/230929-whyhighschoolmathsishard/</link>
      <pubDate>Fri, 29 Sep 2023 22:22:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/230929-whyhighschoolmathsishard/</guid>
      <description>参考下图： 两道题，第一眼看到便觉眼熟，第一道改编自2012上海高考理数最后一道压轴题，第二道改编自2023东北三省三校二模倒数第二道压轴题。</description>
      <content:encoded><![CDATA[<p>参考下图：</p>
<p><a href="https://i.fi0.cc/63fbNkMn3H.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/63fbNkMn3H.png" alt="两道高中数学题"  />
</a>
</p>
<p>两道题，第一眼看到便觉眼熟，第一道改编自2012上海高考理数最后一道压轴题，第二道改编自2023东北三省三校二模倒数第二道压轴题。</p>
<p><a href="https://i.fi0.cc/KRMCLnsoSw.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/KRMCLnsoSw.png" alt="2012上海高考理数"  />
</a>
</p>
<p><a href="https://i.fi0.cc/Heb8IFpGF4.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/Heb8IFpGF4.png" alt="2023东北三省三校二模"  />
</a>
</p>
<p>老的压轴题浓缩成小题，再加上新的压轴大题，试卷还能不难吗？</p>
<p>以前的数学老师曾在公众号上呼吁：
<a href="https://mp.weixin.qq.com/s/U3vE9KxdtyxTztIumrYrxw"  target="_blank" >放过学生：出一份难易适度的数学试卷</a></p>
]]></content:encoded>
    </item>
    
    <item>
      <title>有趣的开源项目整理</title>
      <link>https://www.ridic.me/posts/tech/230825-interesting-projects/</link>
      <pubDate>Fri, 25 Aug 2023 22:45:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/tech/230825-interesting-projects/</guid>
      <description>自从有了自己的云服务器，便各处寻找和部署有趣使用的开源项目。在此整理。 项目 概述 1.个人知识管理 思源笔记 隐私优先的个人知识管理系统 Memos 隐私优先，</description>
      <content:encoded><![CDATA[<p>自从有了自己的云服务器，便各处寻找和部署有趣使用的开源项目。在此整理。</p>
<table>
<thead>
<tr>
<th style="text-align:left">项目</th>
<th style="text-align:left">概述</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><strong>1.个人知识管理</strong></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#%e6%80%9d%e6%ba%90%e7%ac%94%e8%ae%b0" >思源笔记</a></td>
<td style="text-align:left">隐私优先的个人知识管理系统</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#memos" >Memos</a></td>
<td style="text-align:left">隐私优先，轻量的笔记记录服务</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#slash" >slash</a></td>
<td style="text-align:left">自托管的书签和链接共享平台</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#flare" >flare</a></td>
<td style="text-align:left">轻量、快速、美观的个人导航页面</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#talebook" >talebook</a></td>
<td style="text-align:left">一个简单的在线版个人书库</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#komga" >komga</a></td>
<td style="text-align:left">在线图书，漫画媒体服务器</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#archivebox" >archivebox</a></td>
<td style="text-align:left">私人网站存档 / 爬虫</td>
</tr>
<tr>
<td style="text-align:left"><strong>2.个人工具类</strong></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#microbin" >microbin</a></td>
<td style="text-align:left">文件共享、剪贴板、短链接服务</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#mailpile" >mailpile</a></td>
<td style="text-align:left">免费开源的在线邮件客户端</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#koodo-reader" >koodo-reader</a></td>
<td style="text-align:left">开源免费的电子书阅读器</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#cryptgeon" >cryptgeon</a></td>
<td style="text-align:left">共享密信和文件共享服务器，阅后即焚</td>
</tr>
<tr>
<td style="text-align:left"><strong>3.公共媒体类</strong></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#cloudreve" >cloudreve</a></td>
<td style="text-align:left">部署公私兼备的网盘系统</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#alist" >Alist</a></td>
<td style="text-align:left">一个支持多种存储的文件列表程序</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#lsky-pro" >lsky-pro</a></td>
<td style="text-align:left">属于自己的云端相册，图床</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#flarum" >flarum</a></td>
<td style="text-align:left">优雅简洁的轻论坛</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#rocketchat" >rocketchat</a></td>
<td style="text-align:left">私有部署的通讯平台</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#paopao-ce" >paopao-ce</a></td>
<td style="text-align:left">一个清新文艺的微社区</td>
</tr>
<tr>
<td style="text-align:left">
<a href="/posts/tech/230825-interesting-projects/#searxng" >SearXNG</a></td>
<td style="text-align:left">隐私优先，无追踪记录的搜索引擎</td>
</tr>
</tbody>
</table>
<p>待整理：</p>
<ul>
<li>overleaf</li>
<li>Code-server</li>
<li>gitea</li>
<li>novnc</li>
<li>sshwifty</li>
<li>tabby</li>
<li>umami</li>
</ul>
<p>其他：</p>
<ul>
<li>He3 
<a href="https://he3.app/zh/"  target="_blank" >https://he3.app/zh/</a></li>
<li>Booksearcher 
<a href="https://github.com/book-searcher-org/book-searcher"  target="_blank" >https://github.com/book-searcher-org/book-searcher</a></li>
</ul>
<h2 id="思源笔记">思源笔记</h2>
<p>
<a href="https://b3log.org/siyuan/"  target="_blank" >官网</a></p>
<h2 id="memos">Memos</h2>
<p>
<a href="https://usememos.com/"  target="_blank" >官网</a></p>
<h2 id="slash">slash</h2>
<p>
<a href="https://github.com/boojack/slash"  target="_blank" >项目主页</a></p>
<h2 id="flare">flare</h2>
<p>
<a href="https://github.com/soulteary/docker-flare"  target="_blank" >项目主页</a></p>
<h2 id="talebook">talebook</h2>
<p>
<a href="https://www.talebook.org/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/talebook/talebook"  target="_blank" >项目主页</a></p>
<h2 id="komga">komga</h2>
<p>
<a href="https://komga.org/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/gotson/komga"  target="_blank" >项目主页</a></p>
<h2 id="archivebox">archivebox</h2>
<p>
<a href="https://archivebox.io/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/ArchiveBox/ArchiveBox"  target="_blank" >项目主页</a></p>
<h2 id="microbin">microbin</h2>
<p>
<a href="https://microbin.eu/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/szabodanika/microbin"  target="_blank" >项目主页</a></p>
<h2 id="mailpile">mailpile</h2>
<p>
<a href="https://github.com/mailpile/Mailpile"  target="_blank" >项目主页</a></p>
<h2 id="koodo-reader">koodo-reader</h2>
<p>
<a href="https://koodo.960960.xyz/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/troyeguo/koodo-reader"  target="_blank" >项目主页</a></p>
<h2 id="cryptgeon">cryptgeon</h2>
<p>
<a href="https://cryptgeon.org/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/cupcakearmy/cryptgeon"  target="_blank" >项目主页</a></p>
<h2 id="cloudreve">cloudreve</h2>
<p>
<a href="https://cloudreve.org/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/cloudreve/Cloudreve"  target="_blank" >项目主页</a></p>
<h2 id="alist">alist</h2>
<p>
<a href="https://alist.nn.ci/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/alist-org/alist"  target="_blank" >项目主页</a></p>
<h2 id="lsky-pro">lsky-pro</h2>
<p>
<a href="https://www.lsky.pro/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/lsky-org"  target="_blank" >项目主页</a></p>
<h2 id="flarum">flarum</h2>
<p>
<a href="https://flarum.org/"  target="_blank" >官网</a></p>
<p>
<a href="https://flarum.org.cn/"  target="_blank" >中文站</a></p>
<p>
<a href="https://github.com/flarum/flarum"  target="_blank" >项目主页</a></p>
<h2 id="rocketchat">rocketchat</h2>
<p>
<a href="https://rocket.chat/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/RocketChat/Rocket.Chat"  target="_blank" >项目主页</a></p>
<h2 id="paopao-ce">paopao-ce</h2>
<p>
<a href="https://www.paopao.info"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/rocboss/paopao-ce"  target="_blank" >项目主页</a></p>
<h2 id="searxng">searxng</h2>
<p>
<a href="https://docs.searxng.org/"  target="_blank" >官网</a></p>
<p>
<a href="https://github.com/searxng/searxng"  target="_blank" >项目主页</a></p>
]]></content:encoded>
    </item>
    
    <item>
      <title>5</title>
      <link>https://www.ridic.me/problems/5/</link>
      <pubDate>Fri, 04 Aug 2023 22:35:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/problems/5/</guid>
      <description>设$a\in{\mathbf{Z}}$，已知定义在$\mathbf{R}$上的函数$f(x)=2x^4+3x^3-3x^2-6x+a$在区间</description>
      <content:encoded><![CDATA[<p style="font-size: 14px;" class="probborder">
    设$a\in{\mathbf{Z}}$，已知定义在$\mathbf{R}$上的函数$f(x)=2x^4+3x^3-3x^2-6x+a$在区间$(1,2)$内有一个零点$x_0$，$g(x)$为$f(x)$的导函数.<br>
（1）求$g(x)$的单调区间；<br>
（2）设$m\in{[1,x_0)\cup(x_0,2]}$，函数$h(x)=g(x)\cdot(m-x_0)-f(m)$，求证：$h(m)h(x_0)&lt;0$；<br>
（3）求证：存在大于0的常数$A$,使得对于任意的正整数$p,q,$且$\dfrac{p}{q}\in{[1,x_0)\cup(x_0,2]},$满足$\left|\dfrac{p}{q}-x_0\right|\geqslant\dfrac{1}{Aq^4}$.
    <span class="probanswers">
        
        
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：2017天津高考</a>
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>4</title>
      <link>https://www.ridic.me/problems/4/</link>
      <pubDate>Fri, 04 Aug 2023 21:41:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/problems/4/</guid>
      <description>若存在常数$k(k&amp;gt;0)$，使得对定义域$D$内的任意$x_1、x_2(x_1\neq{x_2})$，都有$|f(x_1)-f(x_2</description>
      <content:encoded><![CDATA[<p style="font-size: 14px;" class="probborder">
    若存在常数$k(k&gt;0)$，使得对定义域$D$内的任意$x_1、x_2(x_1\neq{x_2})$，都有$|f(x_1)-f(x_2)|\leqslant{k|x_1-x_2|}$成立，则称函数$f(x)$在其定义域$D$上是“$k$-利普希兹条件函数”.<br>
（1）若函数$f(x)=\sqrt{x}(1\leqslant{x}\leqslant{4})$是“$k$-利普希兹条件函数”，求常数$k$的最小值；<br>
（2）判断函数$f(x)=\log_2{x}$是否是“2-利普希兹条件函数”，若是，请证明，若不是，请说明理由；<br>
（3）若$y=f(x)(x\in\mathbf{R})$是定义在$[0,1]$上的“1-利普希兹条件函数”，且$f(0)=f(1)$，求最小的实数$m$，使得对任意的$x_1,x_2\in{[0,1]}$都有$|f(x_1)-f(x_2)|\leqslant{m}$.
    <span class="probanswers">
        
        
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：2018奉贤一模</a>
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>3</title>
      <link>https://www.ridic.me/problems/3/</link>
      <pubDate>Fri, 04 Aug 2023 21:23:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/problems/3/</guid>
      <description>2023长宁一模21题 已知函数$y=f(x)$的定义域为$(0,+\infty)$. （1）若$f(x)=\ln{x}$ $\textcircl</description>
      <content:encoded><![CDATA[<p>2023长宁一模21题</p>
<p style="font-size: 14px;" class="probborder">
    已知函数$y=f(x)$的定义域为$(0,+\infty)$.<br>
（1）若$f(x)=\ln{x}$<br>
  $\textcircled{1}$求曲线$y=f(x)$在点$(1,0)$处的切线方程；<br>
  $\textcircled{2}$求函数$g(x)=f(x)+x^2-3x$的单调减区间和极小值；<br>
（2）若对任意$a,b\in{(1,+\infty)}(a&lt;b)$，函数$y=f(x)$在区间$(a,b]$上均无最小值，且对于任意$n\in{\mathbf{N}^{*}}$，当$x\in{(n,n+1)}$时，都有$|f(n)-f(x)|+|f(x)-f(n+1)|=|f(n)-f(n+1)|$.<br>
求证：当$x\in{(1,+\infty)}时$，$f(x)&lt;f(2x)$.
    <span class="probanswers">
        
        
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：2023长宁一模</a>
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>上海高考数学压轴题</title>
      <link>https://www.ridic.me/posts/maths/230801-shanghai-cee/</link>
      <pubDate>Tue, 01 Aug 2023 19:37:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/230801-shanghai-cee/</guid>
      <description>2000 to 2023</description>
      <content:encoded><![CDATA[<h2 id="2000年">2000年</h2>
<p style="font-size: 14px;" class="probborder">
    12.在等差数列$\{a_n\}$中,若$a_{10}=0$，则有等式$a_1+a_2+\cdots+a_n=a_1+a_2+\cdots+a_{19−n}(n&lt;19, n\in\mathbf{N}^{*})$成立，类比上述性质，相应地：在等此数列${b_n}$中,若$b_9=1$,则有等式_____________成立.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    21.在$xOy$平面上有一点列$P_1(a_1,b_1),P_2(a_2,b_2),\cdots,P_n(a_n,b_n),\cdots$，对每个自然数$n$，点$P_n$位于函数$y=2000\cdot\left(\dfrac{a}{10}\right)^2(0&lt;a&lt;10)$的图像上，且点$P_n$，点$(n,0)$与点$(n+1,0)$构成一个以$P_n$为顶点的等腰三角形.<br>
（1）求点$P_n$的纵坐标$b_n$的表达式；<br>
（2）若对每个自然数$n$，以$b_n,b_{n+1},b_{n+2}$为边长能构成一个三角形，求$a$的取值范围；<br>
（3）设$B_n=b_{1}b_{2}\cdots{b_{n}}(n\in{\mathbf{N}})$，若$a$取（2）中确定的范围内的最小整数，求数列${B_n}$的最大项的项数.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    22.已知复数$z_0=1-m\mathrm{i}(m&gt;0),z=x+y\mathrm{i}$和$\omega=x^{′}+y^{′}\mathrm{i}$，其中$x,y,x^{′},y^{′}$均为实数，$\mathrm{i}$为虚数单位，且对于任意复数$z$，有$\omega=\overline{z_0}\cdot\overline{z},|\omega|=2|z|$.<br>
（1）试求$m$的值，并分别写出$x^{′}$和$y^{′}$用$x、y$表示的关系式；<br>
（2）将$(x,y)$作为点$P$的坐标，$(x^{′},y^{′})$作为点$Q$的坐标，上述关系可以看作是坐标平面上点的一个变换：它将平面上的点$P$变到这一平面上的点$Q$，当点$P$在直线$y=x+1$上移动时，试求点$P$经该变换后得到的点$Q$的轨迹方程；<br>
（3）是否存在这样的直线：它上面的任一点经上述变换后得到的点仍在该直线上？若存在，试求出所有这些直线；若不存在，则说明理由.
    <span class="probanswers">
        
        
    </span>
</p>
<h2 id="2001年">2001年</h2>
<p style="font-size: 14px;" class="probborder">
    20.对任意一个非零复数$z$，定义集合$M_z=\{\omega|\omega=z^{2n-1},n\in{\mathbf{N}}\}$<br>
（1）设$a$是方程$x+\dfrac{1}{x}=\sqrt{2}$的一个根,试用列举法表示集合$M_{a}$.若在$M_{a}$中任取两个数,求其和为零的概率$P$；<br>
（2）设复数$\omega\in{M_z}$，求证：$M\subseteq{M_z}$.
    <span class="probanswers">
        
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>2023年普通高中学业水平模拟测试</title>
      <link>https://www.ridic.me/posts/maths/230730-2023-wjxsat/</link>
      <pubDate>Sun, 30 Jul 2023 23:22:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/230730-2023-wjxsat/</guid>
      <description>《2023年普通高中学业水平模拟测试》是一款由“未来教研之星”教研室牵头组织的考试，在公众号“sjd的数学笔记”中首发。下面展示其中几道题目</description>
      <content:encoded><![CDATA[<p>《2023年普通高中学业水平模拟测试》是一款由“未来教研之星”教研室牵头组织的考试，在公众号“sjd的数学笔记”中首发。下面展示其中几道题目。</p>
<p style="font-size: 14px;" class="probborder">
    12.在平面直角坐标系中，将存在点集$\Omega=\{(x,y)|x\leqslant0且y\leqslant0\}$的区域设为$\Omega$. 设$n$为正整数，$P_1、P_2、\cdots、P_n$为圆$C:(x-1)^2+(y-1)^2=r^2(r\geqslant2)$的$n$等分点.若对任意的$r\geqslant2$，均至少存在一段$\overgroup{P_{i}P_{j}}$在$\Omega$内，则$n$的最小值为_______.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    20.已知椭圆$\Gamma:\dfrac{x^2}{2}+y^2=1$的右焦点为$F(x_F,y_F), P(x_P,y_P)$为$\Gamma$上一点，过$P$的直线交动直线$y=m (m&gt;0)$于$M(x_M,m).$<br>
（1）当$m=4$且$y_P=1$时。$l$经过$F$，求$M$的坐标；<br>
（2）已知$x_F=x_P$，设直线$y=m$交$y$轴于$Q$，若$l$的倾斜角为$\dfrac{\pi}{3}$且$\triangle{PMQ}$为等腰三角形，求$m$的值；<br>
（3）已知$m=6$，若对任意的$P, F$到$l$的距离始终为$\sqrt{2}$，求$x_M$的最大值.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    21.设全集为$\mathbf{U}$，函数$y=f_n(x)$是关于$x$的函数“函数组”，其定义域为$\mathbf{D}$，当$n$取$\mathbf{U}$中不同的数值时可以得到不同的函数，例如：定义域为$\mathbf{R}$的函数$f_n(x)=nx$，当$\mathbf{U}=\mathbf{R}$时，则有$f_1(x)=x, f_2(x)=2x\cdots$.若存在非空集合$\mathbf{A}\subseteq\mathbf{U}$满足：当且仅当$n\in{\mathbf{A}}$时，函数$f_n(x)$在$\mathbf{D}$上存在零点，则称$f_n(x)$是$\mathbf{A}$上的“跳跃函数”.<br>
（1）判断下列函数是否为$\mathbf{A}$上的“跳跃函数”？（直接写出答案）<br>
  $\textcircled{1}g_n(x)=nx^2+4x+n, \mathbf{D}=\mathbf{R}, \mathbf{U}=\mathbf{N}, \mathbf{A}=\{0,1,2\}$;<br>
  $\textcircled{2}h_n(x)=2^x+n^2, \mathbf{D}=(-\infty,2], \mathbf{U}=\mathbf{Z}, \mathbf{A}=\{1,2\}$;<br>
（2）设$f_n(x)=4nx^3-(6n+1)x^2+2x, \mathbf{D}=(1,+\infty)$，若不存在$\mathbf{A}$使其为$\mathbf{A}$上的“跳跃函数”，求出所有$\mathbf{U}$的并集；<br>
（3）设$\mathbf{U}$为正整数集，已知$f_n(x)$是$\mathbf{A}$上的“跳跃函数”，$\mathbf{D}=(1,+\infty), f_1(x)=2-\dfrac{1}{x}$，若对任意的$n$，$f_{n+1}(x)=f_n(x)+(1-x)^n+1$均成立，证明：$A=\{n|n=2k且k为正整数\}$.并确定$a$的最大值，使对任意的$n\in{\mathbf{A}}, f_n(x)$的零点$t_n&gt;a$成立.
    <span class="probanswers">
        
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>2</title>
      <link>https://www.ridic.me/problems/2/</link>
      <pubDate>Sun, 30 Jul 2023 20:33:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/problems/2/</guid>
      <description>已知函数$y=f_1(x), y=f_2(x)$，定义函数$f(x)=\begin{cases}f_1(x),f_1(x)\leqslant f_2(x)\\f_2(x),f_1(x)&amp;gt;f_2(x)\end{cases}$.</description>
      <content:encoded><![CDATA[<p style="font-size: 14px;" class="probborder">
    已知函数$y=f_1(x), y=f_2(x)$，定义函数$f(x)=\begin{cases}f_1(x),f_1(x)\leqslant f_2(x)\\f_2(x),f_1(x)&gt;f_2(x)\end{cases}$.<br>
（1）设函数$f_1(x)=\sqrt{x},f_2(x)=\left(\dfrac{1}{2}\right)^{x-1}(x\geqslant 0),$求函数$y=f(x)$的值域；<br>
（2）设函数$f_1(x)=\lg(|p-x|+1)$（$0&lt;x\leqslant\dfrac{1}{2},p$为实常数），$f_2(x)=\lg\dfrac{1}{x}\left(0&lt;x\leqslant\dfrac{1}{2}\right)$，当$0&lt;x\leqslant\dfrac{1}{2}$时，恒有$f(x)=f_1(x)$，求实常数$p$的取值范围；<br>
（3）设函数$f_1(x)=2^{|x|},f_2(x)=3\cdot2^{|x-p|},p$为正常数，若关于$x$的方程$f(x)=m$($m$为实常数)恰有三个不同的解，求$p$的取值范围及这三个解的和（用$p$表示）.
    <span class="probanswers">
        
        
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：2020徐汇一模</a>
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>1</title>
      <link>https://www.ridic.me/problems/1/</link>
      <pubDate>Fri, 28 Jul 2023 17:31:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/problems/1/</guid>
      <description>2019普陀一模21题 已知函数$f(x)=2^x (x\in \mathbb{R})$，记$g(x)=f(x)+f(-x).$ （1）解不等式：$f(2x</description>
      <content:encoded><![CDATA[<p>2019普陀一模21题</p>
<p style="font-size: 14px;" class="probborder">
    已知函数$f(x)=2^x (x\in \mathbb{R})$，记$g(x)=f(x)+f(-x).$<br>
（1）解不等式：$f(2x)-f(x)\leqslant 6$；<br>
（2）设$k$为实数，若存在实数$x_0\in (1,2]$，使得$g(2x_0)=k\cdot g^2(x_0)-1$成立，求$k$的取值范围；<br>
（3）记$h(x)=f(2x+2)+a\cdot f(x)+b$（其中$a$、$b$均为实数），若对于任意的$x\in [0,1]$，均有$|h(x)|\leqslant\dfrac{1}{2}$，求$a$、$b$的值.
    <span class="probanswers">
        
        
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：2019普陀一模</a>
        
    </span>
</p>
<p>test</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>典型难题整理</title>
      <link>https://www.ridic.me/posts/maths/230622-typical-problems/</link>
      <pubDate>Thu, 22 Jun 2023 20:44:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/230622-typical-problems/</guid>
      <description>现在已经到高二暑假了，理试卷时翻到高一寒假作业，发现还有一些难题还没解。而习题册最后就有答案，可见这些题难得当时都不想看了。相对于高二最近做</description>
      <content:encoded><![CDATA[<p>现在已经到高二暑假了，理试卷时翻到高一寒假作业，发现还有一些难题还没解。而习题册最后就有答案，可见这些题难得当时都不想看了。相对于高二最近做的超难解几和导数题更注重计算和技巧，高一的函数题还是偏思维的，<del>体现在做一回就会头脑发烫</del>，毕竟许多概念也是高等数学知识下放。</p>
<p style="font-size: 14px;" class="probborder">
    1.已知函数$f(x)=2^x (x\in \mathbb{R})$，记$g(x)=f(x)+f(-x).$<br>
（1）解不等式：$f(2x)-f(x)\leqslant 6$；<br>
（2）设$k$为实数，若存在实数$x_0\in (1,2]$，使得$g(2x_0)=k\cdot g^2(x_0)-1$成立，求$k$的取值范围；<br>
（3）记$h(x)=f(2x+2)+a\cdot f(x)+b$（其中$a$、$b$均为实数），若对于任意的$x\in [0,1]$，均有$|h(x)|\leqslant\dfrac{1}{2}$，求$a$、$b$的值.
    <span class="probanswers">
        
        
        <a></a>
        &gt;&nbsp;<a class="probans" href="/problems/1">详细解答</a>
        
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：2019普陀一模</a>
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    2.已知函数$y=f_1(x), y=f_2(x)$，定义函数$f(x)=\begin{cases}f_1(x),f_1(x)\leqslant f_2(x)\\f_2(x),f_1(x)&gt;f_2(x)\end{cases}$.<br>
（1）设函数$f_1(x)=\sqrt{x},f_2(x)=\left(\dfrac{1}{2}\right)^{x-1}(x\geqslant 0),$求函数$y=f(x)$的值域；<br>
（2）设函数$f_1(x)=\lg(|p-x|+1)$（$0&lt;x\leqslant\dfrac{1}{2},p$为实常数），$f_2(x)=\lg\dfrac{1}{x}\left(0&lt;x\leqslant\dfrac{1}{2}\right)$，当$0&lt;x\leqslant\dfrac{1}{2}$时，恒有$f(x)=f_1(x)$，求实常数$p$的取值范围；<br>
（3）设函数$f_1(x)=2^{|x|},f_2(x)=3\cdot2^{|x-p|},p$为正常数，若关于$x$的方程$f(x)=m$($m$为实常数)恰有三个不同的解，求$p$的取值范围及这三个解的和（用$p$表示）.
    <span class="probanswers">
        
        
        <a></a>
        &gt;&nbsp;<a class="probans" href="/problems/2">详细解答</a>
        
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：2020徐汇一模</a>
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    3.已知函数$f(x)$的定义域为$D$，值域为$f(D)$，即$f(D)=\{ y|y=f(x),x\in D \}.$若$f(D)\subseteq D$，则称$f(x)$在$D$上封闭.<br>
（1）试分别判断函数$f(x)=2017^x+\log_{2017}x$、函数$g(x)=\dfrac{x^2}{x+1}$在$(0,1)$上是否封闭，并说明理由；<br>
（2）函数$f(x)=\sqrt{x+1}+k$的定义域为$D=[a,b]$，且存在反函数$y=f^{-1}(x).$若函数$f(x)$在$D$上封闭，且函数$f^{-1}(x)$在$f(D)$上也封闭，求$k$的取值范围；<br>
（3）已知函数$f(x)$的定义域是$D$，对任意$x,y\in D,$若$x\neq y$，有$f(x)\neq f(y)$恒成立，则称$f(x)$在$D$上是单射.已知函数$f(x)$在$D$上封闭且单射，并且满足$f_n(D)\subset D,$其中$f_{n+1}(x)=f(f_n(x)),(n\in N^{*}),f_1(x)=f(x).$证明：存在$D$的真子集$D_{n}\subset D_{n-1}\subset \cdot\cdot\cdot \subset D_3\subset D_2\subset D_1\subset D,$使得$f(x)$在所有$D_i(i=1,2,3,\cdot\cdot\cdot,n)$上封闭.
    <span class="probanswers">
        
        
        &emsp;<a class="probans" style="box-shadow: none;">题源：2017浦东一模</a>
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    4.已知函数$f(x)=x^2-2ax(a&gt;0).$<br>
（1）当$a=2$时，解关于$x$的不等式$-3&lt;f(x)&lt;5$；<br>
（2）函数$y=f(x)$在$[t,t+2]$的最大值为$0$，最小值是$-4$，求实数$a$和$t$的值；<br>
（3）对于给定的正数$a$，有一个最大的正数$M(a)$，使得在整个区间$[0,M(a)]$上，不等式$|f(x)|\leqslant5$恒成立.求出$M(a)$的解析式.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    5.已知$f(x)$是定义在$[m,n]$上的函数，记$F(x)=f(x)-(ax+b)$，$|F(x)|$的最大值为$M(a,b)$，若存在$m\leqslant x_1&lt; x_2&lt; x_3\leqslant n$，满足$|F(x_1)|=M(a,b),F(x_2)=-F(x_1),F(x_3)=F(x_1)$，那么称一次函数$y=ax+b$是$f(x)$的“逼近函数”，此时的$M(a,b)$称为$f(x)$在$[m,n]$上的“逼近确界”.<br>
（1）验证$y=4x-1$是$g(x)=2x^2,x\in [0,2]$的“逼近函数”；<br>
（2）已知$f(x)=\sqrt{x},x\in [0,4],F(0)=F(4)=-M(a,b).$若$y=ax+b$是$f(x)$的“逼近函数”，求$a,b$的值；<br>
（3）已知$f(x)=\sqrt{x},x\in [0,4]$的逼近确界为$\dfrac{1}{4}$，求证：对任意常数$a,b,M(a,b)\geqslant\dfrac{1}{4}$.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    6.若函数$f(x)$满足：对于任意正数$s,t$，都有$f(s)&gt;0,f(t)&gt;0$，且$f(s)+f(t)&lt; f(s+t)$，则称函数$f(x)$为“$L$函数”.<br>
（1）试判断函数$f_1(x)=x^2$与$f_2(x)=x^\frac{1}{2}$是否是“$L$函数”；<br>
（2）若函数$g(x)=3^x-1+a(3^{-x}-1)$为“$L$函数”，求实数$a$的取值范围；<br>
（3）若函数$f(x)$为“$L$函数”,且$f(1)=1$，求证:对任意$x\in (2^{k-1},2^k)(k\in\mathbb{N}^{*})$，都有$f(x)-f\left(\dfrac{1}{x}\right)&gt;\dfrac{x}{2}-\dfrac{2}{x}$.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    7.定义：若函数$f(x)$的定义域为$\mathbb{R}$，且存在实数$a$和非零实数$k$（$a$、$k$都是常数），使得$f(2a-x)=k\cdot f(x)$对$x\in\mathbb{R}$都成立，则称函数$f(x)$是具有“有理数对$(a,k)$”的函数.比如，函数$f(x)$有理想数对$(2,-1)$，即$f(4-x)=-f(x),f(4-x)+f(x)=0$，可知函数图像关于点$(2,0)$成中心对称图形.设集合$M$是具有理想数对$(a,k)$的函数的全体.<br>
（1）已知函数$f(x)=2x-1,x\in\mathbb{R}$，试判断函数$f(x)$是否为集合$M$的元素，并说明理由；<br>
（2）已知函数$g(x)=2^x,x\in\mathbb{R}$，证明：$g(x)\notin M$；<br>
（3）数对$(2,1)$和$(1,-1)$都是函数$h(x)$的理想数对，且当$-1\leqslant x\leqslant1$时，$h(x)=1-x^2$.若正比例函数$y=mx(m&gt;0)$的图像与函数$h(x)$的图像在区间$[0,12]$上有且仅有$5$个交点，求实数$m$的取值范围.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    8.若函数$y=f(x)$对定义域内的每一个值$x_1$，在其定义域内都存在唯一的$x_2$，使$f(x_1)f(x_2)=1$成立，则称该函数为“依赖函数”.<br>
（1）判断函数$g(x)=2^x$是否为“依赖函数”，并说明理由；<br>
（2）若函数$f(x)=(x-1)^2$在定义域$[m,n]$$(m&gt;1)$上为“依赖函数”，求实数$m$、$n$乘积$mn$的取值范围；<br>
（3）已知函数$f(x)=(x-a)^2\left(a&lt;\dfrac{4}{3}\right)$在定义域$\left[\dfrac{4}{3},4\right]$上为“依赖函数”.若存在实数$x\in\left[\dfrac{4}{3},4\right]$，使得对任意的$t\in\mathbb{R}$，有不等式$f(x)\geqslant-t^2+(s-t)x+4$都成立，求实数$s$的最大值.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    9.记函数$f(x)$的定义域为$D$.如果存在实数$a$、$b$使得$f(a-x)+f(a+x)=b$对任意满足$a-x\in D$且$a+x\in D$的$x$恒成立，则称$f(x)$为$\Psi$函数.<br>
（1）设函数$f(x)=\dfrac{1}{x}-1$，试判断$f(x)$是否为$\Psi$函数，并说明理由；<br>
（2）设函数$g(x)=\dfrac{1}{2^x+t}$，其中常数$t\neq0$，证明：$g(x)$是$\Psi$函数；<br>
（3）若$h(x)$是定义在$\mathbb{R}$上的$\Psi$函数，且函数$h(x)$的图像关于直线$x=m$（$m$为常数）对称，试判断$h(x)$是否为周期函数？并证明你的结论.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    10.已知定义在$\mathbb{R}$上的函数$\varphi(x)$的图像是一条连续不断的曲线，且在任意区间上$\varphi(x)$都不是常值函数.设$a=t_0&lt; t_1&lt; \cdot\cdot\cdot&lt; t_{i-1}&lt; t_{i}&lt; \cdot\cdot\cdot&lt; t_n=b$，其中分点$t_1$、$t_2$、$\cdot\cdot\cdot$、$t_{n-1}$将区间$[a,b]$任意划分成$n(n\in\mathbb{N}^{*})$个小区间$[t_{i-1},t_i]$，记$M\{a,b,n\}=|\varphi(t_0)-\varphi(t_1)|+|\varphi(t_1)-\varphi(t_2)|+\cdot\cdot\cdot+|\varphi(t_{n-1})-\varphi(t_n)|$，称为$\varphi(x)$关于区间$[a,b]$的$n$阶划分的“落差总和”;当$M\{a,b,n\}$取得最大值且$n$取得最小值$n_0$时，称$\varphi(x)$存在“最佳划分”$M\{a,b,n\}$.<br>
（1）已知$\varphi(x)=|x|$，求$M\{-1,2,2\}$的最大值$M_0$；<br>
（2）已知$\varphi(a)&lt;\varphi(b)$，求证：$\varphi(x)$在$[a,b]$上存在“最佳划分”$M\{a,b,1\}$的充要条件是$\varphi(x)$在$[a,b]$上单调递增；<br>
（3）若$\varphi(x)$是偶函数且存在“最佳划分”$M\{-a,a,n_0\}$，求证：$n_0$是偶数，且$t_0+t_1+\cdot\cdot\cdot+t_{i-1}+t_i+\cdot\cdot\cdot+t_{n_0}=0$.
    <span class="probanswers">
        
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>Linux 相关操作</title>
      <link>https://www.ridic.me/posts/tech/230621-linux-tips/</link>
      <pubDate>Wed, 21 Jun 2023 20:32:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/tech/230621-linux-tips/</guid>
      <description>使用或部署 Linux 系统时的一些操作技巧 &amp;gt; 持续更新...</description>
      <content:encoded><![CDATA[<p>折腾 Linux 机器时经常遇到烦人且偏僻的问题，解决起来比较麻烦，在此记录。</p>
<h2 id="1-配置-ssh-白名单">1. 配置 SSH 白名单</h2>
<h3 id="第一种方法">第一种方法</h3>
<p>在 ssh 设置中修改。修改<code>/etc/ssh/sshd_config</code>文件，在末尾加入</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>allowusers root@192.168.1.1
</span></span></code></pre></div><p>（其中<code>192.168.1.1</code>换为客户端ip）</p>
<p>也可将放行的 ip 换为任意的 cidr 块，如下</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>allowusers root@192.168.1.0/24  <span style="color:#75715e"># 放行 192.168.1.*</span>
</span></span><span style="display:flex;"><span>allowusers root@172.16.0.0/12   <span style="color:#75715e"># 放行 172.16.0.1 - 172.31.255.254</span>
</span></span></code></pre></div><p>最后重启 ssh 服务：<code>systemctl restart sshd.service</code></p>
<p>更多的 cidr 块转换，可使用 
<a href="https://tool.lu/cidr/"  target="_blank" >cidr计算器</a></p>
<p><a href="https://i.fi0.cc/Oxi86SwtcU.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/Oxi86SwtcU.png" alt="很好用的 cidr 计算工具"  />
</a>
</p>
<h3 id="第二种方法">第二种方法</h3>
<p>修改<code>host.allow</code>和<code>host.deny</code>。按照如下方法：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e"># /etc/hosts.allow</span>
</span></span><span style="display:flex;"><span>sshd:192.168.1.1
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># /etc/hosts.deny</span>
</span></span><span style="display:flex;"><span>sshd:all
</span></span></code></pre></div><p>最后重启 ssh 服务：<code>systemctl restart sshd.service</code></p>
<p>此种方法可能不支持部分 cidr 段，会在 ssh 服务重启后报错，以自身使用情况为准。</p>
<h3 id="hostallow和hostdeny不生效"><em>host.allow和host.deny不生效</em></h3>
<p>
<a href="https://www.cnblogs.com/wangdidi/p/14973223.html"  target="_blank" >参考</a></p>
<p>在部分机器上设置此种端口限制后不生效，非白名单内 ip 仍能通过 ssh 连接，解决方法如下：</p>
<p>hosts.allow和hosts.deny属于tcp_Wrappers防火墙的配置文件，而用tcp_Wrappers防火墙控制某一服务访问策略的前提是，该服务支持tcp_Wrappers防火墙，即该服务应用了libwrapped库文件。</p>
<p>查看某服务（如ssh）是否应用了libwrapped库文件的方法是：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>ldd /usr/sbin/sshd |grep libwrap.so.0
</span></span></code></pre></div><p>没有显示，表示此服务器上安装的SSH没有应用libwrapped库文件，也就不能用tcp_Wrappers防火墙控制访问策略。（一般情况下服务器默认安装的SSH都是支持libwrapped库文件，这台服务器不清楚为什么不支持）</p>
<p>最终解决方法是重新安装SSH。</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>yum -y remove openssh
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>yum -y install openssh
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>yum -y install openssh-server
</span></span></code></pre></div><p>安装完成后再次查看是否应用了libwrapped库文件，显示支持。</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>ldd /usr/sbin/sshd |grep libwrap.so.0
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>        libwrap.so.0 <span style="color:#f92672">=</span>&gt; /lib64/libwrap.so.0 <span style="color:#f92672">(</span>0x00007f3fb7f09000<span style="color:#f92672">)</span>
</span></span></code></pre></div><p>再测试SSH登陆，配置生效。</p>
<h3 id="注意事项">注意事项</h3>
<p>务必看清 ssh 放通的用户是否正确，如放通<code>git</code>用户则需写成<code>git@xxx</code>而非<code>root@xxx</code>，若不慎写错，可能得花许多时间找这个问题&hellip;</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>参加 TACA 考试</title>
      <link>https://www.ridic.me/posts/trivial/230429-202304taca/</link>
      <pubDate>Sat, 29 Apr 2023 23:00:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/230429-202304taca/</guid>
      <description>今天去考了清华 TACA 考试</description>
      <content:encoded><![CDATA[<p>今天五一放假第一天，在学校考了一天的考试，从早上8:30到下午5:45，唯一的收获是感受到自己多么的菜。</p>
<p>数学二还记得几道题：</p>
<p>1.设 $\displaystyle\def\d{\mathrm{d}}S=\int_{-\infty}^{+\infty }\frac{1}{1+x^2+x^4}\d x$ ，求 [$100S^2$].</p>
<p>2.设 $\displaystyle\def\d{\mathrm{d}}I=\int_{50}^{+\infty}e^{-x^2}\d x$，求 $[-\ln I]$.</p>
<p>3.问$[x]+[2x]+[3x]+[4x]+[5x]$ 在 $x\in [0,50]$有多少不同取值.</p>
<p>4.有 $20$ 盏红灯， $10$ 盏绿灯，每次随机灭掉一盏灯，直到某种颜色的灯全部灭掉，令 $a$ 为剩下的灯的数目的平均值，求 $[10a]$.</p>
<p>这里的第三道还是比较简单的，考试时候还做出第四题组合题。这里的第一道积分题也近乎做出来了，考试最后一分钟算出来 $S=\frac{\sqrt{3}}{3}\pi$，然而没时间代成小数了&hellip;.</p>
<p>主要是考试前两周都在狂补线性代数，微积分碰都没碰，结果考试的前两题考泰勒展开的我都不会做，这道有理函数积分也搞了好久 <del>（ $x^4+x^2+1=(x^2+x+1)(x^2-x+1)$ 这个因式分解好久没看出来，最后待定系数凑出来的哈哈）</del> 。而复习好久的线代一点没用上，考得内容都是什么相似矩阵、对角化（一周怎么可能学到那里）。</p>
<p>数学一的内容纯高考，不过题量比较大，加上前面的内容生疏，90分钟连蒙带凑地做完这20道不定项选。以后课内的做题速度还要加强，不同地区的题也要多练。</p>
<hr>
<p>5.1更新</p>
<p><del>数学二爆零</del></p>
<p><del>最没信心的物理排的最高，排位90%，其他寄了</del></p>
]]></content:encoded>
    </item>
    
    <item>
      <title>一些导数题</title>
      <link>https://www.ridic.me/posts/maths/230407-some-derivative-problems/</link>
      <pubDate>Fri, 07 Apr 2023 20:46:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/230407-some-derivative-problems/</guid>
      <description>一些各地的导数难题</description>
      <content:encoded><![CDATA[<p style="font-size: 14px;" class="probborder">
    1.已知函数$f(x)=(x+a)e^x,a\in\mathbb{R}.$<br>
（1）讨论$f(x)$在$(0,+\infty)$的单调性；<br>
（2）是否存在$a,x_0,x_1$，且$x_0\neq x_1$，使得曲线$y=f(x)$在$x=x_0$和$x=x_1$处有相同的切线？证明你的结论.
    <span class="probanswers">
        
        
        <a></a>
        &gt;&nbsp;<a class="probans" href="/problems/3">详细解答</a>
        
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    2.已知函数$f(x)=\ln x,g(x)=\dfrac{1}{2}\left(x-\dfrac{1}{x}\right).$<br>
（1）证明：当$x\geqslant1$时，$f(x)\leqslant g(x)$；<br>
（2）设$a,b$为正实数且$a\neq b$.<br>
（i）若$a^b=b^a$，证明：$\sqrt{ab}&gt; e$；<br>
（ii）若$a+b=1$，证明：$a^b+b^a&lt; \sqrt{a}+\sqrt{b}&lt; a^a+b^b$.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    3.已知函数$f(x)=x\ln x-ax^2+x(a\in\mathbb{R}).$<br>
（1）证明：曲线$y=f(x)$在点$(1,f(1))$处的切线$l$恒过定点；<br>
（2）若$f(x)$有两个零点$x_1,x_2$，且$x_2&gt;2x_1$，证明：$\sqrt{x_1^2+x_2^2}&gt;\dfrac{4}{e}$.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    4.已知函数$f(x)=\dfrac{a}{2}x^2-x-x\ln x(a\in \mathbb{R})$.<br>
（1）若$a=2$，求方程$f(x)=0$的解；<br>
（2）若$f(x)$有两个零点且有两个极值点，记两个极值点为$x_1,x_2$，求$a$的取值范围并证明：$f(x_1)+f(x_2)&lt;\dfrac{1}{2e}$.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    5.已知函数$f(x)=e^x-\dfrac{a}{x}(a\in \mathbb{R})$.<br>
（1）讨论函数$f(x)$零点个数；<br>
（2）若$|f(x)|&gt;a\ln x-a$恒成立，求$a$的取值范围.
    <span class="probanswers">
        
        
    </span>
</p>
<p style="font-size: 14px;" class="probborder">
    6.已知函数$f(x)=\sin x-x+ax^2,a\in\mathbb{R}.$<br>
（1）若曲线$y=f(x)$在$x=\pi$处的切线过原点，求$a$的值；<br>
（2）当$x\leqslant5$时，$f(x)\geqslant0$，求$a$的取值范围.
    <span class="probanswers">
        
        
    </span>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>博客加入数学公式支持</title>
      <link>https://www.ridic.me/posts/trivial/230401-import-katex/</link>
      <pubDate>Sat, 01 Apr 2023 23:34:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/230401-import-katex/</guid>
      <description>记录一下 PaperMod 主题加入 Katex 公式支持的方法，以便之后博文的公式书写。当然，大部分数学的内容还是会写在 Astroid 中。 创建 layouts/partials/math.html 文件，写入以下内容： &amp;lt;link rel=&amp;#34;stylesheet&amp;#34; href=&amp;#34;https://cdn.jsdelivr.net/npm/katex@0.16.2/dist/katex.min.css&amp;#34; integrity=&amp;#34;sha384-bYdxxUwYipFNohQlHt0bjN/LCpueqWz13HufFEV1SUatKs1cm4L6fFgCi1jT643X&amp;#34; crossorigin=&amp;#34;anonymous&amp;#34;&amp;gt; &amp;lt;script defer src=&amp;#34;https://cdn.jsdelivr.net/npm/katex@0.16.2/dist/katex.min.js&amp;#34;</description>
      <content:encoded><![CDATA[<p>记录一下 PaperMod 主题加入 Katex 公式支持的方法，以便之后博文的公式书写。当然，大部分数学的内容还是会写在 
<a href="https://www.astroid.top"  target="_blank" >Astroid</a> 中。</p>
<p>创建 <code>layouts/partials/math.html</code> 文件，写入以下内容：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-html" data-lang="html"><span style="display:flex;"><span>&lt;<span style="color:#f92672">link</span> <span style="color:#a6e22e">rel</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;stylesheet&#34;</span> <span style="color:#a6e22e">href</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;https://cdn.jsdelivr.net/npm/katex@0.16.2/dist/katex.min.css&#34;</span> <span style="color:#a6e22e">integrity</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;sha384-bYdxxUwYipFNohQlHt0bjN/LCpueqWz13HufFEV1SUatKs1cm4L6fFgCi1jT643X&#34;</span> <span style="color:#a6e22e">crossorigin</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;anonymous&#34;</span>&gt;
</span></span><span style="display:flex;"><span>&lt;<span style="color:#f92672">script</span> <span style="color:#a6e22e">defer</span> <span style="color:#a6e22e">src</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;https://cdn.jsdelivr.net/npm/katex@0.16.2/dist/katex.min.js&#34;</span> <span style="color:#a6e22e">integrity</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;sha384-Qsn9KnoKISj6dI8g7p1HBlNpVx0I8p1SvlwOldgi3IorMle61nQy4zEahWYtljaz&#34;</span> <span style="color:#a6e22e">crossorigin</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;anonymous&#34;</span>&gt;&lt;/<span style="color:#f92672">script</span>&gt;
</span></span><span style="display:flex;"><span>&lt;<span style="color:#f92672">script</span> <span style="color:#a6e22e">defer</span> <span style="color:#a6e22e">src</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;https://cdn.jsdelivr.net/npm/katex@0.16.2/dist/contrib/auto-render.min.js&#34;</span> <span style="color:#a6e22e">integrity</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05&#34;</span> <span style="color:#a6e22e">crossorigin</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;anonymous&#34;</span>&gt;&lt;/<span style="color:#f92672">script</span>&gt;
</span></span><span style="display:flex;"><span>&lt;<span style="color:#f92672">script</span>&gt;
</span></span><span style="display:flex;"><span>    document.<span style="color:#a6e22e">addEventListener</span>(<span style="color:#e6db74">&#34;DOMContentLoaded&#34;</span>, <span style="color:#66d9ef">function</span>() {
</span></span><span style="display:flex;"><span>        <span style="color:#a6e22e">renderMathInElement</span>(document.<span style="color:#a6e22e">body</span>, {
</span></span><span style="display:flex;"><span>          <span style="color:#75715e">// customised options
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>          <span style="color:#75715e">// • auto-render specific keys, e.g.:
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>          <span style="color:#a6e22e">delimiters</span><span style="color:#f92672">:</span> [
</span></span><span style="display:flex;"><span>              {<span style="color:#a6e22e">left</span><span style="color:#f92672">:</span> <span style="color:#e6db74">&#39;$$&#39;</span>, <span style="color:#a6e22e">right</span><span style="color:#f92672">:</span> <span style="color:#e6db74">&#39;$$&#39;</span>, <span style="color:#a6e22e">display</span><span style="color:#f92672">:</span> <span style="color:#66d9ef">true</span>},
</span></span><span style="display:flex;"><span>              {<span style="color:#a6e22e">left</span><span style="color:#f92672">:</span> <span style="color:#e6db74">&#39;$&#39;</span>, <span style="color:#a6e22e">right</span><span style="color:#f92672">:</span> <span style="color:#e6db74">&#39;$&#39;</span>, <span style="color:#a6e22e">display</span><span style="color:#f92672">:</span> <span style="color:#66d9ef">false</span>},
</span></span><span style="display:flex;"><span>              {<span style="color:#a6e22e">left</span><span style="color:#f92672">:</span> <span style="color:#e6db74">&#39;\\(&#39;</span>, <span style="color:#a6e22e">right</span><span style="color:#f92672">:</span> <span style="color:#e6db74">&#39;\\)&#39;</span>, <span style="color:#a6e22e">display</span><span style="color:#f92672">:</span> <span style="color:#66d9ef">false</span>},
</span></span><span style="display:flex;"><span>              {<span style="color:#a6e22e">left</span><span style="color:#f92672">:</span> <span style="color:#e6db74">&#39;\\[&#39;</span>, <span style="color:#a6e22e">right</span><span style="color:#f92672">:</span> <span style="color:#e6db74">&#39;\\]&#39;</span>, <span style="color:#a6e22e">display</span><span style="color:#f92672">:</span> <span style="color:#66d9ef">true</span>}
</span></span><span style="display:flex;"><span>          ],
</span></span><span style="display:flex;"><span>          <span style="color:#75715e">// • rendering keys, e.g.:
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>          <span style="color:#a6e22e">throwOnError</span> <span style="color:#f92672">:</span> <span style="color:#66d9ef">false</span>
</span></span><span style="display:flex;"><span>        });
</span></span><span style="display:flex;"><span>    });
</span></span><span style="display:flex;"><span>&lt;/<span style="color:#f92672">script</span>&gt;
</span></span></code></pre></div><p>然后创建 <code>layouts/partials/extend_head.html</code> 文件，写入以下内容：</p>
<pre tabindex="0"><code>{{ if or .Params.math .Site.Params.math }}
{{ partial &#34;math.html&#34; . }}
{{ end }}
</code></pre><p>当我们确认某一篇博客需要加入数学公式支持时，我们需要在markdown文件键入以下内容:</p>
<pre tabindex="0"><code>---
title: 
date: 
tags: 
math: true
---
</code></pre><p>数学公式测试：</p>
<p>$$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$</p>
<p>$$
q(x,t)=
\begin{cases}(t-k+1)x^2,\quad \ \ &amp;
t\in\big(k-1,k-\dfrac{1}{2}\big],\\
(k-t)x^2, \quad \ \ &amp; t\in\big(k-\dfrac{1}{2},k\big],
\end{cases}
$$</p>
<p>$$
\left|\begin{array}{cccc}
1 &amp;6   &amp; 9 \\
7 &amp;90 &amp; f(x)  \\
9 &amp; \psi(x) &amp;g(x) \\
\end{array}\right|
$$</p>
<p>$$
\begin{cases}
\ u_{tt}(x,t)= b(t)\triangle u(x,t-4)&amp;\\
\ \hspace{42pt}- q(x,t)f[u(x,t-3)]+te^{-t}\sin^2 x,  &amp;  t \neq t_k; \\
\ u(x,t_k^+) - u(x,t_k^-) = c_k u(x,t_k), &amp; k=1,2,3\ldots ;\\
\ u_{t}(x,t_k^+) - u_{t}(x,t_k^-) =c_k u_{t}(x,t_k), &amp;
k=1,2,3\ldots\ .
\end{cases}
$$</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>新买的乒乓球拍</title>
      <link>https://www.ridic.me/posts/trivial/230401-new-bat/</link>
      <pubDate>Sat, 01 Apr 2023 18:48:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/230401-new-bat/</guid>
      <description>老拍子磕破了一点，于是配了个新的</description>
      <content:encoded><![CDATA[<p><a href="https://i.fi0.cc/HiAPesIOIT.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/HiAPesIOIT.jpg" alt="劲极3T底板，正手狂飙3，反手狂飙8-80"  />
</a>

<a href="https://i.fi0.cc/VWA6LlQ4Q7.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/VWA6LlQ4Q7.jpg" alt="上面是新拍子，下面是老拍子"  />
</a>

劲极3T底板，正手狂飙3，反手狂飙8-80</p>
<p>今天下午去打了下，感觉还不错。</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>数学综合卷</title>
      <link>https://www.ridic.me/posts/maths/230326-mathstests/</link>
      <pubDate>Sun, 26 Mar 2023 14:34:40 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/230326-mathstests/</guid>
      <description>华二附中高三开学考（2022.09） 松江二中高三月考（2022.09） 格致中学高三开学考（2022.09） 上海中学高三练习01（2022.0</description>
      <content:encoded><![CDATA[<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E5%8D%8E%E4%BA%8C%E9%99%84%E4%B8%AD%E9%AB%98%E4%B8%89%E5%BC%80%E5%AD%A6%E8%80%83%EF%BC%882022.09%EF%BC%89.pdf"  target="_blank" >华二附中高三开学考（2022.09）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E6%9D%BE%E6%B1%9F%E4%BA%8C%E4%B8%AD%E9%AB%98%E4%B8%89%E6%9C%88%E8%80%83%EF%BC%882022.09%EF%BC%89.pdf"  target="_blank" >松江二中高三月考（2022.09）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E6%A0%BC%E8%87%B4%E4%B8%AD%E5%AD%A6%E9%AB%98%E4%B8%89%E5%BC%80%E5%AD%A6%E8%80%83%EF%BC%882022.09%EF%BC%89.pdf"  target="_blank" >格致中学高三开学考（2022.09）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A6%E9%AB%98%E4%B8%89%E7%BB%83%E4%B9%A001%EF%BC%882022.09%EF%BC%89.pdf"  target="_blank" >上海中学高三练习01（2022.09）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E5%BB%BA%E5%B9%B3%E4%B8%AD%E5%AD%A6%E9%AB%98%E4%B8%89%E5%BC%80%E5%AD%A6%E8%80%83%EF%BC%882022.09%EF%BC%89.pdf"  target="_blank" >建平中学高三开学考（2022.09）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E4%BA%A4%E5%A4%A7%E9%99%84%E4%B8%AD%E9%AB%98%E4%B8%89%E5%BC%80%E5%AD%A6%E8%80%83%EF%BC%882022.09%EF%BC%89.pdf"  target="_blank" >交大附中高三开学考（2022.09）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E4%B8%8A%E6%B5%B7%E5%AE%9E%E9%AA%8C%E9%AB%98%E4%B8%89%E7%BB%83%E4%B9%A0%EF%BC%882022.09%EF%BC%89.pdf"  target="_blank" >上海实验高三练习（2022.09）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E4%BA%A4%E5%A4%A7%E9%99%84%E4%B8%AD%E9%AB%98%E4%BA%8C%E6%9C%9F%E6%9C%AB%EF%BC%882022.06%EF%BC%89.pdf"  target="_blank" >交大附中高二期末（2022.06）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E5%BB%BA%E5%B9%B3%E4%B8%AD%E5%AD%A6%E9%AB%98%E4%BA%8C%E6%9C%9F%E6%9C%AB%EF%BC%882022.06%EF%BC%89.pdf"  target="_blank" >建平中学高二期末（2022.06）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E5%BB%B6%E5%AE%89%E4%B8%AD%E5%AD%A6%E9%AB%98%E4%BA%8C%E6%9C%9F%E6%9C%AB%EF%BC%882022.06%EF%BC%89.pdf"  target="_blank" >延安中学高二期末（2022.06）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E4%B8%8A%E6%B5%B7%E5%AE%9E%E9%AA%8C%E9%AB%98%E4%BA%8C%E6%9C%9F%E6%9C%AB%EF%BC%882022.06%EF%BC%89.pdf"  target="_blank" >上海实验高二期末（2022.06）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E5%BB%BA%E5%B9%B3%E4%B8%AD%E5%AD%A6%E9%AB%98%E4%BA%8C%E6%9C%88%E8%80%83%EF%BC%882022.06%EF%BC%89.pdf"  target="_blank" >建平中学高二月考（2022.06）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E5%8D%8E%E4%BA%8C%E9%99%84%E4%B8%AD%E9%AB%98%E4%BA%8C%E7%BB%83%E4%B9%A0%EF%BC%882022.05%EF%BC%89.pdf"  target="_blank" >华二附中高二练习（2022.05）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E5%8D%8E%E4%BA%8C%E9%99%84%E4%B8%AD%E9%AB%98%E4%BA%8C%E7%BB%83%E4%B9%A02%EF%BC%882022.05%EF%BC%89.pdf"  target="_blank" >华二附中高二练习2（2022.05）</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/03/26/%E4%B8%8A%E6%B5%B7%E5%AE%9E%E9%AA%8C%E9%AB%98%E4%BA%8C%E7%BB%83%E4%B9%A0%EF%BC%882022.05%EF%BC%89.pdf"  target="_blank" >上海实验高二练习（2022.05）</a></p>
<p><strong>外地的一些试卷也值得一做：</strong></p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/04/09/%E6%B9%96%E5%8C%97%E7%9C%81%E9%83%A8%E5%88%86%E9%87%8D%E7%82%B9%E9%AB%98%E4%B8%AD%E8%81%94%E8%80%832022-2023%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8B%E5%AD%A6%E6%9C%9F3%E6%9C%88%E6%9C%88%E8%80%83%E6%95%B0%E5%AD%A6%E8%AF%95%E5%8D%B7.zip"  target="_blank" >湖北部分重点高中联考高二月考（2023.03）</a>（<strong>导数</strong>、<strong>排列组合</strong>）</p>
<p>
<a href="https://cos.fi0.cc/uploads/2023/04/09/%E6%B5%99%E6%B1%9F%E7%9C%81%E6%9D%AD%E5%B7%9E%E5%B8%82%E5%AD%A6%E5%86%9B%E4%B8%AD%E5%AD%A62022-2023%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8B%E5%AD%A6%E6%9C%9F3%E6%9C%88%E6%9C%88%E8%80%83%E6%95%B0%E5%AD%A6%E8%AF%95%E9%A2%98.docx"  target="_blank" >浙江学军中学高二月考（2023.03）</a>（数列、解几、立几、<strong>导数</strong>、<strong>排列结合</strong>、概率期望）</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>使用 Git Hook 将网站部署到服务器</title>
      <link>https://www.ridic.me/posts/tech/230128-deploy-with-git-hook/</link>
      <pubDate>Sat, 28 Jan 2023 11:40:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/tech/230128-deploy-with-git-hook/</guid>
      <description>使用 Git Hook 将网站自动部署到服务器</description>
      <content:encoded><![CDATA[<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<p>最近开始使用 hexo 和 hugo 写博客，静态博客相对于 Wordpress, Typecho 等的好处包括速度的安全性，但在部署和易用性方面可能略逊一筹，这也是劝退很多新手的主要原因。</p>
<p>如何将 hexo 和 hugo 发布到自己的云服务器，最直观的做法便是在本地用<code>hexo g</code>生成静态网页文件，再将其通过 FTP 等方式上传。但这样的方法看起来简单，实则操作起来麻烦，也不能保证传输的准确性，于是得想想其他方法。</p>
<p>既然无法很好做到传输，那么可以直接将博客的写作环境搭建在<strong>服务器本地</strong>中。具体做法是直接在服务器中安装 
<a href="https://github.com/coder/code-server"  target="_blank" >code-server</a> 进行编写、编译，这样免去了传输的过程。并且 code-server 是一个“行走的”开发环境，在任何设备上访问自己的 code-server 地址就可以便捷地进行开发。</p>
<p>code-server 的具体使用方法可参考：
<div style="margin: 1em auto;position: relative;
        box-shadow: 0 2px 4px rgb(0 0 0 / 25%), 0 0 2px rgb(0 0 0 / 25%);
        border-radius: 15px;padding: 23px;max-width: 780px;background: var(--entry);">
    
    
    <div style="font-size: 22px; font-weight: 600">
        <a target="_blank" href="https://www.ridic.me/posts/tech/220625-dev-code-server/" style="box-shadow: none">随时随地写代码--基于Code-server部署自己的云开发环境</a>
    </div>
    <span style="font-size: 14px; color: #999">
        日期: 2022-06-25
        &nbsp;
        标签:
        
        #部署&nbsp;
        
        #折腾&nbsp;
        
    </span>
    <div style="font-size: 14px; line-height: 1.825;max-height: 75px; overflow: hidden;margin-top: 5px;">
        前言 在平时的学习工作中，我们经常会用到代码编辑器，Vscode已经成为我们的首选。但是本地编辑器有个弊端就是当我们在家庭和公司之间移动的时候 ......
    </div>
    
    
</div>
</p>
<p>还有一种方法是下文要讲的 Git Hook 部署。使用这种方法可以将文件一键推送到服务器中。目前我写博客便是两种方法的结合，即在 code-server 中进行编码写作，编译后通过 git 推送到另一台云服务器中。</p>
<h2 id="配置-git">配置 git</h2>
<h3 id="1安装-git">1.安装 git</h3>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>apt-get install git
</span></span></code></pre></div><h3 id="2创建-git-用户">2.创建 git 用户</h3>
<p>为了安全，我们创建一个 git 用户以专门运行 git 服务。</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>adduser git
</span></span></code></pre></div><h3 id="3创建证书登录">3.创建证书登录</h3>
<p>将计算机中的<code>~/.ssh/id_rsa.pub</code>文件里的内容添加到服务器的<code>/home/git/.ssh/authorized_keys</code>中。添加公钥之后可以防止每次 push 都输入密码。</p>
<blockquote>
<p>如果你之前没有生成过公钥，则可能就没有<code>id_rsa.pub</code>文件，具体的生成方法，可以
<a href="https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/"  target="_blank" >参考这里</a></p>
</blockquote>
<h3 id="4初始化-git-仓库">4.初始化 Git 仓库</h3>
<p>可以将其放在<code>/var/repo/blog.git</code>目录下：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>mkdir /var/repo
</span></span><span style="display:flex;"><span>cd /var/repo
</span></span><span style="display:flex;"><span>git init --bare blog.git
</span></span></code></pre></div><p>使用<code>--bare</code>参数，Git 就会创建一个裸仓库，裸仓库没有工作区，我们不会在裸仓库上操作，它只为共享而存在。</p>
<h3 id="5配置-git-hook">5.配置 Git Hook</h3>
<p>我们这里要配置的是<code>post-receive</code>的 hook ，在整个 git 操作完成后被运行。</p>
<p>在<code>blog.git/hooks</code>目录下新建一个<code>post-receive</code>文件：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>cd /var/repo/blog.git/hooks
</span></span><span style="display:flex;"><span>vim post-receive
</span></span></code></pre></div><p>在<code>post-receive</code>文件中写入如下内容：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e">#!/bin/bash
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>git --work-tree<span style="color:#f92672">=</span>/var/www/hexo --git-dir<span style="color:#f92672">=</span>/var/repo/blog.git checkout -f
</span></span></code></pre></div><p>注意，这里的<code>/var/www/hexo</code>要换成你的<strong>部署目录</strong>，并且<strong>必须是空目录</strong>，否则 git 推送时会报错；并且也要赋予 git 用户操作这个文件夹的权限，或者直接将其<code>chmod 777</code>。</p>
<p>设置这个文件的可执行权限：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>chmod +x post-receive
</span></span></code></pre></div><h3 id="6改变拥有者">6.改变拥有者</h3>
<p>改变<code>blog.git</code>目录的拥有者为<code>git</code>用户：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>chown -R git:git blog.git
</span></span></code></pre></div><h3 id="7禁用-shell-登录权限">7.禁用 shell 登录权限</h3>
<p>出于安全考虑，我们要让<code>git</code>用户不能通过<code>shell</code>登录。编辑<code>/etc/passwd</code>，在<code>/etc/passwd</code>中找到类似下面的一行：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>git:x :1001:1001:,,,:/home/git:/bin/bash
</span></span></code></pre></div><p>将其改为</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>git:x :1001:1001:,,,:/home/git:/usr/bin/git-shell
</span></span></code></pre></div><p>这样就可以通过 ssh 正常使用 git ，而无法登录 shell 。</p>
<p>至此，服务器端的配置就完成了。</p>
<h2 id="本地配置">本地配置</h2>
<h3 id="hexo">hexo</h3>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>deploy:
</span></span><span style="display:flex;"><span>  type: git
</span></span><span style="display:flex;"><span>  repo: git@服务器ip:/var/repo/blog.git
</span></span><span style="display:flex;"><span>  branch: master
</span></span></code></pre></div><p><strong>如果ssh端口不是80怎么办？</strong> 可不能在上面的ip后直接加上端口号，因为<code>:</code>后的内容会被解析，这就导致报错。</p>
<p>可以在本地 ssh 的 config(~/.ssh/config) 中进行设置：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>Host myServer
</span></span><span style="display:flex;"><span>  HostName 你的ip
</span></span><span style="display:flex;"><span>  Port 你的ssh端口
</span></span></code></pre></div><p>然后 hexo 中配置：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>deploy:
</span></span><span style="display:flex;"><span>  type: git
</span></span><span style="display:flex;"><span>  repo: git@myServer:/var/repo/blog.git
</span></span><span style="display:flex;"><span>  branch: master
</span></span></code></pre></div><p>就可以了。</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
]]></content:encoded>
    </item>
    
    <item>
      <title>利用BurpSuite和Charles进行抓包</title>
      <link>https://www.ridic.me/posts/tech/230116-sniffer-with-burpsuite-charles/</link>
      <pubDate>Mon, 16 Jan 2023 19:25:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/tech/230116-sniffer-with-burpsuite-charles/</guid>
      <description>利用BurpSuite和Charles进行抓包</description>
      <content:encoded><![CDATA[<blockquote>
<p>本文在 macOS 环境下配置。</p>
</blockquote>
<h1 id="1burpsuite和charles安装配置">1.BurpSuite和Charles安装配置</h1>
<h2 id="burpsuite">BurpSuite</h2>
<h3 id="安装">安装</h3>
<p>在
<a href="https://portswigger.net/burp/releases"  target="_blank" >官网</a>中下载<code>Professional 2022.11.4</code>安装包，更新版本破解方法可以自行谷歌。</p>
<h3 id="注册">注册</h3>
<p>下载注册机
<a href="https://github.com/h3110w0r1d-y/BurpLoaderKeygen"  target="_blank" >h3110w0r1d-y/BurpLoaderKeygen</a></p>
<p>右键Burp Suite Professional.app显示包内容，将注册机放入BP的jar文件同级目录：
<a href="https://i.fi0.cc/v3U82TME2D.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/v3U82TME2D.png" alt="同级目录"  />
</a>

接着用如下命令打开BP：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>cd /Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app/Contents/Resources/app <span style="color:#f92672">&amp;&amp;</span> <span style="color:#e6db74">&#34;/Applications/Burp Suite Professional.app/Contents/Resources/jre.bundle/Contents/Home/bin/java&#34;</span> <span style="color:#e6db74">&#34;--add-opens=java.desktop/javax.swing=ALL-UNNAMED&#34;</span> <span style="color:#e6db74">&#34;--add-opens=java.base/java.lang=ALL-UNNAMED&#34;</span> <span style="color:#e6db74">&#34;--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED&#34;</span> <span style="color:#e6db74">&#34;--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED&#34;</span> <span style="color:#e6db74">&#34;--add-opens=java.base/jdk.internal.org.objectweb.asm.Opcodes=ALL-UNNAMED&#34;</span> <span style="color:#e6db74">&#34;-javaagent:BurpLoaderKeygen.jar&#34;</span>  <span style="color:#e6db74">&#34;-jar&#34;</span> <span style="color:#e6db74">&#34;/Applications/Burp Suite Professional.app/Contents/Resources/app/burpsuite_pro.jar&#34;</span>
</span></span></code></pre></div><p>再在新终端中用如下命令运行注册机：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>/Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app/Contents/Resources/jre.bundle/Contents/Home/bin/java -jar /Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app/Contents/Resources/app/BurpLoaderKeygen.jar
</span></span></code></pre></div><p>将注册机中的<code>License</code>中内容复制到BP中，选择 Manual Activation，把<code>Activation Request</code>复制到注册机，再将生成的<code>Activation Response</code>复制到BP中，即可完成激活。</p>
<h3 id="启动">启动</h3>
<p>完成上述步骤就已经可以启动了，但每次都需要两个命令，可以编辑<code>vmoptions.txt</code>简化操作，在<code>vmoptions.txt</code>末尾追加</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-ini" data-lang="ini"><span style="display:flex;"><span><span style="color:#a6e22e">--add-opens</span><span style="color:#f92672">=</span><span style="color:#e6db74">java.desktop/javax.swing=ALL-UNNAMED</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">--add-opens</span><span style="color:#f92672">=</span><span style="color:#e6db74">java.base/java.lang=ALL-UNNAMED</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">--add-opens</span><span style="color:#f92672">=</span><span style="color:#e6db74">java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">--add-opens</span><span style="color:#f92672">=</span><span style="color:#e6db74">java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">--add-opens</span><span style="color:#f92672">=</span><span style="color:#e6db74">java.base/jdk.internal.org.objectweb.asm.Opcodes=ALL-UNNAMED</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">-javaagent:BurpLoaderKeygen.jar</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">-Xmx2048m</span>
</span></span></code></pre></div><p><strong>或者</strong>命令行运行：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;--add-opens=java.desktop/javax.swing=ALL-UNNAMED&#34;</span> &gt;&gt; /Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app/Contents/vmoptions.txt
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;--add-opens=java.base/java.lang=ALL-UNNAMED&#34;</span> &gt;&gt; /Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app/Contents/vmoptions.txt
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED&#34;</span> &gt;&gt; /Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app/Contents/vmoptions.txt
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED&#34;</span> &gt;&gt; /Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app/Contents/vmoptions.txt
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;--add-opens=java.base/jdk.internal.org.objectweb.asm.Opcodes=ALL-UNNAMED&#34;</span> &gt;&gt; /Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app/Contents/vmoptions.txt
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;-javaagent:BurpLoaderKeygen.jar&#34;</span> &gt;&gt; /Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app/Contents/vmoptions.txt
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;-Xmx2048m&#34;</span> &gt;&gt; /Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app/Contents/vmoptions.txt
</span></span></code></pre></div><p>之后便可正常启动了。</p>
<p>如果出现<code>&quot;Burp Suite Professional.app&quot;损坏，无法打开。您应该将它移到废纸篓。</code>
运行</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo xattr -r -d com.apple.quarantine /Applications/Burp<span style="color:#ae81ff">\ </span>Suite<span style="color:#ae81ff">\ </span>Professional.app
</span></span></code></pre></div><h2 id="charles">Charles</h2>
<p>直接参考
<a href="https://www.zzzmode.com/mytools/charles/"  target="_blank" >Charles 激活码计算器</a></p>
<h1 id="2burpsuite抓包">2.BurpSuite抓包</h1>
<p>用 BurpSuite 进行本地抓包应该不麻烦，看着界面就能做。最基本的，用<code>Proxy</code>模块，可以作为一个在浏览器和目标应用程序之间的中间人，进行拦截、查看、修改在两个方向上的原始数据包。</p>
<p>进行移动端抓包时，首先保证电脑与移动端在同一局域网下， BP 中进入 Proxy-Options ，在 Proxy Listeners 中 Add ，选中 Specific address 选择电脑的内网ip。
<a href="https://i.fi0.cc/jS2LneuXLw.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/jS2LneuXLw.png" alt="BP"  />
</a>

在手机中访问此地址，如图示则是访问<code>192.168.1.12:14251</code>，单击 CA Certificate 则可下载安装CA证书，在ios中显示为 安装&quot;描述文件&quot;，安装后再将其启用。</p>
<p>之后再WLAN中设置网络代理，代理ip和端口即为BP中设置的。此时即可进行移动端抓包。</p>
<h1 id="3charles抓包">3.Charles抓包</h1>
<p>有时对移动端用BP进行抓包可能会出现缓慢，或者抓不到包的情况（也不知道为什么），而用 Charles 进行移动端抓包则十分流畅。</p>
<p>Charles 的配置和BP差不多，在移动端安装证书即可。
<a href="https://i.fi0.cc/3idBmGHY6r.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/3idBmGHY6r.png" alt="安装证书"  />
</a>

<a href="https://i.fi0.cc/rqKw5HM0iv.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/rqKw5HM0iv.png" alt="安装证书"  />
</a>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>关于window.opener</title>
      <link>https://www.ridic.me/posts/tech/230109-window_opener/</link>
      <pubDate>Mon, 09 Jan 2023 00:18:28 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/tech/230109-window_opener/</guid>
      <description>解析html中window.opener的特点与用法</description>
      <content:encoded><![CDATA[<h2 id="1windowopener作用">1.window.opener作用</h2>
<blockquote>
<p>The <code>Window</code> interface&rsquo;s <code>opener</code> property returns a reference to the window that opened the window, either with <code>open()</code>, or by navigating a link with a <code>target</code> attribute.</p>
<p>In other words, if window A opens window B, B.opener returns A.</p>
</blockquote>
<p>也就是说，用<code>&lt;a target=&quot;_blank&quot;&gt;</code>打开的页面，可以直接用<code>window.opener</code>来访问源页面的<code>window</code>对象。（但在现在需要添加<code>rel=&quot;opener&quot;</code>才能生效）</p>
<h2 id="2opener存在的条件">2.opener存在的条件</h2>
<blockquote>
<p>在2018年左右以前，通过<code>&lt;a target=&quot;_blank&quot;&gt;</code>开启的新窗口都默认带有<code>window.opener</code>，但在Chrome 
<a href="https://chromestatus.com/feature/6140064063029248"  target="_blank" >release 88</a>和Safari 
<a href="https://webkit.org/blog/8475/release-notes-for-safari-technology-preview-68/"  target="_blank" >release 68</a>中都已默认对<code>&lt;a target=&quot;_blank&quot;&gt;</code>实现<code>noopener</code>，因此如今在以下情况<code>window.opener</code>会返回<code>null</code>：</p>
</blockquote>
<ul>
<li>链接加上<code>rel=noopener</code>属性</li>
<li>用<code>&lt;a target=&quot;_blank&quot;&gt;</code>打开，但没加上<code>rel=opener</code></li>
<li>带有<code>Cross-Origin-Opener-Policy: same-origin</code>头</li>
</ul>
<p>所以要在子页面中使用<code>window.opener</code>，需要将请求头设为<code>Cross-Origin-Opener-Policy: unsafe-none</code>（默认），使用<code>&lt;a target=&quot;_blank&quot; rel=&quot;opener&quot;&gt;</code>，或用JS语句<code>window.open(&quot;...&quot;)</code>。</p>
<h2 id="3同源与跨域">3.同源与跨域</h2>
<p>浏览器提供了完整的跨域保护，在域名相同时，<code>parent</code>对象和<code>opener</code>对象实际上就直接是上一级的<code>window</code>对象；而当域名不同时，<code>parent</code>和<code>opener</code>则是经过包装的一个<code>global</code>对象。这个<code>global</code>对象仅提供非常有限的属性访问，并且在这仅有的几个属性中，大部分也都是不允许访问的（访问会直接抛出<code>DOMException</code>）。
<a href="https://i.fi0.cc/2023/01/10/63bcb90cbf2f8.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2023/01/10/63bcb90cbf2f8.png" alt="同域"  />
</a>

<a href="https://i.fi0.cc/2023/01/10/63bcb90cb4b33.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2023/01/10/63bcb90cb4b33.png" alt="跨域"  />
</a>
</p>
<h2 id="4性能">4.性能</h2>
<p>当<code>opener</code>存在时，仅在同域情况下两标签页共用一个进程。
Chrome和Edge等都提供了GUI查看渲染进程的情况，通过 更多工具=&gt;任务管理器 查看。
<a href="https://i.fi0.cc/2023/01/10/63bcbb60e88d2.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2023/01/10/63bcbb60e88d2.png" alt="同域"  />
</a>

<a href="https://i.fi0.cc/2023/01/10/63bcbb6463164.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2023/01/10/63bcbb6463164.png" alt="跨域"  />
</a>

当新打开页面与原页面共用一个进程，若执行一个庞大的JavaScript脚本，那么原标签页也会受到影响，可能出现卡顿的现象。</p>
<p>而如果在链接中加入了<code>noopener</code>，两个标签页将会互不干扰，使得原页面的性能不会受到新页面的影响。</p>
<h2 id="5安全性">5.安全性</h2>
<p>参考：
<a href="https://paper.seebug.org/538/"  target="_blank" >危险的 target=&quot;_blank&quot; 与 “opener”</a></p>
<p>如果一个链接使用了<code>target=&quot;_blank&quot; rel=&quot;opener&quot;</code>，那么一旦用户点击这个链接并进入一个新的标签，新标签中的页面如果存在恶意代码，就可以将你的网站直接导航到一个虚假网站。此时，如果用户回到你的标签页，看到的就是被替换过的页面了。</p>
<h3 id="详细步骤">详细步骤</h3>
<p>1.在你的网站<code>https://example.com</code>上存在一个链接：<code>&lt;a href=&quot;https://an.evil.site&quot;target=&quot;_blank&quot;&gt;进入一个“邪恶”的网站&lt;/a&gt;</code></p>
<p>2.用户点击了这个链接，在新的标签页打开了这个网站。这个网站可以通过<code>HTTP Header</code>中的<code>Referer</code>属性来判断用户的来源。</p>
<p>并且，这个网站上包含着类似于这样的<code>JavaScript</code>代码：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-javascript" data-lang="javascript"><span style="display:flex;"><span><span style="color:#66d9ef">const</span> <span style="color:#a6e22e">url</span><span style="color:#f92672">=</span>encodeURIComponent(<span style="color:#e6db74">&#39;{{header.referer}}&#39;</span>);
</span></span><span style="display:flex;"><span>window.<span style="color:#a6e22e">opener</span>.<span style="color:#a6e22e">location</span>.<span style="color:#a6e22e">replace</span>(<span style="color:#e6db74">&#39;https://a.fake.site/?&#39;</span><span style="color:#f92672">+</span><span style="color:#a6e22e">url</span>);
</span></span></code></pre></div><p>3.此时，用户在继续浏览这个新的标签页，而原来的网站所在的标签页此时已经被导航到了<code>https://a.fake.site/?https%3A%2F%2Fexample.com%2F</code>。</p>
<p>4.恶意网站<code>https://a.fake.site</code>根据 Query String 来伪造一个足以欺骗用户的页面，并展示出来（期间还可以做一次跳转，使得浏览器的地址栏更具有迷惑性）。</p>
<p>5.用户关闭<code>https://an.evil.site</code>的标签页，回到原来的网站………………已经回不去了。</p>
<p>上面的攻击步骤是在跨域的情况下的，在跨域情况下，<code>opener</code>对象和<code>parent</code>一样，是受到限制的，仅提供非常有限的属性访问，并且在这仅有的几个属性中，大部分也都是不允许访问的（访问会直接抛出<code>DOMException</code>）。</p>
<p>但是与<code>parent</code>不同的是，在跨域的情况下，<code>opener</code>仍然可以调用<code>location.replace</code>方法而<code>parent</code> 则不可以。</p>
<p>如果是在同域的情况下（比如一个网站上的某一个页面被植入了恶意代码），则情况要比上面严重得多。</p>
<h3 id="防御">防御</h3>
<ol>
<li>Referrer Policy 和 noreferrer
上面的攻击步骤中，用到了 HTTP Header 中的<code>Referer</code>属性，实际上可以在 HTTP 的响应头中增加<code>ReferrerPolicy</code>头来保证来源隐私安全。</li>
</ol>
<p>ReferrerPolicy 需要修改后端代码来实现，而在前端，也可以使用<code>&lt;a&gt;</code>标签的<code>rel</code>属性来指定<code>rel=&quot;noreferrer&quot;</code>来保证来源隐私安全。</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-html" data-lang="html"><span style="display:flex;"><span>&lt;<span style="color:#f92672">a</span> <span style="color:#a6e22e">href</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;https://an.evil.site&#34;</span> <span style="color:#a6e22e">target</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;_blank&#34;</span> <span style="color:#a6e22e">rel</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;noreferrer&#34;</span>&gt;进入一个“邪恶”的网站&lt;/<span style="color:#f92672">a</span>&gt;
</span></span></code></pre></div><p>但是要注意的是：即使限制了<code>referer</code>的传递，仍然不能阻止原标签被恶意跳转。</p>
<ol start="2">
<li>noopener
为了安全，现代浏览器都支持在<code>&lt;a&gt;</code>标签的<code>rel</code>属性中指定<code>rel=&quot;noopener&quot;</code>，这样，在打开的新标签页中，将无法再使用<code>opener</code>对象了，它为设置为了<code>null</code>。</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-html" data-lang="html"><span style="display:flex;"><span>&lt;<span style="color:#f92672">a</span> <span style="color:#a6e22e">href</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;https://an.evil.site&#34;</span> <span style="color:#a6e22e">target</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;_blank&#34;</span> <span style="color:#a6e22e">rel</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;noopener&#34;</span>&gt;进入一个“邪恶”的网站&lt;/<span style="color:#f92672">a</span>&gt;
</span></span></code></pre></div>]]></content:encoded>
    </item>
    
    <item>
      <title>2023上海英语春考</title>
      <link>https://www.ridic.me/posts/trivial/230107-2023spring-exam/</link>
      <pubDate>Sat, 07 Jan 2023 09:00:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/230107-2023spring-exam/</guid>
      <description>2023届上海英语春考（附2019上海春考英语听力）</description>
      <content:encoded><![CDATA[<h2 id="2023届的上海英语春考现在开始了">2023届的上海英语春考现在开始了</h2>
<h2 id="祝各位高考生们好运">祝各位高考生们好运！！！</h2>
<hr>
<p>附2019上海春考英语听力 看看你能对几个（）</p>


<audio controls>
  <source src="https://cos.fi0.cc/uploads/2023/02/01/voice.mp3" type="audio/mpeg">
您的浏览器不支持播放此音频。
</audio>

<!DOCTYPE HTML>
<html lang="en">

<head>
    <style type="text/css">
        #googleslides_shortcodes {
            padding-bottom: 66%;
            position: relative;
            display: block;
            width: 100%;
            border-bottom: 5px solid;
        }

        #googleslides_shortcodes iframe {
            position: absolute;
            top: 0;
            left: 0
        }
    </style>
    <title></title>
</head>

<body>
    <div id="googleslides_shortcodes">
        <iframe id="googleSlideIframe" width="100%" height="100%" src="https://cos.fi0.cc/uploads/2023/02/01/%E5%90%AC%E5%8A%9B.pdf" frameborder="0"
            allowfullscreen="">
        </iframe>
    </div>
</body>

</html>
]]></content:encoded>
    </item>
    
    <item>
      <title>解决Mac开机界面壁纸不同的问题</title>
      <link>https://www.ridic.me/posts/trivial/230102-mac-change-wallpaper/</link>
      <pubDate>Mon, 02 Jan 2023 20:06:40 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/230102-mac-change-wallpaper/</guid>
      <description>mac上更换壁纸时，重启电脑后的开机锁屏界面显示老壁纸...</description>
      <content:encoded><![CDATA[<p>最近mac上更换壁纸时，重启电脑后的开机锁屏界面总是显示老壁纸，找了一下原来是缓存问题：
<code>/Library/Caches/Desktop Pictures/XXX/lockscreen.png</code>
(其中的XXX为你的UUID，进入系统偏好设置&ndash;用户与群组，先把下面的锁解开，然后右键你的用户，点击高级选项，弹出的页面中即有UUID)
<a href="https://i.fi0.cc/2023/01/03/63b41b1dda8e5.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2023/01/03/63b41b1dda8e5.png" alt="/Library/Caches/Desktop Pictures/XXX/lockscreen.png"  />
</a>

将<code>lockscreen.png</code>替换为自己所用的壁纸即可。
最后放一张现在在用的经典壁纸：</p>
<!-- raw HTML omitted -->
<figure class="align-center ">
        <a href="https://i.fi0.cc/BBurlE3uPb.png" class="glightbox">
    

    <img loading="lazy" src="https://i.fi0.cc/oHdb6x1kjF.jpg#center"
         alt="Sierra" width="80%"/> 
    </a><figcaption>
            Sierra<p>（点击查看原图）</p>
        </figcaption>
</figure>

]]></content:encoded>
    </item>
    
    <item>
      <title>迁移到了新域名</title>
      <link>https://www.ridic.me/posts/trivial/221230-website-migrated/</link>
      <pubDate>Fri, 30 Dec 2022 22:39:40 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/221230-website-migrated/</guid>
      <description>趁着2022年的最后几天，将所有的站都整理了一遍..</description>
      <content:encoded><![CDATA[<p>趁着2022年的最后几天，将所有的站都整理了一遍..</p>
<p>新主题test
<!DOCTYPE HTML>
<html lang="en">

<head>
    <style type="text/css">
        #googleslides_shortcodes {
            padding-bottom: 66%;
            position: relative;
            display: block;
            width: 100%;
            border-bottom: 5px solid;
        }

        #googleslides_shortcodes iframe {
            position: absolute;
            top: 0;
            left: 0
        }
    </style>
    <title></title>
</head>

<body>
    <div id="googleslides_shortcodes">
        <iframe id="googleSlideIframe" width="100%" height="100%" src="https://cos.fi0.cc/uploads/2022/11/13/2021%E5%B9%B411%E6%9C%88%E4%B8%8A%E6%B5%B7%E5%B8%82%E5%8D%8E%E5%B8%88%E5%A4%A7%E4%BA%8C%E9%99%84%E4%B8%AD%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%9C%9F%E4%B8%AD%E6%95%B0%E5%AD%A6%E8%AF%95%E5%8D%B7%E8%AF%A6%E8%A7%A3%E7%89%88.pdf" frameborder="0"
            allowfullscreen="">
        </iframe>
    </div>
</body>

</html></p>
<div style="margin: 1em auto;position: relative;
        box-shadow: 0 2px 4px rgb(0 0 0 / 25%), 0 0 2px rgb(0 0 0 / 25%);
        border-radius: 15px;padding: 23px;max-width: 780px;background: var(--entry);">
    
    
    <div style="font-size: 22px; font-weight: 600">
        <a target="_blank" href="https://www.ridic.me/posts/trivial/220823-helloworld/" style="box-shadow: none">Helloworld</a>
    </div>
    <span style="font-size: 14px; color: #999">
        日期: 2022-08-23
        &nbsp;
        标签:
        
        #helloworld&nbsp;
        
    </span>
    <div style="font-size: 14px; line-height: 1.825;max-height: 75px; overflow: hidden;margin-top: 5px;">
        测试站点。第一个Hugo博客 本站点从Hexo迁移至Hugo，使用PaperMod主题。 ......
    </div>
    
    
</div>

<p>$ y=ax^2+bx+c $</p>
<p>$ x=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a} $</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>期中考复习试卷</title>
      <link>https://www.ridic.me/posts/maths/221105-2022midterm-revise/</link>
      <pubDate>Sat, 05 Nov 2022 19:50:40 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/maths/221105-2022midterm-revise/</guid>
      <description>快期中了，放一些题练一下手 看了一下，上中前几年高二上期末的进度和现在我们期中的进度差不多 现在的进度快得哈人 上海市上海中学2020-2021学</description>
      <content:encoded><![CDATA[<h2 id="快期中了放一些题练一下手">快期中了，放一些题练一下手</h2>
<p>看了一下，上中前几年高二上期末的进度和现在我们期中的进度差不多 现在的进度快得哈人</p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62020-2021%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%9C%9F%E6%9C%AB%E6%95%B0%E5%AD%A6%E8%AF%95%E9%A2%98.docx"  target="_blank" >上海市上海中学2020-2021学年高二上学期期末数学试题</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62019-2020%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%9C%9F%E6%9C%AB%E6%95%B0%E5%AD%A6%E8%AF%95%E9%A2%98.docx"  target="_blank" >上海市上海中学2019-2020学年高二上学期期末数学试题</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62020-2021%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%9C%9F%E6%9C%AB%E8%80%83%E8%AF%95%E7%89%A9%E7%90%86%E8%AF%95%E9%A2%98%EF%BC%88%E6%89%AB%E6%8F%8F%E7%89%88%EF%BC%8C%E6%97%A0%E7%AD%94%E6%A1%88%EF%BC%89.pdf"  target="_blank" >上海市上海中学2020-2021学年高二上学期期末考试物理试题</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62020-2021%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%9C%9F%E6%9C%AB%E8%80%83%E8%AF%95%E8%8B%B1%E8%AF%AD%E8%AF%95%E9%A2%98%EF%BC%88%E6%89%AB%E6%8F%8F%E7%89%88%EF%BC%8C%E6%97%A0%E7%AD%94%E6%A1%88%EF%BC%89.pdf"  target="_blank" >上海市上海中学2020-2021学年高二上学期期末考试英语试题</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62020-2021%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%9C%9F%E6%9C%AB%E8%80%83%E8%AF%95%E5%8C%96%E5%AD%A6%E8%AF%95%E9%A2%98%EF%BC%88%E6%89%AB%E6%8F%8F%E7%89%88%EF%BC%8C%E6%97%A0%E7%AD%94%E6%A1%88%EF%BC%89.pdf"  target="_blank" >上海市上海中学2020-2021学年高二上学期期末考试化学试题</a></p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62017-2018%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%95%B0%E5%AD%A6%E5%91%A8%E7%BB%8302.pdf"  target="_blank" >上海市上海中学2017-2018学年高二上学期数学周练02</a>（<em>矩阵行列式</em>、向量）</p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62017-2018%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%95%B0%E5%AD%A6%E5%91%A8%E7%BB%8303.pdf"  target="_blank" >上海市上海中学2017-2018学年高二上学期数学周练03</a>（<em>矩阵行列式</em>、向量、直线）</p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62017-2018%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%95%B0%E5%AD%A6%E5%91%A8%E7%BB%8304%EF%BC%88%E5%9B%BE%E7%89%87%E7%89%88%EF%BC%89.doc"  target="_blank" >上海市上海中学2017-2018学年高二上学期数学周练04</a>（直线、线性规划）<strong>（图片版）</strong></p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62017-2018%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%95%B0%E5%AD%A6%E5%91%A8%E7%BB%8305.pdf"  target="_blank" >上海市上海中学2017-2018学年高二上学期数学周练05</a>（直线、线性规划、圆）</p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62017-2018%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%95%B0%E5%AD%A6%E5%91%A8%E7%BB%8306.pdf"  target="_blank" >上海市上海中学2017-2018学年高二上学期数学周练06</a>（圆、椭圆）</p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62017-2018%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%95%B0%E5%AD%A6%E5%91%A8%E7%BB%8307.pdf"  target="_blank" >上海市上海中学2017-2018学年高二上学期数学周练07</a>（椭圆、双曲线）</p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62017-2018%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%95%B0%E5%AD%A6%E5%91%A8%E7%BB%8308%EF%BC%88%E5%9B%BE%E7%89%87%E7%89%88%EF%BC%89.doc"  target="_blank" >上海市上海中学2017-2018学年高二上学期数学周练08</a>（椭圆、双曲线、抛物线）<strong>（图片版）</strong></p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62017-2018%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%95%B0%E5%AD%A6%E5%91%A8%E7%BB%8309%EF%BC%88%E5%9B%BE%E7%89%87%E7%89%88%EF%BC%89.doc"  target="_blank" >上海市上海中学2017-2018学年高二上学期数学周练09</a>（圆锥曲线综合）<strong>（图片版）</strong></p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62017-2018%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%95%B0%E5%AD%A6%E5%91%A8%E7%BB%8310.pdf"  target="_blank" >上海市上海中学2017-2018学年高二上学期数学周练10</a>（圆锥曲线综合）</p>
<p>
<a href="https://cos.fi0.cc/uploads/2022/11/05/%E4%B8%8A%E6%B5%B7%E5%B8%82%E4%B8%8A%E6%B5%B7%E4%B8%AD%E5%AD%A62017-2018%E5%AD%A6%E5%B9%B4%E9%AB%98%E4%BA%8C%E4%B8%8A%E5%AD%A6%E6%9C%9F%E6%95%B0%E5%AD%A6%E5%91%A8%E7%BB%8311.pdf"  target="_blank" >上海市上海中学2017-2018学年高二上学期数学周练11</a>（圆锥曲线综合）</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>关于</title>
      <link>https://www.ridic.me/about/</link>
      <pubDate>Wed, 24 Aug 2022 04:17:40 +0000</pubDate>
      
      <guid>https://www.ridic.me/about/</guid>
      <description>关于我 Tom是一个来自上海的数学系本科生～～</description>
      <content:encoded><![CDATA[<h2 id="关于我">关于我</h2>
<p>Tom是一个来自上海的数学系本科生～～</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>友链</title>
      <link>https://www.ridic.me/links/</link>
      <pubDate>Wed, 24 Aug 2022 04:17:40 +0000</pubDate>
      
      <guid>https://www.ridic.me/links/</guid>
      <description>友链列表 Lou&amp;#39;s Blog 你所热爱的，就是你的生活 Neil&amp;#39;s Note A decommissioned OIer 杨柳自留地 人生如逆旅，我亦是行人 轻笑Chuckle 漫天倾尘,风中轻笑 LEl_FENG的小屋 追随</description>
      <content:encoded><![CDATA[<h2 id="友链列表">友链列表</h2>
<a target="_blank" href=https://bangumi.dev title=Lou&#39;s&#32;Blog class="friendurl" rel="noopener">
    <div class="frienddiv">
        <div class="frienddivleft">
            <img class="myfriend" src=https://i.fi0.cc/ZO4wlf4nXx.png />
        </div>
        <div class="frienddivright">
            <div class="friendname">Lou&#39;s Blog</div>
            <div class="friendinfo">你所热爱的，就是你的生活</div>
        </div>
    </div>
</a>
<a target="_blank" href=https://www.neily.top title=Neil&#39;s&#32;Note class="friendurl" rel="noopener">
    <div class="frienddiv">
        <div class="frienddivleft">
            <img class="myfriend" src=https://i.fi0.cc/WH5dt664Lb.webp />
        </div>
        <div class="frienddivright">
            <div class="friendname">Neil&#39;s Note</div>
            <div class="friendinfo">A decommissioned OIer</div>
        </div>
    </div>
</a>
<a target="_blank" href=https://www.ripic.site title=杨柳自留地 class="friendurl" rel="noopener">
    <div class="frienddiv">
        <div class="frienddivleft">
            <img class="myfriend" src=https://i.fi0.cc/yfaG38NgLJ.gif />
        </div>
        <div class="frienddivright">
            <div class="friendname">杨柳自留地</div>
            <div class="friendinfo">人生如逆旅，我亦是行人</div>
        </div>
    </div>
</a>
<a target="_blank" href=https://www.qcqx.cn title=轻笑Chuckle class="friendurl" rel="noopener">
    <div class="frienddiv">
        <div class="frienddivleft">
            <img class="myfriend" src=https://i.fi0.cc/ZPbzcR1RHN.webp />
        </div>
        <div class="frienddivright">
            <div class="friendname">轻笑Chuckle</div>
            <div class="friendinfo">漫天倾尘,风中轻笑</div>
        </div>
    </div>
</a>
<a target="_blank" href=https://blog.xpdbk.com title=LEl_FENG的小屋 class="friendurl" rel="noopener">
    <div class="frienddiv">
        <div class="frienddivleft">
            <img class="myfriend" src=https://i.fi0.cc/fZGhWjpI67.jpg />
        </div>
        <div class="frienddivright">
            <div class="friendname">LEl_FENG的小屋</div>
            <div class="friendinfo">追随梦想需竭尽全力</div>
        </div>
    </div>
</a>
<a target="_blank" href=https://www.guirlan.de title=小岚的杂物间 class="friendurl" rel="noopener">
    <div class="frienddiv">
        <div class="frienddivleft">
            <img class="myfriend" src=https://i.fi0.cc/ZTxuw8h4xY.png />
        </div>
        <div class="frienddivright">
            <div class="friendname">小岚的杂物间</div>
            <div class="friendinfo">这里储存着各种稀奇古怪事物~</div>
        </div>
    </div>
</a>
]]></content:encoded>
    </item>
    
    <item>
      <title>Helloworld</title>
      <link>https://www.ridic.me/posts/trivial/220823-helloworld/</link>
      <pubDate>Tue, 23 Aug 2022 08:56:42 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/220823-helloworld/</guid>
      <description>测试站点。第一个Hugo博客 本站点从Hexo迁移至Hugo，使用PaperMod主题。</description>
      <content:encoded><![CDATA[<p>测试站点。第一个<code>Hugo</code>博客</p>
<p>本站点从<code>Hexo</code>迁移至<code>Hugo</code>，使用<code>PaperMod</code>主题。</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>随时随地写代码--基于Code-server部署自己的云开发环境</title>
      <link>https://www.ridic.me/posts/tech/220625-dev-code-server/</link>
      <pubDate>Sat, 25 Jun 2022 00:00:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/tech/220625-dev-code-server/</guid>
      <description>Code-server的搭建</description>
      <content:encoded><![CDATA[<h2 id="前言">前言</h2>
<p>在平时的学习工作中，我们经常会用到代码编辑器，Vscode已经成为我们的首选。但是本地编辑器有个弊端就是当我们在家庭和公司之间移动的时候，无法连续编码。这个时候就有很多新兴的在线编辑器（web IDE）出现了，例如微软和 Github 的Visual Studio Codespaces、腾讯的cloudstudio、华为云 CloudIDE等，这些产品要么还在测试，要么免费用会有限制或者价格不低，目前还不是非常方便。</p>
<p>如果想要低成本愉快使用，自己来搭建一个是不错的方案。对配置要求不高的话，一年几十块一百多块就能买到廉价的 VPS 或者云主机。Web IDE 的部署方案推荐两个，code-server 和 Theia。</p>
<h3 id="在线编辑器的选择">在线编辑器的选择</h3>
<p>
<a href="https://github.com/cdr/code-server"  target="_blank" >Code-server</a>是由 Coder 开发的，把 VS Code 搬到了浏览器上。</p>
<p><a href="https://i.fi0.cc/Na6A3377yQ.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/Na6A3377yQ.png" alt="code-server"  />
</a>
</p>
<p>
<a href="https://theia-ide.org/"  target="_blank" >Theia</a>是 Eclipse 推出的云端和桌面 IDE 平台，完全开源。Theia 是基于 VS Code 开发的，它的模块化特性非常适合二次开发，比如华为云 CloudIDE、阿里云 Function Compute IDE 便是基于 Theia 开发。</p>
<p><a href="https://i.fi0.cc/2022/10/15/634a8af4c7d66.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2022/10/15/634a8af4c7d66.png" alt="theia"  />
</a>
</p>
<blockquote>
<p>据我体验下来，Code-server对插件的支持更为完备，并且安全性更高。</p>
</blockquote>
<h2 id="安装code-server">安装code-server</h2>
<p>
<a href="https://coder.com"  target="_blank" >code-server</a>一个开源的基于vscode开发的在线编辑器工具。其支持二进制部署、Docker部署、HemlChart部署，目前还不支持windows部署，但是已经足够我们使用了。</p>
<p>具体部署可以参考
<a href="https://coder.com/docs/code-server/latest/install"  target="_blank" >官方文档</a>。</p>
<p>这里我们选择相对简单快捷的方式，Docker部署。</p>
<h3 id="前置条件">前置条件</h3>
<p>在部署code-server前，你需要准备一台Linux虚机（建议CentOS 7），你可以去云厂商购买（用于生产），也可以使用VMware在个人电脑创建虚机（用于学习）。</p>
<p>我是购买的腾讯云的
<a href="https://cloud.tencent.com/product/lighthouse?from=10680"  target="_blank" >轻量应用服务器</a>。</p>
<h3 id="初步安装">初步安装</h3>
<p>参考：
<a href="https://curl.qcloud.com/FSGPu6FJ"  target="_blank" >使用code-server打造在线IDE</a></p>
<h4 id="拉取code-server镜像">拉取code-server镜像</h4>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>docker pull codercom/code-server
</span></span></code></pre></div><h4 id="启动code-server">启动code-server</h4>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>docker run -d  --name code-server -p 8082:8080 -e PASSWORD<span style="color:#f92672">=</span><span style="color:#ae81ff">123</span> codercom/code-server:latest
</span></span></code></pre></div><p>启动完成后，我们需要在
<a href="https://cloud.tencent.com/product/cvm"  target="_blank" >云服务器</a>的防火墙菜单中打开8082端口，然后就可以使用云服务器的公网ip进行登录使用了。（如果你是本地虚拟机，不需要处理防火墙，直接在浏览器访问虚拟机的ip:8082即可）</p>
<h4 id="访问code-server">访问code-server</h4>
<p>我们在浏览器访问云服务器的公网ip:8082。</p>
<p><a href="https://i.fi0.cc/2022/10/15/634a8b155c6eb.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2022/10/15/634a8b155c6eb.png" alt="访问"  />
</a>
</p>
<p>输入密码123登录。</p>
<h4 id="安装插件">安装插件</h4>
<p>code-server和vscode一样，支持安装插件，我选择了几个常用的插件安装测试，均完美支持。</p>
<p><a href="https://i.fi0.cc/2022/10/15/634a8b2d9157c.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2022/10/15/634a8b2d9157c.png" alt="界面"  />
</a>
</p>
<h3 id="应用反向代理">应用反向代理</h3>
<p>参考：
<a href="https://www.bilibili.com/read/cv14047073"  target="_blank" >部署code-server并通过域名访问（内含实战填坑）</a></p>
<p>如果想要用域名的80端口访问，或者不想对外网开放端口的，可以用nginx做反向代理。打开网站的配置文件，做如下更改：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-javascript" data-lang="javascript"><span style="display:flex;"><span><span style="color:#a6e22e">location</span> <span style="color:#f92672">/</span>
</span></span><span style="display:flex;"><span>{
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_pass</span> <span style="color:#a6e22e">http</span><span style="color:#f92672">:</span><span style="color:#75715e">//127.0.0.1:8080;
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#a6e22e">proxy_http_version</span> <span style="color:#ae81ff">1.1</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_redirect</span>     <span style="color:#a6e22e">off</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_set_header</span> <span style="color:#a6e22e">Host</span> <span style="color:#a6e22e">http</span><span style="color:#f92672">:</span><span style="color:#75715e">//你的域名;
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#a6e22e">proxy_set_header</span> <span style="color:#a6e22e">X</span><span style="color:#f92672">-</span><span style="color:#a6e22e">Real</span><span style="color:#f92672">-</span><span style="color:#a6e22e">IP</span> <span style="color:#a6e22e">$remote_addr</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_set_header</span> <span style="color:#a6e22e">X</span><span style="color:#f92672">-</span><span style="color:#a6e22e">Forwarded</span><span style="color:#f92672">-</span><span style="color:#a6e22e">For</span> <span style="color:#a6e22e">$proxy_add_x_forwarded_for</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_set_header</span> <span style="color:#a6e22e">REMOTE</span><span style="color:#f92672">-</span><span style="color:#a6e22e">HOST</span> <span style="color:#a6e22e">$remote_addr</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_set_header</span>   <span style="color:#a6e22e">Upgrade</span>          <span style="color:#a6e22e">$http_upgrade</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_set_header</span>   <span style="color:#a6e22e">Connection</span>       <span style="color:#e6db74">&#34;Upgrade&#34;</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_connect_timeout</span>      <span style="color:#ae81ff">60</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_send_timeout</span>         <span style="color:#ae81ff">90</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_read_timeout</span>         <span style="color:#ae81ff">90</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_buffer_size</span>          <span style="color:#ae81ff">4</span><span style="color:#a6e22e">k</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_buffers</span>              <span style="color:#ae81ff">4</span> <span style="color:#ae81ff">32</span><span style="color:#a6e22e">k</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_busy_buffers_size</span>    <span style="color:#ae81ff">64</span><span style="color:#a6e22e">k</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">proxy_temp_file_write_size</span> <span style="color:#ae81ff">64</span><span style="color:#a6e22e">k</span>;
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">add_header</span> <span style="color:#a6e22e">X</span><span style="color:#f92672">-</span><span style="color:#a6e22e">Cache</span> <span style="color:#a6e22e">$upstream_cache_status</span>;
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>    <span style="color:#960050;background-color:#1e0010">#</span><span style="color:#a6e22e">Set</span> <span style="color:#a6e22e">Nginx</span> <span style="color:#a6e22e">Cache</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>    	<span style="color:#a6e22e">add_header</span> <span style="color:#a6e22e">Cache</span><span style="color:#f92672">-</span><span style="color:#a6e22e">Control</span> <span style="color:#a6e22e">no</span><span style="color:#f92672">-</span><span style="color:#a6e22e">cache</span>;
</span></span><span style="display:flex;"><span>} 
</span></span></code></pre></div><blockquote>
<p>注意:如果是用宝塔，最好将对于静态文件的规则注释掉。
<a href="https://i.fi0.cc/2022/10/15/634a8b4826138.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2022/10/15/634a8b4826138.jpg" alt="配置文档设置"  />
</a>

保存后再次刷新网页就可以进入界面了。输入密码，即可进入首页。</p>
</blockquote>
<h3 id="更新code-server">更新code-server</h3>
<p>Code-server是一直随着vscode的更新而更新的，所以有时需要更新。运行Code-server官方给出的下载命令:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>curl -fsSL https://code-server.dev/install.sh | sh
</span></span></code></pre></div><p>直接在容器内命令行运行，然后重启容器即可。</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>GAN CFOP</title>
      <link>https://www.ridic.me/posts/trivial/211225-gan-cfop/</link>
      <pubDate>Sat, 25 Dec 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/211225-gan-cfop/</guid>
      <description>GAN官方的CFOP高清原图</description>
      <content:encoded><![CDATA[<p>GAN官方的CFOP高清原图
<a href="https://i.fi0.cc/2022/09/03/6312f3248ba75.jpg" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2022/09/03/6312f3248ba75.jpg" alt="GAN官方的CFOP高清原图"  />
</a>
</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>学校的电脑</title>
      <link>https://www.ridic.me/posts/trivial/211012-schoolpc/</link>
      <pubDate>Tue, 12 Oct 2021 13:34:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/posts/trivial/211012-schoolpc/</guid>
      <description>学校的电脑可真不错</description>
      <content:encoded><![CDATA[<p><a href="https://i.fi0.cc/2022/10/15/634a8a494ff25.png" class="glightbox">
    <img loading="lazy" src="https://i.fi0.cc/2022/10/15/634a8a494ff25.png" alt="学校的电脑"  />
</a>
</p>
<p>学校的电脑可真不错</p>
]]></content:encoded>
    </item>
    
    <item>
      <title>嘀咕</title>
      <link>https://www.ridic.me/whisper/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.ridic.me/whisper/</guid>
      <description></description>
      <content:encoded><![CDATA[


    <link href="/whisper/css/style.css" rel="stylesheet" type="text/css">
    <link href="/whisper/css/APlayer.min.css" rel="stylesheet" type="text/css">
    <link href="/whisper/css/highlight.github.min.css" rel="stylesheet" type="text/css">
    <link href="/whisper/css/custom.css" rel="stylesheet" type="text/css">
    
    <section id="main" class="memocontainer">
        <!-- <h1>Tom的嘀咕</h1> -->
        <div id="memos" class="memos">
            <!-- Memos Container -->
        </div>

    </section>

    <!-- 修改自己的 Memos 设置 -->
    <script type="text/javascript">
        var memos = {
            host: 'https://me.huajitom.cn/',  //修改为自己部署的网址，末尾有 / 斜杠
            limit: '10',  //默认每次显示 10条
            creatorId: '1',  //默认为 101用户
            domId: '#memos',
            APIVersion: 'new',
            domId: '#memos',  //默认为 #memos
            username: 'huajitom',  //发布者 ID 自定义
            name: 'huajitom',
            total: true,
            name: 'Tom',  //发布者全称自定义
        }

    </script>
    <script type="text/javascript" src="/whisper/js/lazyload.min.js?v=17.8.3"></script>
    <script type="text/javascript" src="/whisper/js/marked.min.js?v=4.2.2"></script>
    <script type="text/javascript" src="/whisper/js/view-image.min.js"></script>
    <!-- <script type="text/javascript" src="/whisper/js/pangu.min.js?v=4.0.7"></script> -->
    <script type="text/javascript" src="/whisper/js/moment.min.js?v=2.29.4"></script>
    <script type="text/javascript" src="/whisper/js/moment.twitter.js"></script>
    <script type="text/javascript" src="/whisper/js/APlayer.min.js"></script>
    <script type="text/javascript" src="/whisper/js/Meting.min.js"></script>
    <script type="text/javascript" src="/whisper/js/highlight.min.js"></script>
    <script type="text/javascript" src="/whisper/js/main.js"></script>
    <script type="text/javascript" src="/whisper/js/custom.js"></script>
    <script>hljs.highlightAll();</script>

]]></content:encoded>
    </item>
    
    
    
  </channel>
</rss>
