<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>软件代码 &#8211; 君子不器</title>
	<atom:link href="https://www.colinjiang.com/archives/category/software/feed" rel="self" type="application/rss+xml" />
	<link>https://www.colinjiang.com</link>
	<description>Colin Jiang的博客</description>
	<lastBuildDate>Wed, 17 Jan 2024 14:34:26 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>中小学教科书PDF电子版下载教程</title>
		<link>https://www.colinjiang.com/archives/download-tutorial-for-pdf-version-of-primary-and-secondary-school-textbooks.html</link>
					<comments>https://www.colinjiang.com/archives/download-tutorial-for-pdf-version-of-primary-and-secondary-school-textbooks.html#comments</comments>
		
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Wed, 17 Jan 2024 13:59:35 +0000</pubDate>
				<category><![CDATA[软件代码]]></category>
		<guid isPermaLink="false">https://www.colinjiang.com/?p=6692</guid>

					<description><![CDATA[教育部“国家中小学智慧教育平台”于2022年3月1日正式上线试运行。包含67家出版单位的1991册电子版pdf [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">教育部“国家中小学智慧教育平台”于2022年3月1日正式上线试运行。包含67家出版单位的1991册电子版pdf高清教材，可供广大师生自主免费下载使用。</p>



<p class="wp-block-paragraph">下载步骤：</p>



<ol class="wp-block-list">
<li>访问中小学智慧教育平台：<a href="https://basic.smartedu.cn/" target="_blank" rel="noreferrer noopener">https://basic.smartedu.cn/</a></li>



<li>点击教材，选择学段、学科、版本、年级和册次，然后点击书本名称。</li>



<li>提示需要登录后查看。可以免费注册账号并登录，可以看到在线预览。</li>



<li>课本页面加载完成后点击 F12，点击开发者控制台上方的“控制台”选项，粘贴附录代码并单击回车执行，然后静待下载完成。（chrome可能会提示：Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself. This could allow attackers to steal your identity or take control of your computer. Please type ‘allow pasting’ below to allow pasting.需要先输入allow pasting）</li>
</ol>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">附：粘贴到控制台的代码：<sup class='reference' id='ref_1_1' data-content='https://paste.ubuntu.com/p/t4dfnhh2rr/' tabindex='0'><a class='reference-link' href='#ref_1'>[1]</a></sup></p>



<pre class="wp-block-code"><code>let pdfViewerURL = new URL(document.querySelector("iframe").src);
let pdfURL = pdfViewerURL.searchParams.get("file");
let headers = new Headers();

headers.append("X-ND-AUTH", JSON.parse(pdfViewerURL.searchParams.get("headers"))&#091;"X-ND-AUTH"]);

console.log("开始下载......");
fetch(pdfURL, { headers })
   .then((response) => response.blob())
   .then((result) => {
      const a = document.createElement("a");
      a.href = URL.createObjectURL(result);
      a.download = document.querySelector(".index-module_title_bnE9V")?.innerText + ".pdf";
      a.click();
   });</code></pre>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.colinjiang.com/archives/download-tutorial-for-pdf-version-of-primary-and-secondary-school-textbooks.html/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Synergy &#8211; 用一套键鼠同时控制多台电脑</title>
		<link>https://www.colinjiang.com/archives/synergy-control-multiple-computers-simultaneously-with-one-keyboard-and-mouse.html</link>
					<comments>https://www.colinjiang.com/archives/synergy-control-multiple-computers-simultaneously-with-one-keyboard-and-mouse.html#comments</comments>
		
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Wed, 17 May 2023 13:18:53 +0000</pubDate>
				<category><![CDATA[软件代码]]></category>
		<category><![CDATA[软件]]></category>
		<guid isPermaLink="false">https://www.colinjiang.com/?p=6619</guid>

					<description><![CDATA[最近收拾了一下书桌，装了个双臂的显示器支架，把Macbook air 和Windows台式机的显示器给架了起来 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">最近收拾了一下书桌，装了个双臂的显示器支架，把Macbook air 和Windows台式机的显示器给架了起来。然而MacBook放在笔记本支架上，触控板和键盘就不方便使用了。</p>



<p class="wp-block-paragraph">如果再给MacBook配一套键鼠，那么加上台式机本来的键鼠，那就要凌乱不堪了，所以想用一套键鼠给所有主机使用。有两种解决方案，一种是硬件的，一种是软件的。</p>



<p class="wp-block-paragraph">硬件的方案，入手一套支持Flow的罗技键鼠，查了一下差不多的产品，加一起也要几百块，想想也稍微有些心疼。除非赶上活动大促，也不想立刻入手。</p>



<p class="wp-block-paragraph">软件的方案，搜到了synergy这个软件，可以把同一个局域网的主机连接上。其中一台主机作为server，其他主机作为client。网上有很多版本，有的版本不支持M1的MacBook，最终找到一个完美版，两个屏幕之间滑动相当顺畅，还可以两个主机间复制粘贴，再也无须通过微信传输助手传文字了。</p>



<p class="wp-block-paragraph">下载地址：<a href="https://github.com/FLZeng/synergy-core/releases" target="_blank" rel="noreferrer noopener">https://github.com/FLZeng/synergy-core/releases</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.colinjiang.com/archives/synergy-control-multiple-computers-simultaneously-with-one-keyboard-and-mouse.html/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Disney+ 新加坡区开通R21教程</title>
		<link>https://www.colinjiang.com/archives/disneyplus-singapore-r21-opening-tutorial.html</link>
					<comments>https://www.colinjiang.com/archives/disneyplus-singapore-r21-opening-tutorial.html#respond</comments>
		
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Sun, 26 Jun 2022 02:29:37 +0000</pubDate>
				<category><![CDATA[软件代码]]></category>
		<guid isPermaLink="false">https://www.colinjiang.com/?p=6498</guid>

					<description><![CDATA[Disney+从外区转到新加坡区，默认是没有R21评级的，只有R18。虽然资源上差异不大，但还是想打开全部权限 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Disney+从外区转到新加坡区，默认是没有R21评级的，只有R18。虽然资源上差异不大，但还是想打开全部权限。网上有提到找客服开通，但具体如何与客服对话没有现成的教程，我就把我的经历分享出来，给有需要的人。</p>



<p class="wp-block-paragraph">时间2022年6月11日，下午 6:37 </p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>客服：</p><p>Hello there! Thank you for contacting Disney+ Customer Support. My name is XX XXX. How may I assist you today?</p><p>我：I want to watch the video of R21 level, please help me to open it.</p><p>客服：Understood! Not to worry, I&#8217;ll try my level best to assist you on this content rating issue here in this chat.</p><p>Before I assist you further, please allow me to gather all this information for verification purposes. </p><p>&#8211; Your Full name: </p><p>&#8211; Email address of your Disney+ account:</p><p>&#8211; Name of third-party billing service you used for Disney+: (Google play store, Apple store, etc.)</p><p>&#8211; Last payment date:</p><p>我：** **@*maill.com Apple Appstore June1，2022</p><p>客服：Thank you for your information, XXX!</p><p>Could you provide me with your public IP address?</p><p>Here is the link to generate your public IP address: <a rel="noreferrer noopener" href="https://whatsmyip.com/" target="_blank">https://whatsmyip.com/</a></p><p>Besides, I will need your current region and postal code as well!</p><p>（我原来设置的Disney+规则下代理，改成全局代理，确保whatsmyip下面也是同样的新加坡节点。提示建议大家提前设置好，这里我浪费半分钟时间）</p><p>我：XXX.XXX.XXX.XX</p><p>客服：Thank you! Could you provide me with your current region and postal code as well?</p><p>我：SINGAPORE XXX</p><p>客服：Thank you! Could you provide me with a screenshot of the result of your IP address by using the link above?</p><p>我：（截图发送文件）</p><p>File Transfer Requested</p><p>screenshot.png</p><p>596.6 kb</p><p>File Transfer Succeeded</p><p>客服：Thank you so much!</p><p>It seems like the IP address that you provided was not the same as your registration region! May I know that why you&#8217;re in a different region now?</p><p>我：I come to Singapore to work</p><p>客服：Roger that!</p><p>（客服让我稍等2分钟，核实资料）</p><p>客服：thank you</p><p>thank you for holding</p><p>I have already assisted you to resolve this content rating issue.Could you try to re-login again now?</p><p>我：OK, I will try right now.</p><p>客服：Awesome! I have to inform you that once you went back to your country or other countries, you may need to contact our Disney+ customer serive once again to change your account location back to the correct location.</p></blockquote>



<p class="wp-block-paragraph">以上就是我和客服话聊谈心开通R21的过程，不确定其他客服也是一模一样的问题，但应该大同小异。</p>



<p class="wp-block-paragraph">低价开通Disney+，可以参考我上一篇文章：<a href="https://www.colinjiang.com/archives/the-cheapest-way-to-register-disneyplus.html" target="_blank" rel="noreferrer noopener">https://www.colinjiang.com/archives/the-cheapest-way-to-register-disneyplus.html</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.colinjiang.com/archives/disneyplus-singapore-r21-opening-tutorial.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>注册Disney+ 最便宜的方法（实测）</title>
		<link>https://www.colinjiang.com/archives/the-cheapest-way-to-register-disneyplus.html</link>
					<comments>https://www.colinjiang.com/archives/the-cheapest-way-to-register-disneyplus.html#comments</comments>
		
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Wed, 01 Jun 2022 14:47:04 +0000</pubDate>
				<category><![CDATA[软件代码]]></category>
		<guid isPermaLink="false">https://www.colinjiang.com/?p=6482</guid>

					<description><![CDATA[最近想看Disney+，找到了利用土区薅羊毛的方法，于是自己从头测试一遍。以下基于iOS设备测试： 1.注册全 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">最近想看Disney+，找到了利用土区薅羊毛的方法<sup class='reference' id='ref_2_1' data-content='注册 Disney 最便宜最方便的方法：（以下信息由群友提供整合而成，仅提供方法不负责对错）https://t.me/GodlyNews1/1488' tabindex='0'><a class='reference-link' href='#ref_2'>[2]</a></sup>，于是自己从头测试一遍。以下基于iOS设备测试：</p>



<h3 class="wp-block-heading">1.注册全新Appleid</h3>



<p class="wp-block-paragraph">因为土区AppStore没有Disney+，所以选择一个AppStore有Disney+的地区，注册1个全新的Apple ID账号。<a href="https://appleid.apple.com/" target="_blank" rel="noreferrer noopener">https://appleid.apple.com/</a> （我选的新加坡）</p>



<h3 class="wp-block-heading">2.AppStore登录Appleid</h3>



<p class="wp-block-paragraph">用这个Apple ID登录iOS设备下载Disney+。也可以顺便下载一些常用App，薅羊毛备选。</p>



<h3 class="wp-block-heading">3.AppleStore换区</h3>



<p class="wp-block-paragraph">PC端打开&nbsp; Apple ID管理网页 (<a href="https://appleid.apple.com/us" target="_blank" rel="noreferrer noopener">https://appleid.apple.com/us/</a>)，把第二步的 Apple ID转成土耳其Apple ID</p>



<h3 class="wp-block-heading">4.土区AppStore充值</h3>



<p class="wp-block-paragraph">我选的<a rel="noreferrer noopener" href="https://www.mtcgame.com/" target="_blank">https://www.mtcgame.com/</a>卖的 iTunesGiftCards<sup class='reference' id='ref_3_1' data-content='关于ios土耳其区的一些教程https://hostloc.com/thread-936961-1-1.html' tabindex='0'><a class='reference-link' href='#ref_3'>[3]</a></sup>，选择iTunes Hediye Karti (TR)</p>



<p class="wp-block-paragraph">，支持银联付款。购买7张50里拉，合计350里拉，可付1年的Disney+</p>



<h3 class="wp-block-heading">5.注册新加坡Disney+账号</h3>



<p class="wp-block-paragraph">使用新加坡等包含R21/R18评级的ip 前往 <a rel="noreferrer noopener" href="https://disneyplus.com" target="_blank">disneyplus.com</a> 注册帐号，不添加付款方案。</p>



<h3 class="wp-block-heading">6.土区AppStore内购</h3>



<p class="wp-block-paragraph">挂新加坡节点 打开Disney+ App走iTunes内购。就能得到最便宜且解锁完最高评级的Disney+</p>



<p class="wp-block-paragraph">理论上以上教程也适合其他App，建议第2步尽可能多下载一些App备用。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.colinjiang.com/archives/the-cheapest-way-to-register-disneyplus.html/feed</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>OpenWrt刷机笔记</title>
		<link>https://www.colinjiang.com/archives/openwrt-firmware-flash-note.html</link>
					<comments>https://www.colinjiang.com/archives/openwrt-firmware-flash-note.html#respond</comments>
		
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Thu, 19 May 2022 10:50:23 +0000</pubDate>
				<category><![CDATA[软件代码]]></category>
		<category><![CDATA[路由器]]></category>
		<category><![CDATA[OpenWrt]]></category>
		<guid isPermaLink="false">https://www.colinjiang.com/?p=6451</guid>

					<description><![CDATA[OpenWrt故障了，重新刷了新系统，记录一下刷机的步骤，以免下次又要重新找教程。（注：以下仅适合OpenWr [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">OpenWrt故障了，重新刷了新系统，记录一下刷机的步骤，以免下次又要重新找教程。（注：以下仅适合OpenWrt升级或重装）</p>



<h3 class="wp-block-heading">1.固件下载</h3>



<p class="wp-block-paragraph">登录esir 的<a rel="noreferrer noopener" href="https://drive.google.com/drive/folders/1uRXg_krKHPrQneI3F2GNcSVRoCgkqESr" data-type="URL" data-id="https://drive.google.com/drive/folders/1uRXg_krKHPrQneI3F2GNcSVRoCgkqESr" target="_blank">网盘</a>下载固件，解压后获得img镜像文件（如：openwrt-gdq-spring[2022]-x86-64-generic-squashfs-legacy.img）</p>



<h3 class="wp-block-heading">2.固件更新</h3>



<p class="wp-block-paragraph">系统——备份/升级，下方“刷写新的固件”，浏览镜像文件，点击刷写固件。<sup class='reference' id='ref_4_1' data-content='萌新入门之如何给软路由物理机安装OpenWrt系统？https://www.youtube.com/watch?v=7TAUlkAnoIo' tabindex='0'><a class='reference-link' href='#ref_4'>[4]</a></sup></p>



<h3 class="wp-block-heading">3.系统设置</h3>



<p class="wp-block-paragraph">刷机后，默认登录地址是192.168.5.1，通过地址进入设置界面，按操作设置root密码。</p>



<p class="wp-block-paragraph">然后最重要的上网设置：</p>



<p class="wp-block-paragraph">1.网络-接口，LAN点击修改，</p>



<p class="wp-block-paragraph">基本设置：IPv4 地址修改为想要的IP地址，当然可以使用默认的192.168.5.1。&nbsp;</p>



<p class="wp-block-paragraph">物理设置：勾选eth2，eth3，保存&amp;应用。（四个接口的软路由）</p>



<p class="wp-block-paragraph">2.网络-接口，WAN点击修改，</p>



<p class="wp-block-paragraph">基本设置：协议改为PPPoe，输入宽带服务商提供的用户名和密码。</p>



<p class="wp-block-paragraph">保存&amp;应用后，就可以联网了。</p>



<p class="wp-block-paragraph">联网之后，很多东西就可以Google啦。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.colinjiang.com/archives/openwrt-firmware-flash-note.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>宝塔面板MySQL无法启动</title>
		<link>https://www.colinjiang.com/archives/bt-panel-mysql-cannot-be-started.html</link>
					<comments>https://www.colinjiang.com/archives/bt-panel-mysql-cannot-be-started.html#comments</comments>
		
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Sun, 05 Dec 2021 15:36:27 +0000</pubDate>
				<category><![CDATA[软件代码]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[VPS]]></category>
		<guid isPermaLink="false">https://www.colinjiang.com/?p=6365</guid>

					<description><![CDATA[自从今年三月，博客由虚拟主机迁移到了VPS，就一直用宝塔面板来管理。 宝塔面板可视化的操作，非常适合小白或非I [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">自从今年三月，博客由虚拟主机迁移到了VPS，就一直用宝塔面板来管理。 宝塔面板可视化的操作，非常适合小白或非IT相关的博主。但是最近数据库坏了两次，一次是10月底，登录博客显示数据库无法连接，登录宝塔面板数据库也连接不上，最后重装的数据库，丢失了2个评论；一次是今天，下午有一段时间无法访问博客，应该是VPS有点问题，晚上再试的时候变成了&#8221;建立数据库连接时出错&#8221;， 登录宝塔面板看到MySQL5.5.62是暂停状态，点击启动按钮也无效。</p>



<p class="wp-block-paragraph">Google上搜索了好几个方法也不好用，最后看了一下日志：</p>



<pre class="wp-block-code"><code>InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: for more information.
211205 22:33:34  InnoDB: Error: page 312 log sequence number 6245017
InnoDB: is in the future! Current system log sequence number 1595916.</code></pre>



<p class="wp-block-paragraph">又以这个关键词继续搜索，终于找到又给解决的办法<sup class='reference' id='ref_5_1' data-content='记一次MySQL生产环境无法启动的问题https://cloud.tencent.com/developer/article/1834830' tabindex='0'><a class='reference-link' href='#ref_5'>[5]</a></sup>：</p>



<p class="wp-block-paragraph">在软件商店-MySQL，打开配置修改，在第六行mysqld下面加入：</p>



<pre class="wp-block-code"><code>innodb_force_recovery = 6</code></pre>



<p class="wp-block-paragraph">这次再点重启按钮，就能正常启动了，博客也恢复了正常。又打开配置修改 ，把6改回了1，大功告成。</p>



<p class="wp-block-paragraph">注：</p>



<p class="wp-block-paragraph"> innodb_force_recovery 后面不同参数含义</p>



<pre class="wp-block-code"><code>1(SRV_FORCE_IGNORE_CORRUPT):忽略检查到的corrupt页。
2(SRV_FORCE_NO_BACKGROUND):阻止主线程的运行，如主线程需要执行full purge操作，会导致crash。
3(SRV_FORCE_NO_TRX_UNDO):不执行事务回滚操作。
4(SRV_FORCE_NO_IBUF_MERGE):不执行插入缓冲的合并操作。
5(SRV_FORCE_NO_UNDO_LOG_SCAN):不查看重做日志，InnoDB存储引擎会将未提交的事务视为已提交。
6(SRV_FORCE_NO_LOG_REDO):不执行前滚的操作。</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.colinjiang.com/archives/bt-panel-mysql-cannot-be-started.html/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>群晖docker中jellyfin版本更新</title>
		<link>https://www.colinjiang.com/archives/jellyfin-update-in-synology-docker.html</link>
					<comments>https://www.colinjiang.com/archives/jellyfin-update-in-synology-docker.html#comments</comments>
		
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Thu, 07 Oct 2021 15:42:21 +0000</pubDate>
				<category><![CDATA[软件代码]]></category>
		<category><![CDATA[群晖]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[jellyfin]]></category>
		<guid isPermaLink="false">https://www.colinjiang.com/?p=6292</guid>

					<description><![CDATA[更新步骤 1.双击docker图标，点击容器，找到jellyfin，停止运行。 2.点击编辑，记录所有的设置。 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">更新步骤</h3>



<p class="wp-block-paragraph">1.双击docker图标，点击容器，找到jellyfin，停止运行。</p>



<p class="wp-block-paragraph">2.点击编辑，记录所有的设置。点击操作——删除。</p>



<p class="wp-block-paragraph">3.进入注册表，搜索jellyfin。找到jellyfin/jellyfin，选择latest，下载。</p>



<p class="wp-block-paragraph">4.按照刚才记下的设置内容，进行配置。</p>



<h3 class="wp-block-heading">查询版本号：</h3>



<p class="wp-block-paragraph">当前jellyfin服务器版本号查询：进入IP:8096，root账号登陆。Admin-Dashboard-Server-Version</p>



<p class="wp-block-paragraph">Jellyfin最新版本查询：<a href="https://github.com/jellyfin/jellyfin/releases" target="_blank" rel="noreferrer noopener">https://github.com/jellyfin/jellyfin/releases</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.colinjiang.com/archives/jellyfin-update-in-synology-docker.html/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>虚拟主机换成了VPS</title>
		<link>https://www.colinjiang.com/archives/virtual-host-replaced-by-vps.html</link>
					<comments>https://www.colinjiang.com/archives/virtual-host-replaced-by-vps.html#comments</comments>
		
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Sat, 06 Mar 2021 13:17:26 +0000</pubDate>
				<category><![CDATA[软件代码]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[虚拟主机]]></category>
		<guid isPermaLink="false">https://www.colinjiang.com/?p=5910</guid>

					<description><![CDATA[从2011年开始建立本博客，一直用的虚拟主机。去年在更换虚拟主机的时候，就曾经想换个VPS。但是担心怕弄不明白 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">从2011年开始建立本博客，一直用的虚拟主机。去年在更换虚拟主机的时候，就曾经想换个VPS。但是担心怕弄不明白，最终也没用。后来在撸谷歌云的时候，建立过一个typecho导航页，发现VPS配上宝塔系统还是非常容易上手的。于是在今年虚拟主机即将要续费的时候，决定换个VPS，除了建站，还能搭建frp以及出国什么的，自由度较高。</p>



<p class="wp-block-paragraph">看过很多博友aff过篱落主机，看了一下它最基础的VPS产品，觉得价格比较便宜，299/年，适合练手：</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>1G内存</p><p>1核心</p><p>50G磁盘</p><p>1M带宽</p><p>200G流量</p><p>1个IPv4 地址</p><p>香港多线BGP机房</p></blockquote>



<p class="wp-block-paragraph">默认系统是Centos。用 PuTTY<sup class='reference' id='ref_6_1' data-content='软件下载https://www.colinjiang.com/software ' tabindex='0'><a class='reference-link' href='#ref_6'>[6]</a></sup> SSH登录了VPS，安装了宝塔系统，然后就都是可视化操作了。</p>



<p class="wp-block-paragraph">Centos安装脚本</p>



<p class="wp-block-paragraph">安装yum-fastestmirror插件：<sup class='reference' id='ref_7_1' data-content='安装宝塔面板和配置服务器LNMP环境https://www.wpdaxue.com/install-baota-panel-and-lnmp.html' tabindex='0'><a class='reference-link' href='#ref_7'>[7]</a></sup></p>



<pre class="wp-block-code"><code>yum -y install yum-fastestmirror</code></pre>



<p class="wp-block-paragraph">更新系统内核以及rpm包：</p>



<pre class="wp-block-code"><code>yum -y update
</code></pre>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">执行宝塔安装命令：<sup class='reference' id='ref_8_1' data-content='宝塔Linux面板安装教程 &#8211; 2021年1月20日更新 &#8211; 7.5.1正式版https://www.bt.cn/bbs/thread-19376-1-1.html' tabindex='0'><a class='reference-link' href='#ref_8'>[8]</a></sup></p>



<pre class="wp-block-code"><code>yum install -y wget &amp;&amp; wget -O install.sh http://download.bt.cn/install/install_6.0.sh &amp;&amp; sh install.sh</code></pre>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">宝塔面板推荐安装两种套件：LNMP（推荐）和LAMP。记得虚拟主机的时候应该都是Apache服务器，但这次按宝塔推荐选的Nginx服务器。默认PHP版本是5.4，如果用WordPress要升级为7.4+</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>WordPress系统要求<sup class='reference' id='ref_9_1' data-content='https://cn.wordpress.org/download/' tabindex='0'><a class='reference-link' href='#ref_9'>[9]</a></sup></p><p>我们推荐服务器运行PHP 7.4或更高版本，及MySQL 5.6或MariaDB 10.1或更高版本。我们也推荐Apache或Nginx作为运行WordPress的可靠选项，但这两者都不是必须的。</p></blockquote>



<p class="wp-block-paragraph">宝塔建站也非常简单，按照文字提示操作即可。重新下载并安装了最新的WordPress，原网站进行了全站的备份，网站相关的文件通过WinSCP上传到了VPS的/www/wwwroot/www.colinjiang.com目录下。用原虚拟主机的phpMyAdmin把原数据库文件导出，又用宝塔面板的phpMyAdmin把数据库文件导入。域名重新绑定到新的IP上。博客就迁移完毕了。</p>



<p class="wp-block-paragraph">中间还有一个小插曲，由于前后两个数据库名称不一致，导致导入失败。先想着把原来数据库改成新的数据库名，结果改完原来网站访问不了了。提示“建立数据库连接时出错”。即使再把数据库名改回去也无济于事了。最终是把新的VPS上的数据库重新建立了一个，数据库名、用户名和密码改成和原来一模一样，导入成功。</p>



<p class="wp-block-paragraph">总之，有了宝塔的加持，VPS使用难度并不比虚拟主机高。以后FRP、出国也可以自己架设了。未来可能还有很多未知问题，边走边看边解决吧。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.colinjiang.com/archives/virtual-host-replaced-by-vps.html/feed</wfw:commentRss>
			<slash:comments>20</slash:comments>
		
		
			</item>
		<item>
		<title>我也谈谈Clubhouse</title>
		<link>https://www.colinjiang.com/archives/talk-about-clubhouse.html</link>
					<comments>https://www.colinjiang.com/archives/talk-about-clubhouse.html#comments</comments>
		
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Tue, 09 Feb 2021 10:13:10 +0000</pubDate>
				<category><![CDATA[软件代码]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[APP]]></category>
		<guid isPermaLink="false">https://www.colinjiang.com/?p=5740</guid>

					<description><![CDATA[1月31日，马斯克在推特上预告在Clubhouse进行在线分享，将Clubhouse推向了热门APP。 On  [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">1月31日，马斯克在推特上预告在Clubhouse进行在线分享，将Clubhouse推向了热门APP。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>On Clubhouse tonight at 10pm LA time12:56PM.</p><p>Jan31,2021 @Elon Musk</p></blockquote>



<p class="wp-block-paragraph">推特上也被Clubhouse刷屏了，受邀注册Clubhouse的推友纷纷晒自己的截图和感受，甚至有了段子：</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>还没玩上Clubhouse的，无外乎两种人</p><p>1.安卓用户</p><p>2.没有朋友的苹果用户</p></blockquote>



<p class="wp-block-paragraph">闲鱼上也有了Clubhouse的邀请码出售，价格不菲。我虽然属于没有朋友的苹果用户，也是互联网的尝鲜者，但是也不会支持这种“黄牛”行为。在Clubhouse用手机号reserve了id，等待受邀或开放注册。</p>



<p class="wp-block-paragraph">昨晚一个面基过的推友邀请了我，立刻登录了Clubhouse，APP要了通讯录权限后，要了推特授权，推荐了关注列表，正式进入了主页面，就在这期间正式见证了被墙的过程。APP突然卡住了，重新再打开APP后，再也无法接受手机验证码。原本以为我自己的问题，后来才知道所有的+86手机号都被屏蔽了。我的号刚诞生，就死亡了。没有绑定邮箱，又接收不到验证码，所以这个号也就这样永远废掉了。</p>



<p class="wp-block-paragraph">后来又一个推友用GV号邀请了我，我终于开通了Clubhouse。因为之前网上说它和YY类似，真正打开来看发现Clubhouse的界面很清爽。每个人都可以创建房间，类型可以是公开的，也可以是社交和私密的。在房间中，由嘉宾发言，房间里的其他听众旁听，听众如果想要发言，可以举手申请成为嘉宾，之后提问或发言。</p>



<p class="wp-block-paragraph">随便听了几个中文聊天室：一个大佬们讲小米、智能家居等行业前沿的，一个为Clubhouse默哀的，一个两岸三地的，一个讲婚姻生活的，一个胡锡进后援团……感觉就像一群人闲聊，也没有什么太高质量的观点，但是秩序还是相对较好的，毕竟iOS+非中国大陆商店+邀请制+墙，还是有一点门槛的。</p>



<p class="wp-block-paragraph">声音比文字更有感情，尤其是实时的对话让双方的距离更进一步。这是推特无法做到的。讲后即焚也不会造成心理压力，外向的人可以作为嘉宾主动去表达自己的观点，内向的人可以作为观众旁听。没有文字聊天内容可以放松自己的双眼，可以开车或做事的时候听。这是它的优点。</p>



<p class="wp-block-paragraph">有明星、KOL或热门话题，会有较多人参与比较热闹，而大多数聊天室则是“长尾”。参与者的素质良莠不齐，有人可能破坏纪律，影响别人听感；会占用过长连续的时间，热门聊天室几乎没有结束，Kill time要比刷抖音、刷头条还要厉害。总体而言谈话质量不太高，有人说听Clubhouse不如听podcast，听podcast不如看博客，看博客不如看本书。这是它的缺点。</p>



<p class="wp-block-paragraph">Clubhouse是一个创新的社交平台，让声音聊天无国界无距离。Clubhouse应该会让华人之间加强彼此的了解，毕竟推特需要fo，只能看见自己喜欢的人，而聊天室都能被动听到其他的发言和观点。Clubhouse上也会就热点问题进行讨论，微博热搜榜可能都会出现对应的room，大家一起吐槽。Clubhouse也可能成为明星和粉丝互动的平台，能听到idol的声音和实时互动，粉丝们应该都会集体高潮。但Clubhouse也只是一个平台，如果出现极端政治煽动，或者成为色情的聚集地，那也是反应了人性的本身。</p>



<p class="wp-block-paragraph">中国版的Clubhouse不知花落谁家，鹅厂、字节跳动、阿里等等都有可能，APP实现比较简单，但是中国特色——“敏感内容”审核是它能够生存的基础。而敏感词不断会演化为新的敏感词，这就要考验各大互联网公司的技术能力了。继文字审查、图片审查、视频审查之后，实时语音审查技术我国又会成为世界第一，打败硅谷。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.colinjiang.com/archives/talk-about-clubhouse.html/feed</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress全站强制开启https</title>
		<link>https://www.colinjiang.com/archives/forced-opening-of-https-in-wordpress.html</link>
					<comments>https://www.colinjiang.com/archives/forced-opening-of-https-in-wordpress.html#comments</comments>
		
		<dc:creator><![CDATA[Colin]]></dc:creator>
		<pubDate>Mon, 25 Jan 2021 08:58:19 +0000</pubDate>
				<category><![CDATA[软件代码]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[code]]></category>
		<guid isPermaLink="false">https://www.colinjiang.com/?p=5586</guid>

					<description><![CDATA[我的博客是2019年2月13日，用 Let’s Encrypt 免费证书配置的https。后来更新又用了Zer [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">我的博客是2019年2月13日，用 Let’s Encrypt 免费证书配置的https。后来更新又用了ZeroSSL，一直到现在。</p>



<p class="wp-block-paragraph">当初配置好之后，所有的博客链接都是https开头了，但是用http开头的网址也能进去。在网上搜到强制跳转https的代码， 修改了.htaccess文件。似乎好用了，输入主页网址会自动跳转为https的网址，页面的网址也会自动跳转为https的网址。但是，单个文章的网址如以http://www.colinjiang.com/archives/***.html的格式输入，还能正常打开，并不会跳转到https网址！</p>



<p class="wp-block-paragraph">都是吃了不懂技术的亏，这几年一直就这样。在网上搜到的代码千篇一律，也不解决问题。在百度统计的入口页面中，还是看到很多http的网址，感觉强迫症都要犯了。</p>



<p class="wp-block-paragraph">终于在今天找到一段代码，复制到.htaccess，感觉好用了！记录如下<sup class='reference' id='ref_10_1' data-content='Wordpress全站启用https详细教程：https://jingyan.baidu.com/article/455a9950455787a1662778d5.html' tabindex='0'><a class='reference-link' href='#ref_10'>[10]</a></sup>：</p>



<pre class="wp-block-code"><code>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteCond %{HTTPS} !^on$ &#091;NC]
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} &#091;L,R=301]
RewriteBase /
RewriteRule ^index\.php$ - &#091;L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php &#091;L]
&lt;/IfModule&gt;</code></pre>



<p class="wp-block-paragraph">修改.htaccess文件，我用的<em>WP Htaccess Editor</em>插件<sup class='reference' id='ref_11_1' data-content='Htaccess File Editor – Safely Edit Htaccess File:https://wordpress.org/plugins/wp-htaccess-editor/' tabindex='0'><a class='reference-link' href='#ref_11'>[11]</a></sup>，就不用登录CPanel后台了。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.colinjiang.com/archives/forced-opening-of-https-in-wordpress.html/feed</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>
