<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	「随手记」的评论	</title>
	<atom:link href="https://tree.moe/notebook/feed/" rel="self" type="application/rss+xml" />
	<link>https://tree.moe</link>
	<description>云端筑梦</description>
	<lastBuildDate>Tue, 30 Nov 2021 05:31:37 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		评论者：natuki		</title>
		<link>https://tree.moe/notebook/#comment-21</link>

		<dc:creator><![CDATA[natuki]]></dc:creator>
		<pubDate>Tue, 26 Oct 2021 07:02:00 +0000</pubDate>
		<guid isPermaLink="false">https://tree.moe/?page_id=205#comment-21</guid>

					<description><![CDATA[&lt;span class=&quot;tag&quot;&gt;Linux系统&lt;/span&gt; 当Ubuntu系统重启后，网络连接消失的解决办法,每次系统启动后执行如下命令：
&lt;pre class=&quot;brush: bash&quot;&gt;sudo dhclient ens33&lt;/pre&gt;

而对于Deepin系统，可以编辑/etc/network/interfaces文件，加上：
&lt;pre&gt;
auto ens33
iface ens33 inet dhcp
&lt;/pre&gt;
然后重启网络或者network-manager即可]]></description>
			<content:encoded><![CDATA[<p><span class="tag">Linux系统</span> 当Ubuntu系统重启后，网络连接消失的解决办法,每次系统启动后执行如下命令：</p>
<pre class="brush: bash">sudo dhclient ens33</pre>
<p>而对于Deepin系统，可以编辑/etc/network/interfaces文件，加上：</p>
<pre>
auto ens33
iface ens33 inet dhcp
</pre>
<p>然后重启网络或者network-manager即可</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：natuki		</title>
		<link>https://tree.moe/notebook/#comment-19</link>

		<dc:creator><![CDATA[natuki]]></dc:creator>
		<pubDate>Mon, 20 Sep 2021 14:12:37 +0000</pubDate>
		<guid isPermaLink="false">https://tree.moe/?page_id=205#comment-19</guid>

					<description><![CDATA[&lt;span class=&quot;tag&quot;&gt;微信小程序&lt;/span&gt; Deepin或其他Linux系统使用wine运行微信开发者工具时，若出现“小程序重启耗时过久，请确认业务逻辑中是否有复杂运算，或者死循环”的提示且模拟器始终不显示，可以尝试运行这个命令，然后重新启动微信开发者工具：
&lt;pre class=&quot;brush: bash&quot;&gt;apt-get install wine-binfmt&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p><span class="tag">微信小程序</span> Deepin或其他Linux系统使用wine运行微信开发者工具时，若出现“小程序重启耗时过久，请确认业务逻辑中是否有复杂运算，或者死循环”的提示且模拟器始终不显示，可以尝试运行这个命令，然后重新启动微信开发者工具：</p>
<pre class="brush: bash">apt-get install wine-binfmt</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：natuki		</title>
		<link>https://tree.moe/notebook/#comment-18</link>

		<dc:creator><![CDATA[natuki]]></dc:creator>
		<pubDate>Sat, 26 Jun 2021 10:53:21 +0000</pubDate>
		<guid isPermaLink="false">https://tree.moe/?page_id=205#comment-18</guid>

					<description><![CDATA[&lt;span class=&quot;tag&quot;&gt;Web&lt;/span&gt; 在调用&lt;code&gt;createMediaElementSource&lt;/code&gt;取得&lt;code&gt;audio&lt;/code&gt;标签正在播放的跨域音频声源时，出现&quot;&lt;em&gt;MediaElementAudioSource outputs zeroes due to CORS access restrictions&lt;/em&gt;&quot;的警告信息：

为&lt;code&gt;audio&lt;/code&gt;标签添加&lt;code&gt;crossOrigin=&quot;anonymous&quot;&lt;/code&gt;属性即可，例如：
&lt;pre class=&quot;brush:html&quot;&gt;&#060;audio crossOrigin=&#034;anonymous&#034; src=&#034;&#034;&#062;&#060;/audio&#062;&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p><span class="tag">Web</span> 在调用<code>createMediaElementSource</code>取得<code>audio</code>标签正在播放的跨域音频声源时，出现&#8221;<em>MediaElementAudioSource outputs zeroes due to CORS access restrictions</em>&#8220;的警告信息：</p>
<p>为<code>audio</code>标签添加<code>crossOrigin="anonymous"</code>属性即可，例如：</p>
<pre class="brush:html">&lt;audio crossOrigin=&quot;anonymous&quot; src=&quot;&quot;&gt;&lt;/audio&gt;</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：natuki		</title>
		<link>https://tree.moe/notebook/#comment-17</link>

		<dc:creator><![CDATA[natuki]]></dc:creator>
		<pubDate>Thu, 03 Jun 2021 16:45:24 +0000</pubDate>
		<guid isPermaLink="false">https://tree.moe/?page_id=205#comment-17</guid>

					<description><![CDATA[&lt;span class=&quot;tag&quot;&gt;Java Web&lt;/span&gt;一个链接存档，《JSTL标签使用总结》
&lt;a href=&quot;https://www.cnblogs.com/xdp-gacl/p/3943390.html&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;https://www.cnblogs.com/xdp-gacl/p/3943390.html&lt;/a&gt;]]></description>
			<content:encoded><![CDATA[<p><span class="tag">Java Web</span>一个链接存档，《JSTL标签使用总结》<br />
<a href="https://www.cnblogs.com/xdp-gacl/p/3943390.html" target="_blank" rel="noopener nofollow ugc">https://www.cnblogs.com/xdp-gacl/p/3943390.html</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：natuki		</title>
		<link>https://tree.moe/notebook/#comment-16</link>

		<dc:creator><![CDATA[natuki]]></dc:creator>
		<pubDate>Fri, 12 Mar 2021 07:46:14 +0000</pubDate>
		<guid isPermaLink="false">https://tree.moe/?page_id=205#comment-16</guid>

					<description><![CDATA[&lt;span class=&quot;tag&quot;&gt;计算机网络&lt;/span&gt; 一个链接存档，《HTTP协议超级详解》
&lt;a href=&quot;https://www.cnblogs.com/an-wen/p/11180076.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow ugc noopener&quot;&gt;https://www.cnblogs.com/an-wen/p/11180076.html&lt;/a&gt;]]></description>
			<content:encoded><![CDATA[<p><span class="tag">计算机网络</span> 一个链接存档，《HTTP协议超级详解》<br />
<a href="https://www.cnblogs.com/an-wen/p/11180076.html" target="_blank" rel="nofollow ugc noopener">https://www.cnblogs.com/an-wen/p/11180076.html</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：natuki		</title>
		<link>https://tree.moe/notebook/#comment-15</link>

		<dc:creator><![CDATA[natuki]]></dc:creator>
		<pubDate>Mon, 22 Feb 2021 16:12:00 +0000</pubDate>
		<guid isPermaLink="false">https://tree.moe/?page_id=205#comment-15</guid>

					<description><![CDATA[&lt;span class=&quot;tag&quot;&gt;Java Web&lt;/span&gt; 第一个Servlet项目：
&lt;ul&gt;
	&lt;li&gt;分享一篇容易上手的Eclipse创建Servlet项目教程文章：&lt;a href=&quot;https://www.yiibai.com/servlet/creating-servlet-in-eclipse-ide.html&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;https://www.yiibai.com/servlet/creating-servlet-in-eclipse-ide.html&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;手动为动态Web项目生成web.xml的方法：&lt;a href=&quot;https://blog.csdn.net/weiral/article/details/51366485&quot; rel=&quot;nofollow ugc&quot;&gt;https://blog.csdn.net/weiral/article/details/51366485&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;运行时出现&lt;em&gt;The server cannot be started because one or more of the ports are invalid.&lt;/em&gt;的解决方法：&lt;a href=&quot;https://blog.csdn.net/weixin_44242119/article/details/104084723&quot; rel=&quot;nofollow ugc&quot;&gt;https://blog.csdn.net/weixin_44242119/article/details/104084723&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


]]></description>
			<content:encoded><![CDATA[<p><span class="tag">Java Web</span> 第一个Servlet项目：</p>
<ul>
<li>分享一篇容易上手的Eclipse创建Servlet项目教程文章：<a href="https://www.yiibai.com/servlet/creating-servlet-in-eclipse-ide.html" target="_blank" rel="noopener nofollow ugc">https://www.yiibai.com/servlet/creating-servlet-in-eclipse-ide.html</a></li>
<li>手动为动态Web项目生成web.xml的方法：<a href="https://blog.csdn.net/weiral/article/details/51366485" rel="nofollow ugc">https://blog.csdn.net/weiral/article/details/51366485</a></li>
<li>运行时出现<em>The server cannot be started because one or more of the ports are invalid.</em>的解决方法：<a href="https://blog.csdn.net/weixin_44242119/article/details/104084723" rel="nofollow ugc">https://blog.csdn.net/weixin_44242119/article/details/104084723</a></li>
</ul>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：natuki		</title>
		<link>https://tree.moe/notebook/#comment-14</link>

		<dc:creator><![CDATA[natuki]]></dc:creator>
		<pubDate>Tue, 02 Feb 2021 15:55:39 +0000</pubDate>
		<guid isPermaLink="false">https://tree.moe/?page_id=205#comment-14</guid>

					<description><![CDATA[&lt;span class=&quot;tag&quot;&gt;CSS&lt;/span&gt; 对iconfont使用transform无效? 及解决方法。
原因：&lt;code&gt;transform&lt;/code&gt;适用于&lt;strong&gt;所有块级元素&lt;/strong&gt;及&lt;strong&gt;某些内联元素&lt;/strong&gt;，而iconfont默认就属于不适用的内联元素。
解决方法：将iconfont的&lt;code&gt;display&lt;/code&gt;属性设置为&lt;code&gt;inline-block&lt;/code&gt;或&lt;code&gt;block&lt;/code&gt;即可。

&lt;blockquote&gt;
A transformable element is an element in one of these categories:
an element whose layout is governed by the CSS box model which is either a block-level or atomic inline-level element, or whose display property computes to table-row, table-row-group, table-header-group, table-footer-group, table-cell, or table-caption [CSS21]
an element in the SVG namespace and not governed by the CSS box model which has the attributes transform, ‘patternTransform‘ or gradientTransform[SVG11].
&lt;/blockquote&gt;]]></description>
			<content:encoded><![CDATA[<p><span class="tag">CSS</span> 对iconfont使用transform无效? 及解决方法。<br />
原因：<code>transform</code>适用于<strong>所有块级元素</strong>及<strong>某些内联元素</strong>，而iconfont默认就属于不适用的内联元素。<br />
解决方法：将iconfont的<code>display</code>属性设置为<code>inline-block</code>或<code>block</code>即可。</p>
<blockquote><p>
A transformable element is an element in one of these categories:<br />
an element whose layout is governed by the CSS box model which is either a block-level or atomic inline-level element, or whose display property computes to table-row, table-row-group, table-header-group, table-footer-group, table-cell, or table-caption [CSS21]<br />
an element in the SVG namespace and not governed by the CSS box model which has the attributes transform, ‘patternTransform‘ or gradientTransform[SVG11].
</p></blockquote>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：natuki		</title>
		<link>https://tree.moe/notebook/#comment-13</link>

		<dc:creator><![CDATA[natuki]]></dc:creator>
		<pubDate>Tue, 02 Feb 2021 15:50:06 +0000</pubDate>
		<guid isPermaLink="false">https://tree.moe/?page_id=205#comment-13</guid>

					<description><![CDATA[&lt;span class=&quot;tag&quot;&gt;CSS&lt;/span&gt; CSS显示文本省略号的方法：
对于单行文本，可在设置&lt;code&gt;width&lt;/code&gt;后添加如下的CSS
&lt;pre class=&quot;hljs&quot;&gt;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&lt;/pre&gt;
对于多行文本，Webkit内核浏览器可直接使用：
&lt;pre&gt;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
&lt;/pre&gt;
其中，
&lt;ul&gt;
	&lt;li&gt;&lt;code&gt;-webkit-line-clamp&lt;/code&gt;用来限制在一个块元素显示的文本的行数。为了实现该效果，它需要组合其他的WebKit属性。&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;display: -webkit-box;&lt;/code&gt;必须结合的属性，将对象作为弹性伸缩盒子模型显示。&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;-webkit-box-orient&lt;/code&gt;必须结合的属性，设置或检索伸缩盒对象的子元素的排列方式。&lt;/li&gt;
&lt;/ul&gt;
对于Firefox浏览器，可使用这样的解决方案：
&lt;pre&gt;
p {
    height: 3.6em;
    font-size: 16px;
    color: #999;
    line-height: 1.8;
    overflow: hidden;
    position: relative;
    &amp;:after {
        content: &#039;&#039;;
        text-align: right;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 10%;
        height: 1.8em;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
    }
}
&lt;/pre&gt;
上面的代码给p元素上面添加了一个伪类。并且让这个伪类采用绝对定位，定位至文本结尾处。超过的部分可以使用&lt;code&gt;overflow:hidden&lt;/code&gt;隐藏,并且结尾部分用一个渐变效果遮盖。

可参考例子：
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://www.cnblogs.com/gopark/p/8875655.html&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;CSS实现单行、多行文本溢出显示省略号&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://www.cnblogs.com/guolizhi/p/8193628.html&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;解决firefox不支持-webkit-line-clamp属性&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;]]></description>
			<content:encoded><![CDATA[<p><span class="tag">CSS</span> CSS显示文本省略号的方法：<br />
对于单行文本，可在设置<code>width</code>后添加如下的CSS</p>
<pre class="hljs">
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
</pre>
<p>对于多行文本，Webkit内核浏览器可直接使用：</p>
<pre>
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
</pre>
<p>其中，</p>
<ul>
<li><code>-webkit-line-clamp</code>用来限制在一个块元素显示的文本的行数。为了实现该效果，它需要组合其他的WebKit属性。</li>
<li><code>display: -webkit-box;</code>必须结合的属性，将对象作为弹性伸缩盒子模型显示。</li>
<li><code>-webkit-box-orient</code>必须结合的属性，设置或检索伸缩盒对象的子元素的排列方式。</li>
</ul>
<p>对于Firefox浏览器，可使用这样的解决方案：</p>
<pre>
p {
    height: 3.6em;
    font-size: 16px;
    color: #999;
    line-height: 1.8;
    overflow: hidden;
    position: relative;
    &#038;:after {
        content: '';
        text-align: right;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 10%;
        height: 1.8em;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
    }
}
</pre>
<p>上面的代码给p元素上面添加了一个伪类。并且让这个伪类采用绝对定位，定位至文本结尾处。超过的部分可以使用<code>overflow:hidden</code>隐藏,并且结尾部分用一个渐变效果遮盖。</p>
<p>可参考例子：</p>
<ul>
<li><a href="https://www.cnblogs.com/gopark/p/8875655.html" target="_blank" rel="noopener nofollow ugc">CSS实现单行、多行文本溢出显示省略号</a></li>
<li><a href="https://www.cnblogs.com/guolizhi/p/8193628.html" target="_blank" rel="noopener nofollow ugc">解决firefox不支持-webkit-line-clamp属性</a></li>
</ul>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：natuki		</title>
		<link>https://tree.moe/notebook/#comment-12</link>

		<dc:creator><![CDATA[natuki]]></dc:creator>
		<pubDate>Sat, 23 Jan 2021 04:28:47 +0000</pubDate>
		<guid isPermaLink="false">https://tree.moe/?page_id=205#comment-12</guid>

					<description><![CDATA[&lt;span class=&quot;tag&quot;&gt;c++&lt;/span&gt; C++中Gdi+双缓冲区的实现例子

&lt;pre&gt;
RECT rc;
GetClientRect(g_hwnd,&amp;rc);
Bitmap bmp(int(rc.right),int(rc.bottom));

Graphics bmpGraphics(&amp;bmp);
bmpGraphics.SetSmoothingMode(SmoothingModeAntiAlias);

/*Drawing on bitmap*/
SolidBrush bkBrush(Color(0,0,0));
bmpGraphics.FillRectangle(&amp;bkBrush,0,0,rc.right,rc.bottom);

/*Drawing on DC*/
Graphics graphics(hdc);
/*Important! Create a CacheBitmap object for quick drawing*/
CachedBitmap cachedBmp(&amp;bmp,&amp;graphics);
graphics.DrawCachedBitmap(&amp;cachedBmp,0,0);
&lt;/pre&gt;

可参考例子：
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://blog.csdn.net/htt9931/article/details/28641039&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;GDI+ 双缓冲实现和局部刷新技术&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://www.cnblogs.com/hui277/p/3487689.html&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;Gdiplus双缓冲绘图&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;]]></description>
			<content:encoded><![CDATA[<p><span class="tag">c++</span> C++中Gdi+双缓冲区的实现例子</p>
<pre>
RECT rc;
GetClientRect(g_hwnd,&#038;rc);
Bitmap bmp(int(rc.right),int(rc.bottom));

Graphics bmpGraphics(&#038;bmp);
bmpGraphics.SetSmoothingMode(SmoothingModeAntiAlias);

/*Drawing on bitmap*/
SolidBrush bkBrush(Color(0,0,0));
bmpGraphics.FillRectangle(&#038;bkBrush,0,0,rc.right,rc.bottom);

/*Drawing on DC*/
Graphics graphics(hdc);
/*Important! Create a CacheBitmap object for quick drawing*/
CachedBitmap cachedBmp(&#038;bmp,&#038;graphics);
graphics.DrawCachedBitmap(&#038;cachedBmp,0,0);
</pre>
<p>可参考例子：</p>
<ul>
<li><a href="https://blog.csdn.net/htt9931/article/details/28641039" target="_blank" rel="noopener nofollow ugc">GDI+ 双缓冲实现和局部刷新技术</a></li>
<li><a href="https://www.cnblogs.com/hui277/p/3487689.html" target="_blank" rel="noopener nofollow ugc">Gdiplus双缓冲绘图</a></li>
</ul>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：natuki		</title>
		<link>https://tree.moe/notebook/#comment-11</link>

		<dc:creator><![CDATA[natuki]]></dc:creator>
		<pubDate>Fri, 25 Dec 2020 10:59:04 +0000</pubDate>
		<guid isPermaLink="false">https://tree.moe/?page_id=205#comment-11</guid>

					<description><![CDATA[&lt;span class=&quot;tag&quot;&gt;Qt&lt;/span&gt; 当按下Qt Creator的运行按钮后，没有出现窗口，则需要查看底部&lt;i&gt;4 编译输出&lt;/i&gt;栏的信息。
&lt;img src=&quot;/wp-content/uploads/2020/12/qmake-exit-return-code-2.png&quot; alt=&quot;Qt: qmake exit and return code 2.&quot; /&gt;
若退出代码为2，通常为文件路径中存在中文字符，重新修改路径中的名称即可解决问题。]]></description>
			<content:encoded><![CDATA[<p><span class="tag">Qt</span> 当按下Qt Creator的运行按钮后，没有出现窗口，则需要查看底部<i>4 编译输出</i>栏的信息。<br />
<img src="/wp-content/uploads/2020/12/qmake-exit-return-code-2.png" alt="Qt: qmake exit and return code 2." /><br />
若退出代码为2，通常为文件路径中存在中文字符，重新修改路径中的名称即可解决问题。</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
