<?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>Learning jQuery</title>
	<atom:link href="http://www.learningjquery.org/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.org</link>
	<description>Learning jQuery: Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<lastBuildDate>Tue, 24 Aug 2010 10:10:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>仿iGoogle的拖动及排序效果[乱炖]</title>
		<link>http://www.learningjquery.org/index.php/imitation-and-ranked-by-igoogleu002639s-drag-luandun/</link>
		<comments>http://www.learningjquery.org/index.php/imitation-and-ranked-by-igoogleu002639s-drag-luandun/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 10:10:35 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[iGoogle]]></category>
		<category><![CDATA[拖动]]></category>
		<category><![CDATA[排序]]></category>

		<guid isPermaLink="false">http://www.learningjquery.org/?p=226</guid>
		<description><![CDATA[仿iGoogle的拖动及排序效果
可以参见：http://net.tutsplus.com/tutorials/javascript-ajax/inettuts/
有詳細的说明，并有Demo可以在线预览，同时还提供了下载。
在使用的过程中，我遇到一些问题，花了好长时间才解决，在此记下来。
1. js版本问题
下载Demo后，发现它用到的jQuery版本是jquery-1.2.6.min.js。但我们项目中用到的jQuery大都使用了更高的版本，比如1.3.2或是，1.4.2。
如果替换掉Demo中的jQuery，会发现拖动和排序效果失效，但其它效果(编辑，删除)还起作用。上网查了一番，终于找到一解决办法: 在 inettuts.js 中找到 var notSortable = &#8221;;  改成 var notSortable = null; 就可以了。
2. 和jScrollPane的css冲突问题
jScrollPane 是基于jQuery的滚动条效果，可以通过svn更新到本地，(svn 地址： http://jscrollpane.googlecode.com/svn/trunk/ ) 里面包含有Demo可供做测试。
情景再现：我有左右两个列表，左侧使用了jScrollPane。当把左侧的项目拖动到右侧时，要拖动的项总是被遮住；而从右侧拖回左侧则正常。我起初以为是z-index的设置有问题，修改z-index后，问题依然存在。然后，我用jQueryUI中的一些函数设置z-index也没起作用。但是去掉左侧列表的jScrollPane效果后，一切正常。
后来发现是css的原因，我们只需要修改 jScrollPane.css 中 .jScrollPaneContainer， 把其中的 overflow: hidden; 改成 overflow: visible; 如果其它页面中也用到了同样的css，为不影响其它页面，可以仅在当前页修改css.
3. thickbox和这两个js都冲突
情景再现：我在A页面中用js做了拖动，排序及滚动条效果，也就是用到了上面提到的两个js。在B页面使用thickbox弹出A页面。
问题：拖动效果失效，滚动条效果在不同浏览器下表现不一致。
解决办法：彻底放弃thickbox,改用fancybox。
关于 fancybox
官方网站：http://fancybox.net/
下载地址：http://fancybox.googlecode.com/files/jquery.fancybox-1.3.1.zip
使用方法：http://fancybox.net/howto
]]></description>
			<content:encoded><![CDATA[<p>仿iGoogle的拖动及排序效果</p>
<p>可以参见：http://net.tutsplus.com/tutorials/javascript-ajax/inettuts/</p>
<p>有詳細的说明，并有Demo可以在线预览，同时还提供了下载。<br />
在使用的过程中，我遇到一些问题，花了好长时间才解决，在此记下来。</p>
<p>1. js版本问题<br />
下载Demo后，发现它用到的jQuery版本是jquery-1.2.6.min.js。但我们项目中用到的jQuery大都使用了更高的版本，比如1.3.2或是，1.4.2。<br />
如果替换掉Demo中的jQuery，会发现拖动和排序效果失效，但其它效果(编辑，删除)还起作用。上网查了一番，终于找到一解决办法: 在 inettuts.js 中找到 var notSortable = &#8221;;  改成 var notSortable = null; 就可以了。</p>
<p>2. 和jScrollPane的css冲突问题<br />
jScrollPane 是基于jQuery的滚动条效果，可以通过svn更新到本地，(svn 地址： http://jscrollpane.googlecode.com/svn/trunk/ ) 里面包含有Demo可供做测试。</p>
<p>情景再现：我有左右两个列表，左侧使用了jScrollPane。当把左侧的项目拖动到右侧时，要拖动的项总是被遮住；而从右侧拖回左侧则正常。我起初以为是z-index的设置有问题，修改z-index后，问题依然存在。然后，我用jQueryUI中的一些函数设置z-index也没起作用。但是去掉左侧列表的jScrollPane效果后，一切正常。</p>
<p>后来发现是css的原因，我们只需要修改 jScrollPane.css 中 .jScrollPaneContainer， 把其中的 overflow: hidden; 改成 overflow: visible; 如果其它页面中也用到了同样的css，为不影响其它页面，可以仅在当前页修改css.</p>
<p>3. thickbox和这两个js都冲突</p>
<p>情景再现：我在A页面中用js做了拖动，排序及滚动条效果，也就是用到了上面提到的两个js。在B页面使用thickbox弹出A页面。<br />
问题：拖动效果失效，滚动条效果在不同浏览器下表现不一致。</p>
<p>解决办法：彻底放弃thickbox,改用fancybox。</p>
<p>关于 fancybox<br />
官方网站：http://fancybox.net/<br />
下载地址：http://fancybox.googlecode.com/files/jquery.fancybox-1.3.1.zip<br />
使用方法：http://fancybox.net/howto</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningjquery.org/index.php/imitation-and-ranked-by-igoogleu002639s-drag-luandun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpmailer发送邮件</title>
		<link>http://www.learningjquery.org/index.php/phpmailer-to-send-mail/</link>
		<comments>http://www.learningjquery.org/index.php/phpmailer-to-send-mail/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 10:04:09 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpmailer]]></category>
		<category><![CDATA[发送邮件]]></category>

		<guid isPermaLink="false">http://www.learningjquery.org/?p=222</guid>
		<description><![CDATA[PHPMailer是一个免费，开源且功能强大的php发送邮件类,可以设定发送邮件地址、回复地址、邮件主题、富文本内容,上传附件等。
下载地址：http://sourceforge.net/project/showfiles.php?group_id=26031&#038;package_id=252700
下面我们用一个实例来介绍它的用法。
测试环境：
Ubuntu 9.10
Postfix 2.6.5
PHP 5.2.10

&#60;?php
require_once(&#34;class.phpmailer.php&#34;);

$mail = new PHPMailer();

// 默认编码为 iso-8859-1，当邮件中包含中文字符时，会出现乱码，所以我们改成UTF8
$mail-&#62;CharSet = 'UTF8'; 

// 设置PHPMailer是否使用 SMTP，如果设置了该项，其他相关项也需要设置
$mail-&#62;IsSMTP();

// SMTP服务器地址，也可以使用第三方提供的免费SMTP服务器，如新浪免费邮箱发信(smtp)服务器的地址为：smtp.sina.com
$mail-&#62;Host = 'localhost';

// 设置是否启用SMTP认证，当为true时有时会出错，所以这里我们设置为false
$mail-&#62;SMTPAuth = false;

// SMTP用户名，如果使用linux下的sendmail或postfix等邮件服务器, 此处留空；如果使用第三方的SMTP服务器，要填写相应用户名，也就是你的邮箱地址
$mail-&#62;Username = '';

// SMTP密码，基本同上
$mail-&#62;Password = ''; 

// 设置邮件正文的格式，默认为Html格式，当为false时，使用文本格式
$mail-&#62;IsHTML(true);

// 邮件正文
$mail-&#62;Body = 'The Mail Contents';

// 当用户查看邮件的设备不支持HTML时，可以在这里输入纯文本的内容
$mail-&#62;AltBody = &#34;This is the body in plain text for non-HTML mail clients&#34;; 

// 发件人地址
$mail-&#62;From = 'example@example.com'; 

// 发件人姓名
$mail-&#62;FromName = 'Ben';

// [...]]]></description>
			<content:encoded><![CDATA[<p>PHPMailer是一个免费，开源且功能强大的php发送邮件类,可以设定发送邮件地址、回复地址、邮件主题、富文本内容,上传附件等。</p>
<p>下载地址：http://sourceforge.net/project/showfiles.php?group_id=26031&#038;package_id=252700</p>
<p>下面我们用一个实例来介绍它的用法。</p>
<p>测试环境：<br />
Ubuntu 9.10<br />
Postfix 2.6.5<br />
PHP 5.2.10</p>
<pre class="brush: php;">
&lt;?php
require_once(&quot;class.phpmailer.php&quot;);

$mail = new PHPMailer();

// 默认编码为 iso-8859-1，当邮件中包含中文字符时，会出现乱码，所以我们改成UTF8
$mail-&gt;CharSet = 'UTF8'; 

// 设置PHPMailer是否使用 SMTP，如果设置了该项，其他相关项也需要设置
$mail-&gt;IsSMTP();

// SMTP服务器地址，也可以使用第三方提供的免费SMTP服务器，如新浪免费邮箱发信(smtp)服务器的地址为：smtp.sina.com
$mail-&gt;Host = 'localhost';

// 设置是否启用SMTP认证，当为true时有时会出错，所以这里我们设置为false
$mail-&gt;SMTPAuth = false;

// SMTP用户名，如果使用linux下的sendmail或postfix等邮件服务器, 此处留空；如果使用第三方的SMTP服务器，要填写相应用户名，也就是你的邮箱地址
$mail-&gt;Username = '';

// SMTP密码，基本同上
$mail-&gt;Password = ''; 

// 设置邮件正文的格式，默认为Html格式，当为false时，使用文本格式
$mail-&gt;IsHTML(true);

// 邮件正文
$mail-&gt;Body = 'The Mail Contents';

// 当用户查看邮件的设备不支持HTML时，可以在这里输入纯文本的内容
$mail-&gt;AltBody = &quot;This is the body in plain text for non-HTML mail clients&quot;; 

// 发件人地址
$mail-&gt;From = 'example@example.com'; 

// 发件人姓名
$mail-&gt;FromName = 'Ben';

// 也可以这样设置发件人的址址及姓名

$mail-&gt;SetFrom('example@example.com', 'Ben');

// 添加回复地址，姓名
$mail-&gt;AddReplyTo(&quot;example@example.com&quot;,&quot;Reply Name&quot;);

// 添加抄送地址，貌似只能在win32平台使用，未做测试
$mail-&gt;AddCC($address, $name = &quot;&quot;);

// 添加密送地址，貌似只能在win32平台使用，未做测试
$msil-&gt;AddBCC($address, $name = &quot;&quot;);

$mail-&gt;Subject = 'Test'; // 邮件主题

// AddAddress($address, $name = &quot;&quot;), 添加一个收件人地址，收件人姓名默认为空
$mail-&gt;AddAddress('example@example.com');

// 添加一个附件
$mail-&gt;AddAttachment(&quot;doc/learningjquery.pdf&quot;);

// 清除所有收件人地址,当给多人发送邮件时，此方法尤其有用
$mail-&gt;ClearAddresses();

// Send()方法：创建信息和发送邮件,如果发送失败返回false,使用下面的ErrorInfo属性可以显示错误描述,发送成功返回true
if(!$mail-&gt;Send())
{
	echo &quot;Mailer Error: &quot; . $mail-&gt;ErrorInfo;
	exit;
}

echo 'Send Successful.';
?&gt;
</pre>
<p>PHPMailer的方法请参见： http://phpmailer.worxware.com/index.php?pg=methods<br />
PHPMailer的属性请参见： http://phpmailer.worxware.com/index.php?pg=properties</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningjquery.org/index.php/phpmailer-to-send-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rmail for php 使用Rmail 发送邮件</title>
		<link>http://www.learningjquery.org/index.php/rmail-for-php-to-send-mail-using-rmail/</link>
		<comments>http://www.learningjquery.org/index.php/rmail-for-php-to-send-mail-using-rmail/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 08:01:38 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[Rmail]]></category>
		<category><![CDATA[发送邮件]]></category>

		<guid isPermaLink="false">http://www.learningjquery.org/?p=220</guid>
		<description><![CDATA[
&#60;?php
require_once('Rmail.php');

$mail = new Rmail();

/**
 * 设置邮件是来自何处
 */
$mail-&#62;setFrom('Richard &#60;richard@example.com&#62;');

/**
 * 设置文本的编码
 */
$mail-&#62;setTextCharset('UTF-8');

/**
 * 设置HTML的编码,如果HTML中存在中文，可将编码设置成'UTF-8',否则会出现乱码
 */
$mail-&#62;setHTMLCharset('UTF-8');

/**
 * 设置抄送地址
 */
$mail-&#62;setCc('Bob &#60;bob@example.com&#62;');

/**
 * 设置密送地址
 */
$mail-&#62;setBcc('Fred &#60;fred@example.com&#62;');

/**
 * 设置邮件的主题(标题)
 */
$mail-&#62;setSubject('Test email');

/**
 * 设置邮件的优先级，可用参数有：high、normal、low、1、3、5
 */
$mail-&#62;setPriority('high');

/**
 * 设置邮件发送的文本
 */
$mail-&#62;setText('Sample text');

/**
 * 当然也可以将HTML代码做为邮件内容，HTML中的图片会被自动发现。
 */
$mail-&#62;setHTML('&#60;b&#62;Sample HTML&#60;/b&#62; &#60;img src=&#34;background.gif&#34;&#62;');

/**
 * 设置回复邮件时用的邮件地址，参数是一个合法的电子邮件地址。
 */
$mail-&#62;setReceipt('test@test.com');

/**
 * Add an embedded image. The path is the file path to the [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">
&lt;?php
require_once('Rmail.php');

$mail = new Rmail();

/**
 * 设置邮件是来自何处
 */
$mail-&gt;setFrom('Richard &lt;richard@example.com&gt;');

/**
 * 设置文本的编码
 */
$mail-&gt;setTextCharset('UTF-8');

/**
 * 设置HTML的编码,如果HTML中存在中文，可将编码设置成'UTF-8',否则会出现乱码
 */
$mail-&gt;setHTMLCharset('UTF-8');

/**
 * 设置抄送地址
 */
$mail-&gt;setCc('Bob &lt;bob@example.com&gt;');

/**
 * 设置密送地址
 */
$mail-&gt;setBcc('Fred &lt;fred@example.com&gt;');

/**
 * 设置邮件的主题(标题)
 */
$mail-&gt;setSubject('Test email');

/**
 * 设置邮件的优先级，可用参数有：high、normal、low、1、3、5
 */
$mail-&gt;setPriority('high');

/**
 * 设置邮件发送的文本
 */
$mail-&gt;setText('Sample text');

/**
 * 当然也可以将HTML代码做为邮件内容，HTML中的图片会被自动发现。
 */
$mail-&gt;setHTML('&lt;b&gt;Sample HTML&lt;/b&gt; &lt;img src=&quot;background.gif&quot;&gt;');

/**
 * 设置回复邮件时用的邮件地址，参数是一个合法的电子邮件地址。
 */
$mail-&gt;setReceipt('test@test.com');

/**
 * Add an embedded image. The path is the file path to the image.
 * 添加一个嵌入的图像，该路径是图片文件的路径。
 */
$mail-&gt;addEmbeddedImage(new fileEmbeddedImage('background.gif'));

/**
 * 添加邮件附件
 */
$mail-&gt;addAttachment(new fileAttachment('example.zip'));

/**
 * 发送邮件，参数为收件人电子邮件地址组成的数组。
 */
$address = array('ben@learningjquery.org');
$result  = $mail-&gt;send($address);

// 相关方法
/*
    *  constructor
    * setCRLF()
    * setSMTPParams()
    * setSendmailPath()
    * setTextEncoding()
    * setHTMLEncoding()
    * setTextCharset()
    * setHTMLCharset()
    * setHeadCharset()
    * setTextWrap()
    * setHeader()
    * setReceipt()
    * setSubject()
    * setFrom()
    * setPriority()
    * setReturnPath()
    * setCc()
    * setBcc()
    * setText()
    * setHTML()
    * addAttachment()
    * send()
    * getRFC822()
*/
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.learningjquery.org/index.php/rmail-for-php-to-send-mail-using-rmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FLEXIcontent 中新建字段</title>
		<link>http://www.learningjquery.org/index.php/flexicontent-in-the-new-field/</link>
		<comments>http://www.learningjquery.org/index.php/flexicontent-in-the-new-field/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 10:31:12 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[FLEXIcontent]]></category>
		<category><![CDATA[新建字段]]></category>

		<guid isPermaLink="false">http://www.learningjquery.org/?p=217</guid>
		<description><![CDATA[当前环境：
Joomla Version 1.5.18
FLEXIcontent version 1.5.2 stable
我们想在发表文章时，加一些自定义的属性，可以通过增加自定义的字段实现。点击FLEXIcontent后台管理的Fields菜单，然后点击右上角的‘New’，进入新建字段的界面。
一、
左侧的Field properties中可以设置：
Label名称，字段名，是否发布，是否允许搜索， 是否允许高级搜索，是否过滤，访问权限，字段类型，排序以及字段的描述。
二、
右侧的参数设置因字段类型而异，但总体上分为：Types, Field standard properties 和 Field specific properties。
我们以 ‘FLEXIcontent &#8211; Select Multiple’ 类型为例：
(一)、 Types:
用来设置该字段用于哪个类型，可以多选。
(二)、Field standard properties：
Display label：设置是否显示label
(三)、Field specific properties:
我们主要介绍本部分中如何设置字段的元素值。
1. Use SQL query： 可以设置是否使用sql查询， 从数据库中读取记录，用来表示新建字段的元素值。
2. Field elements：
如果选择用sql，我们可以输入类似下面的sql语句：
SELECT id AS value, title AS text FROM jos_content WHERE catid IN(11,32) ORDER BY ordering
此时可以将数据库中查出来的 id 做为 option 的 value, title做为 option 的text。
]]></description>
			<content:encoded><![CDATA[<p>当前环境：<br />
Joomla Version 1.5.18<br />
FLEXIcontent version 1.5.2 stable</p>
<p>我们想在发表文章时，加一些自定义的属性，可以通过增加自定义的字段实现。点击FLEXIcontent后台管理的Fields菜单，然后点击右上角的‘New’，进入新建字段的界面。</p>
<p>一、<br />
左侧的Field properties中可以设置：<br />
Label名称，字段名，是否发布，是否允许搜索， 是否允许高级搜索，是否过滤，访问权限，字段类型，排序以及字段的描述。</p>
<p>二、<br />
右侧的参数设置因字段类型而异，但总体上分为：Types, Field standard properties 和 Field specific properties。<br />
我们以 ‘FLEXIcontent &#8211; Select Multiple’ 类型为例：</p>
<p>(一)、 Types:<br />
用来设置该字段用于哪个类型，可以多选。</p>
<p>(二)、Field standard properties：<br />
Display label：设置是否显示label</p>
<p>(三)、Field specific properties:<br />
我们主要介绍本部分中如何设置字段的元素值。<br />
1. Use SQL query： 可以设置是否使用sql查询， 从数据库中读取记录，用来表示新建字段的元素值。</p>
<p>2. Field elements：<br />
如果选择用sql，我们可以输入类似下面的sql语句：<br />
SELECT id AS value, title AS text FROM jos_content WHERE catid IN(11,32) ORDER BY ordering<br />
此时可以将数据库中查出来的 id 做为 option 的 value, title做为 option 的text。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningjquery.org/index.php/flexicontent-in-the-new-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AceSEF问题汇总</title>
		<link>http://www.learningjquery.org/index.php/acesef-issue-summary/</link>
		<comments>http://www.learningjquery.org/index.php/acesef-issue-summary/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 10:48:48 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[AceSEF]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Joomla组件]]></category>
		<category><![CDATA[SEF URLs]]></category>

		<guid isPermaLink="false">http://www.learningjquery.org/?p=213</guid>
		<description><![CDATA[AceSEF是一个灵活而强大的Joomla组件, 它提供了 SEF URLs(Search Engine Friendly URLs，搜索引擎友好的网址)，meta标签设置和生成网站地图等功能。AceSEF具有易于使用的图形用户界面，简化了对网站搜索引擎优化的管理。
AceSEF支持使用了JoomFish的多语言网站，提供全自动或手动设置页面meta标签的功能，可以为各种语言提供不同的meta标签，并100％采用模块化方式编写，从而可以方便的设置各个模块。
下载地址：http://www.joomace.net/joomla-extensions/acesef
1. 点击文章链接，提示‘404’的解决办法:
当前环境：
Ubuntu 9.10
Joomla 1.5.18
FLEXIcontent version 1.5.2 stable
AceSEF 1.3.8 
在Joomla后台的 Global Configuration &#8211;> Site &#8211;> SEO Settings 中，未启用 search Engine Friendly URLs 时，文章链接为：/index.php?option=com_flexicontent&#038;view=items&#038;cid=61%3Abooks&#038;id=152%3Akangxin-recognized-by-managing-intellectual-property-as-top-chinese-firm-in-trademark-and-patent-practice-areas-&#038;Itemid=49&#038;lang=en ，此时文章内容可以正常显示。
启用该项后，文章链接为 /publications/case-studies/kangxin-recognized-by-managing-intellectual-property-as-top-chinese-firm-in-trademark-and-patent-practice-areas ，此时不显示文章内容，而变成404页。
经测试，当前类别下的其它文章都能正常显示，起初以为是FLEXIcontent中文章设置有问题，经对比，没发现任何异常。后来发现这篇文章的标题特别的长，而其它文章标题较短的都能正常显示文章内容。为了验证这想法是否正确，我把当前文章的标题改的短一点，结果可以正常显示文章内容了。但是文章标题是按客户提供的资料填的，所以不能简单的改改标题了事。由此着手，我们来找一下AceSEF中是否有对标题长度设置的选项。
经过一番查找，在AceSEF后台的 Configuration &#8211;> SEO &#8211;> Internal Links Configuration 中有一项名为 ‘Limit links for each word’的设置，默认值为10, 把它改成20后，保存设置。回到FLEXIcontent中，再把刚才的文章标题改成原来的长标题，再次访问点击这篇文章时，已不再提示404信息，文章内容也可以正常显示了。
结论：我们可以根据当前网站的实际需要把这个值改得大一点。
]]></description>
			<content:encoded><![CDATA[<p>AceSEF是一个灵活而强大的Joomla组件, 它提供了 SEF URLs(Search Engine Friendly URLs，搜索引擎友好的网址)，meta标签设置和生成网站地图等功能。AceSEF具有易于使用的图形用户界面，简化了对网站搜索引擎优化的管理。<br />
AceSEF支持使用了JoomFish的多语言网站，提供全自动或手动设置页面meta标签的功能，可以为各种语言提供不同的meta标签，并100％采用模块化方式编写，从而可以方便的设置各个模块。</p>
<p>下载地址：http://www.joomace.net/joomla-extensions/acesef</p>
<p>1. 点击文章链接，提示‘404’的解决办法:</p>
<p>当前环境：<br />
Ubuntu 9.10<br />
Joomla 1.5.18<br />
FLEXIcontent version 1.5.2 stable<br />
AceSEF 1.3.8 </p>
<p>在Joomla后台的 Global Configuration &#8211;> Site &#8211;> SEO Settings 中，未启用 search Engine Friendly URLs 时，文章链接为：/index.php?option=com_flexicontent&#038;view=items&#038;cid=61%3Abooks&#038;id=152%3Akangxin-recognized-by-managing-intellectual-property-as-top-chinese-firm-in-trademark-and-patent-practice-areas-&#038;Itemid=49&#038;lang=en ，此时文章内容可以正常显示。<br />
启用该项后，文章链接为 /publications/case-studies/kangxin-recognized-by-managing-intellectual-property-as-top-chinese-firm-in-trademark-and-patent-practice-areas ，此时不显示文章内容，而变成404页。<br />
经测试，当前类别下的其它文章都能正常显示，起初以为是FLEXIcontent中文章设置有问题，经对比，没发现任何异常。后来发现这篇文章的标题特别的长，而其它文章标题较短的都能正常显示文章内容。为了验证这想法是否正确，我把当前文章的标题改的短一点，结果可以正常显示文章内容了。但是文章标题是按客户提供的资料填的，所以不能简单的改改标题了事。由此着手，我们来找一下AceSEF中是否有对标题长度设置的选项。<br />
经过一番查找，在AceSEF后台的 Configuration &#8211;> SEO &#8211;> Internal Links Configuration 中有一项名为 ‘Limit links for each word’的设置，默认值为10, 把它改成20后，保存设置。回到FLEXIcontent中，再把刚才的文章标题改成原来的长标题，再次访问点击这篇文章时，已不再提示404信息，文章内容也可以正常显示了。<br />
结论：我们可以根据当前网站的实际需要把这个值改得大一点。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningjquery.org/index.php/acesef-issue-summary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP实用函数 array_reverse</title>
		<link>http://www.learningjquery.org/index.php/php-utility-function-array_reverse/</link>
		<comments>http://www.learningjquery.org/index.php/php-utility-function-array_reverse/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 14:47:06 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[函数]]></category>
		<category><![CDATA[array_reverse]]></category>
		<category><![CDATA[PHP实用函数]]></category>

		<guid isPermaLink="false">http://www.learningjquery.org/?p=207</guid>
		<description><![CDATA[array_reverse
描述：将原数组中的元素顺序翻转，创建新的数组并返回。如果第二个参数指定为 true，则元素的键名保持不变，否则键名将丢失。
語法：array array_reverse  (  array $array  [,  bool $preserve_keys = false  ] )
    $array 必选参数， 指定要倒序的数组。
    $preserve_keys 可选参数，默认值为false, 如果为true,则元素的键名保持不变。
例1.

&#60;?php
$website = array(0 =&#62; &#34;www.google.com&#34;, 1 =&#62; &#34;www.yahoo.com&#34;, 5 =&#62; &#34;www.learningjquery.org&#34;);
print_r(array_reverse($website, true));
print_r(array_reverse($website));
$website = array('a' =&#62; &#34;www.google.com&#34;, 'b' =&#62; &#34;www.yahoo.com&#34;, 'c' =&#62; &#34;www.learningjquery.org&#34;);
print_r(array_reverse($website, true));
print_r(array_reverse($website));
/*
输出：
Array ( [5] =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>array_reverse<br />
描述：将原数组中的元素顺序翻转，创建新的数组并返回。如果第二个参数指定为 true，则元素的键名保持不变，否则键名将丢失。</p>
<p>語法：array array_reverse  (  array $array  [,  bool $preserve_keys = false  ] )<br />
    $array 必选参数， 指定要倒序的数组。<br />
    $preserve_keys 可选参数，默认值为false, 如果为true,则元素的键名保持不变。</p>
<p>例1.</p>
<pre class="brush: php;">
&lt;?php
$website = array(0 =&gt; &quot;www.google.com&quot;, 1 =&gt; &quot;www.yahoo.com&quot;, 5 =&gt; &quot;www.learningjquery.org&quot;);
print_r(array_reverse($website, true));
print_r(array_reverse($website));
$website = array('a' =&gt; &quot;www.google.com&quot;, 'b' =&gt; &quot;www.yahoo.com&quot;, 'c' =&gt; &quot;www.learningjquery.org&quot;);
print_r(array_reverse($website, true));
print_r(array_reverse($website));
/*
输出：
Array ( [5] =&gt; www.learningjquery.org [1] =&gt; www.yahoo.com [0] =&gt; www.google.com )
Array ( [0] =&gt; www.learningjquery.org [1] =&gt; www.yahoo.com [2] =&gt; www.google.com )
Array ( [c] =&gt; www.learningjquery.org [b] =&gt; www.yahoo.com [a] =&gt; www.google.com )
Array ( [c] =&gt; www.learningjquery.org [b] =&gt; www.yahoo.com [a] =&gt; www.google.com )
*/
?&gt;
</pre>
<p>注：<br />
经测试，仅当键名为数字时，第二个参数才起作用。</p>
<p>参考：</p>
<p>http://cn.php.net/manual/en/function.array-reverse.php</p>
<p>http://www.w3school.com.cn/php/func_array_reverse.asp</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningjquery.org/index.php/php-utility-function-array_reverse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ccnewsleter 发送邮件时提示：&#8217;The from name is empty! Send Message routine aborted.&#8217; 的解决办法</title>
		<link>http://www.learningjquery.org/index.php/ccnewsleter-prompted-to-send-a-message-u002639the-from-name-is-empty-send-message-routine-aborted-u002639-solution/</link>
		<comments>http://www.learningjquery.org/index.php/ccnewsleter-prompted-to-send-a-message-u002639the-from-name-is-empty-send-message-routine-aborted-u002639-solution/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 14:39:57 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[ccnewsleter]]></category>

		<guid isPermaLink="false">http://www.learningjquery.org/?p=204</guid>
		<description><![CDATA[根据提示，是因为&#8217;from name&#8217; 为空，所以得先设置 &#8216;from name&#8217;。 在ccNewsletter 后台的右上角点击 &#8216;Parameters&#8217;，在弹出的 &#8216;Global Configuration&#8217;窗口中填写以下几项的内容：
&#8216;From Name for Email&#8217; 		   &#8212; 发邮件时用到的名字
&#8216;From Email Address for Email&#8217; &#8212; 发邮件时用到的地址
&#8216;Email Address for Test Email&#8217; &#8212; 测试发邮件时用到的地址
其它的一些参数可根据需要进行设置，如 &#8216;Extended email validation&#8217; 用来设置验证邮件地址的合法性。
]]></description>
			<content:encoded><![CDATA[<p>根据提示，是因为&#8217;from name&#8217; 为空，所以得先设置 &#8216;from name&#8217;。 在ccNewsletter 后台的右上角点击 &#8216;Parameters&#8217;，在弹出的 &#8216;Global Configuration&#8217;窗口中填写以下几项的内容：<br />
&#8216;From Name for Email&#8217; 		   &#8212; 发邮件时用到的名字<br />
&#8216;From Email Address for Email&#8217; &#8212; 发邮件时用到的地址<br />
&#8216;Email Address for Test Email&#8217; &#8212; 测试发邮件时用到的地址</p>
<p>其它的一些参数可根据需要进行设置，如 &#8216;Extended email validation&#8217; 用来设置验证邮件地址的合法性。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningjquery.org/index.php/ccnewsleter-prompted-to-send-a-message-u002639the-from-name-is-empty-send-message-routine-aborted-u002639-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu下使用tcpdf生成中文pdf文件</title>
		<link>http://www.learningjquery.org/index.php/ubuntu-use-tcpdf-generate-pdf-files-in-chinese/</link>
		<comments>http://www.learningjquery.org/index.php/ubuntu-use-tcpdf-generate-pdf-files-in-chinese/#comments</comments>
		<pubDate>Mon, 03 May 2010 08:03:45 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[tcpdf]]></category>
		<category><![CDATA[生成中文pdf文件]]></category>

		<guid isPermaLink="false">http://www.learningjquery.org/?p=189</guid>
		<description><![CDATA[环境：ubuntu9.10
网站目录：/var/www/site/tcpdf/
默认情况下tcpdf不支持中文是因为缺少中文字体，所以我们的思路是安装相应的中文字体到tcpdf中。
1. 下载中文字体文件simfang.ttf
2. 复制simfang.ttf到网站目录下的：fonts\utils 下，在ubuntu的终端下运行以下命令：
cd /var/www/site/tcpdf/fonts/utils
wine ttf2ufm.exe -a -F simfang.ttf
3. 然后运行：
php -q makefont.php simfang.ttf simfang.ufm false
4. 此时/var/www/site/tcpdf/fonts/utils 目录下会生成以下文件：
simfang.afm、simfang.ctg.z、simfang.php、simfang.t1a、imfang.ufm、simfang.z。
5. 复制 simfang.ctg.z, simfang.php, simfang.z 三个文件到 网站的字体目录下，在本例中是：/var/www/site/tcpdf/fonts/
6. 我们以tcpdf自带的example_001.php 为例：
找到 $pdf->SetFont(&#8216;times&#8217;, &#8216;BI&#8217;, 16); 修改为：$pdf->SetFont(&#8217;simfang&#8217;, &#8216;B&#8217;, 16);
查找 $pdf->Cell(0, 12, &#8216;Example 001 &#8211; €àèéìòù&#8217;, 1, 1, &#8216;C&#8217;); 修改为： $pdf->Cell(0, 12, &#8216;Example 001 &#8211; 中文测试&#8217;, 1, 1, &#8216;C&#8217;);
7. 运行example_001.php 会发现生成的pdf文件中已经可以正常显示中文。
注： php.ini中默认的内存限制为16M，如果运行example_001.php时出现内存限制的错误提示，可以将php.ini中 memory_limit = [...]]]></description>
			<content:encoded><![CDATA[<p>环境：ubuntu9.10<br />
网站目录：/var/www/site/tcpdf/</p>
<p>默认情况下tcpdf不支持中文是因为缺少中文字体，所以我们的思路是安装相应的中文字体到tcpdf中。</p>
<p>1. 下载中文字体文件simfang.ttf</p>
<p>2. 复制simfang.ttf到网站目录下的：fonts\utils 下，在ubuntu的终端下运行以下命令：<br />
cd /var/www/site/tcpdf/fonts/utils<br />
wine ttf2ufm.exe -a -F simfang.ttf</p>
<p>3. 然后运行：<br />
php -q makefont.php simfang.ttf simfang.ufm false</p>
<p>4. 此时/var/www/site/tcpdf/fonts/utils 目录下会生成以下文件：<br />
simfang.afm、simfang.ctg.z、simfang.php、simfang.t1a、imfang.ufm、simfang.z。</p>
<p>5. 复制 simfang.ctg.z, simfang.php, simfang.z 三个文件到 网站的字体目录下，在本例中是：/var/www/site/tcpdf/fonts/</p>
<p>6. 我们以tcpdf自带的example_001.php 为例：</p>
<p>找到 $pdf->SetFont(&#8216;times&#8217;, &#8216;BI&#8217;, 16); 修改为：$pdf->SetFont(&#8217;simfang&#8217;, &#8216;B&#8217;, 16);</p>
<p>查找 $pdf->Cell(0, 12, &#8216;Example 001 &#8211; €àèéìòù&#8217;, 1, 1, &#8216;C&#8217;); 修改为： $pdf->Cell(0, 12, &#8216;Example 001 &#8211; 中文测试&#8217;, 1, 1, &#8216;C&#8217;);</p>
<p>7. 运行example_001.php 会发现生成的pdf文件中已经可以正常显示中文。</p>
<p>注： php.ini中默认的内存限制为16M，如果运行example_001.php时出现内存限制的错误提示，可以将php.ini中 memory_limit = 16M 改的大一点。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningjquery.org/index.php/ubuntu-use-tcpdf-generate-pdf-files-in-chinese/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>玉渊潭樱花节</title>
		<link>http://www.learningjquery.org/index.php/yuyuantan-cherry-blossom-festival/</link>
		<comments>http://www.learningjquery.org/index.php/yuyuantan-cherry-blossom-festival/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 15:17:28 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.learningjquery.org/?p=182</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_172" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.learningjquery.cn/wp-content/2010/04/1.jpg"><img class="aligncenter size-full wp-image-172" title="樱花" src="http://www.learningjquery.cn/wp-content/2010/04/1.jpg" alt="樱花" width="600" height="450" /></a><p class="wp-caption-text">樱花</p></div>
<div id="attachment_174" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.learningjquery.cn/wp-content/2010/04/2.jpg"><img class="aligncenter size-full wp-image-174" title="樱花近景" src="http://www.learningjquery.cn/wp-content/2010/04/2.jpg" alt="樱花近景" width="600" height="450" /></a><p class="wp-caption-text">樱花近景</p></div>
<div id="attachment_175" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.learningjquery.cn/wp-content/2010/04/2.jpg"></a><a href="http://www.learningjquery.cn/wp-content/2010/04/3.jpg"><img class="aligncenter size-full wp-image-175" title="地图" src="http://www.learningjquery.cn/wp-content/2010/04/3.jpg" alt="地图" width="600" height="450" /></a><p class="wp-caption-text">地图</p></div>
<div id="attachment_176" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.learningjquery.cn/wp-content/2010/04/4.jpg"><img class="size-full wp-image-176" title="鸟窝" src="http://www.learningjquery.cn/wp-content/2010/04/4.jpg" alt="鸟窝" width="600" height="450" /></a><p class="wp-caption-text">鸟窝</p></div>
<div id="attachment_177" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.learningjquery.cn/wp-content/2010/04/5.jpg"><img class="size-full wp-image-177" title="手印" src="http://www.learningjquery.cn/wp-content/2010/04/5.jpg" alt="手印" width="600" height="450" /></a><p class="wp-caption-text">手印</p></div>
<div id="attachment_178" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.learningjquery.cn/wp-content/2010/04/6.jpg"><img class="size-full wp-image-178" title="垂柳" src="http://www.learningjquery.cn/wp-content/2010/04/6.jpg" alt="垂柳" width="600" height="450" /></a><p class="wp-caption-text">垂柳</p></div>
<div id="attachment_173" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.learningjquery.cn/wp-content/2010/04/7.jpg"><img class="size-full wp-image-173" title="一树的樱花" src="http://www.learningjquery.cn/wp-content/2010/04/7.jpg" alt="一树的樱花" width="600" height="450" /></a><p class="wp-caption-text">一树的樱花</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.learningjquery.org/index.php/yuyuantan-cherry-blossom-festival/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gedit在文件中查找代码段的插件：gedit-grep</title>
		<link>http://www.learningjquery.org/index.php/gedit-find-code-in-the-file-plug-ins-gedit-grep/</link>
		<comments>http://www.learningjquery.org/index.php/gedit-find-code-in-the-file-plug-ins-gedit-grep/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 15:07:21 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[编辑器]]></category>
		<category><![CDATA[gedit]]></category>

		<guid isPermaLink="false">http://www.learningjquery.org/?p=180</guid>
		<description><![CDATA[最近一直在ubuntu 下做PHP开发，也就习惯了用gedit。gedit本身自带了很多优秀的插件，但是发现gedit无法在网站项目中找某个代码段。上网费了一番周折，找到一个在文件中查找代码段的插件，在此记下gedit下安装些插件的过程。
下载地址：http://code.google.com/p/gedit-grep/
1. 下载后文件名如： gedit-grep-v0.1.tar.gz，解压后将其中的文件复件到 /home/ben/gnome2/gedit/plugins/目录下，如果在gnome2目录下没有gedit目录则创建。
2. 网上说复制完文件后，要重启下gedit ，但我发现不用重启gedit也可以。接下来在菜单：&#8217;编辑&#8217;-&#62;&#8217;首选项&#8217;-&#62;&#8217;插件&#8217; 中启用gedit-grep即可使用。
3.在文件中查找的快捷键：ctrl+shift+f。
]]></description>
			<content:encoded><![CDATA[<p>最近一直在ubuntu 下做PHP开发，也就习惯了用gedit。gedit本身自带了很多优秀的插件，但是发现gedit无法在网站项目中找某个代码段。上网费了一番周折，找到一个在文件中查找代码段的插件，在此记下gedit下安装些插件的过程。</p>
<p>下载地址：http://code.google.com/p/gedit-grep/</p>
<p>1. 下载后文件名如： gedit-grep-v0.1.tar.gz，解压后将其中的文件复件到 /home/ben/gnome2/gedit/plugins/目录下，如果在gnome2目录下没有gedit目录则创建。</p>
<p>2. 网上说复制完文件后，要重启下gedit ，但我发现不用重启gedit也可以。接下来在菜单：&#8217;编辑&#8217;-&gt;&#8217;首选项&#8217;-&gt;&#8217;插件&#8217; 中启用gedit-grep即可使用。</p>
<p>3.在文件中查找的快捷键：ctrl+shift+f。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningjquery.org/index.php/gedit-find-code-in-the-file-plug-ins-gedit-grep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
