<?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>Mr.Lodar&#039;s Blog</title>
	<atom:link href="http://lodar.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://lodar.net</link>
	<description>快乐来自分享，幸福源于付出</description>
	<lastBuildDate>Fri, 27 Apr 2012 03:15:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>启用IPv6后MySQL客户端软件无法连接localhost的问题</title>
		<link>http://lodar.net/mysql-client-software-can-not-connect-to-localhost-when-enable-ipv6/</link>
		<comments>http://lodar.net/mysql-client-software-can-not-connect-to-localhost-when-enable-ipv6/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 03:14:29 +0000</pubDate>
		<dc:creator>Mr.Lodar</dc:creator>
				<category><![CDATA[后端]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://lodar.net/?p=349</guid>
		<description><![CDATA[一次在为了尝试使用 IPv6 网络而在 Windows XP SP3 环境中启用了 IPv6 协议之后，发现 HeidiSQL、Navicat Lite 9 这两个客户端均无法连接到在本机搭建的 MySQL 服务器 localhost ，而在 Apache + PHP 环境中运行的 phpMyAdmin 却是正常，虽然知道是 IPv6 引起的，但是卸载掉 IPv6 实在是个低级的办法，于是摸索着其它解决方法，估计是由于启用了 IPv6 后 MySQL 默认绑定到了 ::1 这个 IPv6 的回环地址上，然后找到了一个办法，在my.ini添加 bind-address 配置如下:]]></description>
			<content:encoded><![CDATA[<p>一次在为了尝试使用 IPv6 网络而在 Windows XP SP3 环境中启用了 IPv6 协议之后，发现 HeidiSQL、Navicat Lite 9 这两个客户端均无法连接到在本机搭建的 MySQL 服务器 localhost ，而在 Apache + PHP 环境中运行的 phpMyAdmin 却是正常，虽然知道是 IPv6 引起的，但是卸载掉 IPv6 实在是个低级的办法，于是摸索着其它解决方法，估计是由于启用了 IPv6 后 MySQL 默认绑定到了 ::1 这个 IPv6 的回环地址上，然后找到了一个办法，在my.ini添加 bind-address 配置如下:</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
[mysqld]

# The TCP/IP Port the MySQL Server will listen on
port=3306

# 如果启用了IPv6，默认会绑定IPv6地址，某些MySQL管理软件不支持连接到IPv6的地址(如[::1]:3306)，故此处设置绑定IPv4地址
bind-address = 0.0.0.0
</pre>
]]></content:encoded>
			<wfw:commentRss>http://lodar.net/mysql-client-software-can-not-connect-to-localhost-when-enable-ipv6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.6 中为 PHP 安装 Suhosin (扩展形式)</title>
		<link>http://lodar.net/install-suhosin-as-extension-for-php-on-centos-5-6/</link>
		<comments>http://lodar.net/install-suhosin-as-extension-for-php-on-centos-5-6/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 06:19:33 +0000</pubDate>
		<dc:creator>Mr.Lodar</dc:creator>
				<category><![CDATA[后端]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Suhosin]]></category>

		<guid isPermaLink="false">http://lodar.net/?p=346</guid>
		<description><![CDATA[0.安装php-devel包 1.下载 suhosin 0.9.29 版本(经测试，0.9.30 以上版本与CentOS中的PHP 5.1.6不兼容) 如果你使用的是 PHP 5.3 版本，可以到这里找到最新的suhosin源码下载地址 Suhosin Downloads: http://www.hardened-php.net/suhosin/download.html 2.解压、编译并安装 3.把suhosin扩展加入到PHP配置文件 4.重启 Apache 以加载 suhosin 扩展 x.确认 Suhosin 已安装 查看是否有以下信息: with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH 或者在phpinfo()信息中查找 suhosin 扩展信息(与编译安装suhosin时不一样，这里不是和Zend信息显示在一起的) 参见: http://www.cyberciti.biz/faq/rhel-linux-install-suhosin-php-protection/ http://www.howtoforge.com/how-to-harden-php5-with-suhosin-on-centos-5.4]]></description>
			<content:encoded><![CDATA[<h3>0.安装php-devel包</h3>
<pre class="brush: bash; gutter: false; title: ; notranslate">yum install php-devel</pre>
<h3>1.下载 suhosin 0.9.29 版本(经测试，0.9.30 以上版本与CentOS中的PHP 5.1.6不兼容)</h3>
<pre class="brush: bash; gutter: false; title: ; notranslate">wget http://download.suhosin.org/suhosin-0.9.29.tgz</pre>
<p>如果你使用的是 PHP 5.3 版本，可以到这里找到最新的suhosin源码下载地址<br />
Suhosin Downloads: <a href="http://www.hardened-php.net/suhosin/download.html">http://www.hardened-php.net/suhosin/download.html</a></p>
<h3>2.解压、编译并安装</h3>
<pre class="brush: bash; gutter: false; title: ; notranslate">tar xvfz suhosin-0.9.29.tgz
cd suhosin-0.9.29
phpize
./configure
make
make install</pre>
<h3>3.把suhosin扩展加入到PHP配置文件</h3>
<pre class="brush: bash; gutter: false; title: ; notranslate">echo 'extension=suhosin.so' &gt; /etc/php.d/suhosin.ini</pre>
<h3>4.重启 Apache 以加载 suhosin 扩展</h3>
<pre class="brush: bash; gutter: false; title: ; notranslate">service httpd restart</pre>
<h3>x.确认 Suhosin 已安装</h3>
<pre class="brush: bash; gutter: false; title: ; notranslate">php -v</pre>
<p>查看是否有以下信息:<br />
    with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH</p>
<p>或者在phpinfo()信息中查找 suhosin 扩展信息(与编译安装suhosin时不一样，这里不是和Zend信息显示在一起的)</p>
<p>参见:</p>
<ol>
<li><a href="http://www.cyberciti.biz/faq/rhel-linux-install-suhosin-php-protection/">http://www.cyberciti.biz/faq/rhel-linux-install-suhosin-php-protection/</a></li>
<li><a href="http://www.howtoforge.com/how-to-harden-php5-with-suhosin-on-centos-5.4">http://www.howtoforge.com/how-to-harden-php5-with-suhosin-on-centos-5.4</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://lodar.net/install-suhosin-as-extension-for-php-on-centos-5-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FCKEditor 中自定义字体和字号</title>
		<link>http://lodar.net/fckeditor-custom-font-name-and-font-size/</link>
		<comments>http://lodar.net/fckeditor-custom-font-name-and-font-size/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 09:01:15 +0000</pubDate>
		<dc:creator>Mr.Lodar</dc:creator>
				<category><![CDATA[前端]]></category>
		<category><![CDATA[FCKEditor]]></category>

		<guid isPermaLink="false">http://lodar.net/?p=324</guid>
		<description><![CDATA[fckconfig.js 中找到如下两行: 将其注释并添加如下代码(字号选择其中一种方式即可):]]></description>
			<content:encoded><![CDATA[<p>fckconfig.js 中找到如下两行:</p>
<pre class="brush: jscript; gutter: false; title: ; notranslate">FCKConfig.FontNames		= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
FCKConfig.FontSizes		= 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;</pre>
<p>将其注释并添加如下代码(字号选择其中一种方式即可):</p>
<pre class="brush: jscript; gutter: false; title: ; notranslate">// 中文字体:
FCKConfig.FontNames = '微软雅黑;宋体;新宋体;黑体;隶书;幼圆;楷体_GB2312;仿宋_GB2312;方正舒体;方正姚体;华文隶书;华文新魏;华文行楷;sans-serif;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;</pre>
<pre class="brush: jscript; gutter: false; title: ; notranslate">// 按文字像素大小选择:
FCKConfig.FontSizes = '9px;10px;12px;14px;16px;18px;20px;22px;24px;36px' ;</pre>
<pre class="brush: jscript; gutter: false; title: ; notranslate">// 按中文字号选择(根据像素单位换算):
FCKConfig.FontSizes = '56px/初号;48px/小初;34px/一号;32px/小一;29px/二号;24px/小二;21px/三号;20px/小三;18px/四号;16px/小四;14px/五号;12px/小五;10px/六号;8px/小六' ;</pre>
<pre class="brush: jscript; gutter: false; title: ; notranslate">// 按中文字号选择(根据磅单位换算):
FCKConfig.FontSizes = '42pt/初号;36pt/小初;26pt/一号;24pt/小一;22pt/二号;18pt/小二;16pt/三号;15pt/小三;14pt/四号;12pt/小四;10.5pt/五号;9pt/小五;7.5pt/六号;6.5pt/小六' ;</pre>
]]></content:encoded>
			<wfw:commentRss>http://lodar.net/fckeditor-custom-font-name-and-font-size/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ADSL宽带拨号提示“错误 676：电话占线”问题一则</title>
		<link>http://lodar.net/adsl-broadband-dial-up-error-676-phone-busy-issue/</link>
		<comments>http://lodar.net/adsl-broadband-dial-up-error-676-phone-busy-issue/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 08:11:31 +0000</pubDate>
		<dc:creator>Mr.Lodar</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[ADSL]]></category>

		<guid isPermaLink="false">http://lodar.net/?p=326</guid>
		<description><![CDATA[前几天回老家，老妈说这几天上不了网，让我给看看怎么回事，打开电脑后，只见ADSL拨号程序一直在错误重连，一直也连不上，提示错误信息为“错误 676：电话占线”，检查了线路也没有问题，用自己的笔记本试了下，立马就连上，于是排除了线路问题。 接着就习惯性地在命令行输入 ipconfig /all ，猛的发现上面显示的网卡MAC地址变成了00-00-00-00-00-03，于是就考虑是不是这个原因造成的拨号连接失败，遂在网卡属性中将其修改为正常的网卡应该使用的MAC地址，如00-E0-4C-00-00-01，再次尝试拨号连接，立马就连上了，问题解决！ PS: 网卡MAC地址的修改方法请自行Google之]]></description>
			<content:encoded><![CDATA[<p>前几天回老家，老妈说这几天上不了网，让我给看看怎么回事，打开电脑后，只见ADSL拨号程序一直在错误重连，一直也连不上，提示错误信息为“错误 676：电话占线”，检查了线路也没有问题，用自己的笔记本试了下，立马就连上，于是排除了线路问题。</p>
<p>接着就习惯性地在命令行输入 ipconfig /all ，猛的发现上面显示的网卡MAC地址变成了00-00-00-00-00-03，于是就考虑是不是这个原因造成的拨号连接失败，遂在网卡属性中将其修改为正常的网卡应该使用的MAC地址，如00-E0-4C-00-00-01，再次尝试拨号连接，立马就连上了，问题解决！</p>
<p>PS: 网卡MAC地址的修改方法请自行Google之</p>
]]></content:encoded>
			<wfw:commentRss>http://lodar.net/adsl-broadband-dial-up-error-676-phone-busy-issue/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>如何配置 CKEditor 使用 KCFinder?</title>
		<link>http://lodar.net/how-to-configure-ckeditor-to-use-kcfinder/</link>
		<comments>http://lodar.net/how-to-configure-ckeditor-to-use-kcfinder/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 08:10:22 +0000</pubDate>
		<dc:creator>Mr.Lodar</dc:creator>
				<category><![CDATA[前端]]></category>
		<category><![CDATA[CKEditor]]></category>
		<category><![CDATA[KCFinder]]></category>

		<guid isPermaLink="false">http://lodar.net/?p=298</guid>
		<description><![CDATA[要使 KCFinder 成为 CKEditor 的默认文件浏览器，很简单，你只需要编辑 CKEditor 主目录下的 config.js 文件如下： 其中 /kcfinder/ 为你的 KCFinder 所在的路径，这里相对与站点根目录设置，你也可以使用 CKEditor API 来更改这些设置，详情请参见 CKEditor文档。 如果 KCFinder 的路径需要相对与 CKEditor 设置，则配置文件写法如下(本例中 CKEditor 与 KCFinder 在相同目录下): 当然，要使用 KCFinder ，还需要修改 KCFinder 的配置文件 config.php ，主要更改如下两个设置项: 这里的上传路径与早期 FCKEditor 中自带的上传管理器不一样，是可以使用相对路径的，更多设置项请参见 KCFinder安装向导 与 KCFinder集成指南之Session配置。]]></description>
			<content:encoded><![CDATA[<p>要使 <a href="http://kcfinder.sunhater.com/">KCFinder</a> 成为 <a href="http://ckeditor.com/">CKEditor</a> 的默认文件浏览器，很简单，你只需要编辑 CKEditor 主目录下的 config.js 文件如下：</p>
<pre class="brush: jscript; gutter: false; title: ; notranslate">CKEDITOR.editorConfig = function(config) {
   config.filebrowserBrowseUrl = '/kcfinder/browse.php?type=files';
   config.filebrowserImageBrowseUrl = '/kcfinder/browse.php?type=images';
   config.filebrowserFlashBrowseUrl = '/kcfinder/browse.php?type=flash';
   config.filebrowserUploadUrl = '/kcfinder/upload.php?type=files';
   config.filebrowserImageUploadUrl = '/kcfinder/upload.php?type=images';
   config.filebrowserFlashUploadUrl = '/kcfinder/upload.php?type=flash';
};</pre>
<p>其中 /kcfinder/ 为你的 KCFinder 所在的路径，这里相对与站点根目录设置，你也可以使用 CKEditor API 来更改这些设置，详情请参见 <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide">CKEditor文档</a>。</p>
<p>如果 KCFinder 的路径需要相对与 CKEditor 设置，则配置文件写法如下(本例中 CKEditor 与 KCFinder 在相同目录下):</p>
<pre class="brush: jscript; gutter: false; title: ; notranslate">CKEDITOR.editorConfig = function(config) {
   config.filebrowserBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=files';
   config.filebrowserImageBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=images';
   config.filebrowserFlashBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=flash';
   config.filebrowserUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=files';
   config.filebrowserImageUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=images';
   config.filebrowserFlashUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=flash';
};</pre>
<p>当然，要使用 KCFinder ，还需要修改 KCFinder 的配置文件 config.php ，主要更改如下两个设置项:</p>
<pre class="brush: php; gutter: false; title: ; notranslate">
    ...
    // 设置启用 KCFinder
    'disabled' =&gt; empty($_SESSION['upload_enabled']),
    ...
    // 更改你的上传路径
    'uploadURL' =&gt; &quot;../../upload&quot;,
</pre>
<p>这里的上传路径与早期 FCKEditor 中自带的上传管理器不一样，是可以使用相对路径的，更多设置项请参见 <a href="http://kcfinder.sunhater.com/docs/install">KCFinder安装向导</a> 与 <a href="http://kcfinder.sunhater.com/docs/integrate#session">KCFinder集成指南之Session配置</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://lodar.net/how-to-configure-ckeditor-to-use-kcfinder/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>使用 Google CDN 加载 jQuery 库的小技巧</title>
		<link>http://lodar.net/jquery-library-loaded-with-google-cdn-tips/</link>
		<comments>http://lodar.net/jquery-library-loaded-with-google-cdn-tips/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 08:38:28 +0000</pubDate>
		<dc:creator>Mr.Lodar</dc:creator>
				<category><![CDATA[前端]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://lodar.net/?p=297</guid>
		<description><![CDATA[使用 Google CDN 加载 jQuery 库的好处是可以提高加载的速度并节省流量，但由于国内糟糕的网络环境，Google的东西很可能加载失败，于是就需要一个可以 Failback 的代码，并且在本地离线状态下调试程序的时候也可以使用，代码很简单（以jQuery 1.5.1为例）:]]></description>
			<content:encoded><![CDATA[<p>使用 Google CDN 加载 jQuery 库的好处是可以提高加载的速度并节省流量，但由于国内糟糕的网络环境，Google的东西很可能加载失败，于是就需要一个可以 Failback 的代码，并且在本地离线状态下调试程序的时候也可以使用，代码很简单（以jQuery 1.5.1为例）:</p>
<pre class="brush: xml; title: ; notranslate">
	&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js&quot;&gt;&lt;/script&gt;
	&lt;script&gt;
		!window.jQuery &amp;&amp; document.write('&lt;script src=&quot;js/jquery-1.5.1.min.js&quot;&gt;&lt;\/script&gt;');
	&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://lodar.net/jquery-library-loaded-with-google-cdn-tips/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>打包修改过的文件的批处理，更新第2版</title>
		<link>http://lodar.net/packaging-modified-files-using-batch-file-updated-v2/</link>
		<comments>http://lodar.net/packaging-modified-files-using-batch-file-updated-v2/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 08:52:22 +0000</pubDate>
		<dc:creator>Mr.Lodar</dc:creator>
				<category><![CDATA[脚本]]></category>
		<category><![CDATA[7z]]></category>
		<category><![CDATA[package]]></category>

		<guid isPermaLink="false">http://lodar.net/?p=308</guid>
		<description><![CDATA[之前写过《打包修改过的文件的批处理》，现在这个批处理脚本已经过多次修改，增加了很多功能，新脚本代码如下: 提示: 不要忘了 excludelist.txt 哦，参见之前的那篇文章《打包修改过的文件的批处理》。]]></description>
			<content:encoded><![CDATA[<p>之前写过《<a href="http://lodar.net/packaging-modified-files-using-batch-file/">打包修改过的文件的批处理</a>》，现在这个批处理脚本已经过多次修改，增加了很多功能，新脚本代码如下:</p>
<pre class="brush: bash; title: ; notranslate">@echo off
:: 网站更新文件打包程序
:: 作者: Mr.Lodar http://lodar.net/

:: 版本历史:
::
:: v2.4  2011年01月11日  随机临时目录
::                       防止多个批处理同时运行时产生冲突
:: v2.3  2011年01月11日  自动配置7-Zip安装目录
::                       自动检测7-Zip的安装目录，不需要再手工配置路径
:: v2.2  2010年12月03日  增加PATH环境变量设置
::                       在系统环境变量未加入7-Zip时不用复制程序文件到当前目录
:: v2.1  2010年11月16日  增加批打包支持 - 多个目录同时拖放并分别打包
::                       增加判断有修改的文件时才打包，不再生成空压缩包
:: v2.0  2010年11月16日  新增拖放打包支持 - 将目录拖放到脚本文件上自动打包
::                       (为了支持快速批打包，拖放模式只默认打包当天修改的文件)
:: v1.0  2010年06月某日  初始版本，实现了文件排除及默认值设置

:: 拖放到图标上执行的时候程序启动路径为用户目录
:: 如: &quot;C:\Documents and Settings\User&quot;
:: 这里把当前目录设置回批处理脚本所在目录
cd /d %~dp0

:: 检索7-Zip安装目录
for /f &quot;tokens=2*&quot; %%i in (
	'REG QUERY &quot;HKLM\SOFTWARE\7-Zip&quot; ^| find /i &quot;Path&quot;'
) do set &quot;SevenZipPath=%%j&quot;

:: 设置7-Zzip路径
SET PATH=%PATH%;%SevenZipPath%

:START
:: 设置临时目录:
set TEMP=temp_%random%

if not @%1@==@@ (
	set FROM=%~n1
) else (
	set /P FROM=源文件目录^(默认为www^):
	set /P TO=导出压缩包文件名^(默认为%FROM%-update-%date:~0,4%%date:~5,2%%date:~8,2%^):
	set /P DAY=修改时间^(m-d-y，默认为今天{%date:~5,5%-%date:~0,4%}^):
)

:: 设置变量默认值
if @%FROM%@==@@ set FROM=www
if @%TO%@==@@ set TO=%FROM%-update-%date:~0,4%%date:~5,2%%date:~8,2%
if @%DAY%@==@@ set DAY=%date:~5,5%-%date:~0,4%

:: 将要打包的文件复制到临时文件夹，将排除文件列表(excludelist.txt)中的文件排除在外
xcopy %FROM% %TEMP% /S /Y /I /D:%DAY% /EXCLUDE:excludelist.txt

IF EXIST %TEMP% (
	:: 使用7z命令行程序进行打包
	7z a -t7z %TO%.7z .\%TEMP%\*

	:: 删除临时文件
	rmdir /S /Q %TEMP%

	echo 文件已打包到 %TO%.7z
) else (
	echo %~n1 中没有需要打包的文件
)

:: 重置变量，防止默认值被设置为上次使用的值
set FROM=
set TO=
set DAY=
set TEMP=

:: 如果有更多目录要打包，则继续重新打包其它目录
if not @%2@==@@ shift &amp;&amp; goto START

echo.

if @%1@==@@ (
	echo 打完收工! 按任意键退出...
	pause&gt;nul
) else (
	echo 打完收工! 一会就退出...
	ping 127.0.0.1 -n 3 &gt;nul
)
</pre>
<p>提示: 不要忘了 excludelist.txt 哦，参见之前的那篇文章《<a href="http://lodar.net/packaging-modified-files-using-batch-file/">打包修改过的文件的批处理</a>》。</p>
]]></content:encoded>
			<wfw:commentRss>http://lodar.net/packaging-modified-files-using-batch-file-updated-v2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 不兼容插件引发的惨案</title>
		<link>http://lodar.net/bad-plugin-cause-the-wp-admin-ajax-error/</link>
		<comments>http://lodar.net/bad-plugin-cause-the-wp-admin-ajax-error/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 16:18:50 +0000</pubDate>
		<dc:creator>Mr.Lodar</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://lodar.net/?p=260</guid>
		<description><![CDATA[前言 WordPress 从 2.x 升级到了 3.0.1，又恰逢更换了主机，从原来Windows的主机切换到了Linux主机上。 惨剧 某天在后台发现有插件可以更新了，于是点了自动更新，然后杯具的事情发生了，自动更新失败，以为是权限问题，登上FTP，到处查看修改权限，无果，于是念叨这主机是不是有问题，不能通过它访问网络？是不是差劲了点？然后手动上传覆盖了好几个插件的更新…… 再过了几天，发现模板不支持3.0的菜单功能，于是换了模板，加入菜单，又发现了问题，新建菜单可以成功，但是不能修改，每次修改都失败…… 随即要添加文章，新的问题又来了，新添的文章会自动生成固定链接，因为觉得固定链接生成的不是很好，想修改掉，结果也不能修改…… 这下可让我烦起来了，想想肯定是哪里出问题了，静下心想了想，后台凡是Ajax的操作均无响应，并且数据也没有更新，之前出问题的部分都涉及Ajax，是不是这里出问题了? 上帝保佑 马上开启Firefox，用Firedebug查看XHR数据，发现admin-ajax.php返回HTTP响应头为 HTTP/1.1 500 Internal Server Error 很明显，后台程序运行出错了，WP本身应该不会烦这么低级的错误，我又没改过后台的代码，那么应该是插件引起问题无疑了，在wp-config.php文件中激活调试 然后在错误日志文件中找到了一些与插件文件相关的错误，将这些插件逐个禁用/启用排查问题，结果发现只要将“WordPress Thread Comment”插件(作者:偶爱偶家)禁用之后这些Ajax操作就都正常了，所以确定该问题是由“WordPress Thread Comment”插件导致 PS: 今天(2011年1月8日)升级及添加了些插件，发现又出了这个问题，这次查出来是“All in One SEO Pack”这个插件导致，抱着试试看的态度重新启用“WordPress Thread Comment”插件，发现又可以用了…… 结局 就这样，之前所有的问题(包括自动更新的问题)就都解决了，不兼容插件惹的祸啊~ 差点错怪主机提供商了，汗~~]]></description>
			<content:encoded><![CDATA[<p><strong>前言</strong></p>
<p>WordPress 从 2.x 升级到了 3.0.1，又恰逢更换了主机，从原来Windows的主机切换到了Linux主机上。</p>
<p><strong>惨剧</strong></p>
<p>某天在后台发现有插件可以更新了，于是点了自动更新，然后杯具的事情发生了，自动更新失败，以为是权限问题，登上FTP，到处查看修改权限，无果，于是念叨这主机是不是有问题，不能通过它访问网络？是不是差劲了点？然后手动上传覆盖了好几个插件的更新……</p>
<p>再过了几天，发现模板不支持3.0的菜单功能，于是换了模板，加入菜单，又发现了问题，新建菜单可以成功，但是不能修改，每次修改都失败……</p>
<p>随即要添加文章，新的问题又来了，新添的文章会自动生成固定链接，因为觉得固定链接生成的不是很好，想修改掉，结果也不能修改……</p>
<p>这下可让我烦起来了，想想肯定是哪里出问题了，静下心想了想，后台凡是Ajax的操作均无响应，并且数据也没有更新，之前出问题的部分都涉及Ajax，是不是这里出问题了?</p>
<p><strong>上帝保佑</strong></p>
<p>马上开启Firefox，用Firedebug查看XHR数据，发现admin-ajax.php返回HTTP响应头为</p>
<blockquote><p>HTTP/1.1 500 Internal Server Error</p></blockquote>
<p>很明显，后台程序运行出错了，WP本身应该不会烦这么低级的错误，我又没改过后台的代码，那么应该是插件引起问题无疑了，在wp-config.php文件中激活调试</p>
<pre class="brush: php; gutter: false; title: ; notranslate">
define('WP_DEBUG', true);
</pre>
<p>然后在错误日志文件中找到了一些与插件文件相关的错误，将这些插件逐个禁用/启用排查问题，结果发现只要将“WordPress Thread Comment”插件(作者:偶爱偶家)禁用之后这些Ajax操作就都正常了，所以确定该问题是由“WordPress Thread Comment”插件导致</p>
<p>PS: 今天(2011年1月8日)升级及添加了些插件，发现又出了这个问题，这次查出来是“All in One SEO Pack”这个插件导致，抱着试试看的态度重新启用“WordPress Thread Comment”插件，发现又可以用了……</p>
<p><strong>结局</strong></p>
<p>就这样，之前所有的问题(包括自动更新的问题)就都解决了，不兼容插件惹的祸啊~ 差点错怪主机提供商了，汗~~</p>
]]></content:encoded>
			<wfw:commentRss>http://lodar.net/bad-plugin-cause-the-wp-admin-ajax-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>开机后任务栏托盘图标显示不全</title>
		<link>http://lodar.net/some-taskbar-tray-icon-missing-after-boot/</link>
		<comments>http://lodar.net/some-taskbar-tray-icon-missing-after-boot/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 13:13:14 +0000</pubDate>
		<dc:creator>Mr.Lodar</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[任务栏]]></category>

		<guid isPermaLink="false">http://lodar.net/?p=232</guid>
		<description><![CDATA[问题描述： 有时候装了一些开机自启动的程序，在系统启动的时候有些就会在系统托盘区添加一个图标方便操作，有些情况下开机以后发现图标只显示了一部分，还有一些没有显示出来，字体注销重新登录后能显示出来，但是重启计算机以后问题依旧，是个非常奇怪的问题，居然是UPnP设备发现服务造成的。 解决方法： 控制面板的管理工具里面打开“服务”，或者在“开始”→“运行”（WinKey+R）中输入“service.msc”（不带引号） ，找到名称为“SSDP Discovery Service”的服务（即UPnP设备发现服务），选择右键→属性，启动类型改为“已禁用”，然后停止该服务，然后重新启动计算机，你会发现一切正常了。]]></description>
			<content:encoded><![CDATA[<p><strong>问题描述：</strong></p>
<p style="text-indent: 2em;">有时候装了一些开机自启动的程序，在系统启动的时候有些就会在系统托盘区添加一个图标方便操作，有些情况下开机以后发现图标只显示了一部分，还有一些没有显示出来，字体注销重新登录后能显示出来，但是重启计算机以后问题依旧，是个非常奇怪的问题，居然是UPnP设备发现服务造成的。</p>
<p><strong>解决方法：</strong></p>
<p style="text-indent: 2em;">控制面板的管理工具里面打开“服务”，或者在“开始”→“运行”（WinKey+R）中输入“service.msc”（不带引号） ，找到名称为“SSDP Discovery Service”的服务（即UPnP设备发现服务），选择右键→属性，启动类型改为“已禁用”，然后停止该服务，然后重新启动计算机，你会发现一切正常了。</p>
]]></content:encoded>
			<wfw:commentRss>http://lodar.net/some-taskbar-tray-icon-missing-after-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>部分程序的菜单栏中的中文字体显示有问题</title>
		<link>http://lodar.net/chinese-font-display-problem-on-menubar/</link>
		<comments>http://lodar.net/chinese-font-display-problem-on-menubar/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 13:12:52 +0000</pubDate>
		<dc:creator>Mr.Lodar</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[字体]]></category>

		<guid isPermaLink="false">http://lodar.net/?p=228</guid>
		<description><![CDATA[问题描述： 这种情况通常出现在Java程序、Gtk程序之类非Windows原生的程序(Native App)中，比如OpenOffice.org的菜单栏、FreeMind的菜单栏、还有基于QT库的Vidalia的系统托盘通知区图标的弹出菜单等，原因是因为安装了第三方主题等使系统菜单字体设置成8号“Tahoma”适合英文显示的字体却影响了汉字的显示效果。 解决方法： 桌面右键→属性，切换到外观选项卡，点击“高级”按钮，在弹出的对话框中的项目中选择“菜单”，然后调整字体大小，一般中文字体设为9较为合适，推荐使用9号“Tahoma”字体，如果其他项目字体显示有问题也可以到这里更改为9号”Tahoma”，或者索性把所有的字体全部改成9号”Tahoma”，当然，也可以使用你自己喜欢的字体。]]></description>
			<content:encoded><![CDATA[<p><strong>问题描述：</strong></p>
<p style="text-indent: 2em;">这种情况通常出现在Java程序、Gtk程序之类非Windows原生的程序(Native App)中，比如OpenOffice.org的菜单栏、FreeMind的菜单栏、还有基于QT库的Vidalia的系统托盘通知区图标的弹出菜单等，原因是因为安装了第三方主题等使系统菜单字体设置成8号“Tahoma”适合英文显示的字体却影响了汉字的显示效果。</p>
<p><strong>解决方法：</strong></p>
<p style="text-indent: 2em;">桌面右键→属性，切换到外观选项卡，点击“高级”按钮，在弹出的对话框中的项目中选择“菜单”，然后调整字体大小，一般中文字体设为9较为合适，推荐使用9号“Tahoma”字体，如果其他项目字体显示有问题也可以到这里更改为9号”Tahoma”，或者索性把所有的字体全部改成9号”Tahoma”，当然，也可以使用你自己喜欢的字体。</p>
]]></content:encoded>
			<wfw:commentRss>http://lodar.net/chinese-font-display-problem-on-menubar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

