<?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>SAE相关文章列表 | 皇家元林</title>
	<atom:link href="https://hjyl.org/tags/sae/feed/" rel="self" type="application/rss+xml" />
	<link>https://hjyl.org</link>
	<description>刘元林的个人博客</description>
	<lastBuildDate>Sat, 06 Jun 2015 14:33:49 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://img.hjyl.org/uploads/2019/10/cropped-about-me-32x32.png</url>
	<title>SAE相关文章列表 | 皇家元林</title>
	<link>https://hjyl.org</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>从SAE转到阿里云</title>
		<link>https://hjyl.org/from-sae-to-aliyun/</link>
					<comments>https://hjyl.org/from-sae-to-aliyun/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Sat, 06 Jun 2015 14:33:49 +0000</pubDate>
				<category><![CDATA[生活点滴]]></category>
		<category><![CDATA[google公共库]]></category>
		<category><![CDATA[google字体库]]></category>
		<category><![CDATA[SAE]]></category>
		<category><![CDATA[云豆]]></category>
		<category><![CDATA[阿里云]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=3093</guid>

					<description><![CDATA[坑爹的SAE，逼着我搬出来。转移到我现有的阿里云ECS。折腾。。。]]></description>
										<content:encoded><![CDATA[<p>不得不说新浪云，百度云，京东云，腾讯云，盛大云。。。等等，都是个坑。之前打着免费的旗号，到处招摇撞骗，寻找小白鼠，现在成熟了，就开始收费了，还特么高。<br />
先来看两招照片</p>
<figure id="attachment_3094" aria-describedby="caption-attachment-3094" style="width: 560px" class="wp-caption alignnone"><a href="https://img.hjyl.org/uploads/2015/06/2015-06-05T16-16-02.025Z.png"><img fetchpriority="high" decoding="async" class="size-large wp-image-3094" src="https://img.hjyl.org/uploads/2015/06/2015-06-05T16-16-02.025Z-1024x531.png" alt="2015-06-05T16-16-02.025Z" width="560" height="290" title="2015 06 05T16 16 02.025Z 1024x531.png" /></a><figcaption id="caption-attachment-3094" class="wp-caption-text">2015-06-05T16-16-02.025Z</figcaption></figure>
<figure id="attachment_3095" aria-describedby="caption-attachment-3095" style="width: 560px" class="wp-caption alignnone"><a href="https://img.hjyl.org/uploads/2015/06/2015-06-06T14-11-27.687Z.png"><img decoding="async" class="size-large wp-image-3095" src="https://img.hjyl.org/uploads/2015/06/2015-06-06T14-11-27.687Z-1024x517.png" alt="2015-06-06T14-11-27.687Z" width="560" height="283" title="2015 06 06T14 11 27.687Z 1024x517.png" /></a><figcaption id="caption-attachment-3095" class="wp-caption-text">2015-06-06T14-11-27.687Z</figcaption></figure>
<p>从标题上看，第一个是6月5日，第二个是6月6日，他说我消耗11.28个云豆，但我近30个云豆没了。本来可以使用2000年的，现在只有6天，甚至可能下一秒就被停了，原因是欠费。比中国移动还坑。好吧，惹不起，我躲吧。还好我这个阿里云的配置还能扛得住三个站。转移已经轻车熟路了，三下五去二就搞定了。</p>
<p>本想用WordPress的多站功能，但由于个人洁癖的问题，不喜欢一个数据库里有两个网站的表，如果以后再分的话，不太好搞。各独立站点好管理。</p>
<p>待两个站iyl.me和hilau.com转移成功之后，发觉hjyl.org即本站速度有影响，不知道是原因造成的。但是那两个站是非常正常的，我觉得应该不是ECS的问题，应该是我这个外链的问题。果然，是google字体库和公共库的问题，之前用360的替代，一直相安无事。突然这一下子，把我搞蒙了。我仔细看了useso-take-over-google这个插件的代码，发现这段：</p>
<pre>
	if (!is_ssl()) {
		$str = str_ireplace('//fonts.googleapis.com/', '//fonts.useso.com/', $str);
		$str = str_ireplace('//ajax.googleapis.com/', '//ajax.useso.com/', $str);
	} else {
		$str = str_ireplace('//fonts.googleapis.com/', '//fonts.lug.ustc.edu.cn/', $str);
		$str = str_ireplace('//ajax.googleapis.com/', '//ajax.lug.ustc.edu.cn/', $str);
	}
</pre>
<p>由于本站在鄙人强迫症的影响下，加了SSL证书，所以https站下的外链默认都是https链接，所以问题就来了。lug.ustc.edu.cn这个站点挂了。什么原因，不知道。于是修改了下这个插件，这样：</p>
<pre>
	if (!is_ssl()) {
		$str = str_ireplace('//fonts.googleapis.com/', '//fonts.useso.com/', $str);
		$str = str_ireplace('//ajax.googleapis.com/', '//ajax.useso.com/', $str);
	} else {
		$str = str_ireplace('//fonts.googleapis.com/', 'http://fonts.useso.com/', $str);
		$str = str_ireplace('//ajax.googleapis.com/', 'http://ajax.useso.com/', $str);
	}
</pre>
<p>我喜欢看浏览器上是一把锁，不喜欢它变成感叹号，甚至叉叉。一直没明白，连360都能搞出这个替代google服务的库，百度，新浪，腾讯，盛大，阿里云，你们咋就不能捅出一个来呢？</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="从SAE转到阿里云" href="https://hjyl.org/from-sae-to-aliyun/">从SAE转到阿里云</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/from-sae-to-aliyun/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>
		
		
			</item>
		<item>
		<title>将“刘元林”转入SAE</title>
		<link>https://hjyl.org/iyl-me-sae/</link>
					<comments>https://hjyl.org/iyl-me-sae/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Thu, 04 Jun 2015 14:20:19 +0000</pubDate>
				<category><![CDATA[生活点滴]]></category>
		<category><![CDATA[cnblogs2wp]]></category>
		<category><![CDATA[SAE]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[刘元林]]></category>
		<category><![CDATA[点点网]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=3087</guid>

					<description><![CDATA[将我的微博iyl.me——刘元林转入WordPress FOR SAE。]]></description>
										<content:encoded><![CDATA[<p>在写这篇文章的时候，SAE已然搭建好，并正在转换点点网的数据。</p>
<p>何时起，SAE进入全民免费时代，当然不是真正的免费，是有限制的，懂点皮毛的我说不上来，就是觉得权限限制太多。不过自己搭建的平台总比点点好。点点现在除了免费无广告之外其他一点进步也没有，好像在等他慢慢老死似的。我有两个站在点点网上，一是我的微博iyl.me——刘元林，二是我的资源网hilau.com——你好！刘。原先用点点app更新并同步各大主流微博还是很方便的，但是现在不行了，又没人管。而搜索功能极差，一搜就502，504错误。所以想搬出来想了很久，但是现在的空间又死贵，有一个阿里云已经很奢侈了，SAE，BAE都是很不错的免费产品，可目的很不单纯，对于白菜的我，不知道怎么玩。或许老了，学习对我这个老人家也学不动了，甚至烦躁。这两天休息，实在闲的荒，闲的玩起了LOL，从不玩游戏的我，现在开始堕落了。好像现在的人慢慢的学好，而我在慢慢的学坏。。。下午看了大鹏的《屌丝男士4》，以及他的嘚吧嘚，虽然他的无下限无厘头给我们带来了不少呕吐，羞耻，厌恶还有欢笑，但又不知道从哪里感觉到他的正能量，没错，这种从无下限恶搞带来的正能量。所以我觉得我应该做点什么。。</p>
<p>是的，所以才有这篇文章。</p>
<p>在SAE上安装官方WordPress还算方便，只需要修改几个文件：wp-config.php，wp-includes/functions.php，wp-admin/includes/file.php，wp-includes/class-wp-image-editor-gd.php，具体就不在这里多说了，我整了一份文件，详情见文章底部附件吧。并且突然用SVN更新文件觉得非常方便，奇怪，以前怎么不会用呢？</p>
<p>然后转入把点点网的文章转入SAE。WordPress有一大师开发的插件，非常牛逼，叫cnblogs2wp，他支持博客园、OSChina、CSDN、点点、Lofter，还可以远程下载附件，新建分类和导入到用户下，功能齐全，我这500篇文章都导一个小时了，还在导，确实太难为它了。不过评论貌似没有了，有点遗憾。不过对我这个倒没所谓。</p>
<p>等有空把hilau.com也搬出来！</p>
<p><a href="https://hjyl.org/go/aHR0cDovL3Bhbi5iYWlkdS5jb20vcy8xZ2RtekQ2Nw==" rel="nofollow" target="_blank">附件下载：点点转入WordPress FOR SAE教程和插件</a></p>
<p>伪静态config.yaml代码：</p>
<pre>
handle:

- rewrite: if(!is_dir() && !is_file()) goto "index.php?%{QUERY_STRING}"
 </pre>
<p>P.s.hilau.com花了一小时也搬出点点网，投入WordPress怀抱。</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="将“刘元林”转入SAE" href="https://hjyl.org/iyl-me-sae/">将“刘元林”转入SAE</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/iyl-me-sae/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
