<?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>NiceCabbage Blog &#187; TechTips</title>
	<atom:link href="http://www.nicecabbage.com/category/techtips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicecabbage.com</link>
	<description>Life, Design, Web Application</description>
	<lastBuildDate>Mon, 07 Jun 2010 02:03:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Run mulitple &#8216;exec&#8217; commands to UNIX &#8216;find&#8217; command</title>
		<link>http://www.nicecabbage.com/2010/03/run-mulitple-exec-commands-for-find/</link>
		<comments>http://www.nicecabbage.com/2010/03/run-mulitple-exec-commands-for-find/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 03:21:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=209</guid>
		<description><![CDATA[Problem
You want to apply multiple commands against the results of &#8216;find&#8217;
Solution
Just pass as many exec options as you want  .
The command below will run &#8216;id&#8217;, &#8216;echo&#8217; and &#8216;file&#8217;

% find . -type f -exec id &#123;&#125; \; -exec echo ' and ' \; -exec file &#123;&#125; \;

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to apply multiple commands against the results of &#8216;find&#8217;</p>
<h2>Solution</h2>
<p>Just pass as many exec options as you want <img src='http://www.nicecabbage.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>The command below will run &#8216;id&#8217;, &#8216;echo&#8217; and &#8216;file&#8217;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> f <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">id</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \; <span style="color: #660033;">-exec</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' and '</span> \; <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2010/03/run-mulitple-exec-commands-for-find/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>F8-F12 non working on Snow Leopard</title>
		<link>http://www.nicecabbage.com/2010/03/f8-f12-non-working-on-snow-leopard/</link>
		<comments>http://www.nicecabbage.com/2010/03/f8-f12-non-working-on-snow-leopard/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 01:21:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[MacOSX]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=207</guid>
		<description><![CDATA[Problem
Your SnowLeopard sometimes doesn&#8217;t respond to F8-F12. You cannot launch Spaces, Expose, and Dashboard via those keyboards.
Solution
I haven&#8217;t gone into this problem deeply yet, but the quick solution for this symptom is to type

% killall Dock

on your Terminal.app.
]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>Your SnowLeopard sometimes doesn&#8217;t respond to F8-F12. You cannot launch Spaces, Expose, and Dashboard via those keyboards.</p>
<h2>Solution</h2>
<p>I haven&#8217;t gone into this problem deeply yet, but the quick solution for this symptom is to type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">killall</span> Dock</pre></div></div>

<p>on your Terminal.app.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2010/03/f8-f12-non-working-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>installing phpmyadmin (or other linux-world softwares) to Ubuntu 9.10 server</title>
		<link>http://www.nicecabbage.com/2010/02/installing-phpmyadmin-or-other-linux-world-softwares-to-ubuntu-9-10-server/</link>
		<comments>http://www.nicecabbage.com/2010/02/installing-phpmyadmin-or-other-linux-world-softwares-to-ubuntu-9-10-server/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 12:57:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=204</guid>
		<description><![CDATA[Problem
You want to install open-source softwares like phpmyadmin to your ubuntu 9.10, but you got errors.

E: Couldn't find package phpmyadmin.

Solution
Add universe components to your sources.list

deb http://archive.ubuntu.com/ubuntu karmic main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu karmic main universe multiverse restricted
&#160;
deb http://archive.ubuntu.com/ubuntu karmic-updates main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu karmic-updates main universe multiverse restricted
&#160;
deb http://archive.ubuntu.com/ubuntu karmic-security main universe multiverse restricted
deb-src [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to install open-source softwares like phpmyadmin to your ubuntu 9.10, but you got errors.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">E: Couldn<span style="color: #ff0000;">'t find package phpmyadmin.</span></pre></div></div>

<h2>Solution</h2>
<p>Add universe components to your sources.list</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">deb http://archive.ubuntu.com/ubuntu karmic main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu karmic main universe multiverse restricted
&nbsp;
deb http://archive.ubuntu.com/ubuntu karmic-updates main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu karmic-updates main universe multiverse restricted
&nbsp;
deb http://archive.ubuntu.com/ubuntu karmic-security main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu karmic-security main universe multiverse restricted</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2010/02/installing-phpmyadmin-or-other-linux-world-softwares-to-ubuntu-9-10-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check your SIMBL version</title>
		<link>http://www.nicecabbage.com/2010/01/check-your-simbl-version/</link>
		<comments>http://www.nicecabbage.com/2010/01/check-your-simbl-version/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 02:02:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[SIMBL]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=200</guid>
		<description><![CDATA[Problem
You want to know which version of SIMBL is installed on your machine.
Solution
On Leopard,

% head /Library/InputManagers/SIMBL/SIMBL.bundle/Contents/Info.plist
&#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62;
&#60;!DOCTYPE plist PUBLIC &#34;-//Apple//DTD PLIST 1.0//EN&#34; &#34;http://www.apple.com/DTDs/PropertyList-1.0.dtd&#34;&#62;
&#60;plist version=&#34;1.0&#34;&#62;
&#60;dict&#62;
        &#60;key&#62;CFBundleGetInfoString&#60;/key&#62;
        &#60;string&#62;0.8.2, © 2007 Mike Solomon&#60;/string&#62;

On Snow Leopard,

% head /Library/Receipts/SIMBL.pkg/Contents/Info.plist

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to know which version of SIMBL is installed on your machine.</p>
<h2>Solution</h2>
<p>On Leopard,</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>InputManagers<span style="color: #000000; font-weight: bold;">/</span>SIMBL<span style="color: #000000; font-weight: bold;">/</span>SIMBL.bundle<span style="color: #000000; font-weight: bold;">/</span>Contents<span style="color: #000000; font-weight: bold;">/</span>Info.plist
<span style="color: #000000; font-weight: bold;">&lt;</span>?xml <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #007800;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span>?<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;!</span>DOCTYPE plist PUBLIC <span style="color: #ff0000;">&quot;-//Apple//DTD PLIST 1.0//EN&quot;</span> <span style="color: #ff0000;">&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>plist <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>dict<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>CFBundleGetInfoString<span style="color: #000000; font-weight: bold;">&lt;/</span>key<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>string<span style="color: #000000; font-weight: bold;">&gt;</span>0.8.2, © <span style="color: #000000;">2007</span> Mike Solomon<span style="color: #000000; font-weight: bold;">&lt;/</span>string<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>On Snow Leopard,</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Receipts<span style="color: #000000; font-weight: bold;">/</span>SIMBL.pkg<span style="color: #000000; font-weight: bold;">/</span>Contents<span style="color: #000000; font-weight: bold;">/</span>Info.plist</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2010/01/check-your-simbl-version/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Generate a valid feed(RSS/Atom) on Wordpress</title>
		<link>http://www.nicecabbage.com/2009/12/generate-a-valid-feedrssatom-on-wordpress/</link>
		<comments>http://www.nicecabbage.com/2009/12/generate-a-valid-feedrssatom-on-wordpress/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 04:23:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=195</guid>
		<description><![CDATA[Problem:
In some cases, your wordpress do not generate a valid rss; Weirdly, your rss includes an empty line at the top of the feed. In such a case, when viewed on Firefox3.5 or validated with Feed Validator, your rss would fail.
Solution:
What we have to do is just to remove an empty line, but to find [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem:</h2>
<p>In some cases, your wordpress do not generate a valid rss; Weirdly, your rss includes an empty line at the top of the feed. In such a case, when viewed on Firefox3.5 or validated with <a href="http://beta.feedvalidator.org/">Feed Validator</a>, your rss would fail.</p>
<h2>Solution:</h2>
<p>What we have to do is just to remove an empty line, but to find the bug source is not easy. The output feed is generated through mulitple processes inside Wordpress, themes, and plugins.</p>
<p>The point is that</p>
<ol>
<li>Check your wp-config.php that there are no trailing empty lines before &lt;?php and after ?&gt;</li>
<li>Check functions.php in your theme, too.</li>
<li>Check other theme php files.</li>
<li>If you still cannot solve the problem, stop each plugin and re-generate RSS. Sometimes an empty line is included in plugin php files.</li>
</ol>
<p>Hope your luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/12/generate-a-valid-feedrssatom-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2 must-have SIMBL extensions for using Terminal on OSX Leopard</title>
		<link>http://www.nicecabbage.com/2009/11/2-must-have-simbl-extensions-for-using-terminal-on-osx-leopard/</link>
		<comments>http://www.nicecabbage.com/2009/11/2-must-have-simbl-extensions-for-using-terminal-on-osx-leopard/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 03:25:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=179</guid>
		<description><![CDATA[Yes, SnowLeopard is already out. But most of users including me still loves Leopard, right ?
In this small article, I would like to introduce 2 useful extensions for Terminal.app
1. Visor
With Visor, you can always show Terminal by typing one HotKey. Visor makes Terminal.app invisible when you don&#8217;t use, and makes it visible when you need. [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, SnowLeopard is already out. But most of users including me still loves Leopard, right ?</p>
<p>In this small article, I would like to introduce 2 useful extensions for Terminal.app</p>
<h2>1. Visor</h2>
<p>With Visor, you can always show Terminal by typing one HotKey. Visor makes Terminal.app invisible when you don&#8217;t use, and makes it visible when you need. This is a great application if you are one of CUI freaks!</p>
<p><img class="alignnone" src="http://docs.blacktree.com/lib/exe/fetch.php?w=&amp;h=&amp;cache=cache&amp;media=http%3A%2F%2Fdocs.blacktree.com%2Fdata%2Fmedia%2Fvisor%2Fvisorlarge.png" alt="" width="128" height="128" /></p>
<h2>2. TerminalColoreopard</h2>
<p><img class="alignnone size-full wp-image-180" title="091107-0001" src="http://www.nicecabbage.com/wp-content/uploads/2009/11/091107-0001.png" alt="091107-0001" width="368" height="352" /></p>
<p>With TerminalColoreopard, you can change your color settings of ANSI colors in Terminal easily via OSX&#8217;s default Color dialog. I strongly recommend to use <a href="http://www.adobe.com/products/kuler/">Adobe Kuler</a> or see the entry &#8220;<a title="Permanent Link to Terminal color schemes for .Xdefaults or .Xresources file" rel="bookmark" href="http://tuxtraining.com/2009/06/27/terminal-color-schemes-for-xdefaults-or-xresources-file">Terminal color schemes for .Xdefaults or .Xresources file</a>&#8221; to arrange nice color combinations.</p>
<div id="popInMenu0.3496792809597903" style="border: 0px none; margin: 0px; padding: 0px; background: transparent none repeat scroll 0% 0%; line-height: 1; position: absolute; float: none; top: 319px; left: 134px; z-index: 2147483647;"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/11/2-must-have-simbl-extensions-for-using-terminal-on-osx-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clear ques of Postfix</title>
		<link>http://www.nicecabbage.com/2009/08/clear-ques-of-postfix/</link>
		<comments>http://www.nicecabbage.com/2009/08/clear-ques-of-postfix/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 05:19:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=172</guid>
		<description><![CDATA[Problem

You want to delete all the messages in sending ques of Postfix.

Solution

$ sudo postsuper -d ALL

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>
You want to delete all the messages in sending ques of Postfix.
</p>
<h2>Solution</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> postsuper <span style="color: #660033;">-d</span> ALL</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/08/clear-ques-of-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Showing Japanese Texts in Vertial Orientation(縦書き) in Flash Player 10</title>
		<link>http://www.nicecabbage.com/2009/08/showing-japanese-texts-in-vertial-orientation%e7%b8%a6%e6%9b%b8%e3%81%8d-in-flash-player-10/</link>
		<comments>http://www.nicecabbage.com/2009/08/showing-japanese-texts-in-vertial-orientation%e7%b8%a6%e6%9b%b8%e3%81%8d-in-flash-player-10/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 10:02:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=165</guid>
		<description><![CDATA[Problem
You want to show texts in a vertical orientation on Flash Player 10.
Solution

From Flash Player 10, you can use Flash Text Engine(aka, FTE), included in flash.text.engine.*. To show (and edit) text contents in Flash, you can do much much more than good and old TextField class.


&#8220;vertical orientation&#8221; is one of the great features FTE offers [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to show texts in a vertical orientation on Flash Player 10.</p>
<h2>Solution</h2>
<p>
From Flash Player 10, you can use Flash Text Engine(aka, FTE), included in flash.text.engine.*. To show (and edit) text contents in Flash, you can do much much more than good and old TextField class.
</p>
<p>
&#8220;vertical orientation&#8221; is one of the great features FTE offers to us. I made a easy-to-use wrapper class for this feature. Check the code below.
</p>
<p><script src="http://gist.github.com/169005.js"></script></p>
<p>
And, here is a sample usage of &#8220;VText&#8221; class.
</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> 
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> com.hoora.view.VText;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">MovieClip</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Main extends <span style="color: #004993;">MovieClip</span> <span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> VText<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;Hello, 日本語！English words are shown like this. 日本語は縦書きに表示されます。&quot;</span>, <span style="color: #000000; font-weight:bold;">80</span>, <span style="color: #000000; font-weight:bold;">180</span>, 0x005596<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>
And the result is,
</p>
<p><a href="http://www.nicecabbage.com/wp-content/uploads/2009/08/fl.swf"><img alt="" src="http://gyazo.com/c1f1d69ff33733e2e6457e5e9defc12f.png" class="alignnone" width="100" height="223" /></a></p>
<p>
Click on the image to play the SWF. Note that you need to have flash player 10 installed on your machine to see the swf.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/08/showing-japanese-texts-in-vertial-orientation%e7%b8%a6%e6%9b%b8%e3%81%8d-in-flash-player-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install locate and updatedb on CentOS and Debian</title>
		<link>http://www.nicecabbage.com/2009/08/install-locate-and-updatedb-on-centos-and-debian/</link>
		<comments>http://www.nicecabbage.com/2009/08/install-locate-and-updatedb-on-centos-and-debian/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 17:59:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=161</guid>
		<description><![CDATA[Problem
&#8216;locate&#8217; and &#8216;updatedb&#8217; commands are the best commands to search files on Linux. However, you dont have them installed on your Linux.
Solution
Use these commands. On Debian, 

sudo apt-get install locate

, and on CentOS, 

sudo yum install mlocate

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>&#8216;locate&#8217; and &#8216;updatedb&#8217; commands are the best commands to search files on Linux. However, you dont have them installed on your Linux.</p>
<h2>Solution</h2>
<p>Use these commands. On Debian, </p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">locate</span></pre></div></div>

<p>, and on CentOS, </p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> mlocate</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/08/install-locate-and-updatedb-on-centos-and-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>root_url undefined</title>
		<link>http://www.nicecabbage.com/2009/08/root_url-undefined/</link>
		<comments>http://www.nicecabbage.com/2009/08/root_url-undefined/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 18:18:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=156</guid>
		<description><![CDATA[Problem
On Ruby on Rails, you see the NameError of &#8220;undefined local variable or method `root_url&#8217; for #&#60;YourController&#62;&#8221;.
Solution
You need to set map.root in config/routes.rb, such as 

  mpa.root :controller =&#62; :welcome

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>On Ruby on Rails, you see the NameError of &#8220;undefined local variable or method `root_url&#8217; for #&lt;YourController&gt;&#8221;.</p>
<h2>Solution</h2>
<p>You need to set map.root in config/<strong>routes.rb</strong>, such as </p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">  mpa.<span style="color:#9900CC;">root</span> <span style="color:#ff3333; font-weight:bold;">:controller</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:welcome</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/08/root_url-undefined/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
