<?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>Nightbook.cc</title>
	<atom:link href="http://nightbook.cc/feed" rel="self" type="application/rss+xml" />
	<link>http://nightbook.cc</link>
	<description>一念一念、念念留心</description>
	<lastBuildDate>Sat, 28 Aug 2010 15:33:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>谷歌GAE搭建推特API支持OAUTH</title>
		<link>http://nightbook.cc/48</link>
		<comments>http://nightbook.cc/48#comments</comments>
		<pubDate>Fri, 27 Aug 2010 03:15:42 +0000</pubDate>
		<dc:creator>夜书</dc:creator>
				<category><![CDATA[推倒墙]]></category>
		<category><![CDATA[OAUTH API twitter]]></category>

		<guid isPermaLink="false">http://nightbook.cc/?p=48</guid>
		<description><![CDATA[参考8E空间 玩twitter的时候是不是很羡慕别人可以自定义的API名称呢？跟着本教程做完，你也可以拥有，而且是全免费的哦！ 一、到twitter官网创建一个app获得APIkey 1.使用你知道的穿墙的方式上到twitter官网，网页的底部有“API”链接，点击进入。 2.点击“register an app”就到了创建新应用的页面“Register an Application”要填写的内容如下： Application Name:&#60;这里填写的内容将来会作为“via XX  ”来显示，自己便填，英文汉字符号都可以&#62; Description:&#60;描述，随便谢谢就行，会几个英文单词写几个就行&#62; Application Website:&#60;这里填写的地址是“via XX”的链接，你可以填http://XXX.appspot.com&#62; Organization:&#60;随便写，不重要，我用字母写的&#62; Application Type:&#60;选择Browser即可&#62; Callback URL:&#60;咨询GTAP作者得到消息是这个地址随便写，如果随便让你为难的话，你写成http://XXX.appspot.com/oauth/verify吧&#62; Default Access type:&#60;这里选择Read &#38; Write即可&#62; Application Icon:&#60;别人看不到，不上传也行&#62; 填写好后提交，你会看到Consumer key和Consumer secret这两项，网页先别关了，一会复制过来直接用。 二、在Google app engine上创建新应用并修改并上传GTAP程序 1.在Google app engine上创建新应用不会的话可以看看“GAE搭建翻墙这边文章”里面的创建新应用的详细步骤。 2.GTAP（下载地址我下的是0.4版本的）修改GTAP程序的app.yaml文件，有三处需要修改 把第 1 行的 “application: ” 后面部分改成刚才在 GAE 上的新应用ID。 第 12 行的 “secure: always”这一行直接删掉。 打开main.py，把在 Twitter 上建立 APP [...]]]></description>
			<content:encoded><![CDATA[<p>参考<a href="http://www.win8e.com" target="_blank">8E空间</a></p>
<p>玩twitter的时候是不是很羡慕别人可以自定义的API名称呢？跟着本教程做完，你也可以拥有，而且是全免费的哦！</p>
<h3>一、到twitter官网创建一个app获得APIkey</h3>
<p>1.使用你知道的穿墙的方式上到twitter官网，网页的底部有“API”链接，<a href="http://dev.twitter.com/apps" target="_blank">点击进入</a>。</p>
<p>2.点击“<a href="http://dev.twitter.com/apps/new" target="_blank">register an app</a>”就到了创建新应用的页面“Register an Application”要填写的内容如下：</p>
<p>Application Name:&lt;这里填写的内容将来会作为“via XX  ”来显示，自己便填，英文汉字符号都可以&gt;</p>
<p>Description:&lt;描述，随便谢谢就行，会几个英文单词写几个就行&gt;</p>
<p>Application Website:&lt;这里填写的地址是“via XX”的链接，你可以填http://XXX.appspot.com&gt;</p>
<p>Organization:&lt;随便写，不重要，我用字母写的&gt;</p>
<p>Application Type:&lt;选择Browser即可&gt;</p>
<p>Callback URL:&lt;咨询GTAP作者得到消息是这个地址随便写，如果随便让你为难的话，你写成http://XXX.appspot.com/oauth/verify吧&gt;</p>
<p>Default Access type:&lt;这里选择Read &amp; Write即可&gt;</p>
<p>Application Icon:&lt;别人看不到，不上传也行&gt;</p>
<p>填写好后提交，你会看到<strong>Consumer key</strong>和<strong>Consumer secret</strong>这两项，网页先别关了，一会复制过来直接用。</p>
<p><a rel="attachment wp-att-49" href="http://nightbook.cc/48/1-5"><img class="aligncenter size-full wp-image-49" title="1" src="http://nightbook.cc/wp-content/uploads/2010/08/15.jpg" alt="" width="577" height="611" /></a></p>
<h3>二、在Google app engine上创建新应用并修改并上传GTAP程序</h3>
<p>1.在Google app engine上创建新应用不会的话可以看看“<a href="http://nightbook.cc/25" target="_blank">GAE搭建翻墙这边文章</a>”里面的创建新应用的详细步骤。</p>
<p>2.GTAP（<a href="http://code.google.com/p/gtap/downloads/list" target="_blank">下载地址</a>我下的是0.4版本的）修改GTAP程序的app.yaml文件，有三处需要修改</p>
<ul>
<li>把第 1 行的 “application: ” 后面部分改成刚才在 GAE 上的新应用ID。</li>
<li>第 12 行的 “secure: always”这一行直接删掉。</li>
<li>打开main.py，把在 Twitter 上建立 APP 获得的 CONSUMER_KEY 跟 CONSUMER_SECRET 替换第 14、15 行的对应内容。</li>
</ul>
<p>3.上传方式，参考<a href="http://nightbook.cc/25" target="_blank">上篇文章</a>，一样的，很简单。</p>
<p><span style="line-height: 27px; font-size: 18px;">三、通过OAUTH验证，创建API成功</span></p>
<p>打开你的GAE地址http://xxx.appspot.com，看到如下图了吧：</p>
<p><a rel="attachment wp-att-50" href="http://nightbook.cc/48/1-6"><img class="aligncenter size-full wp-image-50" title="1" src="http://nightbook.cc/wp-content/uploads/2010/08/16.jpg" alt="" width="468" height="175" /></a></p>
<p>注意：这时候要翻墙才能通过aouth验证！红色的英语的意思是你的API地址是“http://xxx.appspot.com/”后面的“/”不要忘记了。</p>
<p>做好了翻墙的准备后点击“sign in with twitter” 看到了下图，点击Allow了，验证twitter账户的API.</p>
<p><a rel="attachment wp-att-51" href="http://nightbook.cc/48/1-7"><img class="aligncenter size-full wp-image-51" title="1" src="http://nightbook.cc/wp-content/uploads/2010/08/17.jpg" alt="" width="557" height="327" /></a>当你点击“Allow”后会跳转到一个修改密码的页面，<strong>只有当你把密码修改为和你的Twitter一样的密码时才能在tweetdeck和mixero这些客户端正常使用API。</strong></p>
<p class="akst_link"><a href="http://nightbook.cc/?p=48&amp;akst_action=share-this"  title="可以通过E-mail分享, 用del.icio.us、Google等网络书签收藏！" id="akst_link_48" class="akst_share_link" rel="nofollow">收藏、分享这篇文章!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://nightbook.cc/48/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GAE平台使用WallProxy搭建个人代理服务器翻墙教程</title>
		<link>http://nightbook.cc/25</link>
		<comments>http://nightbook.cc/25#comments</comments>
		<pubDate>Tue, 17 Aug 2010 12:54:19 +0000</pubDate>
		<dc:creator>夜书</dc:creator>
				<category><![CDATA[推倒墙]]></category>
		<category><![CDATA[WallProxy GAE]]></category>

		<guid isPermaLink="false">http://nightbook.cc/?p=25</guid>
		<description><![CDATA[本文参考博客8亿空间。 一、GAE就是Google App Engine，首先你要有个谷歌的邮箱（应该不用说咋申请了吧？） 二、进入谷歌Google App Engine页面申请一个自己的GAE，步骤如下 1、用 Google 账户 登录 Google App Engine 后，点击 Create an Application 创建一个应用程序。 2、提示输入手机号码，输入手机号的格式是“+86手机号码”不收费的，收到一个验证码后填 入即可开通，没有这一步验证无法开通。 3、然后会进入创建程序的详细信息界面，这里需要填写两个内容，第一个填写的是ID（最好自己比较熟悉的），形式上相当于二级域名的前面那部分，最后得到的是yourname.appspot.com这样的域名。填写了点Check Availability验证下看是否被占用。然后填写个应用名称，建议用英文或数字随便填。然后勾选同意，点击“save”保存。 自己建立的谷歌GAE就完成了，窗口可以关，可以不关。 三、下载并安装 Python ，我们要下载python2.7版本的，3.0以上版本似乎对Google App Engine SKD支持不是很好，Google App Engine SKD（下载windows版本的）还有WallProxy（下载win-rar版本的就可以了）。 说明：1、先安装python,安装路径就是C盘的根目录，安装路径不用修改。 2、安装Google App Engine SKD,可以装在D盘program files目录里，安装时把这个安装路径&#8221;X:\Program Files\Google\google_appengine\&#8221;X改为D就可以了。（WIN7用户也可以安装到D盘） 3、我们可以看到wallproxy文件夹里有四个文件，修改gea_server文件夹里的app.yaml这个文件，把第一行的application后面的字母修改为你刚才申请的ID（有空格的），就是那个二级域名的前面那部分。注意要用notepad++等专门的代码编辑软件打开，不要用写字板，记事本，修改好后记得保存。 4、把gae_server这个文件夹拷贝到X:\Program Files\Google\google_appengine这个目录下面。 四、回到桌面上，有个飞机引擎的图标，双击，如果出现LOG错误，或者环境错误之类的信息。 点编辑edit然后选择preferences，点select选择Python的环境，还有APP engine的目录，如下图 五、现在应该可以正常启动了，点“File”然后“Add Existing Application”选择路径添加新的应用。应用就是上一步中gae_server那个文件夹，添加成功后点击你刚添加的应用的那一横行，“Deploy”这个 按钮会变绿。这个就是上传的按钮，点击后输入Gmail和密码就上传了。 上传成功后，你在http://code.google.com/intl/zh-CN/这里登陆自己的谷歌账号，可以看到自己的APP是否在工作。 六、修改客户端 打开local文件夹，打开wallproxy程序，点设置修改GAE服务端为自己架设的APP。 七、下载Firefox浏览器最好下载国际版的吧，修改代理方法：“工具”–“选项”–“高级”–“网络”–“设置”–“手动配置代理”设置为127.0.0.1，端口8086。 收藏、分享这篇文章!]]></description>
			<content:encoded><![CDATA[<p>本文参考博客<a href="http://www.win8e.com" target="_blank">8亿空间</a>。</p>
<p><strong>一、GAE就是</strong><a href="http://code.google.com/intl/zh-CN/appengine/" target="_blank"><strong>Google App Engine</strong></a><strong>，首先你要有个谷歌的邮箱（应该不用说咋申请了吧？）</strong></p>
<p><strong>二、进入谷歌</strong><a href="http://code.google.com/intl/zh-CN/appengine/" target="_blank"><strong>Google App Engine</strong></a><strong>页面申请一个自己的GAE，步骤如下</strong></p>
<p>1、用 Google 账户 登录 Google App Engine 后，点击 <strong>Create an Application</strong> 创建一个应用程序。</p>
<p><a rel="attachment wp-att-29" href="http://nightbook.cc/25/attachment/1"><img class="alignleft size-full wp-image-29" title="1" src="http://nightbook.cc/wp-content/uploads/2010/08/11.jpg" alt="" width="533" height="194" /></a></p>
<p>2、提示输入手机号码，输入手机号的格式是“+86手机号码”不收费的，收到一个验证码后填</p>
<p>入即可开通，没有这一步验证无法开通。</p>
<p><a rel="attachment wp-att-30" href="http://nightbook.cc/25/attachment/2"><img class="alignleft size-full wp-image-30" title="2" src="http://nightbook.cc/wp-content/uploads/2010/08/2.jpg" alt="" width="525" height="283" /></a></p>
<p>3、然后会进入创建程序的详细信息界面，这里需要填写两个内容，第一个填写的是ID（最好自己比较熟悉的），形式上相当于二级域名的前面那部分，最后得到的是yourname.appspot.com这样的域名。填写了点Check Availability验证下看是否被占用。然后填写个应用名称，建议用英文或数字随便填。然后勾选同意，点击“save”保存。</p>
<p><a rel="attachment wp-att-35" href="http://nightbook.cc/25/attachment/3"><img class="alignleft size-full wp-image-35" title="3" src="http://nightbook.cc/wp-content/uploads/2010/08/3.jpg" alt="" width="551" height="498" /></a></p>
<p>自己建立的谷歌GAE就完成了，窗口可以关，可以不关。</p>
<p><strong>三、下载并安装 <a href="http://www.onlinedown.net/soft/103527.htm#down" target="_blank">Python </a>，我们要下载python2.7版本的，3.0以上版本似乎对Google App Engine SKD支持不是很好，<strong><a href="http://code.google.com/intl/zh-CN/appengine/downloads.html" target="_blank">Google App Engine SKD</a>（下载windows版本的）</strong>还有<a href="http://code.google.com/p/wallproxy/downloads/list " target="_blank">WallProxy</a>（下载win-rar版本的就可以了）。</strong></p>
<p>说明：1、先安装python,安装路径就是C盘的根目录，安装路径不用修改。</p>
<p>2、安装Google App Engine SKD,可以装在D盘program files目录里，安装时把这个安装路径&#8221;X:\Program Files\Google\google_appengine\&#8221;X改为D就可以了。（WIN7用户也可以安装到D盘）</p>
<p>3、我们可以看到wallproxy文件夹里有四个文件，修改gea_server文件夹里的app.yaml这个文件，把第一行的application后面的字母修改为你刚才申请的ID（有空格的），就是那个二级域名的前面那部分。注意要用notepad++等专门的代码编辑软件打开，<span style="color: #ff00ff;">不要用写字板，记事本，<span style="color: #000000;">修改好后记得保存。</span></span></p>
<p><a rel="attachment wp-att-40" href="http://nightbook.cc/25/1-2"><img class="alignleft size-full wp-image-40" title="1" src="http://nightbook.cc/wp-content/uploads/2010/08/12.jpg" alt="" width="519" height="213" /></a></p>
<p><a rel="attachment wp-att-41" href="http://nightbook.cc/25/2-2"><img class="alignleft size-full wp-image-41" title="2" src="http://nightbook.cc/wp-content/uploads/2010/08/21.jpg" alt="" width="573" height="246" /></a></p>
<p>4、把gae_server这个文件夹拷贝到X:\Program Files\Google\google_appengine这个目录下面。</p>
<p><strong>四、回到桌面上，有个飞机引擎的图标，双击，如果出现LOG错误，或者环境错误之类的信息。</strong></p>
<p>点编辑edit然后选择preferences，点select选择Python的环境，还有APP engine的目录，如下图</p>
<p><strong><a rel="attachment wp-att-42" href="http://nightbook.cc/25/3-2"><img class="alignleft size-full wp-image-42" title="3" src="http://nightbook.cc/wp-content/uploads/2010/08/31.jpg" alt="" width="652" height="307" /></a><br />
</strong></p>
<p>五、<strong>现在应该可以正常启动了，点“File”然后“Add Existing  Application”选择路径添加新的应用。</strong><strong>应用就是上一步中gae_server那个文件夹，添加成功后点击你刚添加的应用的那一横行，“Deploy”这个  按钮会变绿。这个就是上传的按钮，点击后输入Gmail和密码就上传了。</strong></p>
<p><strong><a rel="attachment wp-att-43" href="http://nightbook.cc/25/1-3"><img class="alignleft size-full wp-image-43" title="1" src="http://nightbook.cc/wp-content/uploads/2010/08/13.jpg" alt="" width="591" height="206" /></a></strong></p>
<p><strong>上传成功后，你在<a href="http://code.google.com/intl/zh-CN/">http://code.google.com/intl/zh-CN/</a>这里登陆自己的谷歌账号，可以看到自己的APP是否在工作。</strong></p>
<p><strong>六、修改客户端</strong></p>
<p><strong>打开local文件夹，打开wallproxy程序，点设置修改GAE服务端为自己架设的APP。</strong></p>
<p><strong><a rel="attachment wp-att-44" href="http://nightbook.cc/25/1-4"><img class="alignleft size-full wp-image-44" title="1" src="http://nightbook.cc/wp-content/uploads/2010/08/14.jpg" alt="" width="591" height="185" /></a></strong></p>
<p><strong>七、下载<a href="http://www.mozillaonline.com/" target="_blank">Firefox浏览器</a>最好下载国际版的吧，</strong><strong>修改代理方法：“工具”–“选项”–“高级”–“网络”–“设置”–“手动配置代理”设置为127.0.0.1，端口8086。</strong></p>
<p class="akst_link"><a href="http://nightbook.cc/?p=25&amp;akst_action=share-this"  title="可以通过E-mail分享, 用del.icio.us、Google等网络书签收藏！" id="akst_link_25" class="akst_share_link" rel="nofollow">收藏、分享这篇文章!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://nightbook.cc/25/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>搬了VPS，换了IP</title>
		<link>http://nightbook.cc/8</link>
		<comments>http://nightbook.cc/8#comments</comments>
		<pubDate>Sun, 15 Aug 2010 03:37:11 +0000</pubDate>
		<dc:creator>夜书</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[夜书 VPS]]></category>

		<guid isPermaLink="false">http://nightbook.cc/?p=8</guid>
		<description><![CDATA[之前的博客上因为没开AK插件， 导致垃圾留言上万， 懒的去清理了， 直接格式化， 呵呵，这下清爽了！！！ 收藏、分享这篇文章!]]></description>
			<content:encoded><![CDATA[<p>之前的博客上因为没开<a href="http://akismet.com/" target="_blank">AK插件</a>，</p>
<p>导致垃圾留言上万，</p>
<p>懒的去清理了，</p>
<p>直接格式化，</p>
<p>呵呵，这下清爽了！！！</p>
<p class="akst_link"><a href="http://nightbook.cc/?p=8&amp;akst_action=share-this"  title="可以通过E-mail分享, 用del.icio.us、Google等网络书签收藏！" id="akst_link_8" class="akst_share_link" rel="nofollow">收藏、分享这篇文章!</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://nightbook.cc/8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
