<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.2">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2023-02-12T02:09:30+00:00</updated><id>/feed.xml</id><title type="html">老骥伏枥</title><subtitle>老骥伏枥, 志在千里. 这是 atpking 的一个 blog</subtitle><author><name>Atpking</name><email>atpking@gmail.com</email></author><entry><title type="html">关于最近春节档上映的两部电影</title><link href="/about-films-in-chinese-new-year/" rel="alternate" type="text/html" title="关于最近春节档上映的两部电影" /><published>2023-02-01T00:00:00+00:00</published><updated>2023-02-01T00:00:00+00:00</updated><id>/about-films-in-chinese-new-year</id><content type="html" xml:base="/about-films-in-chinese-new-year/"><![CDATA[]]></content><author><name>Atpking</name><email>atpking@gmail.com</email></author><category term="life" /><summary type="html"><![CDATA[]]></summary></entry><entry><title type="html">Macbook 解决外接两块屏幕以上时偶尔失效的问题</title><link href="/macbook/" rel="alternate" type="text/html" title="Macbook 解决外接两块屏幕以上时偶尔失效的问题" /><published>2023-02-01T00:00:00+00:00</published><updated>2023-02-01T00:00:00+00:00</updated><id>/macbook</id><content type="html" xml:base="/macbook/"><![CDATA[<p>我的工作机是一台 macbook pro, 外接了两个显示器, 由于平时的工作(以及接老婆)的需要, 经常要外带笔记本, 回家的时重新连接屏幕,就会时长出现这个问题:</p>

<p>两个屏幕只会点亮一个, 剩下的一个是熄灭状态.</p>

<p>之前我解决的方案都是多次插拔 type-c(不显示的那台显示器是 type-c 口到 macbook), 会有一定几率恢复显示, 亦或是重启, 绝大多数时候能够恢复.</p>

<p>但是最近我找到了新的方法:</p>

<p>直接进 system 的 display 去修改那台不显示的屏幕(mac 能读出这个屏幕, 但是就是屏幕不亮)的分辨率, 修改后, macos 会重新适配一下屏幕, 基本都会点亮</p>

<p>以上经验在 intel 版本的 macbook pro 可用, 我不确定 arm 版本的会怎样.</p>]]></content><author><name>Atpking</name><email>atpking@gmail.com</email></author><category term="macos" /><summary type="html"><![CDATA[我的工作机是一台 macbook pro, 外接了两个显示器, 由于平时的工作(以及接老婆)的需要, 经常要外带笔记本, 回家的时重新连接屏幕,就会时长出现这个问题:]]></summary></entry><entry><title type="html">遇见的mac 和 linux Gemfile.lock 的系统依赖问题</title><link href="/mac-linux-gemfilelock/" rel="alternate" type="text/html" title="遇见的mac 和 linux Gemfile.lock 的系统依赖问题" /><published>2023-01-30T00:00:00+00:00</published><updated>2023-01-30T00:00:00+00:00</updated><id>/mac-linux-gemfilelock</id><content type="html" xml:base="/mac-linux-gemfilelock/"><![CDATA[<p>今天在搭建这个 blog 的时候, 发现在 mac 下bundle 了的话, 在 linux 拉代码, 再跑<code class="language-plaintext highlighter-rouge">bundle install</code>就会遇见这个典型的问题:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Your bundle only supports platforms ["x86_64-darwin-21"] but your local platform
  is x86_64-linux. Add the current platform to the lockfile with
  `bundle lock --add-platform x86_64-linux` and try again.
</code></pre></div></div>

<p>解决方案如字面所示:</p>

<p><code class="language-plaintext highlighter-rouge">bundle lock --add-platform x86_64-linux</code></p>

<p>此法会自动修改 gemfile.lock   在 platforms 中增加对应配置</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>PLATFORMS
  x86_64-darwin-21
  x86_64-linux
</code></pre></div></div>

<p>这是一篇测试文章, 用来测试 jekyll 的生成.</p>]]></content><author><name>Atpking</name><email>atpking@gmail.com</email></author><category term="linux" /><category term="ruby" /><category term="macos" /><summary type="html"><![CDATA[今天在搭建这个 blog 的时候, 发现在 mac 下bundle 了的话, 在 linux 拉代码, 再跑bundle install就会遇见这个典型的问题:]]></summary></entry></feed>