<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="wordpress/2.3.1" --><rss 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/" version="2.0">

<channel>
	<title>eKini: Web Developer Blog</title>
	<link>http://blog.ekini.net</link>
	<description>PHP, MySQL, Javascript, MVC, Zend Framework, AJAX, jQuery</description>
	<pubDate>Mon, 09 Nov 2009 06:47:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/EkiniWebDevelopmentBlog" type="application/rss+xml" /><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FEkiniWebDevelopmentBlog" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FEkiniWebDevelopmentBlog" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FEkiniWebDevelopmentBlog" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.bloglines.com/sub/http://feeds.feedburner.com/EkiniWebDevelopmentBlog" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FEkiniWebDevelopmentBlog" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FEkiniWebDevelopmentBlog" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FEkiniWebDevelopmentBlog" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Zend Framework: Handling file uploads with Zend_File_Transfer</title>
		<link>http://blog.ekini.net/2009/11/09/zend-framework-handling-file-uploads-with-zend_file_transfer/</link>
		<comments>http://blog.ekini.net/2009/11/09/zend-framework-handling-file-uploads-with-zend_file_transfer/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 06:47:29 +0000</pubDate>
		<dc:creator>Wenbert</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Zend Framework]]></category>

		<category><![CDATA[Zend_File_Transfer]]></category>

		<guid isPermaLink="false">http://blog.ekini.net/2009/11/09/zend-framework-handling-file-uploads-with-zend_file_transfer/</guid>
		<description><![CDATA[Here is a tutorial on how to handle file uploads with Zend_File_Transfer.
Like so many of the other powerful components made available through the Zend Framework, the Zend_File_Transfer component is intended to make your life much easier when it comes to the task of uploading files from a user&#8217;s computer to a Web server. In actuality, [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a <a href="http://www.developer.com/open/article.php/10930_3844031_1/Managing-File-Uploads-with-the-Zend-Framework.htm">tutorial</a> on how to handle file uploads with Zend_File_Transfer.</p>
<blockquote><p>Like so many of the other powerful components made available through the Zend Framework, the Zend_File_Transfer component is intended to make your life much easier when it comes to the task of uploading files from a user&#8217;s computer to a Web server. In actuality, this component is much more flexible than merely handling uploads; it can also be used to transfer files using protocols such as FTP and WebDAV, however for the purposes of this tutorial we&#8217;ll stick to its initially stated purpose. Let&#8217;s begin by creating the simplest process possible in the upload action which is nonetheless capable of accepting and processing an uploaded file</p></blockquote>
<p>The post is by Jason Gilmore from <a href="http://EasyPHPWebsites.com">EasyPHPWebsites.com</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/NxO9LrEUvXtTvR3JsddEDqC1Dnk/0/da"><img src="http://feedads.g.doubleclick.net/~a/NxO9LrEUvXtTvR3JsddEDqC1Dnk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/NxO9LrEUvXtTvR3JsddEDqC1Dnk/1/da"><img src="http://feedads.g.doubleclick.net/~a/NxO9LrEUvXtTvR3JsddEDqC1Dnk/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=lcyUwBoFHj4:6N5E1_R0w0U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=lcyUwBoFHj4:6N5E1_R0w0U:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=lcyUwBoFHj4:6N5E1_R0w0U:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=lcyUwBoFHj4:6N5E1_R0w0U:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=lcyUwBoFHj4:6N5E1_R0w0U:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=lcyUwBoFHj4:6N5E1_R0w0U:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=lcyUwBoFHj4:6N5E1_R0w0U:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=lcyUwBoFHj4:6N5E1_R0w0U:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=lcyUwBoFHj4:6N5E1_R0w0U:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=lcyUwBoFHj4:6N5E1_R0w0U:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EkiniWebDevelopmentBlog/~4/lcyUwBoFHj4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.ekini.net/2009/11/09/zend-framework-handling-file-uploads-with-zend_file_transfer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Newline character “\n” problems in a Javascript string + PHP</title>
		<link>http://blog.ekini.net/2009/10/27/newline-character-n-problems-in-php-and-javascript/</link>
		<comments>http://blog.ekini.net/2009/10/27/newline-character-n-problems-in-php-and-javascript/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 10:43:44 +0000</pubDate>
		<dc:creator>Wenbert</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[newline]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.ekini.net/2009/10/27/newline-character-n-problems-in-php-and-javascript/</guid>
		<description><![CDATA[I have just spent an hour an a half trying to figure out why the newline character &#8220;\n&#8221; caused an error in my Javascript. I am posting this because I have been unsuccessful in finding a solution to this problem.
I am basically trying to display a newline character inside a textbox.

&#60;?php
$var = &#34;This is the [...]]]></description>
			<content:encoded><![CDATA[<p>I have just spent an hour an a half trying to figure out why the newline character &#8220;\n&#8221; caused an error in my Javascript. I am posting this because I have been unsuccessful in finding a solution to this problem.</p>
<p>I am basically trying to display a newline character inside a textbox.</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$var</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;This is the first line. <span style="color: #000099; font-weight: bold;">\n</span> This is the second line.&quot;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;textarea id=&quot;mytext&quot;&gt;&lt;/textarea&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt;
    $(document).ready( function () {
        $('#mytime').val('<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$var</span>?<span style="color: #339933;">&gt;</span>')
    });
&lt;/script&gt;</pre></div></div>

<p>The error I get above is:</p>
<pre>
unterminated string literal
</pre>
<p>When I view the source code, I have this:</p>
<pre>
$('#mytime').val('This is the first line.
This is the second line.');
</pre>
<p><strong>Using str_replace() to remove the &#8220;\n&#8221;</strong><br />
Apparently, this does not work.</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$temp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$var</span><span style="color: #009900;">&#41;</span>; <span style="color: #666666; font-style: italic;">//does not work</span></pre></div></div>

<p>Has anyone experienced this issue? </p>
<p>Thanks,<br />
Wenbert</p>
<p><strong>UPDATE:</strong><br />
I found this in <a href="http://stackoverflow.com/questions/168214/pass-a-php-string-to-a-javascript-variable-including-escaping-newlines">Stackoverflow</a>. </p>
<p>The solution, use <strong>json_encode()</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$var</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;This is the first line. <span style="color: #000099; font-weight: bold;">\n</span> This is the second line.&quot;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;textarea id=&quot;mytext&quot;&gt;&lt;/textarea&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt;
    $(document).ready( function () {
        $('#mytime').val('<span style="color: #000000; font-weight: bold;">&lt;?</span><span style="color: #339933;">=</span>json_encode<span style="color: #009900;">&#40;</span><span style="color: #000088;">$var</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>')
    });
&lt;/script&gt;</pre></div></div>

<p>There. Who would have thought of that?</p>

<p><a href="http://feedads.g.doubleclick.net/~a/hOlhJeQgD5icc65JriqMoX7vueE/0/da"><img src="http://feedads.g.doubleclick.net/~a/hOlhJeQgD5icc65JriqMoX7vueE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/hOlhJeQgD5icc65JriqMoX7vueE/1/da"><img src="http://feedads.g.doubleclick.net/~a/hOlhJeQgD5icc65JriqMoX7vueE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=aDYZmG5qzJw:w12tQE3LFNY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=aDYZmG5qzJw:w12tQE3LFNY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=aDYZmG5qzJw:w12tQE3LFNY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=aDYZmG5qzJw:w12tQE3LFNY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=aDYZmG5qzJw:w12tQE3LFNY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=aDYZmG5qzJw:w12tQE3LFNY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=aDYZmG5qzJw:w12tQE3LFNY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=aDYZmG5qzJw:w12tQE3LFNY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=aDYZmG5qzJw:w12tQE3LFNY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=aDYZmG5qzJw:w12tQE3LFNY:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EkiniWebDevelopmentBlog/~4/aDYZmG5qzJw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.ekini.net/2009/10/27/newline-character-n-problems-in-php-and-javascript/feed/</wfw:commentRss>
		</item>
		<item>
		<title>jQuery Tips</title>
		<link>http://blog.ekini.net/2009/10/26/jquery-tips/</link>
		<comments>http://blog.ekini.net/2009/10/26/jquery-tips/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 03:43:07 +0000</pubDate>
		<dc:creator>Wenbert</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[jquery tips]]></category>

		<guid isPermaLink="false">http://blog.ekini.net/2009/10/26/jquery-tips/</guid>
		<description><![CDATA[Got this from Reddit.

Load the framework from Google Code
Use data method and avoid storing data inside the DOM. Some developers have a habit of storing data in the HTML attributes
Use Cheat Sheets
Compress Javascript files
Use Firebug
Use ID as Selector whenever possible
Use Tags Before Classes
Cache jQuery Objects
Bind certain jQuery functions to $(window).load event
Use Chaining to limit selectors, [...]]]></description>
			<content:encoded><![CDATA[<p>Got this from Reddit.</p>
<ol>
<li>Load the framework from Google Code</li>
<li>Use data method and avoid storing data inside the DOM. Some developers have a habit of storing data in the HTML attributes</li>
<li>Use Cheat Sheets</li>
<li>Compress Javascript files</li>
<li>Use Firebug</li>
<li>Use ID as Selector whenever possible</li>
<li>Use Tags Before Classes</li>
<li>Cache jQuery Objects</li>
<li>Bind certain jQuery functions to $(window).load event</li>
<li>Use Chaining to limit selectors, make the code more simple and elegant</li>
</ol>
<p>The complete article can be found in <a href="http://www.tripwiremagazine.com/tutorials/tutorials/jquery-and-general-javascript-tips-to-improve-your-code.html">Tripwire Magazine</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/npV6ZG6yDkd-kx6LnAuK0f8IHjc/0/da"><img src="http://feedads.g.doubleclick.net/~a/npV6ZG6yDkd-kx6LnAuK0f8IHjc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/npV6ZG6yDkd-kx6LnAuK0f8IHjc/1/da"><img src="http://feedads.g.doubleclick.net/~a/npV6ZG6yDkd-kx6LnAuK0f8IHjc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=LPQJreVRH14:Kp1gl3Gvgzc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=LPQJreVRH14:Kp1gl3Gvgzc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=LPQJreVRH14:Kp1gl3Gvgzc:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=LPQJreVRH14:Kp1gl3Gvgzc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=LPQJreVRH14:Kp1gl3Gvgzc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=LPQJreVRH14:Kp1gl3Gvgzc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=LPQJreVRH14:Kp1gl3Gvgzc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=LPQJreVRH14:Kp1gl3Gvgzc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=LPQJreVRH14:Kp1gl3Gvgzc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=LPQJreVRH14:Kp1gl3Gvgzc:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EkiniWebDevelopmentBlog/~4/LPQJreVRH14" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.ekini.net/2009/10/26/jquery-tips/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using Vim like an IDE</title>
		<link>http://blog.ekini.net/2009/10/19/using-vim-like-an-ide/</link>
		<comments>http://blog.ekini.net/2009/10/19/using-vim-like-an-ide/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 09:49:49 +0000</pubDate>
		<dc:creator>Wenbert</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[vi]]></category>

		<category><![CDATA[vim]]></category>

		<category><![CDATA[vimrc]]></category>

		<guid isPermaLink="false">http://blog.ekini.net/2009/10/19/using-vim-like-an-ide/</guid>
		<description><![CDATA[I have been looking for a good and lightweight text editor for some time already. I have tried Notepad++, SciTE and others but was not satisfied with any. Although I have been using Vi and Vim to edit files on my server I have never actually tried to use it as a &#8220;local&#8221; text editor. [...]]]></description>
			<content:encoded><![CDATA[<p>I have been looking for a good and lightweight text editor for some time already. I have tried Notepad++, SciTE and others but was not satisfied with any. Although I have been using Vi and Vim to edit files on my server I have never actually tried to use it as a &#8220;local&#8221; text editor. This is the first time I have taken a deeper look at Vim. So here goes&#8230;</p>
<p>You can download Vim here: <a href="http://www.vim.org/">http://www.vim.org/</a>. After that download these plugins:</p>
<ul>
<li><strong>Minibufexplorer:</strong> <a href="http://www.vim.org/scripts/script.php?script_id=159">http://www.vim.org/scripts/script.php?script_id=159</a></li>
<li><strong>Close a buffer without closing the window:</strong> <a href="http://vim.wikia.com/wiki/VimTip622">http://vim.wikia.com/wiki/VimTip622</a></li>
<li><strong>NERDTree Plugin:</strong> <a href="http://www.vim.org/scripts/script.php?script_id=1658">http://www.vim.org/scripts/script.php?script_id=1658</a></li>
</ul>
<p>I am using Ubuntu, so I created a .vim folder inside my home directory. The directory structure is something like this:</p>
<pre>
/home/wenbert/.vim
/home/wenbert/.vim/plugin
/home/wenbert/.vim/doc
</pre>
<p>Follow the installation instructions for the plugins after you download and extract them.</p>
<p>Here my .vimrc file can be found <a href="http://ekini.net/vimrc.html">here</a>.</p>
<p><b>How I use my vim</b></p>
<ol>
<li>I open Vim</li>
<li>I issue this command &#8220;:NERDTree bookmark_name&#8221; (note: you must have an existing NERDTree Bookmark &#8212; see NERDTree docs on how to do this)</li>
<li>I use NERDTree to browse and open the files.</li>
<li>To close a buffer, I just use CTRL+W. The CTRL+W is mapped to :Bclose which closes the buffer without closing the window.</li>
<li>I use CTRL+Arrowkeys to switch between the Bufexplorer, NERDTree and the current file I am editting.</li>
</ol>

<p><a href="http://feedads.g.doubleclick.net/~a/Voma03BW7OdyPlOyFPw3YugWYvw/0/da"><img src="http://feedads.g.doubleclick.net/~a/Voma03BW7OdyPlOyFPw3YugWYvw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Voma03BW7OdyPlOyFPw3YugWYvw/1/da"><img src="http://feedads.g.doubleclick.net/~a/Voma03BW7OdyPlOyFPw3YugWYvw/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=fSEVnNRmuk8:iiuqWPYO2Bw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=fSEVnNRmuk8:iiuqWPYO2Bw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=fSEVnNRmuk8:iiuqWPYO2Bw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=fSEVnNRmuk8:iiuqWPYO2Bw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=fSEVnNRmuk8:iiuqWPYO2Bw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=fSEVnNRmuk8:iiuqWPYO2Bw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=fSEVnNRmuk8:iiuqWPYO2Bw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=fSEVnNRmuk8:iiuqWPYO2Bw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=fSEVnNRmuk8:iiuqWPYO2Bw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=fSEVnNRmuk8:iiuqWPYO2Bw:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EkiniWebDevelopmentBlog/~4/fSEVnNRmuk8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.ekini.net/2009/10/19/using-vim-like-an-ide/feed/</wfw:commentRss>
		</item>
		<item>
		<title>jQuery: Setting defaults for Checkboxes, Radio Buttons, Options in Selectboxes</title>
		<link>http://blog.ekini.net/2009/10/06/jquery-setting-defaults-for-checkboxes-radio-buttons-options-in-selectboxes/</link>
		<comments>http://blog.ekini.net/2009/10/06/jquery-setting-defaults-for-checkboxes-radio-buttons-options-in-selectboxes/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 02:17:45 +0000</pubDate>
		<dc:creator>Wenbert</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[checkboxes]]></category>

		<category><![CDATA[html form]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[jquery selectors]]></category>

		<category><![CDATA[radio buttons]]></category>

		<category><![CDATA[selectboxes]]></category>

		<category><![CDATA[selectors]]></category>

		<guid isPermaLink="false">http://blog.ekini.net/2009/10/06/jquery-setting-defaults-for-checkboxes-radio-buttons-options-in-selectboxes/</guid>
		<description><![CDATA[I thought I should post this here. I always tend to look back at my old code wondering how I did these things.
Handling radio buttons or checkboxes

&#60;input type=&#34;radio&#34; name=&#34;print_memo&#34; value=&#34;Yes&#34;/&#62; Yes 
&#60;input type=&#34;radio&#34; name=&#34;print_memo&#34; value=&#34;No&#34; /&#62; No
&#60;script type=&#34;text/javascript&#34; language=&#34;javascript&#34;&#62;
$&#40;document&#41;.ready&#40; function &#40;&#41; &#123;
    $&#40;'INPUT[name=print_memo][value=&#34;&#60;?=$this-&#62;request-&#62;print_memo?&#62;&#34;]'&#41;.attr&#40;'checked', true&#41;
    /**
    * [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I should post this here. I always tend to look back at my old code wondering how I did these things.</p>
<p><strong>Handling radio buttons or checkboxes</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;radio&quot;</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;print_memo&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Yes&quot;</span><span style="color: #339933;">/&gt;</span> Yes 
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;radio&quot;</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;print_memo&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;No&quot;</span> <span style="color: #339933;">/&gt;</span> No
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span><span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'INPUT[name=print_memo][value=&quot;&lt;?=$this-&gt;request-&gt;print_memo?&gt;&quot;]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'checked'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>
    <span style="color: #006600; font-style: italic;">/**
    * $this-&gt;request-&gt;print_memo will output either 'Yes' or 'No'
    * Here, we used INPUT[name=XXX] to select the form element
    */</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p><strong>For select boxes</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>select id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;country_id&quot;</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;country&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>option value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #339933;">&gt;</span>Philippines<span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>option value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;2&quot;</span><span style="color: #339933;">&gt;</span>Singapore<span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>option value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;3&quot;</span><span style="color: #339933;">&gt;</span>Norway<span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>select<span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#country_id option[value=&quot;&lt;?=$this-&gt;request-&gt;country_id?&gt;&quot;]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selected'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'selected'</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #006600; font-style: italic;">/**
    * $this-&gt;request-&gt;country_id will output 1,2 or 3
    * Here, we used #country_id to select the form element
    */</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>


<p><a href="http://feedads.g.doubleclick.net/~a/kHo_ezIlPUUaDYcR31mo_o6HLjg/0/da"><img src="http://feedads.g.doubleclick.net/~a/kHo_ezIlPUUaDYcR31mo_o6HLjg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/kHo_ezIlPUUaDYcR31mo_o6HLjg/1/da"><img src="http://feedads.g.doubleclick.net/~a/kHo_ezIlPUUaDYcR31mo_o6HLjg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=ti1BwlsGjTI:PX1YnBY0vww:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=ti1BwlsGjTI:PX1YnBY0vww:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=ti1BwlsGjTI:PX1YnBY0vww:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=ti1BwlsGjTI:PX1YnBY0vww:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=ti1BwlsGjTI:PX1YnBY0vww:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=ti1BwlsGjTI:PX1YnBY0vww:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=ti1BwlsGjTI:PX1YnBY0vww:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=ti1BwlsGjTI:PX1YnBY0vww:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?a=ti1BwlsGjTI:PX1YnBY0vww:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/EkiniWebDevelopmentBlog?i=ti1BwlsGjTI:PX1YnBY0vww:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EkiniWebDevelopmentBlog/~4/ti1BwlsGjTI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.ekini.net/2009/10/06/jquery-setting-defaults-for-checkboxes-radio-buttons-options-in-selectboxes/feed/</wfw:commentRss>
		</item>
	</channel>
</rss><!-- Dynamic Page Served (once) in 0.586 seconds -->
