<?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>小鹅</title>
	<atom:link href="http://tiana.ejstyle.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://tiana.ejstyle.cn</link>
	<description>喜欢DOTA，关注JavaScript、jQuery、ActionScript、CodeIgniter、PHP、MySQL等相关技术...</description>
	<lastBuildDate>Fri, 13 Apr 2012 05:04:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>dota蛋疼集锦71</title>
		<link>http://tiana.ejstyle.cn/archives/dota%e8%9b%8b%e7%96%bc%e9%9b%86%e9%94%a671.html</link>
		<comments>http://tiana.ejstyle.cn/archives/dota%e8%9b%8b%e7%96%bc%e9%9b%86%e9%94%a671.html#comments</comments>
		<pubDate>Fri, 13 Apr 2012 05:03:51 +0000</pubDate>
		<dc:creator>小鹅</dc:creator>
				<category><![CDATA[我的日志]]></category>
		<category><![CDATA[dota]]></category>
		<category><![CDATA[视频]]></category>

		<guid isPermaLink="false">http://tiana.ejstyle.cn/?p=578</guid>
		<description><![CDATA[蛋疼集锦71期，太疼... ]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p><embed src="http://player.youku.com/player.php/sid/XMzc2NDYzMjA4/v.swf" quality="high" width="600" height="500" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed></p>
<p>蛋疼集锦71期，太疼了 <img src='http://tiana.ejstyle.cn/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://tiana.ejstyle.cn/archives/dota%e8%9b%8b%e7%96%bc%e9%9b%86%e9%94%a671.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL存储过程乱码解决方法</title>
		<link>http://tiana.ejstyle.cn/archives/mysql-procedure-encode.html</link>
		<comments>http://tiana.ejstyle.cn/archives/mysql-procedure-encode.html#comments</comments>
		<pubDate>Fri, 25 Mar 2011 09:09:42 +0000</pubDate>
		<dc:creator>小鹅</dc:creator>
				<category><![CDATA[程序开发]]></category>

		<guid isPermaLink="false">http://tiana.ejstyle.cn/?p=428</guid>
		<description><![CDATA[我本地的开发环境是windows，服务器为linux，上传到服务器后出现乱码的问题，把存储过程中的变量指定编码后问题解决 ... ]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p>我本地的开发环境是windows，服务器为linux，上传到服务器后出现乱码的问题，把存储过程中的变量指定编码后问题解决 <img src='http://tiana.ejstyle.cn/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' />  。</p>
<pre class="brush: sql; title: ; notranslate">
DECLARE name VARCHAR(100) CHARACTER SET utf8;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tiana.ejstyle.cn/archives/mysql-procedure-encode.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript模仿PHP的日期格式化函数</title>
		<link>http://tiana.ejstyle.cn/archives/jquery-phpdate.html</link>
		<comments>http://tiana.ejstyle.cn/archives/jquery-phpdate.html#comments</comments>
		<pubDate>Sat, 29 Jan 2011 08:52:15 +0000</pubDate>
		<dc:creator>小鹅</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://tiana.ejstyle.cn/?p=414</guid>
		<description><![CDATA[http://joncom.be/code/jquery-phpdate/ 用法基本和PHP的date是一样的，很简便，具体请查看作者Blog上的文... ]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p><a href="http://joncom.be/code/jquery-phpdate/">http://joncom.be/code/jquery-phpdate/</a></p>
<pre class="brush: jscript; title: ; notranslate">
$.PHPDate(&quot;l, jS F Y H:i:s T&quot;, new Date());
</pre>
<p>用法基本和PHP的date是一样的，很简便，具体请查看作者Blog上的文档</p>
]]></content:encoded>
			<wfw:commentRss>http://tiana.ejstyle.cn/archives/jquery-phpdate.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Superfish Menu插件的z-index bug</title>
		<link>http://tiana.ejstyle.cn/archives/superfish-menu-z-index-bug.html</link>
		<comments>http://tiana.ejstyle.cn/archives/superfish-menu-z-index-bug.html#comments</comments>
		<pubDate>Sat, 01 Jan 2011 13:12:32 +0000</pubDate>
		<dc:creator>小鹅</dc:creator>
				<category><![CDATA[前端技术]]></category>

		<guid isPermaLink="false">http://tiana.ejstyle.cn/?p=398</guid>
		<description><![CDATA[这个BUG在IE6/IE7上才会 参考来源 Superfish jQuery Menu IE z-index Bu... ]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p>这个BUG在IE6/IE7上才会</p>
<pre class="brush: css; title: ; notranslate">
.sf-menu, .sf-menu * {
	margin:0;
	padding:0;
	list-style:none;
	z-index:9999999 !important; /* 加上这一行就能解决叠层问题 */
}</pre>
<p><a href="http://webdemar.com/webdesign/superfish-jquery-menu-ie-z-index-bug/">参考来源 Superfish jQuery Menu IE z-index Bug</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tiana.ejstyle.cn/archives/superfish-menu-z-index-bug.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>一个基于Mootools/jQuery的表格插件</title>
		<link>http://tiana.ejstyle.cn/archives/tablegear.html</link>
		<comments>http://tiana.ejstyle.cn/archives/tablegear.html#comments</comments>
		<pubDate>Mon, 01 Nov 2010 11:04:34 +0000</pubDate>
		<dc:creator>小鹅</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://tiana.ejstyle.cn/?p=327</guid>
		<description><![CDATA[TableGear是一个基于Mootools/jQuery的表格插件，通过Ajax删除、添加、修改数据... ]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p><a href="http://tiana.ejstyle.cn/wp-content/uploads/2010/11/TableGear.jpg" rel="lightbox[327]"><img src="http://tiana.ejstyle.cn/wp-content/uploads/2010/11/TableGear.jpg" alt="TableGear" title="TableGear" width="500" height="275" /></a><br />
<a href="http://andrewplummer.com/code/tablegear/">TableGear</a>是一个基于Mootools/jQuery的表格插件，通过Ajax删除、添加、修改数据。 <img src='http://tiana.ejstyle.cn/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://tiana.ejstyle.cn/archives/tablegear.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用JS来实现PHP函数功能</title>
		<link>http://tiana.ejstyle.cn/archives/phpjs-org.html</link>
		<comments>http://tiana.ejstyle.cn/archives/phpjs-org.html#comments</comments>
		<pubDate>Wed, 27 Oct 2010 18:07:26 +0000</pubDate>
		<dc:creator>小鹅</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://tiana.ejstyle.cn/?p=317</guid>
		<description><![CDATA[http://phpjs.org/ 很多PHP函数都有相应的Javascript实... ]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p><a href="http://phpjs.org/">http://phpjs.org/</a><br />
很多PHP函数都有相应的Javascript实现</p>
]]></content:encoded>
			<wfw:commentRss>http://tiana.ejstyle.cn/archives/phpjs-org.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css hacks</title>
		<link>http://tiana.ejstyle.cn/archives/css-hacks.html</link>
		<comments>http://tiana.ejstyle.cn/archives/css-hacks.html#comments</comments>
		<pubDate>Fri, 17 Sep 2010 19:23:28 +0000</pubDate>
		<dc:creator>小鹅</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://tiana.ejstyle.cn/?p=307</guid>
		<description><![CDATA[http://www.webdevout.net/css-hacks CSS的兼容技巧，备忘一下... ]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p><a href="http://www.webdevout.net/css-hacks">http://www.webdevout.net/css-hacks</a><br />
CSS的兼容技巧，备忘一下。</p>
]]></content:encoded>
			<wfw:commentRss>http://tiana.ejstyle.cn/archives/css-hacks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自定义CodeIgniter的404错误页面</title>
		<link>http://tiana.ejstyle.cn/archives/custom-codeigniter-404.html</link>
		<comments>http://tiana.ejstyle.cn/archives/custom-codeigniter-404.html#comments</comments>
		<pubDate>Thu, 16 Sep 2010 16:01:53 +0000</pubDate>
		<dc:creator>小鹅</dc:creator>
				<category><![CDATA[程序开发]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://tiana.ejstyle.cn/?p=300</guid>
		<description><![CDATA[http://maestric.com/doc/php/codeigniter_404 google一下，找一个国外朋友提供的一个解决方法。 其他几个解决方法。 http://codeigniter.com/forums/viewthread/76340/ http://codeigniter.com/forums/viewthread/90613/ http://codeigniter.... ]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p><a href="http://maestric.com/doc/php/codeigniter_404">http://maestric.com/doc/php/codeigniter_404</a><br />
google一下，找一个国外朋友提供的一个解决方法。</p>
<p>其他几个解决方法。</p>
<p>http://codeigniter.com/forums/viewthread/76340/</p>
<p>http://codeigniter.com/forums/viewthread/90613/</p>
<p>http://codeigniter.com/forums/viewthread/54807/</p>
<p>把MY_Router类放到你的<strong>“./application/libraries/MY_Router.php”</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MY_Router extends CI_Router {

	var $error_controller = 'error';
	var $error_method_404 = 'error_404';

    function My_Router()
    {
        parent::CI_Router();
    }

	// this is just the same method as in Router.php, with show_404() replaced by $this-&gt;error_404();
	function _validate_request($segments)
	{
		// Does the requested controller exist in the root folder?
		if (file_exists(APPPATH.'controllers/'.$segments[0].EXT))
		{
			return $segments;
		}

		// Is the controller in a sub-folder?
		if (is_dir(APPPATH.'controllers/'.$segments[0]))
		{
			// Set the directory and remove it from the segment array
			$this-&gt;set_directory($segments[0]);
			$segments = array_slice($segments, 1);

			if (count($segments) &gt; 0)
			{
				// Does the requested controller exist in the sub-folder?
				if ( ! file_exists(APPPATH.'controllers/'.$this-&gt;fetch_directory().$segments[0].EXT))
				{
					return $this-&gt;error_404();
				}
			}
			else
			{
				$this-&gt;set_class($this-&gt;default_controller);
				$this-&gt;set_method('index');

				// Does the default controller exist in the sub-folder?
				if ( ! file_exists(APPPATH.'controllers/'.$this-&gt;fetch_directory().$this-&gt;default_controller.EXT))
				{
					$this-&gt;directory = '';
					return array();
				}
			}

			return $segments;
		}

		// Can't find the requested controller...
		return $this-&gt;error_404();
	}

	function error_404()
	{
		$this-&gt;directory = &quot;&quot;;
		$segments = array();
		$segments[] = $this-&gt;error_controller;
		$segments[] = $this-&gt;error_method_404;
		return $segments;
	}

	function fetch_class()
	{
		// if method doesn't exist in class, change
		// class to error and method to error_404
		$this-&gt;check_method();

		return $this-&gt;class;
	}

	function check_method()
	{
		$ignore_remap = true;

		$class = $this-&gt;class;
		if (class_exists($class))
		{
			// methods for this class
			$class_methods = array_map('strtolower', get_class_methods($class));

			// ignore controllers using _remap()
			if($ignore_remap &amp;&amp; in_array('_remap', $class_methods))
			{
				return;
			}

			if (! in_array(strtolower($this-&gt;method), $class_methods))
			{
				$this-&gt;directory = &quot;&quot;;
				$this-&gt;class = $this-&gt;error_controller;
				$this-&gt;method = $this-&gt;error_method_404;
				include(APPPATH.'controllers/'.$this-&gt;fetch_directory().$this-&gt;error_controller.EXT);
			}
		}
	}

	function show_404()
	{
		include(APPPATH.'controllers/'.$this-&gt;fetch_directory().$this-&gt;error_controller.EXT);
		call_user_func(array($this-&gt;error_controller, $this-&gt;error_method_404));
	}

}
?&gt;
</pre>
<p>这个是控制器</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
include_once(&quot;base.php&quot;);

class Error extends Controller {
	function error_404()
	{
		$this-&gt;load-&gt;view($this-&gt;_getTheme().'error_404_view', $this-&gt;data);
	}
}
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tiana.ejstyle.cn/archives/custom-codeigniter-404.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image_moo Class</title>
		<link>http://tiana.ejstyle.cn/archives/codeigniter-image-moo.html</link>
		<comments>http://tiana.ejstyle.cn/archives/codeigniter-image-moo.html#comments</comments>
		<pubDate>Sun, 12 Sep 2010 12:37:04 +0000</pubDate>
		<dc:creator>小鹅</dc:creator>
				<category><![CDATA[程序开发]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://tiana.ejstyle.cn/?p=291</guid>
		<description><![CDATA[Image_moo是一个基于Codeigniter的图片类，比Codeigniter自带的Image_lib类要方便，且功能也很强... ]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p><a href="http://www.matmoo.com/codeigniter/image_moo/">Image_moo</a>是一个基于Codeigniter的图片类，比Codeigniter自带的Image_lib类要方便，且功能也很强。</p>
<pre class="brush: php; title: ; notranslate">
//可以连续操作添加水印和生成不同尺寸的缩略图
$this-&gt;image_moo
	-&gt;load(“image.jpg”)
	-&gt;make_watermark_text(&quot;Text&quot;, &quot;FONT.TTF&quot;, 25, &quot;#000&quot;)
	-&gt;resize(600,600)
	-&gt;watermark(2)
	-&gt;save(“large.jpg”)
	-&gt;resize(400,400)
	-&gt;save(“medium.jpg”)
	-&gt;resize(100,100)
	-&gt;save(“small.jpg”);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tiana.ejstyle.cn/archives/codeigniter-image-moo.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Codeigniter的Ajax示例</title>
		<link>http://tiana.ejstyle.cn/archives/codeigniter-ajax-example.html</link>
		<comments>http://tiana.ejstyle.cn/archives/codeigniter-ajax-example.html#comments</comments>
		<pubDate>Fri, 03 Sep 2010 13:47:54 +0000</pubDate>
		<dc:creator>小鹅</dc:creator>
				<category><![CDATA[程序开发]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[example]]></category>

		<guid isPermaLink="false">http://tiana.ejstyle.cn/?p=284</guid>
		<description><![CDATA[下载后解压缩到自己的CI目录，导入SQL文件就可以直接查看了。示例是用Google Libraries API的Mootools 1.1.1版本，所以无需再自己下载了。 点击下载示例 示例中的Ajax代... ]]></description>
			<content:encoded><![CDATA[
<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> 
<p>下载后解压缩到自己的CI目录，导入SQL文件就可以直接查看了。示例是用Google Libraries API的Mootools 1.1.1版本，所以无需再自己下载了。<br />
<a href="http://tiana.ejstyle.cn/downloads/codeigniter_ajax_example">点击下载示例</a><br />
示例中的Ajax代码</p>
<pre class="brush: jscript; title: ; notranslate">
window.addEvent('domready', function(){
	$$('a[title=status]').each(function(el){
		el.addEvent('click', function(e){
			new Event(e).stop(); //停止a标签的跳转
			var uri = this.getProperty('href').split(&quot;#&quot;); //把URL分割出等下要提交Ajax请求的地址和参数
			var value = uri[1].split(&quot;-&quot;); //把参数分割为数据库中的id值和当前status的值
			new Ajax(uri[0], {
				method: 'post', //以post方式提交
				data: Object.toQueryString({
					//生成querystring格式的请求，示例&quot;id=1&amp;status=1&quot;
					id:value[0],
					status: value[1] == '1' ? '0' : '1'
				}),

				//当ajax请求完成时触发的事件
				onComplete: function(vars){
					var r = Json.evaluate(vars); //把从PHP传递过来的Json字符串转换为Javascript对象
					if(r.result){ //判断刚才发送的Ajax请求是否更新成功
						this.setProperty('href', uri[0] + '#' + r.id + '-' + r.status);//更新a标签的URL与参数
						this.setText( r.status );//设置a标签的新文本为更新后的status值
					}
				}.bind(this)
			}).request();
		});

		el.addEvent('mouseover', function(){
			this.setProperty('title', '');
		});
	});
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tiana.ejstyle.cn/archives/codeigniter-ajax-example.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

