﻿<?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>小小鸟 &#187; 学电脑</title>
	<atom:link href="http://minibird.com/blog/category/computer/feed" rel="self" type="application/rss+xml" />
	<link>http://minibird.com</link>
	<description>学会飞翔，飞向更高</description>
	<lastBuildDate>Mon, 02 Aug 2010 09:22:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>在Drupal中安装FireStats进行统计分析</title>
		<link>http://minibird.com/blog/812</link>
		<comments>http://minibird.com/blog/812#comments</comments>
		<pubDate>Wed, 21 Apr 2010 13:02:59 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[学电脑]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[FireStats]]></category>
		<category><![CDATA[笔记]]></category>

		<guid isPermaLink="false">http://minibird.com/?p=812</guid>
		<description><![CDATA[FireStats是一个基于PHP的非常强大的网站访问统计程序，可以为Drupal提供比Statices更好的统计信息，包括访问次数、搜索短语、访问者的IP地址、浏览器、操作系统、国家及详细访问列表等等，而且还支持中文。
在Drupal中安装FireStats的主要过程是：

以“Standalone”安装FireStats。
安装Drupal的FireStats模块，实现调用独立安装的FireStats。
安装Drupal的Visibility API，实现只统计特定的信息。

下面是详细安装步骤：
一、使用Firestats  Installer安装FireStats。

下载Firestats Installer， 解压，上传到网站中/firestats-installer。
通过FTP建立FireStats的安装目录/count，firestats将安装在这里。
设置installer-config.php 和temp为777。
通过FTP建立FireStats的安装目录count，设置该目录权限为777。
通过浏览器访问index.php。
设置Firestats  Installer的访问口令。
进入Firestats  Installer。
设置FireStats的安装目录/count，注意按照提示输入绝对路径。
上传文件，或直接通过Internet下载到安装目录中。
执行安装，以后也可以通过这里升级。
为安全起见，将设置installer-config.php 和temp的权限分别改回755和644。

二、配置FireStats。

通过浏览器访问http://yourdomain.com/count/
设置数据库信息。
创建FireStats的管理员账户。
首先配置语言。
在“站点管理”中添加站点，可以手动设置ID。
设置排除点击，“URL引用（来源链接）”中添加“/admin/”。

三、在Drupal中安装配置FireStats模块。

下载、上传并激活Drupal的FireStats模块。
进入管理、站点设置、FireStats。
设置FireStats的安装目录/count，注意按照提示输入绝对路径。跟FireStats Installer 中的一样。
设置站点ID，注意与FireStats中的要保持一致，在FireStats中用以识别被统计的网站。

完成，以后就可以通过http://yourdomain.com/count/查看访问情况了。
]]></description>
		<wfw:commentRss>http://minibird.com/blog/812/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Plesk中为Drupal配置Cron任务</title>
		<link>http://minibird.com/blog/805</link>
		<comments>http://minibird.com/blog/805#comments</comments>
		<pubDate>Tue, 20 Apr 2010 15:43:44 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[学电脑]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[笔记]]></category>

		<guid isPermaLink="false">http://minibird.com/?p=805</guid>
		<description><![CDATA[Drupal需要Cron来定时自动执行一些任务，我的虚拟主机使用的是Plesk （v8.6.0），在此记录下设置过程。

一、开启cron服务。
经测试，我的虚拟主机（MediaTemple dv3.5）默认没有开启cron服务，需要手动开启。
SSH登录，切换到root用户，使用ps查看进程，没发现cron在运行。
手动启动crond服务。

?查看代码 BASH1
&#91;root@localhost ~&#93;# /sbin/service crond start

再次查看，cron运行了。

?查看代码 BASH1
2
&#91;root@localhost ~&#93;# ps -lef&#124;grep corn
0 S root     18429 18014  0  76   0 -   437 pipe_w 04:34 pts/0    00:00:00 grep corn

还是将crond添加到系统启动任务中，以后就不怕服务器重启了。

?查看代码 BASH1
2
3
&#91;root@localhost ~&#93;# chkconfig --levels 35 crond on
&#91;root@localhost ~&#93;# chkconfig --list crond
crond    [...]]]></description>
		<wfw:commentRss>http://minibird.com/blog/805/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>修改wordpress 插件wp-codebox的显示样式</title>
		<link>http://minibird.com/blog/762</link>
		<comments>http://minibird.com/blog/762#comments</comments>
		<pubDate>Tue, 30 Mar 2010 15:48:24 +0000</pubDate>
		<dc:creator>root</dc:creator>
				<category><![CDATA[学电脑]]></category>
		<category><![CDATA[wp-codebox]]></category>

		<guid isPermaLink="false">http://minibird.com/?p=762</guid>
		<description><![CDATA[为了更适合自己站点的风格，对wordpress的代码高亮插件wp-codebox（ V1.4.3）进行了修改。

没有动PHP代码。
修改了images目录下的几个图标，换成灰色的。
修改了style.css，包括对应图标文件和区块背景色。
用wp-codebox-zh_CN-full.mo替换了wp-codebox-zh_CN.mo。



下载修改过的wp-codebox插件，版本1.4.3。
]]></description>
		<wfw:commentRss>http://minibird.com/blog/762/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MediaTemple虚拟主机从DV3.0迁移到3.5</title>
		<link>http://minibird.com/blog/683</link>
		<comments>http://minibird.com/blog/683#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:58:13 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[学电脑]]></category>
		<category><![CDATA[MediaTemple]]></category>

		<guid isPermaLink="false">http://minibird.com/?p=683</guid>
		<description><![CDATA[前段时间将MediaTemple的DV3.0的主机升级到了3.5，今天抽时间整理了一下记录，供有需者参考。
由于DV3.0不能直接升级到3.5，因此主要升级过程是，买个新主机DV3.5，在新的DV3.5上利用Plesk中的迁移工具，把数据从旧主机上迁移过来，然后退掉旧主机的。
一、准备工作
1.准备好修改DNS的口令，迁移涉及到修改DNS指向。
2.准备好旧主机的SSH登录的root 口令，如果没有可到AccountCenter开启。
3.备份数据期间，直到主机升级彻底完成，不要更新网站内容。可以停止web服务。
4.确认旧主机至少50%的剩余磁盘空间。因为后面的迁移工作需要磁盘空间打包数据。如果主机上有多个域名，空间不够的话可以一个一个迁移。
二、备份数据
1.备份文件
以root身份SSH登录进入旧主机，将文件打包下载。
#tar –czf vhosts.tgz /var/www/vhosts
2.备份数据库
网站是基于wordpress的，以admin登录，利用backup插件，备份数据库到服务器备份目录，然后用ftp下载。还怕不保险，又进入plesk，使用phpmyadmin，再次备份数据库，确保万一。
三、购买新DV3.5
1.进入AccountCenter， Domains&#62;Buy Another Server。

2.随便填个名称，升级完成后可以改回来。但不能使用旧主机的域名或子域名。我随便填了个不存在的域名。选择“Add new Hosting Service”。[next]

3.这里注意，是选买一个月的还是买一年的。[Next]

4.选择Plesk可管理的域名，默认30个，再多要加钱了。[Next]

5.确认。[next]

不知道怎么多出来29.57美元。
6.查看一下。似乎这29.57美元是预先收取的定金，如果取消那500美元的交易，这个费用就不退了。不太确定，英文好的人可以告诉我。

7.下一步，选择支付。[make payment]

8.支付完成。

新主机购买成功后，会给信箱发一封邮件，告知登录账户信息。
四、初始化新主机
1.登录进入新虚拟主机的Plesk。[OK]

2.确认管理信息。完成初始化。注意！“I would like to create a default client account”一定要选中。

五、迁移数据
1.在新主机（DV3.5）的Plesk界面中，点击Server ，如下图所示，点击“Mgration Manger”按钮，即迁移工具。

2.进入了迁移管理面板，选择 “Strat a new migration”。

3.确认迁移信息，默认不用改。

4.等待迁移。

5.下图中，如果旧主机上有多个网站，想一并迁移过来，记得选择“Migrate all clients and domains”。

6.下图中，如果虚拟主机上有多个域名，一般为共用一个IP地址，注意这里选择IP为“shareed”。[next]

7.下图显示的是要迁移的数据库。[next]

8.等待响应。

9.正在迁移。

10.迁移完成。

报了几个错，因为旧主机的Plesk装了中文语言包，而新主机的没有。不影响使用。迁移完成。
六、测试
迁移数据完成后，可以预览站点，查看迁移是否真正成功。
1.登录新主机的Plesk，点击左侧的“Domains”菜单，右侧下方就是迁移过来的网站。

2.点击想要预览的站点，进入站点管理界面，点击下方的“Site Preview”按钮，就能预览迁移过来的站点了。

七、修改DNS指向
所有配置完成后，开始修改所有网站的域名的DNS配置，将DNS解析都指向新主机的IP地址。
1.如果使用的是MT的DNS服务器，可以登录AccountCenter，在“Domains”下拉菜单中选择想要更改的域名，如下图所示。

2.在下图中，点击下方的“Point to Another Server”。

3.在下图中，记得选择指向新主机（DV3.5）。

4.修改TTL时间。修改TTL时间是让DNS服务器刷新时间短一些，让修改过的新的DNS解析信息尽快生效。在下图中中点击“Go to Server”。

5.在下面的界面中点击“Edit Zone File”。

6.在下面的界面中点击“Low TTL value”。

7.弹出确认提示框。[OK]

8.点击“Save”按钮，点击弹出的确认提示框“OK”。

9.使得DNS更改生效。等待至少12小时，等待DNS新的解析生效。
八、退订旧主机
1.在AccountCenter中，点击“Billing”菜单，如下图所示，点击“Request To Close”按钮。

2.在“Close a Hosting Server or Add-on”中，选择旧的虚拟主机，点击“Close”按钮。

3.弹出警告。

提示你，一旦选择关闭服务，所有数据将被删除，并且不可恢复。
选择一个日期，直到此日期服务才被关闭，当然你需要继续缴纳相应的费用。
4.如果确认，点击“submit request to close”按钮，会提示你完成。

至此迁移完毕。
九、参考资料
下列资料可供参考，我看了好几遍才动手，特别是Fwolf的文章。我的主机上没有自己装什么东西，如果您装了，请多注意，看看Fwolf的文章。
MT官方帮助文档： Using the Plesk Migration Manager
Fwolf的详细指南：[MediaTemple]从(dv)3.0升级到3.5
]]></description>
		<wfw:commentRss>http://minibird.com/blog/683/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nonika 5310与GMail通讯录同步配置</title>
		<link>http://minibird.com/blog/568</link>
		<comments>http://minibird.com/blog/568#comments</comments>
		<pubDate>Tue, 09 Mar 2010 13:03:16 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[学电脑]]></category>

		<guid isPermaLink="false">http://minibird.com/?p=568</guid>
		<description><![CDATA[手机：Nokia Xpress Music 5310，S40操作系统
1、进入“设置，配置设置，个人配置设置”，新增，同步。
账号名称：Google Sync（区分大小写）；
服务器地址：https://m.google.com/syncml
用户名：填上Gmail的邮件地址；
密码：填上Gmail的密码；
2、通讯录数据库，数据库地址：contacts
3、使用首选接入点：勾选“取消”。
4、接入点设置：
代理：已启动
代理地址：10.0.0.172
端口：80
传输设置方式，分组数据接入点：cmwap
其余选项都不填。
5、进入“设置，配置设置”，选“个人配制”；
6、进入“同步和备份，数据传送，服务器同步”。
第一次同步要勾选同步项为“通讯录”，之后便可进行数据同步。
不过这么做有个后果，收发彩信还得将“配置设置改回来”，不好！
]]></description>
		<wfw:commentRss>http://minibird.com/blog/568/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress迁移uploads目录</title>
		<link>http://minibird.com/blog/607</link>
		<comments>http://minibird.com/blog/607#comments</comments>
		<pubDate>Fri, 05 Mar 2010 16:15:31 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[学电脑]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://minibird.com/?p=607</guid>
		<description><![CDATA[修改了wordpress 下的几个自定义目录，发现引用文件无法显示。开始以为是缓存问题，后来发现不是，原来数据库里将链接写死了。没办法，只好手动修改数据库。
一、媒体库的目录由“/wp-content/uploads”迁移到“/uploads”。
进入表wp_posts，执行下列语句：

?查看代码 SQL1
update wp_posts set post_content = replace&#40;post_content,'wp-content/uploads','uploads/'&#41;

二、NextGen Gallery 的目录由“/wp-content/gallery”迁移到“/gallery”。
进入表wp_posts，执行下列语句：

?查看代码 SQL1
update wp_posts set post_content = replace&#40;post_content,'wp-content/gallery/','gallery/'&#41;

进入表wp_ngg_gallery，执行下列语句：

?查看代码 SQL1
update wp_ngg_gallery set path = replace&#40;path,'wp-content/gallery/','gallery/'&#41;

]]></description>
		<wfw:commentRss>http://minibird.com/blog/607/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress 插件 audio player的调用参数</title>
		<link>http://minibird.com/blog/557</link>
		<comments>http://minibird.com/blog/557#comments</comments>
		<pubDate>Sun, 28 Feb 2010 09:30:36 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[学电脑]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://minibird.com/?p=557</guid>
		<description><![CDATA[插件：audio player
版本：2.0.4.1
调用命令如下：
远程调用：&#91;audio:http://url/name.mp3&#93;
本地调用：&#91;audio:name.mp3&#93;
播放多首：&#91;audio:http://url/name.mp3,http://url/name.mp3&#93;
循环播放：&#91;audio:http://url/name.mp3&#124;loop=yes&#93;
自动播放：&#91;audio:http://url/name.mp3&#124;autostart=yes&#93;
]]></description>
		<wfw:commentRss>http://minibird.com/blog/557/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>为Plesk 添加中文界面</title>
		<link>http://minibird.com/blog/516</link>
		<comments>http://minibird.com/blog/516#comments</comments>
		<pubDate>Sat, 20 Feb 2010 10:24:11 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[学电脑]]></category>
		<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://minibird.com/?p=516</guid>
		<description><![CDATA[Plesk默认是英文界面，但语言包在官方网站可以免费下载，只要注册个账号，然后到下载页面，就可以选择适合自己所用Plesk版本和操作系统的语言包。
因为下载的源文件无法打开，我在网上搜了一下文件名，找到一个能下载的。
然后登录到Plesk，进Server，Control Panel，Interface Management，Add Locale。上传中文语言包。
重新登录时就可以选择界面语言了。
]]></description>
		<wfw:commentRss>http://minibird.com/blog/516/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Office Word 直接显示域代码</title>
		<link>http://minibird.com/blog/461</link>
		<comments>http://minibird.com/blog/461#comments</comments>
		<pubDate>Sun, 02 Aug 2009 09:34:40 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[学电脑]]></category>

		<guid isPermaLink="false">http://minibird.com/?p=461</guid>
		<description><![CDATA[不知道Word 怎么搞的，拷贝一些网页进去，只显示域代码，效果如下：
把显示域代码的内容选中之后，按“Ctrl+Del+F9”，切换域代码为静态文本，就好啦。

]]></description>
		<wfw:commentRss>http://minibird.com/blog/461/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image2Html，把图片转换为字符网页</title>
		<link>http://minibird.com/blog/350</link>
		<comments>http://minibird.com/blog/350#comments</comments>
		<pubDate>Sat, 30 May 2009 08:10:37 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[学电脑]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://minibird.com/?p=350</guid>
		<description><![CDATA[Image2Html，可以把图片转为由字符构成的网页。
支持批量处理；可自定义字符，支持中文。
]]></description>
		<wfw:commentRss>http://minibird.com/blog/350/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
